Sorry, but isn’t this suppose to give different results, namely A*B
and B*A
???
julia> A = rand(3,3)
3x3 Array{Float64,2}:
0.601317 0.0789842 0.624138
0.3137 0.134492 0.600118
0.350883 0.306819 0.930303
julia> B = rand(3,3)
3x3 Array{Float64,2}:
0.87791 0.802677 0.691277
0.0102793 0.369752 0.0523712
0.628603 0.638735 0.980241
julia> foldl(*,[A,B])
3x3 Array{Float64,2}:
0.92105 0.910527 1.03162
0.654019 0.684845 0.812157
0.895989 0.98931 1.17055
julia> foldr(*,[A,B])
3x3 Array{Float64,2}:
0.92105 0.910527 1.03162
0.654019 0.684845 0.812157
0.895989 0.98931 1.17055
The examples in the doc work (and expectedly give different results). Please help me see my mistake, I’m apparently blind!