I try to use MakeCKKSPackedPlaintext(data, int depth, int level,…) to encode the data in a special level. But the function has another parameter “depth”. How to set depth?
For example:
CCParams parameters;
parameters.SetMultiplicativeDepth(20);
cc = GenCryptoContext(parameters);
vector input(1024, 1.0);
// Now I want to encode the input in level 18! How to set the second parameter “depth”. I cannot find the description of “depth”. Set depth to 20 or 1?
Plaintext input_pt = cc->MakeCKKSPackedPlaintext(input, 20, 18, nullptr, slots);
or
Plaintext input_pt = cc->MakeCKKSPackedPlaintext(input, 1, 18, nullptr, slots);