Skip to main content

for_each_row

Function for_each_row 

Source
pub fn for_each_row<F>(
    output: &mut [f32],
    n_rows: usize,
    n_cols: usize,
    row_fn: F,
)
where F: Fn(usize, &mut f32) + Send + Sync,
Expand description

One output row per slot; parallel when should_parallelize says the matvec is big enough to pay for the fork-join. Rows are never split.