Dot product (inner product)
Read "the dot product of u and v". Multiply the two vectors entry by entry and add the results. You get one number, which is large when the vectors point the same way.
. It also equals , where is the angle between the vectors. The second form is why attention uses it: the dot product is large and positive when two vectors point the same way, near zero when they are perpendicular, and negative when they point apart.
Angle brackets , and are three ways of writing the same operation.
Example
Only slightly positive compared with the vectors' lengths (about 3.7 and 4.1), so they are close to perpendicular.
Where the course uses it
Related terms
- TransposeRead "A transpose". The raised T flips a matrix so its rows become its columns. On a vector it turns a column into a row.
- Norm — the length of a vectorRead "the norm of x". Double bars mean the length of a vector: square each entry, add them up, and take the square root.
- ∑ — sumRead "the sum of". The big sigma is a loop that adds: the counter starts at the value below it and stops at the value above it.