use math/float.zig everywhere

This commit is contained in:
viri
2022-04-06 20:49:05 -06:00
parent 5d6a5a1236
commit e46c612503
26 changed files with 177 additions and 173 deletions

View File

@@ -641,7 +641,7 @@ test "vector reduce operation" {
// equal.
} else {
const F = @TypeOf(expected);
const tolerance = @sqrt(math.epsilon(TX));
const tolerance = @sqrt(math.floatEps(TX));
try expect(std.math.approxEqRel(F, expected, r, tolerance));
}
},