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

Method __eq__

numpy/polynomial/_polybase.py:648–655  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

646 return quo, rem
647
648 def __eq__(self, other):
649 res = (isinstance(other, self.__class__) and
650 np.all(self.domain == other.domain) and
651 np.all(self.window == other.window) and
652 (self.coef.shape == other.coef.shape) and
653 np.all(self.coef == other.coef) and
654 (self.symbol == other.symbol))
655 return res
656
657 def __ne__(self, other):
658 return not self.__eq__(other)

Callers 1

__ne__Method · 0.95

Calls 1

allMethod · 0.45

Tested by

no test coverage detected