Outer product of each row of a matrix

stack(r * r' for r in eachrow(A))
2 Likes