Fix return by value versus ref typo in IncompleteCholesky

This commit is contained in:
Gael Guennebaud 2015-10-07 16:37:46 +02:00
parent 13294b5152
commit 131db3c552

View File

@ -125,7 +125,7 @@ class IncompleteCholesky : public SparseSolverBase<IncompleteCholesky<Scalar,_Up
const VectorRx& scalingS() const { return m_scale; }
/** \returns the fill-in reducing permutation P (can be empty for a natural ordering) */
const PermutationType permutationP() const { return m_perm; }
const PermutationType& permutationP() const { return m_perm; }
protected:
FactorType m_L; // The lower part stored in CSC