[Scipy-svn] r6739 - trunk/scipy/linalg

scipy-svn@scip... scipy-svn@scip...
Sat Sep 11 19:55:23 CDT 2010


Author: ptvirtan
Date: 2010-09-11 19:55:22 -0500 (Sat, 11 Sep 2010)
New Revision: 6739

Modified:
   trunk/scipy/linalg/decomp.py
Log:
3K: linalg: fix an integer division issue in _make_complex_eigvecs

Modified: trunk/scipy/linalg/decomp.py
===================================================================
--- trunk/scipy/linalg/decomp.py	2010-09-12 00:55:08 UTC (rev 6738)
+++ trunk/scipy/linalg/decomp.py	2010-09-12 00:55:22 UTC (rev 6739)
@@ -38,7 +38,7 @@
     vnew.imag = numpy.take(vin, ind[1::2],1)
     count = 0
     conj = numpy.conjugate
-    for i in range(len(ind)/2):
+    for i in range(len(ind)//2):
         v[:, ind[2*i]] = vnew[:, count]
         v[:, ind[2*i+1]] = conj(vnew[:, count])
         count += 1



More information about the Scipy-svn mailing list