This forum has been archived. All content is frozen. Please use KDE Discuss instead.

FullView or DenseView for converting sparse to dense

Tags: None
(comma "," separated)
User avatar
alecjacobson
Registered Member
Posts
26
Karma
0
Is there a reverse equivalent to .sparseView() ? I hoping for something like:

Code: Select all
SparseMatrix<double> S;
...
MatrixXd D = S.denseView();
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
You can simply do:
Code: Select all
D = MatrixXd(S);


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]