From 7f9a5075d9697d39c2a4731c1ebb8c7dc5c162cb Mon Sep 17 00:00:00 2001 From: rowanc1 Date: Thu, 13 Feb 2014 16:53:38 -0800 Subject: [PATCH] added projectFieldsAdjoint --- SimPEG/Data.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/SimPEG/Data.py b/SimPEG/Data.py index 7b0145dc..0290be36 100644 --- a/SimPEG/Data.py +++ b/SimPEG/Data.py @@ -67,10 +67,28 @@ class BaseData(object): .. math:: - d_\\text{pred} = P(u(m)) + d_\\text{pred} = \mathbf{P} u(m) """ return u + + @Utils.count + def projectFieldsAdjoint(self, d): + """ + This function is the adjoint of the projection. + **projectFieldsAdjoint** is used in the + calculation of the sensitivities. + + .. math:: + u = \mathbf{P}^\\top d + + :param numpy.array d: data + :param numpy.array u: fields (ish) + :rtype: fields like object + :return: data + """ + return d + #TODO: def projectFieldDeriv(self, u): Does this need to be made??! @Utils.count