mindchemistry.e3.o3.identity_angles

查看源文件
mindchemistry.e3.o3.identity_angles(*shape, dtype=float32)[源代码]

返回欧拉角的单位集合。

参数:
  • shape (Tuple[int]) - 附加维度的形状。

  • dtype (mindspore.dtype) - 输入张量的类型。默认值:mindspore.float32

返回:
  • alpha (Tensor) - alpha 欧拉角。

  • beta (Tensor) - beta 欧拉角。

  • gamma (Tensor) - gamma 欧拉角。

异常:
  • TypeError - 如果 'shape' 不是元组类型。

  • TypeError - 如果 'shape' 中的元素不是整型。

支持平台:

Ascend

样例:

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