I am pretty new to using the library and had a question about displaying the RNS limbs of the ciphertext to the console. Right now when I print the ciphertext, I get an output of the form:
0: EVAL [numbers] modulus: number
1: EVAL [numbers] modulus: number
I understand from other topics that the crypto objects are composed of polynomials (DCRTPoly for RNS, which is what I am working with), and that the output from just printing the ciphertext shows those polynomials.
So my question is whether I can print just the ciphertext limbs?
I am not sure I understood your question right, but if you print out a ciphertext in OpenFHE v1.1.1, you might get something like the following:
Element 0: 0: EVAL: [vector of numbers] modulus: number
1: EVAL: [vector of numbers] modulus: number
.
.
.
Element 1: 0: EVAL: [vector of numbers] modulus: number
1: EVAL: [vector of numbers] modulus: number
.
.
.
Each element above is a DCRTPoly matrix of size L \times N, where L is the number of RNS limbs the scheme is instantiated with and N is the ring dimension. The rows of the DCRTPoly matrix are the RNS limbs of the polynomial represented by the DCRTPoly. The moduli q_i's at the end of each row are the RNS basis primes that are used to compose the underlying ciphertext coefficient modulus Q, where Q = \Pi_{i=0}^{L} q_i.
This is helpful thank you! Is there a quick way to check the value of L? I know I can get the ring dimension through a function, is there something similar for L?