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

Method __ne__

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

4182 return self._comparison(other, operator.eq)
4183
4184 def __ne__(self, other):
4185 """Check whether other does not equal self elementwise.
4186
4187 When either of the elements is masked, the result is masked as well,
4188 but the underlying boolean data are still set, with self and other
4189 considered equal if both are masked, and unequal otherwise.
4190
4191 For structured arrays, all fields are combined, with masked values
4192 ignored. The result is masked if all fields were masked, with self
4193 and other considered equal only if both were fully masked.
4194 """
4195 return self._comparison(other, operator.ne)
4196
4197 # All other comparisons:
4198 def __le__(self, other):

Callers

nothing calls this directly

Calls 1

_comparisonMethod · 0.95

Tested by

no test coverage detected