diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-05-25 08:41:45 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-05-25 08:41:45 +0200 |
commit | 87ac09daa88c1df338701f2d2b30b09e812cf757 (patch) | |
tree | fbd79b37052ff08feee169776761b3058057481d /Eigen/src/Eigenvalues/EigenSolver.h | |
parent | 5541bcb7692088ecc671a9e0ebf8af96eaec208e (diff) |
Simplify the use of custom scalar types, the rule is to never directly call a standard math function using std:: but rather put a using std::foo before and simply call foo:
using std::max;
max(a,b);
Diffstat (limited to 'Eigen/src/Eigenvalues/EigenSolver.h')
-rw-r--r-- | Eigen/src/Eigenvalues/EigenSolver.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Eigen/src/Eigenvalues/EigenSolver.h b/Eigen/src/Eigenvalues/EigenSolver.h index 0c2df54b2..9b133a010 100644 --- a/Eigen/src/Eigenvalues/EigenSolver.h +++ b/Eigen/src/Eigenvalues/EigenSolver.h @@ -563,7 +563,8 @@ void EigenSolver<MatrixType>::doComputeEigenvectors() } // Overflow control - Scalar t = std::max(internal::abs(m_matT.coeff(i,n-1)),internal::abs(m_matT.coeff(i,n))); + using std::max; + Scalar t = max(internal::abs(m_matT.coeff(i,n-1)),internal::abs(m_matT.coeff(i,n))); if ((eps * t) * t > Scalar(1)) m_matT.block(i, n-1, size-i, 2) /= t; |