LinearSpaceElement.lincomb

LinearSpaceElement.lincomb(a, x1, b=None, x2=None)[source]

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.