Fix bug when trying to use scipy backend with factorize=True and a nx1 rhs.

This commit is contained in:
Dave Marchant
2014-02-05 22:42:05 -08:00
parent 0c01fae3cd
commit 27213be0b4
+1 -1
View File
@@ -156,7 +156,7 @@ class Solver(object):
if len(b.shape) == 1 or b.shape[1] == 1:
# Just one RHS
if factorize:
return self.dsolve(b)
return self.dsolve(b.flatten())
else:
return linalg.dsolve.spsolve(self.A, b)