mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 13:16:44 +01:00
Merge remote-tracking branch 'origin/main' into jay/fhe-vm-fixes
This commit is contained in:
@@ -240,11 +240,11 @@ impl Scratch {
|
||||
) -> (Vec<VecZnxDft<&mut [u8], B>>, &mut Self) {
|
||||
let mut scratch: &mut Scratch = self;
|
||||
let mut slice: Vec<VecZnxDft<&mut [u8], B>> = Vec::with_capacity(slice_size);
|
||||
for _ in 0..slice_size{
|
||||
for _ in 0..slice_size {
|
||||
let (znx, new_scratch) = scratch.tmp_vec_znx_dft(module, cols, size);
|
||||
scratch = new_scratch;
|
||||
slice.push(znx);
|
||||
};
|
||||
}
|
||||
(slice, scratch)
|
||||
}
|
||||
|
||||
@@ -279,11 +279,11 @@ impl Scratch {
|
||||
) -> (Vec<VecZnx<&mut [u8]>>, &mut Self) {
|
||||
let mut scratch: &mut Scratch = self;
|
||||
let mut slice: Vec<VecZnx<&mut [u8]>> = Vec::with_capacity(slice_size);
|
||||
for _ in 0..slice_size{
|
||||
for _ in 0..slice_size {
|
||||
let (znx, new_scratch) = scratch.tmp_vec_znx(module, cols, size);
|
||||
scratch = new_scratch;
|
||||
slice.push(znx);
|
||||
};
|
||||
}
|
||||
(slice, scratch)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user