Truth value testing
Array contents
(x, /[, out, where, casting, order, ...])
Test element-wise for finiteness (not infinity and not Not a Number).
(x, /[, out, where, casting, order, ...])
Test element-wise for positive or negative infinity.
(x, /[, out, where, casting, order, ...])
Test element-wise for NaN and return result as a boolean array.
(x, /[, out, where, casting, order, ...])
Test element-wise for NaT (not a time) and return result as a boolean array.
(x[, out])
Test element-wise for negative infinity, return result as bool array.
(x[, out])
Test element-wise for positive infinity, return result as bool array.
Array type testing
(x)
Returns a bool array, where True if input element is complex.
(x)
Check for a complex type or an array of complex numbers.
(a)
Check if the array is Fortran contiguous but not C contiguous.
(x)
Returns a bool array, where True if input element is real.
(x)
Return True if x is a not complex type or an array of complex numbers.
(element)
Returns True if the type of element is a scalar type.
Logical operations
Comparison
(x1, x2, /[, out, where, casting, ...])
Return the truth value of (x1 > x2) element-wise.
(x1, x2, /[, out, where, ...])
Return the truth value of (x1 >= x2) element-wise.
(x1, x2, /[, out, where, casting, ...])
Return the truth value of (x1 < x2) element-wise.
(x1, x2, /[, out, where, casting, ...])
Return the truth value of (x1 <= x2) element-wise.
(x1, x2, /[, out, where, casting, ...])
Return (x1 == x2) element-wise.
(x1, x2, /[, out, where, casting, ...])
Return (x1 != x2) element-wise.