diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2013-04-03 16:29:16 +0200 |
---|---|---|
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2013-04-03 16:29:16 +0200 |
commit | 9b33ab62da11627143770acc64f71668a43fd562 (patch) | |
tree | 0905b352a3447ee3515cf2e93864e194463703b9 /Eigen/src/IterativeLinearSolvers/IncompleteLUT.h | |
parent | c3a6fa03a2dc8f4e45060596c3b74336624a85a7 (diff) |
Fixing bug #578. Thanks to Angelos <filiatra@gmail.com>
Diffstat (limited to 'Eigen/src/IterativeLinearSolvers/IncompleteLUT.h')
-rw-r--r-- | Eigen/src/IterativeLinearSolvers/IncompleteLUT.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h b/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h index f8da15506..8e3f95b44 100644 --- a/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h +++ b/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h @@ -29,6 +29,7 @@ int QuickSplit(VectorV &row, VectorI &ind, int ncut) { typedef typename VectorV::RealScalar RealScalar; using std::swap; + using std::abs; int mid; int n = row.size(); /* length of the vector */ int first, last ; @@ -40,9 +41,9 @@ int QuickSplit(VectorV &row, VectorI &ind, int ncut) do { mid = first; - RealScalar abskey = std::abs(row(mid)); + RealScalar abskey = abs(row(mid)); for (int j = first + 1; j <= last; j++) { - if ( std::abs(row(j)) > abskey) { + if ( abs(row(j)) > abskey) { ++mid; swap(row(mid), row(j)); swap(ind(mid), ind(j)); |