MCPcopy Create free account
hub / github.com/numpy/numpy / asinh

Function asinh

numpy/array_api/_elementwise_functions.py:81–89  ·  view source on GitHub ↗

Array API compatible wrapper for :py:func:`np.arcsinh `. See its docstring for more information.

(x: Array, /)

Source from the content-addressed store, hash-verified

79
80# Note: the function name is different here
81def 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

Callers 1

npy_asinhFunction · 0.85

Calls 1

_newMethod · 0.80

Tested by

no test coverage detected