Broadcasting in matrix multiplication

You want Ref(A).*B. Ref is a single element container, so broadcast will broadcast over it, not A.

6 Likes