mindspore.numpy.arccosh
- mindspore.numpy.arccosh(x, dtype=None)[源代码]
逐元素计算反双曲余弦函数。
说明
不支持Numpy的
out、where、casting、order、subok、signature和extobj参数。- 参数:
x (Tensor) - 输入Tensor。
dtype (mindspore.dtype, 可选) - 默认值:
None。覆盖输出Tensor的dtype。
- 返回:
Tensor或标量。如果
x是标量,则返回结果为标量。- 支持平台:
AscendGPUCPU
样例:
>>> import mindspore.numpy as np >>> x = np.arange(1, 5).astype('float32') >>> print(np.arccosh(x)) [0. 1.316958 1.7627472 2.063437 ]