diff options
author | Gael Guennebaud <g.gael@free.fr> | 2012-04-10 15:40:36 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2012-04-10 15:40:36 +0200 |
commit | b0cf95619e0777194fcc2d1337a39ef5357a4233 (patch) | |
tree | 7396c2cbbaf566eea6e705f1babe7748465ca033 /Eigen/src/Cholesky/LLT.h | |
parent | 311c5b87a3cba60dd83273212228b5ce800d398c (diff) |
fix compilation of "somedensematrix.llt().matrixL().transpose()" (missing constness on the return types)
Diffstat (limited to 'Eigen/src/Cholesky/LLT.h')
-rw-r--r-- | Eigen/src/Cholesky/LLT.h | 8 |
1 files changed, 4 insertions, 4 deletions
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) |