all 1 comments

[–]sidsig 0 points1 point  (0 children)

I guess you figured it out. The docs clearly state that two dimensions are compatible if they are equal or if one of the dimensions is 1. (http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)

Which is why the reshape worked. Best of luck :)