Array API compatible wrapper for :py:func:`np.cosh `. See its docstring for more information.
(x: Array, /)
| 264 | |
| 265 | |
| 266 | def cosh(x: Array, /) -> Array: |
| 267 | """ |
| 268 | Array API compatible wrapper for :py:func:`np.cosh <numpy.cosh>`. |
| 269 | |
| 270 | See its docstring for more information. |
| 271 | """ |
| 272 | if x.dtype not in _floating_dtypes: |
| 273 | raise TypeError("Only floating-point dtypes are allowed in cosh") |
| 274 | return Array._new(np.cosh(x._array)) |
| 275 | |
| 276 | |
| 277 | def divide(x1: Array, x2: Array, /) -> Array: |