This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen

Bug 1175

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: SparseAssignee: 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:
Description Flags
Test case to reproduce none

Description Dario Villar 2016-03-01 11:12:58 UTC
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.
Comment 1 Gael Guennebaud 2016-03-01 14:04:30 UTC
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.
Comment 2 Nobody 2019-12-04 15:30:07 UTC
-- 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.