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:
@@ -81,7 +81,7 @@ class SparseSolverBase : internal::noncopyable {
|
||||
* \sa compute()
|
||||
*/
|
||||
template <typename Rhs>
|
||||
inline const Solve<Derived, Rhs> solve(const MatrixBase<Rhs>& b) const {
|
||||
inline Solve<Derived, Rhs> solve(const MatrixBase<Rhs>& b) const {
|
||||
eigen_assert(m_isInitialized && "Solver is not initialized.");
|
||||
eigen_assert(derived().rows() == b.rows() && "solve(): invalid number of rows of the right hand side matrix b");
|
||||
return Solve<Derived, Rhs>(derived(), b.derived());
|
||||
@@ -92,7 +92,7 @@ class SparseSolverBase : internal::noncopyable {
|
||||
* \sa compute()
|
||||
*/
|
||||
template <typename Rhs>
|
||||
inline const Solve<Derived, Rhs> solve(const SparseMatrixBase<Rhs>& b) const {
|
||||
inline Solve<Derived, Rhs> solve(const SparseMatrixBase<Rhs>& b) const {
|
||||
eigen_assert(m_isInitialized && "Solver is not initialized.");
|
||||
eigen_assert(derived().rows() == b.rows() && "solve(): invalid number of rows of the right hand side matrix b");
|
||||
return Solve<Derived, Rhs>(derived(), b.derived());
|
||||
|
||||
Reference in New Issue
Block a user