mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-11-27 06:30:28 +08:00
fix stable_norm test: the |small| value was 0 on clang with complex<float>.
This commit is contained in:
parent
9be2712bf7
commit
8cad73072e
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user