[Scipy-svn] r6756 - trunk/scipy/optimize

scipy-svn@scip... scipy-svn@scip...
Sat Sep 11 19:59:29 CDT 2010


Author: ptvirtan
Date: 2010-09-11 19:59:29 -0500 (Sat, 11 Sep 2010)
New Revision: 6756

Modified:
   trunk/scipy/optimize/optimize.py
Log:
3K: optimize: fix integer division in brute()

Modified: trunk/scipy/optimize/optimize.py
===================================================================
--- trunk/scipy/optimize/optimize.py	2010-09-12 00:59:16 UTC (rev 6755)
+++ trunk/scipy/optimize/optimize.py	2010-09-12 00:59:29 UTC (rev 6756)
@@ -1583,7 +1583,7 @@
     for k in range(N-1,-1,-1):
         thisN = Nshape[k]
         Nindx[k] = indx % Nshape[k]
-        indx = indx / thisN
+        indx = indx // thisN
     for k in range(N):
         xmin[k] = grid[k][tuple(Nindx)]
 



More information about the Scipy-svn mailing list