Logic functions¶
Truth value testing¶
Array contents¶
isfinite(x[, out]) |
Test element-wise for finiteness (not infinity or not Not a Number). |
isinf(x[, out]) |
Test element-wise for positive or negative infinity. |
isnan(x[, out]) |
Test element-wise for NaN and return result as a boolean array. |
Array type testing¶
Logical operations¶
logical_and(x1, x2[, out]) |
Compute the truth value of x1 AND x2 element-wise. |
logical_or(x1, x2[, out]) |
Compute the truth value of x1 OR x2 element-wise. |
logical_not(x[, out]) |
Compute the truth value of NOT x element-wise. |
logical_xor(x1, x2[, out]) |
Compute the truth value of x1 XOR x2, element-wise. |
Comparison¶
greater(x1, x2[, out]) |
Return the truth value of (x1 > x2) element-wise. |
greater_equal(x1, x2[, out]) |
Return the truth value of (x1 >= x2) element-wise. |
less(x1, x2[, out]) |
Return the truth value of (x1 < x2) element-wise. |
less_equal(x1, x2[, out]) |
Return the truth value of (x1 =< x2) element-wise. |
equal(x1, x2[, out]) |
Return (x1 == x2) element-wise. |
not_equal(x1, x2[, out]) |
Return (x1 != x2) element-wise. |