From 7ed8f00b0faae675d3bde4b1d403b470b4f49210 Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Sat, 3 Oct 2009 22:57:04 -0500 Subject: [PATCH] go back to using random instead of uniform-random-float in math.vectors.simd tests because the software and SIMD implementations of norm and v. can sporadically diverge when their different operation orders lead to cancellation of catastrophically small inputs --- basis/math/vectors/simd/simd-tests.factor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basis/math/vectors/simd/simd-tests.factor b/basis/math/vectors/simd/simd-tests.factor index 1ebe09f728..88e5d5f1ea 100644 --- a/basis/math/vectors/simd/simd-tests.factor +++ b/basis/math/vectors/simd/simd-tests.factor @@ -146,7 +146,7 @@ CONSTANT: simd-classes : random-float-vector ( class -- vec ) new [ drop - -1,000.0 1,000.0 uniform-random-float + 1000 random 10 swap 0/0. suffix random ] map ;