mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-29 21:26:31 +08:00
change to Jvec and Jtvec
This commit is contained in:
+6
-6
@@ -70,7 +70,7 @@ class BaseProblem(object):
|
||||
def ispaired(self): return self.data is not None
|
||||
|
||||
@Utils.timeIt
|
||||
def J(self, m, v, u=None):
|
||||
def Jvec(self, m, v, u=None):
|
||||
"""
|
||||
:param numpy.array m: model
|
||||
:param numpy.array v: vector to multiply
|
||||
@@ -100,7 +100,7 @@ class BaseProblem(object):
|
||||
raise NotImplementedError('J is not yet implemented.')
|
||||
|
||||
@Utils.timeIt
|
||||
def Jt(self, m, v, u=None):
|
||||
def Jtvec(self, m, v, u=None):
|
||||
"""
|
||||
:param numpy.array m: model
|
||||
:param numpy.array v: vector to multiply
|
||||
@@ -114,7 +114,7 @@ class BaseProblem(object):
|
||||
|
||||
|
||||
@Utils.timeIt
|
||||
def J_approx(self, m, v, u=None):
|
||||
def Jvec_approx(self, m, v, u=None):
|
||||
"""
|
||||
|
||||
:param numpy.array m: model
|
||||
@@ -126,10 +126,10 @@ class BaseProblem(object):
|
||||
Approximate effect of J on a vector v
|
||||
|
||||
"""
|
||||
return self.J(m, v, u)
|
||||
return self.Jvec(m, v, u)
|
||||
|
||||
@Utils.timeIt
|
||||
def Jt_approx(self, m, v, u=None):
|
||||
def Jtvec_approx(self, m, v, u=None):
|
||||
"""
|
||||
:param numpy.array m: model
|
||||
:param numpy.array v: vector to multiply
|
||||
@@ -140,7 +140,7 @@ class BaseProblem(object):
|
||||
Approximate transpose of J*v
|
||||
|
||||
"""
|
||||
return self.Jt(m, v, u)
|
||||
return self.Jtvec(m, v, u)
|
||||
|
||||
def fields(self, m):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user