mindchemistry.e3.o3.matrix_x
- mindchemistry.e3.o3.matrix_x(angle)[源代码]
给出给定角度下绕x轴的旋转矩阵。
- 参数:
angle (Union[Tensor[float32], List[float], Tuple[float], ndarray[np.float32], float]) - 围绕x轴的旋转角度。形状为 \((...)\)。
- 返回:
output (Tensor) - 围绕x轴的旋转矩阵。输出的形状为 \((..., 3, 3)\)。
- 支持平台:
Ascend
样例:
>>> 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]]