### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Logic functions »

# numpy.array_equal

`numpy.``array_equal`(a1, a2)

  True if two arrays have the same shape and elements, False otherwise.

  Parameters: | a1 : array_like First input array. a2 : array_like Second input array.
  Returns: | b : {True, False} Returns True if the arrays are equal.

  Examples

      >>> 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

### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Logic functions »