Example #1
0
    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)
Example #2
0
    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)
Example #3
0
 def copy(self):
     return LinearSpaceVector.copy(self)
Example #4
0
 def __eq__(self, other):
     return LinearSpaceVector.__eq__(self, other)
Example #5
0
 def copy(self):
     return LinearSpaceVector.copy(self)
Example #6
0
 def __eq__(self, other):
     return LinearSpaceVector.__eq__(self, other)