![]() Registered Member ![]()
|
I am new to Eigen and am trying to fill a SparseMatrix row by row, by inserting the rows as SparseVectors. Here's the way I planned to do it:
But unfortunately I get errors:
and a couple more, all saying that some function is not a member of Eigen::Block<...> What am I doing wrong? I'd appreciate any help - thank you. |
![]() Moderator ![]()
|
You can do it with the devel branch but this will be extremely slow because at each insertion Eigen will have to perform memory reallocation and numerous memory copies. Better use a row major matrix (SparseMatrix<double,ColMajor>) or the recommended triplet list.
|
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]