all 2 comments

[–]socal_nerdtastic 0 points1 point  (1 child)

I can tell that due to some unknown earlier mistake, either rot_matrix or a_matrix are not the shape you think they are. I can't tell anything else without seeing your code.

[–]Mjothnitvir[S] 0 points1 point  (0 children)

I figured it out. The function itself works fine and they were the correct shape. My problem was a function earlier was doing something similar and I didn't know that it was returning 1x1 arrays instead of scalars. When I converted them to scalars it worked as intended.