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)
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)
def copy(self): return LinearSpaceVector.copy(self)
def __eq__(self, other): return LinearSpaceVector.__eq__(self, other)