`eachrow` over Array{Any, 2} does not return rows, why?

to use the dot product:

julia> using LinearAlgebra
julia> m = [1 2 3; 4 5 6];
julia> for row in eachrow(m)
           println( dot(row, [2, 2, 2]) )
       end
12
40

The dot product operator is called dot and it lives in the LinearAlgebra standard library.

1 Like