Vector Multiplication
Contents
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:
Concretely, if a and b have three dimensions (labeled x, y, and z), the dot product can be computed as:
julia> using LinearAlgebra
julia> A = [2,3,4]
3-element Vector{Int64}:
2
3
4
julia> B = [5,6,7]
3-element Vector{Int64}:
5
6
7
julia> # type '\cdot' and tab-complete into '⋅'
julia> A ⋅ B
56