Multiplication and Dot Product Operator |
Keystroke: [*]
x · y
If x and y are scalars, returns the product of x and y.
If x and y are vectors, returns the dot product (inner product) of x and y, a scalar formed by multiplying element-wise the entries of the first vector with the complex conjugate of the entries of the second vector, and summing the results.
If x and y are matrices, returns the matrix product of x and y.
If one operand is a scalar and the other is a matrix, each element in the matrix is multiplied by the scalar.
The dot product (inner product) has the following properties:
x · y = |u||v|cos(θ) where θ is the angle between the vectors.
When x and y are orthogonal, their dot product is zero.
The dot product of x with itself is simply the square of the length of x.
To get the term-by-term product of two arrays of equal size, select the entire expression and press [Ctrl] [−] to insert the vectorize operator.