Computes constants[1] * ciphertexts[[1]] + ... + constants[n] * ciphertexts[[n]].
eval_linear_wsum(ciphertexts, constants)eval_linear_wsum_mutable(constants, ciphertexts)
A Ciphertext.
A non-empty list of Ciphertext objects.
One constant per ciphertext: an integer, double or complex vector. Each type is evaluated with its own arithmetic.
eval_linear_wsum_mutable() may adjust the given ciphertexts (their
level and scale) while it works, which saves copies. It takes the
constants first, as the C++ function of that name does.