mne.transforms.
rot_to_quat
Convert a set of rotations to quaternions.
rot : array, shape (…, 3, 3)
The rotation matrices to convert.
quat : array, shape (…, 3)
The q1, q2, and q3 (x, y, z) parameters of the corresponding unit quaternions.
See also
quat_to_rot