Registered Member
|
Hi there,
I have a big sparse matrix that I want to initialize directly from its list of triplets. I have the list in the correct order (column-major by default), and I know the exact number of nonzeros. According to the documentation I can make use of the reserve+insert methods to do that efficiently. However this does not seem to work. Would it be possible to provide a public insertBack() method that is guaranteed to be O(1) and fails if given indices are not increasing as expected? Sample code and matrix file provided below:
Matrix file: http://s000.tinyupload.com/?file_id=56174212691750863358 Compiled with gcc 4.9.2 and eigen 3.2.4:
|
Moderator
|
I filled a bug-report with a patch: http://eigen.tuxfamily.org/bz/show_bug.cgi?id=974
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]