Logic functions¶
Truth value testing¶
|
Tests whether all array elements along a given axis evaluate to True. |
|
Tests whether any array elements along a given axis evaluate to True. |
Array contents¶
Tests finiteness elementwise. |
|
Tests if each element is the positive or negative infinity. |
|
Tests if each element is a NaN. |
Array type testing¶
|
Returns a bool array, where True if input element is complex. |
|
Check for a complex type or an array of complex numbers. |
|
Returns True if the array is Fortran contiguous but not C contiguous. |
|
Returns a bool array, where True if input element is real. |
|
Return True if x is a not complex type or an array of complex numbers. |
|
Returns True if the type of num is a scalar type. |
Logic operations¶
Computes the logical AND of two arrays. |
|
Computes the logical OR of two arrays. |
|
Computes the logical NOT of an array. |
|
Computes the logical XOR of two arrays. |
Comparison¶
|
Returns True if two arrays are element-wise equal within a tolerance. |
|
Returns a boolean array where two arrays are equal within a tolerance. |
|
Returns |
Tests elementwise if |
|
Tests elementwise if |
|
Tests elementwise if |
|
Tests elementwise if |
|
Tests elementwise if |
|
Tests elementwise if |