Registered Member
|
Hello,
This is a very simple question; I would like to create this kind of object:
Is there any solution to bypass this and build + fill up a constant SparseMatrix? Any appropriate constructor or other method? Thank you very much for your help. |
Moderator
|
const_cast<SparseMatrix<double>&>(mat).setFromTriplets()
or create a non const tmp and "move" it to the const one. |
Registered Member
|
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]