for x in 1..=scale {
let src_row = &data_origin[(src.cfg.stride * 2 + x)..];
let local_sum: usize = (1..scale)
.into_par_iter()
.map(|y| u32::cast_from(src_row[col * 2 + y]) as usize)
.sum();
sum += local_sum;
}
Created
March 26, 2021 14:03
-
-
Save master-of-zen/f02d96d5628318c5b54f4fc32f1aedeb to your computer and use it in GitHub Desktop.
Author
master-of-zen
commented
Mar 26, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment