diff options
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Cholesky/LDLT.h | 8 | ||||
-rw-r--r-- | Eigen/src/Cholesky/LLT.h | 8 | ||||
-rw-r--r-- | Eigen/src/Cholesky/LLT_MKL.h | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/Eigen/src/Cholesky/LDLT.h b/Eigen/src/Cholesky/LDLT.h index e93c27e50..e9d30ac31 100644 --- a/Eigen/src/Cholesky/LDLT.h +++ b/Eigen/src/Cholesky/LDLT.h @@ -419,16 +419,16 @@ template<> struct ldlt_inplace<Upper> template<typename MatrixType> struct LDLT_Traits<MatrixType,Lower> { - typedef TriangularView<const MatrixType, UnitLower> MatrixL; - typedef TriangularView<const typename MatrixType::AdjointReturnType, UnitUpper> MatrixU; + typedef const TriangularView<const MatrixType, UnitLower> MatrixL; + typedef const TriangularView<const typename MatrixType::AdjointReturnType, UnitUpper> MatrixU; 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<const typename MatrixType::AdjointReturnType, UnitLower> MatrixL; - typedef TriangularView<const MatrixType, UnitUpper> MatrixU; + typedef const TriangularView<const typename MatrixType::AdjointReturnType, UnitLower> MatrixL; + typedef const TriangularView<const MatrixType, UnitUpper> MatrixU; static inline MatrixL getL(const MatrixType& m) { return m.adjoint(); } static inline MatrixU getU(const MatrixType& m) { return m; } }; diff --git a/Eigen/src/Cholesky/LLT.h b/Eigen/src/Cholesky/LLT.h index 84c91fc5d..3dcd4b604 100644 --- a/Eigen/src/Cholesky/LLT.h +++ b/Eigen/src/Cholesky/LLT.h @@ -365,8 +365,8 @@ template<typename Scalar> struct llt_inplace<Scalar, Upper> template<typename MatrixType> struct LLT_Traits<MatrixType,Lower> { - typedef TriangularView<const MatrixType, Lower> MatrixL; - typedef TriangularView<const typename MatrixType::AdjointReturnType, Upper> MatrixU; + typedef const TriangularView<const MatrixType, Lower> MatrixL; + typedef const TriangularView<const typename MatrixType::AdjointReturnType, Upper> MatrixU; 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) @@ -375,8 +375,8 @@ template<typename MatrixType> struct LLT_Traits<MatrixType,Lower> template<typename MatrixType> struct LLT_Traits<MatrixType,Upper> { - typedef TriangularView<const typename MatrixType::AdjointReturnType, Lower> MatrixL; - typedef TriangularView<const MatrixType, Upper> MatrixU; + typedef const TriangularView<const typename MatrixType::AdjointReturnType, Lower> MatrixL; + typedef const TriangularView<const MatrixType, Upper> MatrixU; 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) diff --git a/Eigen/src/Cholesky/LLT_MKL.h b/Eigen/src/Cholesky/LLT_MKL.h index 10aa746dc..7f7549bb0 100644 --- a/Eigen/src/Cholesky/LLT_MKL.h +++ b/Eigen/src/Cholesky/LLT_MKL.h @@ -71,7 +71,7 @@ template<> struct llt_inplace<EIGTYPE, Lower> \ } \ template<typename MatrixType, typename VectorType> \ static typename MatrixType::Index rankUpdate(MatrixType& mat, const VectorType& vec, const typename MatrixType::RealScalar& sigma) \ - { return llt_rank_update_lower(mat, vec, sigma); } \ + { return Eigen::internal::llt_rank_update_lower(mat, vec, sigma); } \ }; \ template<> struct llt_inplace<EIGTYPE, Upper> \ { \ |