blosc2.arcsinh#

blosc2.arcsinh(ndarr: NDArray | NDField | C2Array | LazyExpr, /) LazyExpr#

Compute the inverse hyperbolic sine, element-wise.

Parameters:

ndarr (NDArray or NDField or C2Array or LazyExpr) – The input array.

Returns:

out – A lazy expression representing the inverse hyperbolic sine of the input array. The result can be evaluated.

Return type:

LazyExpr

References

np.arcsinh

Examples

>>> import numpy as np
>>> import blosc2
>>> values = np.array([-2, -1, 0, 1, 2])
>>> ndarray = blosc2.asarray(values)
>>> result_lazy = blosc2.arcsinh(ndarray)
>>> result = result_lazy[:]
>>> print("Original values:", values)
Original values: [-2 -1  0  1  2]
>>> print("Arcsinh:", result)
Arcsinh: [-1.44363548 -0.88137359  0.          0.88137359  1.44363548]