fix stable_norm test: the |small| value was 0 on clang with complex<float>.

This commit is contained in:
Benoit Jacob 2011-02-27 22:35:49 -05:00
parent 9be2712bf7
commit 8cad73072e

View File

@ -69,7 +69,7 @@ template<typename MatrixType> void stable_norm(const MatrixType& m)
Index cols = m.cols();
Scalar big = internal::random<Scalar>() * (std::numeric_limits<RealScalar>::max() * RealScalar(1e-4));
Scalar small = static_cast<RealScalar>(1)/big;
Scalar small = internal::random<Scalar>() * (std::numeric_limits<RealScalar>::min() * RealScalar(1e4));
MatrixType vzero = MatrixType::Zero(rows, cols),
vrand = MatrixType::Random(rows, cols),