Summary: | SparseMatrix with non-default Index type fails when converting to Matrix (throws bad_alloc because it changes internal index from int to non-default index) | ||||||
---|---|---|---|---|---|---|---|
Product: | Eigen | Reporter: | Dario Villar <dario.villar> | ||||
Component: | Sparse | Assignee: | Nobody <eigen.nobody> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Unknown | CC: | chtz, dario.villar, gael.guennebaud | ||||
Priority: | Normal | ||||||
Version: | 3.2 | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
Attachments: |
|
This is already fixed in devel branch because rows/cols always return Index type. For 3.2: https://bitbucket.org/eigen/eigen/commits/561623f5f81e/ Summary: Bug 1175: fix Index type conversion from sparse to dense. -- GitLab Migration Automatic Message -- This bug has been migrated to gitlab.com'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: https://gitlab.com/libeigen/eigen/issues/1175. |
Created attachment 662 [details] Test case to reproduce When trying to convert a SparseMatrix with non-default Index type to Matrix, the dense one changes its internal Index type. Attached test case to reproduce.