New user self-registration is disabled due to spam. Please email eigen-core-team @ lists.tuxfamily.org if you need an account.
Before reporting a bug, please make sure that your Eigen version is up-to-date!
Bug 713 - sv += sv causes out of memory
Summary: sv += sv causes out of memory
Status: DECISIONNEEDED
Alias: None
Product: Eigen
Classification: Unclassified
Component: Sparse (show other bugs)
Version: 3.2
Hardware: All All
: Normal Optimization
Assignee: Nobody
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-13 17:52 UTC by zhao wu
Modified: 2014-09-07 16:24 UTC (History)
1 user (show)



Attachments

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()

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