This bugzilla service is closed. All entries have been migrated to
Bug 713 - sv += sv causes out of memory
Summary: sv += sv causes out of memory
Alias: None
Product: Eigen
Classification: Unclassified
Component: Sparse (show other bugs)
Version: 3.2
Hardware: All All
: Normal Optimization
Assignee: Nobody
Depends on:
Reported: 2013-12-13 17:52 UTC by zhao wu
Modified: 2019-12-04 12:51 UTC (History)
1 user (show)


Description zhao wu 2013-12-13 17:52:37 UTC
The implementation of binary operations such as += and -= in Sparse module is very inefficient. When the sparse vector/matrix dimension is big, it causes out of memory.  += and -= should just modify the original sparse vector/matrix in place without allocating new memory.
Comment 1 Christoph Hertzberg 2014-09-07 16:24:53 UTC
I'm not sure how exactly you intend to perform this in-place if the non-zero patterns do not match. If you are certain that they match, you can access the values directly with a Map on .valuePtr()
Comment 2 Nobody 2019-12-04 12:51:37 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance:

Note You need to log in before you can comment on or make changes to this bug.