Registered Member
|
Hello,
Im trying to fill a sparse matrix from a single array; i normally use this approach when working with normal matrixes:
How can I achieve the same results but with SparseMatrix? I looked at the documentation but I am having some issues, Im probably missing something, here below is the link https://eigen.tuxfamily.org/dox-devel/classEigen_1_1Map_3_01SparseMatrixType_01_4.html Thanks! |
Moderator
|
What do you mean by "from a single array", what does it contain? is it dense with explicit zeros? Is it an array of triplets?
Have a look at the following page to get an introduction to sparse matrix storage: http://eigen.tuxfamily.org/dox-devel/gr ... parse.html |
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]