Trait vrl::SIMDPartialStore

source ·
pub trait SIMDPartialStore<T> {
    // Required method
    fn store_partial(&self, slice: &mut [T]);
}

Required Methods§

source

fn store_partial(&self, slice: &mut [T])

Stores min(N, slice.len()) elements of vector into prefix of slice.

§Exmaples
let mut data = [0.0; 3];
Vec4f::broadcast(1.0).store_partial(&mut data);
assert_eq!(data, [1.0; 3]);
let mut data = [0.0; 5];
Vec4f::broadcast(1.0).store_partial(&mut data);
assert_eq!(data, [1.0, 1.0, 1.0, 1.0, 0.0]);  // note last zero

Implementors§