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