do_rotation_tensor

do_rotation_tensor(ROT, tensors)[source]

Rotate second-order tensors using rotation matrices.

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

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

Returns:

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