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

Method __eq__

numpy/lib/polynomial.py:1390–1395  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

1388 __rtruediv__ = __rdiv__
1389
1390 def __eq__(self, other):
1391 if not isinstance(other, poly1d):
1392 return NotImplemented
1393 if self.coeffs.shape != other.coeffs.shape:
1394 return False
1395 return (self.coeffs == other.coeffs).all()
1396
1397 def __ne__(self, other):
1398 if not isinstance(other, poly1d):

Callers 1

__ne__Method · 0.95

Calls 1

allMethod · 0.45

Tested by

no test coverage detected