diff options
author | Pavel Holoborodko <pavel@holoborodko.com> | 2013-08-20 15:00:28 +0900 |
---|---|---|
committer | Pavel Holoborodko <pavel@holoborodko.com> | 2013-08-20 15:00:28 +0900 |
commit | d908ccc01cbb3483d3271589a16edde4358420fd (patch) | |
tree | aa4b602cae6e37a92358111bb5100dfe6f3ba341 /Eigen/src/SparseLU/SparseLU_pivotL.h | |
parent | 2b15e001068f548b852d58472b9b29f1a7bf1a2c (diff) |
Added support for custom scalars
Diffstat (limited to 'Eigen/src/SparseLU/SparseLU_pivotL.h')
-rw-r--r-- | Eigen/src/SparseLU/SparseLU_pivotL.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Eigen/src/SparseLU/SparseLU_pivotL.h b/Eigen/src/SparseLU/SparseLU_pivotL.h index ddcd4ec98..457789c78 100644 --- a/Eigen/src/SparseLU/SparseLU_pivotL.h +++ b/Eigen/src/SparseLU/SparseLU_pivotL.h @@ -77,7 +77,8 @@ Index SparseLUImpl<Scalar,Index>::pivotL(const Index jcol, const RealScalar& dia RealScalar rtemp; Index isub, icol, itemp, k; for (isub = nsupc; isub < nsupr; ++isub) { - rtemp = std::abs(lu_col_ptr[isub]); + using std::abs; + rtemp = abs(lu_col_ptr[isub]); if (rtemp > pivmax) { pivmax = rtemp; pivptr = isub; @@ -101,7 +102,8 @@ Index SparseLUImpl<Scalar,Index>::pivotL(const Index jcol, const RealScalar& dia if (diag >= 0 ) { // Diagonal element exists - rtemp = std::abs(lu_col_ptr[diag]); + using std::abs; + rtemp = abs(lu_col_ptr[diag]); if (rtemp != 0.0 && rtemp >= thresh) pivptr = diag; } pivrow = lsub_ptr[pivptr]; |