mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-17 11:32:59 +08:00
change modelObj2Deriv from (self) --> (self, m, v=None)
Had to change location of _bfgsH0 calculation, which now actually works.
This commit is contained in:
@@ -97,7 +97,7 @@ class BaseObjFunction(object):
|
||||
if return_H:
|
||||
def H_fun(v):
|
||||
phi_d2Deriv = self.dataObj2Deriv(m, v, u=u)
|
||||
phi_m2Deriv = self.reg.modelObj2Deriv()*v
|
||||
phi_m2Deriv = self.reg.modelObj2Deriv(m, v=v)
|
||||
|
||||
return phi_d2Deriv + self.beta * phi_m2Deriv
|
||||
|
||||
|
||||
Reference in New Issue
Block a user