Skip to content

dot

linear-algebra · scripts/linear-algebra/dot.m

: c = dot (a, b)
: c = dot (a, b, dim)

Scalar (inner) product of arrays a and b.

For vectors the result is a scalar. For matrices and N-D arrays the products are summed along the first non-singleton dimension, or along dim when that argument is given. Complex inputs conjugate the first argument. Integer classes are rejected.