Array API compatible wrapper for :py:func:`np.isinf `. See its docstring for more information.
(x: Array, /)
| 401 | |
| 402 | |
| 403 | def isinf(x: Array, /) -> Array: |
| 404 | """ |
| 405 | Array API compatible wrapper for :py:func:`np.isinf <numpy.isinf>`. |
| 406 | |
| 407 | See its docstring for more information. |
| 408 | """ |
| 409 | if x.dtype not in _numeric_dtypes: |
| 410 | raise TypeError("Only numeric dtypes are allowed in isinf") |
| 411 | return Array._new(np.isinf(x._array)) |
| 412 | |
| 413 | |
| 414 | def isnan(x: Array, /) -> Array: |
no test coverage detected