Move using std::abs from Eigen's namespace to function scope.

This commit is contained in:
Gael Guennebaud 2014-07-08 10:28:09 +02:00
parent 0dfb73d46a
commit 904509fbb6

View File

@ -11,7 +11,6 @@
#define EIGEN_ITERSCALING_H #define EIGEN_ITERSCALING_H
namespace Eigen { namespace Eigen {
using std::abs;
/** /**
* \ingroup IterativeSolvers_Module * \ingroup IterativeSolvers_Module
@ -73,6 +72,7 @@ class IterScaling
*/ */
void compute (const MatrixType& mat) void compute (const MatrixType& mat)
{ {
using std::abs;
int m = mat.rows(); int m = mat.rows();
int n = mat.cols(); int n = mat.cols();
eigen_assert((m>0 && m == n) && "Please give a non - empty matrix"); eigen_assert((m>0 && m == n) && "Please give a non - empty matrix");