diff options
Diffstat (limited to 'eigen/unsupported/Eigen/src/IterativeSolvers/Scaling.h')
-rw-r--r-- | eigen/unsupported/Eigen/src/IterativeSolvers/Scaling.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/eigen/unsupported/Eigen/src/IterativeSolvers/Scaling.h b/eigen/unsupported/Eigen/src/IterativeSolvers/Scaling.h index 4fd4392..d113e6e 100644 --- a/eigen/unsupported/Eigen/src/IterativeSolvers/Scaling.h +++ b/eigen/unsupported/Eigen/src/IterativeSolvers/Scaling.h @@ -9,6 +9,9 @@ #ifndef EIGEN_ITERSCALING_H #define EIGEN_ITERSCALING_H + +namespace Eigen { + /** * \ingroup IterativeSolvers_Module * \brief iterative scaling algorithm to equilibrate rows and column norms in matrices @@ -41,8 +44,6 @@ * * \sa \ref IncompleteLUT */ -namespace Eigen { -using std::abs; template<typename _MatrixType> class IterScaling { @@ -71,6 +72,7 @@ class IterScaling */ void compute (const MatrixType& mat) { + using std::abs; int m = mat.rows(); int n = mat.cols(); eigen_assert((m>0 && m == n) && "Please give a non - empty matrix"); |