Skip to main content

chunk_zip_map

Function chunk_zip_map 

Source
pub fn chunk_zip_map(
    a: &[f64],
    b: &[f64],
    chunk_size: usize,
    f: impl Fn(f64, f64) -> f64,
) -> Vec<f64>
Expand description

Apply f element-wise on a and b in chunks of chunk_size, returning a Vecf64`.

Panics if a.len() != b.len().