HElib
HElib copied to clipboard
How to use the method "replicateOneBlock" in "relicate.cpp"
I want to use this method "relicateOneBlock" ,but I do not know how to use it and I can't read the notes. Suppose I want to let this Ctxt ctxt [1 0 0 0 0 2 0 0 0 0 3 0 0 0 0 4] transform to [1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4]. How should I set parms? -------replicateOneBlock(const EncryptedArray& ea, Ctxt& ctxt, long pos, long blockSize, long d) Thank you.