Logic functions#
Truth value testing#
|
Test whether all array elements along a given axis evaluate to True. |
|
Test whether any array element along a given axis evaluates to True. |
Array contents#
|
Test element-wise for finiteness (not infinity and not Not a Number). |
|
Test element-wise for positive or negative infinity. |
|
Test element-wise for NaN and return result as a boolean array. |
Array type testing#
|
Returns a bool array, where True if input element is complex. |
|
Returns a bool array, where True if input element is real. |
Logical operations#
|
Compute the truth value of x1 AND x2 element-wise. |
|
Compute the truth value of x1 OR x2 element-wise. |
|
Compute the truth value of NOT x element-wise. |
|
Compute the truth value of x1 XOR x2, element-wise. |
Comparison#
|
Returns True if two arrays are element-wise equal within a tolerance. |
|
Returns a boolean array where two arrays are element-wise equal within a tolerance. |
|
True if two arrays have the same shape and elements, False otherwise. |
|
Return the truth value of (x1 > x2) element-wise. |
|
Return the truth value of (x1 >= x2) element-wise. |
|
Return the truth value of (x1 < x2) element-wise. |
|
Return the truth value of (x1 <= x2) element-wise. |
|
Return (x1 == x2) element-wise. |
|
Return (x1 != x2) element-wise. |