DiscretizedSpaceElement.lincomb¶
-
DiscretizedSpaceElement.
lincomb
(self, a, x1, b=None, x2=None)¶ Implement
self[:] = a * x1 + b * x2
.- Parameters
- aelement of
space.field
Scalar to multiply
x1
with.- x1
LinearSpaceElement
First space element in the linear combination.
- belement of
space.field
, optional Scalar to multiply
x2
with. Required ifx2
is provided.- x2
LinearSpaceElement
, optional Second space element in the linear combination.
- aelement of
See also
LinearSpace.lincomb