mindchemistry.e3.o3.matrix_to_angles
- mindchemistry.e3.o3.matrix_to_angles(r_param)[source]
- Conversion from matrix to angles. - Parameters
- r_param (Tensor) – The rotation matrices. Matrices of shape \((..., 3, 3)\). 
- Returns
- alpha (Tensor), The alpha Euler angles. The shape of Tensor is \((...)\). 
- beta (Tensor), The beta Euler angles. The shape of Tensor is \((...)\). 
- gamma (Tensor), The gamma Euler angles. The shape of Tensor is \((...)\). 
 
- Raises
- ValueError – If the det(R) is not equal to 1. 
 - Supported Platforms:
- Ascend
 - Examples - >>> import mindspore as ms >>> from mindchemistry.e3.o3 import matrix_to_angles >>> input = ms.Tensor([[0.5672197, 0.1866971, 0.8021259], [0.27070403, 0.87758255, -0.395687], ... [-0.77780527, 0.44158012,0.4472424]]) >>> m = matrix_to_angles(input) >>> print(m) (Tensor(shape=[], dtype=Float32, value= 0.4), Tensor(shape=[], dtype=Float32, value= 0.5), Tensor(shape=[], dtype=Float32, value= 0.6))