Dot Product

Dot product(scalar product, or inner product) is the result of multiplying corresponding elements of two equal-length vectors, then adding the results.

he dot product of two and is defined as:

The dot product is the building block of matrix multiplication, a very particular way to combine a pair of two-dimensional arrays.

Some calculation rules:

  • Dot product of two of same one-hot vector is 1.
  • Dot product of two different one-hot vectors is 0.


  • Dot products are used in One-Hot Encoding symbol representations.
  • Dot Product can be used to show similarity of two vectors.