MCPcopy Index your code
hub / github.com/numpy/numpy / __eq__

Method __eq__

numpy/ma/core.py:4267–4278  ·  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

4265 return check
4266
4267 def __eq__(self, other):
4268 """Check whether other equals self elementwise.
4269
4270 When either of the elements is masked, the result is masked as well,
4271 but the underlying boolean data are still set, with self and other
4272 considered equal if both are masked, and unequal otherwise.
4273
4274 For structured arrays, all fields are combined, with masked values
4275 ignored. The result is masked if all fields were masked, with self
4276 and other considered equal only if both were fully masked.
4277 """
4278 return self._comparison(other, operator.eq)
4279
4280 def __ne__(self, other):
4281 """Check whether other does not equal self elementwise.

Callers

nothing calls this directly

Calls 1

_comparisonMethod · 0.95

Tested by

no test coverage detected