Question: how to get dot products from size(x, n) matrix and length(n) vector

shouldn’t

X2 * w2

julia> X2 = rand(1:3, 4, 3)
4×3 Matrix{Int64}:
 3  1  1
 1  2  3
 3  1  1
 2  3  3

julia> x2 = [1,2,3]
3-element Vector{Int64}:
 1
 2
 3

julia> X2 * x2
4-element Vector{Int64}:
  8
 14
  8
 17

just work?

3 Likes