MCPcopy Create free account
hub / github.com/numpy/numpy / __eq__

Method __eq__

numpy/ma/core.py:4171–4182  ·  view source on GitHub ↗

Check whether other equals self elementwise. When either of the elements is masked, the result is masked as well, but the underlying boolean data are still set, with self and other considered equal if both are masked, and unequal otherwise. For structured arrays, al

(self, other)

Source from the content-addressed store, hash-verified

4169 return check
4170
4171 def __eq__(self, other):
4172 """Check whether other equals self elementwise.
4173
4174 When either of the elements is masked, the result is masked as well,
4175 but the underlying boolean data are still set, with self and other
4176 considered equal if both are masked, and unequal otherwise.
4177
4178 For structured arrays, all fields are combined, with masked values
4179 ignored. The result is masked if all fields were masked, with self
4180 and other considered equal only if both were fully masked.
4181 """
4182 return self._comparison(other, operator.eq)
4183
4184 def __ne__(self, other):
4185 """Check whether other does not equal self elementwise.

Callers

nothing calls this directly

Calls 1

_comparisonMethod · 0.95

Tested by

no test coverage detected