mindchemistry.e3.o3.matrix_y

View Source On Gitee
mindchemistry.e3.o3.matrix_y(angle)[source]

Give the rotation matrices around y axis for given angle.

Parameters

angle (Union[Tensor[float32], List[float], Tuple[float], ndarray[np.float32], float]) – The rotation angles around y axis.

Returns

Tensor, the rotation matrices around y axis. The shape of output is \((..., 3, 3)\)

Supported Platforms:

Ascend

Examples

>>> 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]]