do_rotation_vector

do_rotation_vector(ROT, vectors)[source]

Rotate vectors using rotation matrices.

Parameters:
  • ROT – array of shape (…, 3, 3) containing rotation matrices

  • vectors – array of shape (…, 3) containing vectors

Returns:

array of shape (…, 3) containing the rotated vectors