Example #1
0
    def __init__( self ):
        """
        Initialize the class, checks the inSpace and otuSpace and sets them to voidSpace if needed.
        """
        # init Structure not necissary but to conserve consistancy
        Structure.__init__( self )
#        self.isadj = False
        if self.command is None:
            raise TypeError( "need to define command in operator" )
        
        if self.inSpace is None:
            raise TypeError( "need to define inSpace, use voidSpace if unknown" )
        if self.outSpace is None:
            raise TypeError( "need to define outSpace, use voidSpace if unknown" )
            
        if self.adj_kparams is None:
            self.adj_kparams = self.kparams

        if self.adj_params is None:
            self.adj_params = self.params
            
            
        if self.adj_command is None:
            self.adj_command = self.command
        
        LinearOperator.__init__( self, self.inSpace, self.outSpace , *self.params, **self.kparams )
Example #2
0
    def __init__(self, arithop, oper1, oper2):
        self.oper1 = oper1
        self.oper2 = oper2
        self.arithop = arithop

        domain = VectorAddition([self.oper1.domain(), self.oper2.domain()])
        range = VectorAddition([self.oper1.range(), self.oper2.range()])
        LinearOperator.__init__(self, domain, range)
Example #3
0
    def __init__(self, data, inSpace, outSpace, *params, **kparams):

        ADI.__init__(self, data)
        LinearOperator.__init__(self, inSpace, outSpace, *params, **kparams)
Example #4
0
    def __init__(self, inspace, *params, **kparams):
        # init Structure not necissary but to conserve consistancy
        Structure.__init__(self)
        outspace = inspace.testCommand(self.name, *params, **kparams)

        LinearOperator.__init__(self, inspace, outspace, *params, **kparams)
Example #5
0
 def __init__(self, domain, weight):
     self.weight = weight
     range = domain
     LinearOperator.__init__(self, domain, range)
Example #6
0
 def __init__( self, mat ):
     
     AugMatrix.__init__( self, mat )
     
     LinearOperator.__init__( self, self.domain(), self.range() )