mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 11:19:02 +08:00
Move using std::abs from Eigen's namespace to function scope.
This commit is contained in:
parent
0dfb73d46a
commit
904509fbb6
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user