diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-11-06 15:05:37 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-11-06 15:05:37 +0100 |
commit | bfd6ee64f39340b42a1ee21e4b04ff15433e829d (patch) | |
tree | bdd1bedb1c032db86fb9d11a1952f6d0fcdea65f /Eigen/src/SparseCore/SparseMatrix.h | |
parent | 29038b982d4e8028b69211ef09e3fc3c7e6dfb69 (diff) |
bug #1105: fix default preallocation when moving from compressed to uncompressed mode
Diffstat (limited to 'Eigen/src/SparseCore/SparseMatrix.h')
-rw-r--r-- | Eigen/src/SparseCore/SparseMatrix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 272f1d7b4..91bada40f 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1221,7 +1221,7 @@ typename SparseMatrix<_Scalar,_Options,_Index>::Scalar& SparseMatrix<_Scalar,_Op { // make sure the matrix is compatible to random un-compressed insertion: m_data.resize(m_data.allocatedSize()); - this->reserveInnerVectors(Array<StorageIndex,Dynamic,1>::Constant(2*m_outerSize, convert_index(m_outerSize))); + this->reserveInnerVectors(Array<StorageIndex,Dynamic,1>::Constant(m_outerSize, 2)); } return insertUncompressed(row,col); |