Bug Fixes. Test_DCproblem is still not working.

This commit is contained in:
Rowan Cockett
2013-10-30 23:13:49 -06:00
parent 3f843b2843
commit 11128b2e9b
3 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -128,7 +128,7 @@ class Solver(object):
x[i] = (b[i] - np.dot(ith_row[1:], x_vals[1:])) / ith_row[0]
return x
def solveForward(self, backend='python'):
def solveForward(self, b, backend='python'):
"""
Use solve instead of this interface.
@@ -152,7 +152,7 @@ class Solver(object):
x[i] = (b[i] - np.dot(ith_row[:-1], x_vals[:-1])) / ith_row[-1]
return x
def solveDiagonal(self, backend='python'):
def solveDiagonal(self, b, backend='python'):
"""
Use solve instead of this interface.
+1
View File
@@ -1,5 +1,6 @@
import numpy as np
from SimPEG.utils import mkvc, sdiag
import scipy.sparse as sp
norm = np.linalg.norm
+1 -1
View File
@@ -1,4 +1,4 @@
from Problem import *
from DCProblem import DCProblem
import DCProblem
from LinearProblem import LinearProblem
import ModelTransforms