[Scipy-svn] r5153 - trunk/scipy/sparse/linalg/isolve

scipy-svn@scip... scipy-svn@scip...
Fri Nov 21 01:50:32 CST 2008


Author: wnbell
Date: 2008-11-21 01:50:30 -0600 (Fri, 21 Nov 2008)
New Revision: 5153

Modified:
   trunk/scipy/sparse/linalg/isolve/utils.py
Log:
force b to be rank-1 as docstring suggests


Modified: trunk/scipy/sparse/linalg/isolve/utils.py
===================================================================
--- trunk/scipy/sparse/linalg/isolve/utils.py	2008-11-20 19:24:32 UTC (rev 5152)
+++ trunk/scipy/sparse/linalg/isolve/utils.py	2008-11-21 07:50:30 UTC (rev 5153)
@@ -96,6 +96,7 @@
                 raise ValueError, "xtype must be 'f', 'd', 'F', or 'D'"
 
     b = asarray(b,dtype=xtype) #make b the same type as x
+    b = b.ravel()
 
     if x0 is None:
         x = zeros(N, dtype=xtype)



More information about the Scipy-svn mailing list