pymor.algorithms.lincomb¶
Module Contents¶
- class pymor.algorithms.lincomb.AssembleLincombRules(coefficients, name)[source]¶
Bases:
pymor.algorithms.rules.RuleTableRuleTablefor theassemble_lincombalgorithm.- Parameters:
coefficients – Tuple of coefficients.
name – Name of the assembled operator.
Methods
- pymor.algorithms.lincomb.assemble_lincomb(operators, coefficients, solver=None, name=None)[source]¶
Try to assemble a linear combination of the given operators.
Returns a new
Operatorwhich represents the sumc_1*O_1 + ... + c_N*O_N
where
O_iareOperatorsandc_iscalar coefficients.This function is called in the
assemblemethod ofLincombOperatorand is not intended to be used directly.To form the linear combination of backend
Operators(containing actual matrix data),_assemble_lincombwill be called on the firstOperatorin the linear combination.