mindchemistry.e3.o3.matrix_y

查看源文件
mindchemistry.e3.o3.matrix_y(angle)[源代码]

给出给定角度下绕y轴的旋转矩阵。

参数:
  • angle (Union[Tensor[float32], List[float], Tuple[float], ndarray[np.float32], float]) - 围绕y轴的旋转角度。

返回:
  • output (Tensor) - 围绕y轴的旋转矩阵。输出的形状为 \((..., 3, 3)\)

支持平台:

Ascend

样例:

>>> from mindchemistry.e3.o3 import matrix_y
>>> m = matrix_y(0.5)
>>> print(m)
[[ 0.87758255  0.          0.47942555]
[ 0.          1.          0.        ]
[-0.47942555  0.          0.87758255]]