From 121f3bdf046a5bad04952241176f8f75d42f94fd Mon Sep 17 00:00:00 2001 From: Desire NUENTSA Date: Fri, 11 Jan 2013 17:47:32 +0100 Subject: [PATCH] Pass a const matrix to sparseQR --- Eigen/src/SparseQR/SparseQR.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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();