blosc2.sinh#

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

Hyperbolic sine, element-wise.

Parameters:

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

Returns:

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

Return type:

LazyExpr

References

np.sinh

Examples

>>> import numpy as np
>>> import blosc2
>>> numbers = np.array([-2, -1, 0, 1, 2])
>>> ndarray = blosc2.asarray(numbers)
>>> result_lazy = blosc2.sinh(ndarray)
>>> result = result_lazy[:]
>>> print("Original numbers:", numbers)
Original numbers: [-2 -1  0  1  2]
>>> print("Hyperbolic sine:", result)
Hyperbolic sine: [-3.62686041 -1.17520119  0.          1.17520119  3.62686041]