diff options
Diffstat (limited to 'numpy/polynomial/laguerre.py')
-rw-r--r-- | numpy/polynomial/laguerre.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/polynomial/laguerre.py b/numpy/polynomial/laguerre.py index 6e035ebd2..f0c1268bf 100644 --- a/numpy/polynomial/laguerre.py +++ b/numpy/polynomial/laguerre.py @@ -1519,7 +1519,7 @@ def lagfit(x, y, deg, rcond=None, full=False, w=None): rcond = len(x)*np.finfo(x.dtype).eps # Determine the norms of the design matrix columns. - if lhs.dtype.char in np.typecodes['Complex']: + if issubclass(lhs.dtype.type, np.complexfloating): scl = np.sqrt((np.square(lhs.real) + np.square(lhs.imag)).sum(1)) else: scl = np.sqrt(np.square(lhs).sum(1)) |