Relative Content

Tag Archive for numpyscipy

N-D rotation of numpy vector

I thought this would be easy, but I can’t figure it out and google is not helping. I have found straightforward ways to rotate 2D and 3D tensors, but I can’t find a way to rotate N-dimensional vectors. In particular I have an N-dimensional vector (numpy array) and I would like to rotate it by theta radiants around an N-dimensional unit vector v.