| 1851 | } |
| 1852 | |
| 1853 | array isfinite(const array& a, StreamOrDevice s /* = {} */) { |
| 1854 | if (issubdtype(a.dtype(), integer) || a.dtype() == bool_) { |
| 1855 | return full(a.shape(), true, bool_, s); |
| 1856 | } |
| 1857 | return logical_not(logical_or(isinf(a, s), isnan(a, s), s), s); |
| 1858 | } |
| 1859 | |
| 1860 | array isposinf(const array& a, StreamOrDevice s /* = {} */) { |
| 1861 | if (issubdtype(a.dtype(), integer) || a.dtype() == bool_) { |
no test coverage detected