diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-11-16 15:36:07 -0500 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-11-16 15:36:07 -0500 |
commit | 76c614f9bd8e80a530a4aa685f1ae7506b64b8dd (patch) | |
tree | aefd0fc6d1732454bf994952b9815b6bd052274b /Eigen/src/Core/PermutationMatrix.h | |
parent | eb6df28c6cab95c98c34898a3a0aa92d406493f6 (diff) |
PartialPivLU: port to PermutationMatrix
PermutationMatrix: add resize()
Diffstat (limited to 'Eigen/src/Core/PermutationMatrix.h')
-rw-r--r-- | Eigen/src/Core/PermutationMatrix.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Eigen/src/Core/PermutationMatrix.h b/Eigen/src/Core/PermutationMatrix.h index f2bde0e71..b2acdb50d 100644 --- a/Eigen/src/Core/PermutationMatrix.h +++ b/Eigen/src/Core/PermutationMatrix.h @@ -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 |