Hi all,
I’m trying to understand how the rotation operation interacts with the padding present in a vector x.
Say the slot-size determined by your CKKS parameters is much larger than the size of x, then x will have a lot of (zero-)padding. If I then rotate the vector by 1, how do I deal with the zero-padding in between my vector elements?
So for example, if my vector is {1, 2, 3, 4},
its representation will be {1, 2, 3, 4, 0, 0, …},
after one rotation it will be {2, 3, 4, 0, 0, …, 1},
whereas I want it to be {2, 3, 4, 1, 0, 0, …}
I could duplicate the vector x (ie. {1, 2, 3, 4, 1, 2, 3, 4}), such that I can rotate (in this case) 4 times and have the rotation of the vector at the start of my representation, before the padding? Is there a better way to do this?
Let me know if I’ve misunderstood anything about the padding, slot-size, or rotation. I’m pretty new to the OpenFHE library!
Cheers,
Lena