mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 21:26:41 +01:00
Crates io (#76)
* crates re-organisation * fixed typo in layout & added test for vmp_apply * updated dependencies
This commit is contained in:
committed by
GitHub
parent
dce4d82706
commit
a1de248567
9
poulpy-backend/src/cpu_spqlios/ntt120/vec_znx_big.rs
Normal file
9
poulpy-backend/src/cpu_spqlios/ntt120/vec_znx_big.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
use poulpy_hal::{layouts::Backend, oep::VecZnxBigAllocBytesImpl};
|
||||
|
||||
use crate::cpu_spqlios::NTT120;
|
||||
|
||||
unsafe impl VecZnxBigAllocBytesImpl<NTT120> for NTT120 {
|
||||
fn vec_znx_big_alloc_bytes_impl(n: usize, cols: usize, size: usize) -> usize {
|
||||
NTT120::layout_big_word_count() * n * cols * size * size_of::<i128>()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user