Back to Numerical Arrays (NumPy)
np.all
Test whether all array elements along a given axis evaluate to True.
Syntax
np.all(a, axis?, keepdims?)
Description
Test whether all array elements along a given axis evaluate to True.
Parameters
| Name | Description |
|---|---|
| a | - Input array |
| axis(optional) | - Axis along which to test (undefined for entire array) |
| keepdims(optional) | - If true, keep reduced axis as size-1 dimension |
Returns
Promise<NDArray | boolean>