dpnp.array_equal

dpnp.array_equal(a1, a2, equal_nan=False)[source]

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

For full documentation refer to numpy.array_equal.

See also

dpnp.allclose

Returns True if two arrays are element-wise equal within a tolerance.

dpnp.array_equiv

Returns True if input arrays are shape consistent and all elements equal.