View source: R/methods-eval-backlog.R
| eval_linear_wsum | R Documentation |
Computes constants[1] * ciphertexts[[1]] + ... + constants[n] * ciphertexts[[n]].
eval_linear_wsum(ciphertexts, constants)
eval_linear_wsum_mutable(constants, ciphertexts)
ciphertexts |
A non-empty list of |
constants |
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.
A Ciphertext.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.