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

Function sinh

numpy/array_api/_elementwise_functions.py:685–693  ·  view source on GitHub ↗

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

(x: Array, /)

Source from the content-addressed store, hash-verified

683
684
685def sinh(x: Array, /) -> Array:
686 """
687 Array API compatible wrapper for :py:func:`np.sinh <numpy.sinh>`.
688
689 See its docstring for more information.
690 """
691 if x.dtype not in _floating_dtypes:
692 raise TypeError("Only floating-point dtypes are allowed in sinh")
693 return Array._new(np.sinh(x._array))
694
695
696def square(x: Array, /) -> Array:

Callers 2

test_testUfuncs1Method · 0.85
test_basic_ufuncsMethod · 0.85

Calls 1

_newMethod · 0.80

Tested by 2

test_testUfuncs1Method · 0.68
test_basic_ufuncsMethod · 0.68