mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-12 17:33:15 +08:00
Replace "inline static" with "static inline" for consistency.
This commit is contained in:
parent
91414e0042
commit
fb8dccc23e
@ -109,7 +109,7 @@ class ConditionEstimator {
|
|||||||
* ||matrix||_1 = sup ||matrix * v||_1 / ||v||_1, which is equal to
|
* ||matrix||_1 = sup ||matrix * v||_1 / ||v||_1, which is equal to
|
||||||
* the greatest absolute column sum.
|
* 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();
|
return matrix.cwiseAbs().colwise().sum().maxCoeff();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -124,7 +124,7 @@ struct EstimateInverseMatrixL1NormImpl<Decomposition, 0> {
|
|||||||
typedef typename internal::plain_col_type<MatrixType>::type Vector;
|
typedef typename internal::plain_col_type<MatrixType>::type Vector;
|
||||||
|
|
||||||
// Shorthand for vector L1 norm in Eigen.
|
// 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>();
|
return v.template lpNorm<1>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -210,7 +210,7 @@ struct EstimateInverseMatrixL1NormImpl<Decomposition, 1> {
|
|||||||
RealVector;
|
RealVector;
|
||||||
|
|
||||||
// Shorthand for vector L1 norm in Eigen.
|
// 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>();
|
return v.template lpNorm<1>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user