numpy.array_equal(a1, a2) [source]
True if two arrays have the same shape and elements, False otherwise.
| Parameters: | 
  |  
|---|---|
| Returns: | 
  |  
See also
allclose
array_equiv
>>> np.array_equal([1, 2], [1, 2]) True >>> np.array_equal(np.array([1, 2]), np.array([1, 2])) True >>> np.array_equal([1, 2], [1, 2, 3]) False >>> np.array_equal([1, 2], [1, 4]) False
    © 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
    https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.array_equal.html