mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Remove const from return-by-value types (issue #1087)
libeigen/eigen!2144 Closes #1087 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
This commit is contained in:
@@ -241,14 +241,14 @@ class SparseQR : public SparseSolverBase<SparseQR<MatrixType_, OrderingType_> >
|
||||
* \sa compute()
|
||||
*/
|
||||
template <typename Rhs>
|
||||
inline const Solve<SparseQR, Rhs> solve(const MatrixBase<Rhs>& B) const {
|
||||
inline Solve<SparseQR, Rhs> solve(const MatrixBase<Rhs>& B) const {
|
||||
eigen_assert(m_isInitialized && "The factorization should be called first, use compute()");
|
||||
eigen_assert(this->rows() == B.rows() &&
|
||||
"SparseQR::solve() : invalid number of rows in the right hand side matrix");
|
||||
return Solve<SparseQR, Rhs>(*this, B.derived());
|
||||
}
|
||||
template <typename Rhs>
|
||||
inline const Solve<SparseQR, Rhs> solve(const SparseMatrixBase<Rhs>& B) const {
|
||||
inline Solve<SparseQR, Rhs> solve(const SparseMatrixBase<Rhs>& B) const {
|
||||
eigen_assert(m_isInitialized && "The factorization should be called first, use compute()");
|
||||
eigen_assert(this->rows() == B.rows() &&
|
||||
"SparseQR::solve() : invalid number of rows in the right hand side matrix");
|
||||
|
||||
Reference in New Issue
Block a user