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

Method __ne__

numpy/ma/core.py:4280–4291  ·  view source on GitHub ↗

Check whether other does not equal 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 ar

(self, other)

Source from the content-addressed store, hash-verified

4278 return self._comparison(other, operator.eq)
4279
4280 def __ne__(self, other):
4281 """Check whether other does not equal self elementwise.
4282
4283 When either of the elements is masked, the result is masked as well,
4284 but the underlying boolean data are still set, with self and other
4285 considered equal if both are masked, and unequal otherwise.
4286
4287 For structured arrays, all fields are combined, with masked values
4288 ignored. The result is masked if all fields were masked, with self
4289 and other considered equal only if both were fully masked.
4290 """
4291 return self._comparison(other, operator.ne)
4292
4293 # All other comparisons:
4294 def __le__(self, other):

Callers

nothing calls this directly

Calls 1

_comparisonMethod · 0.95

Tested by

no test coverage detected