cupy.array_equal#

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

Returns True if two arrays are element-wise exactly equal.

Parameters:
  • a1 (cupy.ndarray) – Input array to compare.

  • a2 (cupy.ndarray) – Input array to compare.

  • equal_nan (bool) – If True, NaN’s in a1 will be considered equal to NaN’s in a2.

Returns:

A boolean 0-dim array. If its value is True, two arrays are element-wise equal.

Return type:

cupy.ndarray