summaryrefslogtreecommitdiff
path: root/numpy/lib/polynomial.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r--numpy/lib/polynomial.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py
index edaa319cd..8231cbd87 100644
--- a/numpy/lib/polynomial.py
+++ b/numpy/lib/polynomial.py
@@ -606,10 +606,10 @@ class poly1d(object):
return polydiv(other, self)
def __eq__(self, other):
- return (self.coeffs == other.coeffs).all()
+ return NX.alltrue(self.coeffs == other.coeffs)
def __ne__(self, other):
- return (self.coeffs != other.coeffs).any()
+ return NX.any(self.coeffs != other.coeffs)
def __setattr__(self, key, val):
raise ValueError, "Attributes cannot be changed this way."