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.

x1LinearSpaceElement

First space element in the linear combination.

belement of space.field, optional

Scalar to multiply x2 with. Required if x2 is provided.

x2LinearSpaceElement, optional

Second space element in the linear combination.

See also

LinearSpace.lincomb