numpy 1.22.4 Pypi GitHub Homepage
Other Docs
ParametersReturns
allequal(a, b, fill_value=True)

Parameters

a, b : array_like

Input arrays to compare.

fill_value : bool, optional

Whether masked values in a or b are considered equal (True) or not (False).

Returns

y : bool

Returns True if the two arrays are equal within the given tolerance, False otherwise. If either array contains NaN, then False is returned.

Return True if all entries of a and b are equal, using fill_value as a truth value where either or both are masked.

See Also

all
any
numpy.ma.allclose

Examples

This example is valid syntax, but we were not able to check execution
>>> a = np.ma.array([1e10, 1e-7, 42.0], mask=[0, 0, 1])
... a masked_array(data=[10000000000.0, 1e-07, --], mask=[False, False, True], fill_value=1e+20)
This example is valid syntax, but we were not able to check execution
>>> b = np.array([1e10, 1e-7, -42.0])
... b array([ 1.00000000e+10, 1.00000000e-07, -4.20000000e+01])
This example is valid syntax, but we were not able to check execution
>>> np.ma.allequal(a, b, fill_value=False)
False
This example is valid syntax, but we were not able to check execution
>>> np.ma.allequal(a, b)
True
See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /numpy/ma/core.py#7744
type: <class 'function'>
Commit: