Public Member Functions | |
def | __init__ |
Initialize the class, checks the inSpace and otuSpace and sets them to voidSpace if needed. | |
def | adj |
Overload the adj command because we now have mor variables to worry about. | |
def | applyop |
applies the operator to other generates a new instance of the type of other | |
Static Public Attributes | |
string | name = "newlinop" |
command = None | |
tuple | params = () |
inSpace = None | |
outSpace = None | |
dictionary | kparams = {} |
adj_command = None | |
adj_params = None | |
adj_kparams = None |
This is an abstract class the newlinop class must be subclassed into a concrete class
for example: the code:
class fft_user(newlinop): command = "fft1" params = ()
def __init__(self,space,opt='y',inv='n'): self.inSpace = space self.kparams = dict(opt=opt,inv=inv) newlinop.__init__(self)
Initialize/Define the User created Linear Operator F = fft_user(vec1.getSpace())
will create a new linear operator that will work on an rsf dataset. the variables may be specified in the __init__ function as well
the variables that must be specified are: command params inSpace outSpace
optional variables for the adjoint are: kparams adj_command adj_params adj_kparams
if the optional variables are not specified then they are assumed to be the same voidSpace.
Definition at line 70 of file NewLinOp.py.
def __init__ | ( | self | ) |
Initialize the class, checks the inSpace and otuSpace and sets them to voidSpace if needed.
Definition at line 87 of file NewLinOp.py.
def adj | ( | self | ) |
Overload the adj command because we now have mor variables to worry about.
Definition at line 115 of file NewLinOp.py.
def applyop | ( | self, | ||
other | ||||
) |
applies the operator to other generates a new instance of the type of other
Reimplemented from LinearOperator.
Definition at line 145 of file NewLinOp.py.
string name = "newlinop" [static] |
tuple params = () [static] |
Reimplemented from LinearOperator.
Reimplemented in fft_user.
Definition at line 73 of file NewLinOp.py.
Reimplemented from LinearOperator.
Reimplemented in fft_user.
Definition at line 75 of file NewLinOp.py.
Reimplemented from LinearOperator.
Reimplemented in fft_user.
Definition at line 76 of file NewLinOp.py.
dictionary kparams = {} [static] |
Reimplemented from LinearOperator.
Reimplemented in fft_user.
Definition at line 77 of file NewLinOp.py.
adj_command = None [static] |
Definition at line 78 of file NewLinOp.py.
adj_params = None [static] |
Definition at line 80 of file NewLinOp.py.
adj_kparams = None [static] |
Definition at line 81 of file NewLinOp.py.