diff --git a/Eigen/src/SparseQR/SparseQR.h b/Eigen/src/SparseQR/SparseQR.h index f1e5509dd..e1016ac90 100644 --- a/Eigen/src/SparseQR/SparseQR.h +++ b/Eigen/src/SparseQR/SparseQR.h @@ -79,13 +79,13 @@ class SparseQR { compute(mat); } - void compute(/*const*/ MatrixType& mat) + void compute(const MatrixType& mat) { analyzePattern(mat); factorize(mat); } void analyzePattern(const MatrixType& mat); - void factorize(/*const*/ MatrixType& mat); + void factorize(const MatrixType& mat); /** * Get the number of rows of the triangular matrix. @@ -223,7 +223,7 @@ void SparseQR::analyzePattern(const MatrixType& mat) * \param mat The sparse column-major matrix */ template -void SparseQR::factorize(MatrixType& mat) +void SparseQR::factorize(const MatrixType& mat) { eigen_assert(m_analysisIsok && "analyzePattern() should be called before this step"); Index m = mat.rows();