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

Method __eq__

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

Source from the content-addressed store, hash-verified

176 # (which, e.g., astropy Quantity cannot usefully do). See gh-8452.
177 class MyArray(np.ndarray):
178 def __eq__(self, other):
179 return bool(np.equal(self, other).all())
180
181 def __ne__(self, other):
182 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