dot

Dot product.

Syntax

  • R = dot(A, B)
  • R = dot(A, B, dim)

Input argument

  • A, B - numeric arrays.
  • dim - positive integer scalar: Dimension to operate along.

Output argument

  • R - Scalar Dot Product.

Description

R = dot(A, B) returns the scalar dot product of A and B.

Bibliography

https://en.wikipedia.org/wiki/Dot_product

Example

A = [1 2 3;4 5 6;7 8 9];
B = [9 8 7;6 5 4;3 2 1];
R = dot(A, B)
R = dot(A, B, 2)

See also

conj.

History

VersionDescription
1.0.0initial version

Author

Allan CORNET