Array API compatible wrapper for :py:func:`np.sinh `. See its docstring for more information.
(x: Array, /)
| 683 | |
| 684 | |
| 685 | def 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 | |
| 696 | def square(x: Array, /) -> Array: |