poulpy-hal 0.5.0

A crate providing layouts and a trait-based hardware acceleration layer with open extension points, matching the API and types of spqlios-arithmetic.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{
    layouts::{VecZnx, VecZnxToMut, ZnxInfos, ZnxViewMut},
    reference::znx::ZnxZero,
};

pub fn vec_znx_zero<R, ZNXARI>(res: &mut R, res_col: usize)
where
    R: VecZnxToMut,
    ZNXARI: ZnxZero,
{
    let mut res: VecZnx<&mut [u8]> = res.to_mut();
    let res_size = res.size();
    for j in 0..res_size {
        ZNXARI::znx_zero(res.at_mut(res_col, j));
    }
}