cunumeric.array_equal#

cunumeric.array_equal(a1: ndarray, a2: ndarray, equal_nan: bool = False) bool | ndarray#

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

Parameters:
  • a1 (array_like) – Input arrays.

  • a2 (array_like) – Input arrays.

  • equal_nan (bool) – Whether to compare NaN’s as equal. If the dtype of a1 and a2 is complex, values will be considered equal if either the real or the imaginary component of a given value is nan.

Returns:

b – Returns True if the arrays are equal.

Return type:

ndarray scalar

Availability:

Multiple GPUs, Multiple CPUs