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

Method __eq__

numpy/testing/tests/test_utils.py:243–244  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

241 # (which, e.g., astropy Quantity cannot usefully do). See gh-8452.
242 class MyArray(np.ndarray):
243 def __eq__(self, other):
244 return bool(np.equal(self, other).all())
245
246 def __ne__(self, other):
247 return not self == other

Callers 2

__eq__Method · 0.45
__eq__Method · 0.45

Calls 1

allMethod · 0.45

Tested by

no test coverage detected