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. |
Infinities and NaNs
Test if each element of input array is a finite number. |
|
Test if each element of input array is an infinity. |
|
Test if each element of an input array is a NaN. |
|
Test element-wise for negative infinity, return result as bool array. |
|
Test element-wise for positive infinity, return result as bool array. |
Array type testing
Returns a bool array, where |
|
Check for a complex type or an array of complex numbers. |
|
Check if the array is Fortran contiguous but not C contiguous. |
|
Returns a bool array, where |
|
Return |
|
Returns |
Logic operations
Computes the logical AND for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Computes the logical OR for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Computes the logical NOT for each element x_i of input array x. |
|
Computes the logical XOR for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
Comparison
Returns |
|
Returns a boolean array where two arrays are element-wise equal within a tolerance. |
|
|
|
Returns |
|
Computes the greater-than test results for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Computes the greater-than or equal-to test results for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Computes the less-than test results for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Computes the less-than or equal-to test results for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Calculates equality test results for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Calculates inequality test results for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |