Check for no-reallocation in SparseMatrix::insert (bug #974)

This commit is contained in:
Gael Guennebaud
2015-03-04 10:16:46 +01:00
parent 1ce0178363
commit c43154bbc5
2 changed files with 30 additions and 4 deletions

View File

@@ -214,6 +214,9 @@ class CompressedStorage
inline void reallocate(Index size)
{
#ifdef EIGEN_SPARSE_COMPRESSED_STORAGE_REALLOCATE_PLUGIN
EIGEN_SPARSE_COMPRESSED_STORAGE_REALLOCATE_PLUGIN
#endif
eigen_internal_assert(size!=m_allocatedSize);
internal::scoped_array<Scalar> newValues(size);
internal::scoped_array<StorageIndex> newIndices(size);