diff options
author | Jim Radford <radford@blackbean.org> | 2017-01-04 14:42:57 -0800 |
---|---|---|
committer | Jim Radford <radford@blackbean.org> | 2017-01-04 14:42:57 -0800 |
commit | 0c226644d8cf21d35cfcf46c60ce66d2183f530e (patch) | |
tree | 8c5c210ace7254f962417fc89b7dffcd1ce23764 /Eigen | |
parent | be281e528967ed00ed52f50a476beef10ff0dec3 (diff) |
LLT: const the arg to solveInPlace() to allow passing .transpose(), .block(), etc.
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Cholesky/LLT.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Cholesky/LLT.h b/Eigen/src/Cholesky/LLT.h index c7683232d..152837bfd 100644 --- a/Eigen/src/Cholesky/LLT.h +++ b/Eigen/src/Cholesky/LLT.h @@ -150,7 +150,7 @@ template<typename _MatrixType, int _UpLo> class LLT } template<typename Derived> - void solveInPlace(MatrixBase<Derived> &bAndX) const; + void solveInPlace(const MatrixBase<Derived> &bAndX) const; template<typename InputType> LLT& compute(const EigenBase<InputType>& matrix); @@ -493,7 +493,7 @@ void LLT<_MatrixType,_UpLo>::_solve_impl(const RhsType &rhs, DstType &dst) const */ template<typename MatrixType, int _UpLo> template<typename Derived> -void LLT<MatrixType,_UpLo>::solveInPlace(MatrixBase<Derived> &bAndX) const +void LLT<MatrixType,_UpLo>::solveInPlace(const MatrixBase<Derived> &bAndX) const { eigen_assert(m_isInitialized && "LLT is not initialized."); eigen_assert(m_matrix.rows()==bAndX.rows()); |