PartialPivLU: port to PermutationMatrix

PermutationMatrix: add resize()
This commit is contained in:
Benoit Jacob
2009-11-16 15:36:07 -05:00
parent eb6df28c6c
commit 76c614f9bd
2 changed files with 11 additions and 10 deletions

View File

@@ -159,6 +159,9 @@ class PermutationMatrix : public AnyMatrixBase<PermutationMatrix<SizeAtCompileTi
/** \returns a reference to the stored array representing the permutation. */
IndicesType& indices() { return m_indices; }
/** Resizes to given size. */
inline void resize(int size) { m_indices.resize(size); }
/**** inversion and multiplication helpers to hopefully get RVO ****/
#ifndef EIGEN_PARSED_BY_DOXYGEN