Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Avoid unnecesary ComplexWarning in workspace query.

  • Loading branch information...
commit 1f38096ec40fdc4c188b0f5f73f39c9223f1d1ef 1 parent be474ce
@fabianp fabianp authored rgommers committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  scipy/linalg/decomp.py
View
2  scipy/linalg/decomp.py
@@ -51,7 +51,7 @@ def _geneig(a1, b, left, right, overwrite_a, overwrite_b):
if ggev.module_name[:7] == 'clapack':
raise NotImplementedError('calling ggev from %s' % ggev.module_name)
res = ggev(a1, b1, lwork=-1)
- lwork = res[-2][0]
+ lwork = res[-2][0].real.astype(numpy.int)
if ggev.prefix in 'cz':
alpha, beta, vl, vr, work, info = ggev(a1, b1, cvl, cvr, lwork,
overwrite_a, overwrite_b)
Please sign in to comment.
Something went wrong with that request. Please try again.