From 8cad73072ee204964f5d8ee722fc48d207379ef3 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sun, 27 Feb 2011 22:35:49 -0500 Subject: fix stable_norm test: the |small| value was 0 on clang with complex. --- test/stable_norm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/stable_norm.cpp') diff --git a/test/stable_norm.cpp b/test/stable_norm.cpp index d78496fc3..5bf249577 100644 --- a/test/stable_norm.cpp +++ b/test/stable_norm.cpp @@ -69,7 +69,7 @@ template void stable_norm(const MatrixType& m) Index cols = m.cols(); Scalar big = internal::random() * (std::numeric_limits::max() * RealScalar(1e-4)); - Scalar small = static_cast(1)/big; + Scalar small = internal::random() * (std::numeric_limits::min() * RealScalar(1e4)); MatrixType vzero = MatrixType::Zero(rows, cols), vrand = MatrixType::Random(rows, cols), -- cgit v1.2.3