arnaucube
arnaucube/poulpyPublic Self-hosted repository
Merge remote-tracking branch 'origin/main'
Pro7ech jeanphilippe.bossuat@gmail.com
Tue, 28 Oct 2025 11:04:09 +0100
commit

8ba01a64203f73630e9c80e5d7d71582676bba11

parent

a085d36fd90f97f6125df6c68e78602847448562

M poulpy-core/src/layouts/glwe_secret_tensor.rs → poulpy-core/src/layouts/glwe_secret_tensor.rs

@@ -178,8 +178,6 @@ {

let res: &mut GLWESecret<&mut [u8]> = &mut res.to_mut(); let a: &GLWESecret<&[u8]> = &a.to_ref(); - println!("res.rank: {} a.rank: {}", res.rank(), a.rank()); - assert_eq!(res.rank(), GLWESecretTensor::pairs(a.rank().into()) as u32); assert_eq!(res.n(), self.n() as u32); assert_eq!(a.n(), self.n() as u32);
M poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block.rs → poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block.rs

@@ -19,6 +19,12 @@ pub(crate) _base: u8,

pub(crate) _phantom: PhantomData<T>, } +impl<D: DataRef, T: UnsignedInteger> FheUintBlocks<D, T> { + pub fn blocks(&self) -> &Vec<GLWE<D>> { + &self.blocks + } +} + impl<D: DataRef, T: UnsignedInteger> LWEInfos for FheUintBlocks<D, T> { fn base2k(&self) -> poulpy_core::layouts::Base2K { self.blocks[0].base2k()
M poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block_prepared.rs → poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block_prepared.rs

@@ -24,6 +24,12 @@ pub(crate) _base: u8,

pub(crate) _phantom: PhantomData<T>, } +impl<D: Data, T: UnsignedInteger, B: Backend> FheUintBlocksPrepared<D, T, B> { + pub fn blocks(&self) -> &Vec<GGSWPrepared<D, B>> { + &self.blocks + } +} + impl<T: UnsignedInteger, BE: Backend> FheUintBlocksPreparedFactory<T, BE> for Module<BE> where Self: Sized + GGSWPreparedFactory<BE> {