diff options
author | Desire NUENTSA <desire.nuentsa_wakam@inria.fr> | 2013-01-11 17:47:32 +0100 |
---|---|---|
committer | Desire NUENTSA <desire.nuentsa_wakam@inria.fr> | 2013-01-11 17:47:32 +0100 |
commit | 121f3bdf046a5bad04952241176f8f75d42f94fd (patch) | |
tree | b75adf5403569c4b302dfcc60dc711665d70938d /Eigen/src/SparseQR/SparseQR.h | |
parent | 33febdb48b188a7edabd73ddb184011d7869f550 (diff) |
Pass a const matrix to sparseQR
Diffstat (limited to 'Eigen/src/SparseQR/SparseQR.h')
-rw-r--r-- | Eigen/src/SparseQR/SparseQR.h | 6 |
1 files 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<MatrixType,OrderingType>::analyzePattern(const MatrixType& mat) * \param mat The sparse column-major matrix */ template <typename MatrixType, typename OrderingType> -void SparseQR<MatrixType,OrderingType>::factorize(MatrixType& mat) +void SparseQR<MatrixType,OrderingType>::factorize(const MatrixType& mat) { eigen_assert(m_analysisIsok && "analyzePattern() should be called before this step"); Index m = mat.rows(); |