use crate::{ hal::{ layouts::{Backend, ScalarZnxOwned}, oep::{ScalarZnxAllocBytesImpl, ScalarZnxAllocImpl, ScalarZnxFromBytesImpl}, }, implementation::cpu_spqlios::CPUAVX, }; unsafe impl ScalarZnxAllocBytesImpl for B where B: CPUAVX, { fn scalar_znx_alloc_bytes_impl(n: usize, cols: usize) -> usize { ScalarZnxOwned::bytes_of(n, cols) } } unsafe impl ScalarZnxAllocImpl for B where B: CPUAVX, { fn scalar_znx_alloc_impl(n: usize, cols: usize) -> ScalarZnxOwned { ScalarZnxOwned::alloc(n, cols) } } unsafe impl ScalarZnxFromBytesImpl for B where B: CPUAVX, { fn scalar_znx_from_bytes_impl(n: usize, cols: usize, bytes: Vec) -> ScalarZnxOwned { ScalarZnxOwned::from_bytes(n, cols, bytes) } }