Applying quaternion rotation to a vector time series
问题 I have a time series of 3D vectors in a Python numpy array similar to the following: array([[-0.062, -0.024, 1. ], [-0.071, -0.03 , 0.98 ], [-0.08 , -0.035, 0.991], [-0.083, -0.035, 0.98 ], [-0.083, -0.035, 0.977], [-0.082, -0.035, 0.993], [-0.08 , -0.034, 1.006], [-0.081, -0.032, 1.008], ....... I want to rotate each vector around a specified axis through a specified angle theta . I have been using quaternions to achieve this for one vector as found here in henneray's answer. v1 = np.array (