diff options
author | Gael Guennebaud <g.gael@free.fr> | 2012-01-31 12:58:52 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2012-01-31 12:58:52 +0100 |
commit | 9c86ee26952cde01f91baa310e78b582483463c9 (patch) | |
tree | 17b5dbc18a030280470ce28404ae88aa459d3dc0 /Eigen/src/Cholesky | |
parent | 8d6e394b060c7a531737e32902e2048915cb30ae (diff) |
fix static inline versus inline static issues (the former is the correct order)
Diffstat (limited to 'Eigen/src/Cholesky')
-rw-r--r-- | Eigen/src/Cholesky/LDLT.h | 8 | ||||
-rw-r--r-- | Eigen/src/Cholesky/LLT.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/Eigen/src/Cholesky/LDLT.h b/Eigen/src/Cholesky/LDLT.h index 94b679ede..e637967f2 100644 --- a/Eigen/src/Cholesky/LDLT.h +++ b/Eigen/src/Cholesky/LDLT.h @@ -421,16 +421,16 @@ template<typename MatrixType> struct LDLT_Traits<MatrixType,Lower> { typedef TriangularView<MatrixType, UnitLower> MatrixL; typedef TriangularView<typename MatrixType::AdjointReturnType, UnitUpper> MatrixU; - inline static MatrixL getL(const MatrixType& m) { return m; } - inline static MatrixU getU(const MatrixType& m) { return m.adjoint(); } + static inline MatrixL getL(const MatrixType& m) { return m; } + static inline MatrixU getU(const MatrixType& m) { return m.adjoint(); } }; template<typename MatrixType> struct LDLT_Traits<MatrixType,Upper> { typedef TriangularView<typename MatrixType::AdjointReturnType, UnitLower> MatrixL; typedef TriangularView<MatrixType, UnitUpper> MatrixU; - inline static MatrixL getL(const MatrixType& m) { return m.adjoint(); } - inline static MatrixU getU(const MatrixType& m) { return m; } + static inline MatrixL getL(const MatrixType& m) { return m.adjoint(); } + static inline MatrixU getU(const MatrixType& m) { return m; } }; } // end namespace internal diff --git a/Eigen/src/Cholesky/LLT.h b/Eigen/src/Cholesky/LLT.h index 2140f3d5c..ffb58d674 100644 --- a/Eigen/src/Cholesky/LLT.h +++ b/Eigen/src/Cholesky/LLT.h @@ -359,8 +359,8 @@ template<typename MatrixType> struct LLT_Traits<MatrixType,Lower> { typedef TriangularView<MatrixType, Lower> MatrixL; typedef TriangularView<typename MatrixType::AdjointReturnType, Upper> MatrixU; - inline static MatrixL getL(const MatrixType& m) { return m; } - inline static MatrixU getU(const MatrixType& m) { return m.adjoint(); } + static inline MatrixL getL(const MatrixType& m) { return m; } + static inline MatrixU getU(const MatrixType& m) { return m.adjoint(); } static bool inplace_decomposition(MatrixType& m) { return llt_inplace<typename MatrixType::Scalar, Lower>::blocked(m)==-1; } }; @@ -369,8 +369,8 @@ template<typename MatrixType> struct LLT_Traits<MatrixType,Upper> { typedef TriangularView<typename MatrixType::AdjointReturnType, Lower> MatrixL; typedef TriangularView<MatrixType, Upper> MatrixU; - inline static MatrixL getL(const MatrixType& m) { return m.adjoint(); } - inline static MatrixU getU(const MatrixType& m) { return m; } + static inline MatrixL getL(const MatrixType& m) { return m.adjoint(); } + static inline MatrixU getU(const MatrixType& m) { return m; } static bool inplace_decomposition(MatrixType& m) { return llt_inplace<typename MatrixType::Scalar, Upper>::blocked(m)==-1; } }; |