machine_epsilon -> epsilon as wrapper around numeric_traits

This commit is contained in:
Benoit Jacob
2009-08-14 15:12:32 -04:00
parent 6373c3cd00
commit 22ae236d4e
4 changed files with 10 additions and 11 deletions

View File

@@ -390,7 +390,7 @@ void LU<MatrixType>::compute(const MatrixType& matrix)
// this formula comes from experimenting (see "LU precision tuning" thread on the list)
// and turns out to be identical to Higham's formula used already in LDLt.
m_precision = machine_epsilon<Scalar>() * size;
m_precision = epsilon<Scalar>() * size;
IntColVectorType rows_transpositions(matrix.rows());
IntRowVectorType cols_transpositions(matrix.cols());