initial solver work: import SimPEG.Solver

This commit is contained in:
Rowan Cockett
2013-10-16 09:18:08 -07:00
parent e1648d484b
commit 4851295738
3 changed files with 86 additions and 0 deletions
+10
View File
@@ -83,6 +83,16 @@ class Problem(object):
def dobs(self, value):
self._dobs = value
def evalFunction(self, m, doDerivative=True):
"""
:param numpy.array m: model
:param bool doDerivative: do you want to compute the derivative?
:rtype: numpy.array
:return: Jv
"""
f = self.misfit(m)
return f, g, H
def J(self, m, v, u=None):
"""