num::sparse_linear_combination¶ Defined in header <linear/sparse/sparse.hpp> spmat sparse_linear_combination(const std::vector<spmat> &terms, const std::vector<real> &weights); Form \(\sum_k w_k T_k\) for sparse matrices of equal size, on the union of their patterns.