Logic Functions

The following tables show logical functions provided by NLCPy.

Truth Value Testing

nlcpy.all

Tests whether all array elements along a given axis evaluate to True.

nlcpy.any

Tests whether any array elements along a given axis evaluate to True.

Array Contents

nlcpy.isfinite

Tests whether input elements are neither inf nor nan, or not.

nlcpy.isinf

Tests whether input elements are inf, or not.

nlcpy.isnan

Tests whether input elements are nan, or not.

Logical Operations

nlcpy.logical_and

Computes the logical AND of two arrays element-wise.

nlcpy.logical_or

Computes the logical OR of two arrays element-wise.

nlcpy.logical_not

Computes the logical NOT of the input array element-wise.

nlcpy.logical_xor

Computes the logical XOR of two arrays element-wise.

Comparison

nlcpy.greater

Returns (x1 > x2), element-wise.

nlcpy.greater_equal

Returns (x1 >= x2), element-wise.

nlcpy.less

Returns (x1 < x2), element-wise.

nlcpy.less_equal

Returns (x1 <= x2), element-wise.

nlcpy.equal

Returns (x1 == x2), element-wise.

nlcpy.not_equal

Returns (x1 != x2), element-wise.