Loading...

Dot Product

A scalar produced by elementwise-multiplying two equal-length vectors and summing.

When to use: Measuring alignment between two vectors; foundation of every linear layer and attention.

Example: [1, 2, 3] · [4, 5, 6] = 32. Two unit vectors with dot product 0.95 are nearly aligned.

More Linear Algebra Glossary terms