Logic Functions¶
Infinities and NaNs¶
cupy.isfinite |
Tests finiteness elementwise. |
cupy.isinf |
Tests if each element is the positive or negative infinity. |
cupy.isnan |
Tests if each element is a NaN. |
Array type testing¶
cupy.isscalar |
Returns True if the type of num is a scalar type. |
Logic operations¶
cupy.logical_and |
Computes the logical AND of two arrays. |
cupy.logical_or |
Computes the logical OR of two arrays. |
cupy.logical_not |
Computes the logical NOT of an array. |
cupy.logical_xor |
Computes the logical XOR of two arrays. |
Comparison operations¶
cupy.greater |
Tests elementwise if x1 > x2 . |
cupy.greater_equal |
Tests elementwise if x1 >= x2 . |
cupy.less |
Tests elementwise if x1 < x2 . |
cupy.less_equal |
Tests elementwise if x1 <= x2 . |
cupy.equal |
Tests elementwise if x1 == x2 . |
cupy.not_equal |
Tests elementwise if x1 != x2 . |