aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/PermutationMatrix.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-11-16 15:36:07 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-11-16 15:36:07 -0500
commit76c614f9bd8e80a530a4aa685f1ae7506b64b8dd (patch)
treeaefd0fc6d1732454bf994952b9815b6bd052274b /Eigen/src/Core/PermutationMatrix.h
parenteb6df28c6cab95c98c34898a3a0aa92d406493f6 (diff)
PartialPivLU: port to PermutationMatrix
PermutationMatrix: add resize()
Diffstat (limited to 'Eigen/src/Core/PermutationMatrix.h')
-rw-r--r--Eigen/src/Core/PermutationMatrix.h3
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