mat_to_quat# anri.crystal.mat_to_quat(U)[source]# Convert rotation matrices to unit quaternions (w, x, y, z) with w >= 0. Parameters: U (Array | ndarray | bool | number | bool | int | float | complex) – […, 3, 3] rotation matrices Returns: np.ndarray – […, 4] quaternions