diff options
author | 2010-02-10 10:52:28 +0100 | |
---|---|---|
committer | 2010-02-10 10:52:28 +0100 | |
commit | fe0827495ab34749b8896bbebc0ff9fcc661c13b (patch) | |
tree | 93f7fc6799ef83c77188f64ed9176b61e3a04b33 /Eigen/src/SVD/JacobiSVD.h | |
parent | c11df02f0d8fdc546a9de27038d8a9d175936a54 (diff) |
* move dummy_precision and epsilon to NumTraits
* make NumTraits inherits std::numeric_limits
Diffstat (limited to 'Eigen/src/SVD/JacobiSVD.h')
-rw-r--r-- | Eigen/src/SVD/JacobiSVD.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/SVD/JacobiSVD.h b/Eigen/src/SVD/JacobiSVD.h index 55fac3d12..94375725f 100644 --- a/Eigen/src/SVD/JacobiSVD.h +++ b/Eigen/src/SVD/JacobiSVD.h @@ -295,7 +295,7 @@ JacobiSVD<MatrixType, Options>& JacobiSVD<MatrixType, Options>::compute(const Ma int cols = matrix.cols(); int diagSize = std::min(rows, cols); m_singularValues.resize(diagSize); - const RealScalar precision = 2 * epsilon<Scalar>(); + const RealScalar precision = 2 * NumTraits<Scalar>::epsilon(); if(!ei_svd_precondition_if_more_rows_than_cols<MatrixType, Options>::run(matrix, work_matrix, *this) && !ei_svd_precondition_if_more_cols_than_rows<MatrixType, Options>::run(matrix, work_matrix, *this)) |