A matrix is packed into the slots row by row. eval_sum_rows()
adds its rows together and eval_sum_cols() its columns. Each
takes the keys made by the matching key generator, which returns
them as an EvalKeyMap.
eval_sum_rows(ct, num_rows, eval_sum_key_map, subring_dim = 0L)eval_sum_cols(ct, num_cols, eval_sum_key_map)
eval_sum_rows_key_gen(
cc,
sk,
public_key = NULL,
row_size = 0L,
subring_dim = 0L
)
eval_sum_cols_key_gen(cc, sk)
eval_sum_rows() and eval_sum_cols() return a
Ciphertext; the key generators return an EvalKeyMap.
A Ciphertext holding the matrix.
Integer; the number of rows, or columns, of the matrix.
An EvalKeyMap from
eval_sum_rows_key_gen() or eval_sum_cols_key_gen().
Integer; the subring dimension, 0L (default)
for the full ring.
A CryptoContext.
A PrivateKey.
A PublicKey, or NULL (default) for the form
that takes no public key.
Integer; the length of a row, 0L (default) for
the value the library derives.