removed commented solution lines in vectors exercise, added ??? into lines instead

This commit is contained in:
bgthompson 2024-11-03 11:18:18 +10:00
parent c90d6015e3
commit 75e5e53497

View file

@ -121,10 +121,8 @@ fn calcMaxPairwiseDiffOld( list1 : [4] f32, list2 : [4] f32) f32 {
const Vec4 = @Vector(4, f32);
fn calcMaxPairwiseDiffNew( a : Vec4, b : Vec4) f32 {
// const abs_diff_vec = ???;
const abs_diff_vec = @abs(a - b);
// const max_diff = @reduce(???, abs_diff_vec);
const max_diff = @reduce(.Max, abs_diff_vec);
const abs_diff_vec = ???;
const max_diff = @reduce(???, abs_diff_vec);
return max_diff;
}