New user self-registration is disabled due to spam. Please email eigen-core-team @ if you need an account.
Before reporting a bug, please make sure that your Eigen version is up-to-date!
Bug 1407 - Four-Matrix Sparse Multiply Doesn't Work
Summary: Four-Matrix Sparse Multiply Doesn't Work
Status: NEW
Alias: None
Product: Eigen
Classification: Unclassified
Component: Sparse (show other bugs)
Version: unspecified
Hardware: All All
: Normal Unknown
Assignee: Nobody
Depends on:
Reported: 2017-03-17 02:23 UTC by citibeth
Modified: 2017-03-17 02:23 UTC (History)
2 users (show)


Description citibeth 2017-03-17 02:23:44 UTC
If A, B, C and D are SparseMatrix instances, I can do:
   Eigen::SparseMatrix X(A*B*C)

But the following doesn't work, it yields a matrix that just zeros everything out:
   Eigen::SparseMatrix X(A*B*C*D)

So it seems that Eigen can handle multiplying three matrices in one expression, but not four.  For the latter case, splitting it up into two multiply steps works.

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