differt.em.sp_rotation_matrix

differt.em.sp_rotation_matrix#

sp_rotation_matrix(e_a_s, e_a_p, e_b_s, e_b_p)[source]#

Return the rotation matrix to convert the s and p components from one base to another.

All input vectors must have a unit length, and the direction of propagation must be the same. The latter is equivalent to ensuring that all four vectors are coplanar.

Parameters:
Return type:

Float[Array, '*batch 2 2']

Returns:

The array of rotation matrices.