isfinite¶
- isfinite(x: array, /) array ¶
Tests each element
x_i
of the input arrayx
to determine if finite (i.e., notNaN
and not equal to positive or negative infinity).- Parameters:
x (array) – input array. Should have a numeric data type.
- Returns:
out (array) – an array containing test results. An element
out_i
isTrue
ifx_i
is finite andFalse
otherwise. The returned array must have a data type ofbool
.