Back to Numerical Arrays (NumPy)
np.array_equal
True if two arrays have the same shape and elements, False otherwise.
Syntax
np.array_equal(a1, a2, equal_nan?)
Description
True if two arrays have the same shape and elements, False otherwise.
Parameters
| Name | Description |
|---|---|
| a1 | - First array |
| a2 | - Second array |
| equal_nan(optional) | - Whether to compare NaN's as equal (default false) |
Returns
Promise<boolean>