mindspore.mint.asinh

View Source On Gitee
mindspore.mint.asinh(input)[source]

Computes inverse hyperbolic sine of the input element-wise.

\[out_i = \sinh^{-1}(input_i)\]
Parameters

input (Tensor) – The input tensor of inverse hyperbolic sine function.

Returns

Tensor, has the same shape as input. The dtype of output is float32 when dtype of input is in [bool, int8, uint8, int16, int32, int64]. Otherwise output has the same dtype as input.

Raises

TypeError – If input is not a Tensor.

Supported Platforms:

Ascend

Examples

>>> import mindspore
>>> import numpy as np
>>> from mindspore import Tensor, mint
>>> input = Tensor(np.array([-5.0, 1.5, 3.0, 100.0]), mindspore.float32)
>>> output = mint.asinh(input)
>>> print(output)
[-2.3124385  1.1947632  1.8184465  5.298342 ]