bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / ma / core / allequal
function
numpy.ma.core:allequal
source: build-install/usr/lib/python3.14/site-packages/numpy/ma/core.py :8387
Signature
def allequal ( a , b , fill_value = True ) Summary
Return True if all entries of a and b are equal, using fill_value as a truth value where either or both are masked.
Parameters
a, b: array_likeInput arrays to compare.
fill_value: bool, optionalWhether masked values in a or b are considered equal (True) or not (False).
Returns
y: boolReturns True if the two arrays are equal within the given tolerance, False otherwise. If either array contains NaN, then False is returned.
Examples
import numpy as np a = np.ma.array([1e10, 1e-7, 42.0], mask=[0, 0, 1]) a
b = np.array([1e10, 1e-7, -42.0]) b np.ma.allequal(a, b, fill_value=False) np.ma.allequal(a, b)
See also
Aliases
-
numpy.ma.allequal