use poulpy_hal::{ layouts::{Backend, VecZnxDftOwned}, oep::{VecZnxDftAllocBytesImpl, VecZnxDftAllocImpl}, }; use crate::cpu_spqlios::NTT120; unsafe impl VecZnxDftAllocBytesImpl for NTT120 { fn vec_znx_dft_bytes_of_impl(n: usize, cols: usize, size: usize) -> usize { NTT120::layout_prep_word_count() * n * cols * size * size_of::() } } unsafe impl VecZnxDftAllocImpl for NTT120 { fn vec_znx_dft_alloc_impl(n: usize, cols: usize, size: usize) -> VecZnxDftOwned { VecZnxDftOwned::alloc(n, cols, size) } }