poulpy/backend/src/hal/oep/scalar_znx.rs
backend/src/hal/oep/scalar_znx.rsRaw
1use crate::hal::layouts::{Backend, ScalarZnxOwned};
2
3pub unsafe trait ScalarZnxFromBytesImpl<B: Backend> {
4 fn scalar_znx_from_bytes_impl(n: usize, cols: usize, bytes: Vec<u8>) -> ScalarZnxOwned;
5}
6
7pub unsafe trait ScalarZnxAllocBytesImpl<B: Backend> {
8 fn scalar_znx_alloc_bytes_impl(n: usize, cols: usize) -> usize;
9}
10
11pub unsafe trait ScalarZnxAllocImpl<B: Backend> {
12 fn scalar_znx_alloc_impl(n: usize, cols: usize) -> ScalarZnxOwned;
13}