Add FheUint from Vec<GLWE>

This commit is contained in:
Pro7ech
2025-10-29 16:26:47 +01:00
parent 9d5bc43632
commit 8743eeb800
3 changed files with 99 additions and 17 deletions

View File

@@ -207,7 +207,10 @@ pub trait GLWEToMut {
fn to_mut(&mut self) -> GLWE<&mut [u8]>;
}
impl<D: DataMut> GLWEToMut for GLWE<D> {
impl<D: DataMut> GLWEToMut for GLWE<D>
where
Self: GLWEToRef,
{
fn to_mut(&mut self) -> GLWE<&mut [u8]> {
GLWE {
k: self.k,