Logic Functions
The following tables show logical functions provided by NLCPy.
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 whether input elements are neither inf nor nan, or not. |
|
Tests whether input elements are inf, or not. |
|
Tests whether input elements are nan, or not. |
Logical Operations
Computes the logical AND of two arrays element-wise. |
|
Computes the logical OR of two arrays element-wise. |
|
Computes the logical NOT of the input array element-wise. |
|
Computes the logical XOR of two arrays element-wise. |
Comparison
Returns (x1 > x2), element-wise. |
|
Returns (x1 >= x2), element-wise. |
|
Returns (x1 < x2), element-wise. |
|
Returns (x1 <= x2), element-wise. |
|
Returns (x1 == x2), element-wise. |
|
Returns (x1 != x2), element-wise. |