- adcc.lincomb(coefficients, tensors, evaluate=False)
Form a linear combination from a list of tensors.
If coefficients is a 1D array, just form a single linear combination, else return a list of vectors representing the linear combination by reading the coefficients row-by-row.
coefficients (list) – Coefficients for the linear combination
tensors (list) – Tensors for the linear combination
evaluate (bool) – Should the linear combination be evaluated (True) or should just a lazy expression be formed (False). Notice that lincomb(…, evaluate=True) is identical to lincomb(…, evaluate=False).evaluate(), but the former is generally faster.