Skip to main content
`Ctrl`+`K`

# Logic functions

## Truth value testing

`all`(a[, axis, out, keepdims, where]) | Test whether all array elements along a given axis evaluate to True.
`any`(a[, axis, out, keepdims, where]) | Test whether any array element along a given axis evaluates to True.

## Array contents

`isfinite` |
`isinf` |
`isnan` |
`isnat` |
`isneginf`(x[, out]) | Test element-wise for negative infinity, return result as bool array.
`isposinf`(x[, out]) | Test element-wise for positive infinity, return result as bool array.

## Array type testing

`iscomplex`(x) | Returns a bool array, where True if input element is complex.
`iscomplexobj`(x) | Check for a complex type or an array of complex numbers.
`isfortran`(a) | Check if the array is Fortran contiguous but not C contiguous.
`isreal`(x) | Returns a bool array, where True if input element is real.
`isrealobj`(x) | Return True if x is a not complex type or an array of complex numbers.
`isscalar`(element) | Returns True if the type of element is a scalar type.

## Logical operations

`logical_and` |
`logical_or` |
`logical_not` |
`logical_xor` |

## Comparison

`allclose`(a, b[, rtol, atol, equal_nan]) | Returns True if two arrays are element-wise equal within a tolerance.
`isclose`(a, b[, rtol, atol, equal_nan]) | Returns a boolean array where two arrays are element-wise equal within a tolerance.
`array_equal`(a1, a2[, equal_nan]) | True if two arrays have the same shape and elements, False otherwise.
`array_equiv`(a1, a2) | Returns True if input arrays are shape consistent and all elements equal.

`greater` |
`greater_equal` |
`less` |
`less_equal` |
`equal` |
`not_equal` |