diff --git a/Eigen/src/Core/ConditionEstimator.h b/Eigen/src/Core/ConditionEstimator.h index 68e4535aa..b65306d56 100644 --- a/Eigen/src/Core/ConditionEstimator.h +++ b/Eigen/src/Core/ConditionEstimator.h @@ -109,7 +109,7 @@ class ConditionEstimator { * ||matrix||_1 = sup ||matrix * v||_1 / ||v||_1, which is equal to * the greatest absolute column sum. */ - inline static Scalar MatrixL1Norm(const MatrixType& matrix) { + static inline Scalar MatrixL1Norm(const MatrixType& matrix) { return matrix.cwiseAbs().colwise().sum().maxCoeff(); } }; @@ -124,7 +124,7 @@ struct EstimateInverseMatrixL1NormImpl { typedef typename internal::plain_col_type::type Vector; // Shorthand for vector L1 norm in Eigen. - inline static Scalar VectorL1Norm(const Vector& v) { + static inline Scalar VectorL1Norm(const Vector& v) { return v.template lpNorm<1>(); } @@ -210,7 +210,7 @@ struct EstimateInverseMatrixL1NormImpl { RealVector; // Shorthand for vector L1 norm in Eigen. - inline static RealScalar VectorL1Norm(const Vector& v) { + static inline RealScalar VectorL1Norm(const Vector& v) { return v.template lpNorm<1>(); }