mindchemistry.e3.o3.matrix_x
- mindchemistry.e3.o3.matrix_x(angle)[source]
Give the rotation matrices around x axis for given angle.
- Parameters
angle (Union[Tensor[float32], List[float], Tuple[float], ndarray[np.float32], float]) – The rotation angles around x axis. The shape of 'angle' is \((...)\).
- Returns
Tensor, the rotation matrices around x axis. The shape of output is \((..., 3, 3)\)
- Supported Platforms:
Ascend
Examples
>>> from mindchemistry.e3.o3 import matrix_x >>> m = matrix_x(0.4) >>> print(m) [[ 1. 0. 0. ] [ 0. 0.92106086 -0.38941833] [ 0. 0.38941833 0.92106086]]