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 ina1
will be considered equal to NaN’s ina2
.
- Returns:
A boolean 0-dim array. If its value is
True
, two arrays are element-wise equal.- Return type:
See also