poulpy-cpu-ref 0.6.0

Portable reference CPU implementations of poulpy-hal open extension points
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{
    layouts::{Backend, HostDataMut, VecZnxBackendMut, ZnxViewMut},
    reference::znx::ZnxZero,
};

pub fn vec_znx_zero<'r, BE>(res: &mut VecZnxBackendMut<'r, BE>, res_col: usize)
where
    BE: Backend + ZnxZero,
    BE::BufMut<'r>: HostDataMut,
{
    let res_size = res.size();
    for j in 0..res_size {
        BE::znx_zero(res.at_mut(res_col, j));
    }
}