Add a separate function for switching Scalar types between input and ouptut while keyswitching.
I have preferred this approach for now as it was making the bounds and the code way more convoluted in the existing keyswitch.
But if we think it's better to put it in the same function I can.
A follow-up PR will do that for the PBS but should be much easier to write as the two types do not interact at all (as everything happens in the fourier domain), here we need to cast to make computations with both types
Check-list:
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)
[x] Relevant issues are marked as resolved/closed, related issues are linked in the description
[x] Check for breaking changes (including serialization changes) and add them to commit message following the conventional commit specification
refs: https://github.com/zama-ai/tfhe-rs-internal/issues/526
PR content/description
Add a separate function for switching Scalar types between input and ouptut while keyswitching.
I have preferred this approach for now as it was making the bounds and the code way more convoluted in the existing keyswitch.
But if we think it's better to put it in the same function I can.
A follow-up PR will do that for the PBS but should be much easier to write as the two types do not interact at all (as everything happens in the fourier domain), here we need to cast to make computations with both types
Check-list: