| PolyVector | R Documentation |
The pair {b, a} of polynomials over one large modulus that the
schemelet_ functions produce and consume. The class is an opaque
handle, as in openfhe-python. PolyVector() makes an empty one.
PolyVector(ptr = NULL)
switch_modulus(x, modulus)
ptr |
External pointer (internal use). |
x |
A |
modulus |
The new modulus: a string of decimal digits, or a whole number of at most 2^53. |
length() gives the number of polynomials. clone() returns a
copy. switch_modulus() changes the modulus of every polynomial in
place, keeping the residues, and x - y subtracts two ciphertexts
element by element.
schemelet_mod_switch() and switch_modulus() change the object
they are given. Assigning a PolyVector to another name does not
copy it; use clone() for a copy that later changes do not reach.
PolyVector(): an S7 object of class PolyVector,
inheriting from OpenFHEObject. switch_modulus(): x,
invisibly.
schemelet_encrypt_coeff()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.