예제 #1
0
파일: fspace.py 프로젝트: iceseismic/odl
    def __init__(self, fspace, fcall):
        """Initialize a new instance.

        Parameters
        ----------
        fspace : `FunctionSpace`
            The set of functions this element lives in
        fcall : `callable`
            The actual instruction for out-of-place evaluation.
            It must return an `FunctionSet.range` element or a
            `numpy.ndarray` of such (vectorized call).
        """
        if not isinstance(fspace, FunctionSpace):
            raise TypeError('function space {!r} not a `FunctionSpace` '
                            'instance.'.format(fspace))

        FunctionSetVector.__init__(self, fspace, fcall)
        LinearSpaceVector.__init__(self, fspace)
예제 #2
0
파일: fspace.py 프로젝트: rajmund/odl
    def __init__(self, fspace, fcall):
        """Initialize a new instance.

        Parameters
        ----------
        fspace : `FunctionSpace`
            The set of functions this element lives in
        fcall : `callable`
            The actual instruction for out-of-place evaluation.
            It must return an `FunctionSet.range` element or a
            `numpy.ndarray` of such (vectorized call).
        """
        if not isinstance(fspace, FunctionSpace):
            raise TypeError('`fspace` {!r} not a `FunctionSpace` '
                            'instance'.format(fspace))

        FunctionSetVector.__init__(self, fspace, fcall)
        LinearSpaceVector.__init__(self, fspace)
예제 #3
0
파일: base_ntuples.py 프로젝트: wjp/odl
 def copy(self):
     return LinearSpaceVector.copy(self)
예제 #4
0
파일: base_ntuples.py 프로젝트: wjp/odl
 def __eq__(self, other):
     return LinearSpaceVector.__eq__(self, other)
예제 #5
0
파일: base_ntuples.py 프로젝트: rajmund/odl
 def copy(self):
     return LinearSpaceVector.copy(self)
예제 #6
0
파일: base_ntuples.py 프로젝트: rajmund/odl
 def __eq__(self, other):
     return LinearSpaceVector.__eq__(self, other)