PolyVector: An RLWE ciphertext

PolyVectorR Documentation

An RLWE ciphertext

Description

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.

Usage

PolyVector(ptr = NULL)

switch_modulus(x, modulus)

Arguments

ptr

External pointer (internal use). NULL (default) makes an empty vector.

x

A PolyVector.

modulus

The new modulus: a string of decimal digits, or a whole number of at most 2^53.

Details

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.

Value

PolyVector(): an S7 object of class PolyVector, inheriting from OpenFHEObject. switch_modulus(): x, invisibly.

See Also

schemelet_encrypt_coeff()


openfhe.R documentation built on Nov. 13, 2026, 5:07 p.m.