Array API compatible wrapper for :py:func:`np.expm1 `. See its docstring for more information.
(x: Array, /)
| 312 | |
| 313 | |
| 314 | def expm1(x: Array, /) -> Array: |
| 315 | """ |
| 316 | Array API compatible wrapper for :py:func:`np.expm1 <numpy.expm1>`. |
| 317 | |
| 318 | See its docstring for more information. |
| 319 | """ |
| 320 | if x.dtype not in _floating_dtypes: |
| 321 | raise TypeError("Only floating-point dtypes are allowed in expm1") |
| 322 | return Array._new(np.expm1(x._array)) |
| 323 | |
| 324 | |
| 325 | def floor(x: Array, /) -> Array: |
no test coverage detected