mindchemistry.e3.o3.identity_angles

View Source On Gitee
mindchemistry.e3.o3.identity_angles(*shape, dtype=float32)[source]

Give the identity set of Euler angles.

Parameters
  • shape (Tuple[int]) – The shape of additional dimensions.

  • dtype (mindspore.dtype) – The type of input tensor. Default: mindspore.float32 .

Returns

alpha (Tensor) - The alpha Euler angles.

beta (Tensor) - The beta Euler angles.

gamma (Tensor) - The gamma Euler angles.

Raises
  • TypeError – If dtype of 'shape' is not tuple.

  • TypeError – If dtype of the element of 'shape' is not int.

Supported Platforms:

Ascend

Examples

>>> from mindchemistry.e3.o3 import identity_angles
>>> m = identity_angles((1))
>>> print(m)
(Tensor(shape=[1], dtype=Float32, value= [ 0.00000000e+00]), Tensor(shape=[1], dtype=Float32,
value= [ 0.00000000e+00]), Tensor(shape=[1], dtype=Float32, value= [ 0.00000000e+00]))