Array API compatible wrapper for :py:func:`np.arcsinh `. See its docstring for more information.
(x: Array, /)
| 79 | |
| 80 | # Note: the function name is different here |
| 81 | def asinh(x: Array, /) -> Array: |
| 82 | """ |
| 83 | Array API compatible wrapper for :py:func:`np.arcsinh <numpy.arcsinh>`. |
| 84 | |
| 85 | See its docstring for more information. |
| 86 | """ |
| 87 | if x.dtype not in _floating_dtypes: |
| 88 | raise TypeError("Only floating-point dtypes are allowed in asinh") |
| 89 | return Array._new(np.arcsinh(x._array)) |
| 90 | |
| 91 | |
| 92 | # Note: the function name is different here |