mindchemistry.e3.o3.angles_to_xyz

View Source On Gitee
mindchemistry.e3.o3.angles_to_xyz(alpha, beta)[source]

Convert \((\alpha, \beta)\) into a point \((x, y, z)\) on the sphere.

Parameters
  • alpha (Union[Tensor[float32], List[float], Tuple[float], ndarray[np.float32], float]) – The alpha Euler angles. The shape of Tensor is \((...)\).

  • beta (Union[Tensor[float32], List[float], Tuple[float], ndarray[np.float32], float]) – The beta Euler angles. The shape of Tensor is \((...)\).

Returns

Tensor, the point \((x, y, z)\) on the sphere. The shape of Tensor is \((..., 3)\)

Supported Platforms:

Ascend

Examples
>>> import mindspore as ms
>>> from mindchemistry.e3.o3 import angles_to_xyz
>>> print(angles_to_xyz(ms.Tensor(1.7), ms.Tensor(0.0)).abs())
[0., 1., 0.]