Vector Multiplication


Dot Product

The dot product of two vectors gives a single scalar value.

Generally, given two vectors (a and b) with n dimensions, the dot product is computed as:

dot1.svg

Concretely, if a and b have three dimensions (labeled x, y, and z), the dot product can be computed as:

dot2.svg

julia> using LinearAlgebra

julia> # type '\cdot' and tab-complete into '⋅'
julia> [2,3,4] ⋅ [5,6,7] 
56


CategoryRicottone

LinearAlgebra/VectorMultiplication (last edited 2023-10-30 17:57:32 by DominicRicottone)