
Make a coefficient-packed integer plaintext
Source:R/methods-encrypt.R
make_coef_packed_plaintext.RdEncode an integer vector as a coefficient-packed plaintext.
Coefficient packing places each input value in a separate
polynomial coefficient and is the alternative to the SIMD
batched packing produced by make_packed_plaintext(). Used by
the integer-modulus Ring-LWE vignettes where per-coefficient
access is needed.
Arguments
- cc
A
CryptoContext(BFV or BGV).- values
An integer vector whose length must not exceed the ring dimension of
cc.- noise_scale_deg
See the
make_packed_plaintext()entry.- level
See the
make_packed_plaintext()entry.