diff options
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r-- | numpy/lib/polynomial.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py index e953f71ba..002b2859a 100644 --- a/numpy/lib/polynomial.py +++ b/numpy/lib/polynomial.py @@ -120,9 +120,9 @@ def poly(seq_of_zeros): """ seq_of_zeros = atleast_1d(seq_of_zeros) sh = seq_of_zeros.shape - if len(sh) == 2 and sh[0] == sh[1]: + if len(sh) == 2 and sh[0] == sh[1] and sh[0] != 0: seq_of_zeros = eigvals(seq_of_zeros) - elif len(sh) ==1: + elif len(sh) == 1: pass else: raise ValueError, "input must be 1d or square 2d array." |