Skip to content
Snippets Groups Projects
Commit ded2703d authored by Aaron Councilman's avatar Aaron Councilman
Browse files

Make writes in cava medianMatrix simple

parent 4ceecb94
No related branches found
No related tags found
1 merge request!162Make writes in cava medianMatrix simple
Pipeline #201556 passed
......@@ -2,10 +2,8 @@ fn medianMatrix<a : number, rows, cols : usize>(m : a[rows, cols]) -> a {
const n : usize = rows * cols;
let tmp : a[rows * cols];
for r = 0 to rows {
for c = 0 to cols {
tmp[r * cols + c] = m[r, c];
}
for i = 0 to rows * cols {
tmp[i] = m[i / cols, i % cols];
}
for i = 0 to n - 1 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment