[Scipy-svn] r2622 - trunk/Lib/optimize

scipy-svn at scipy.org scipy-svn at scipy.org
Sat Jan 27 18:06:42 CST 2007


Author: rkern
Date: 2007-01-27 18:06:38 -0600 (Sat, 27 Jan 2007)
New Revision: 2622

Modified:
   trunk/Lib/optimize/lbfgsb.py
Log:
Make sure x0 is a float64 array.

Modified: trunk/Lib/optimize/lbfgsb.py
===================================================================
--- trunk/Lib/optimize/lbfgsb.py	2007-01-27 22:58:32 UTC (rev 2621)
+++ trunk/Lib/optimize/lbfgsb.py	2007-01-28 00:06:38 UTC (rev 2622)
@@ -177,7 +177,7 @@
             u = 1
         nbd[i] = bounds_map[l, u]
 
-    x = array(x0)
+    x = array(x0, float64)
     f = array(0.0, float64)
     g = zeros((n,), float64)
     wa = zeros((2*m*n+4*n + 12*m**2 + 12*m,), float64)



More information about the Scipy-svn mailing list