mindchemistry.e3.o3.rand_angles

查看源文件
mindchemistry.e3.o3.rand_angles(*shape)[源代码]

给出一组随机的欧拉角。

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

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

  • beta (Tensor) - beta 欧拉角。

  • gamma (Tensor) - gamma 欧拉角。

异常:
  • TypeError - 如果 shape 的类型不是 tuple。

  • TypeError - 如果 shape 元素的类型不是 int。

支持平台:

Ascend

样例:

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