This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Dot (.)

a.b.c or Dot[a, b, c]
gives products of vectors, matrices and tensors.
  • a.b gives an explicit result when a and b are lists with appropriate dimensions. It contracts the last index in a with the first index in b.
  • Various applications of Dot:
{a1,a2}.{b1,b2}scalar product of vectors
product of a vector and a matrix
product of a matrix and a vector
product of two matrices
  • The result of applying Dot to two tensors T_(i_1 i_2... i_n) and U_(j_1 j_2... j_m) is the tensor . Applying Dot to a rank n tensor and a rank m tensor gives a rank m+n-2 tensor.  »
  • When its arguments are not lists or sparse arrays, Dot remains unevaluated. It has the attribute Flat.
New in 1