From 75e5e534979d95087709b0cccf4fdf64e74d43d3 Mon Sep 17 00:00:00 2001 From: bgthompson Date: Sun, 3 Nov 2024 11:18:18 +1000 Subject: [PATCH] removed commented solution lines in vectors exercise, added ??? into lines instead --- exercises/109_vectors.zig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/exercises/109_vectors.zig b/exercises/109_vectors.zig index 9e4a2a0..106937e 100644 --- a/exercises/109_vectors.zig +++ b/exercises/109_vectors.zig @@ -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; }