Is there some easy and fast way to convert a sparse matrix to a dense matrix of doubles?
Because my SparseMatrix is not sparse any more, but became dens
SparseMatrix
Let's declare two matrices:
SparseMatrix<double> spMat; MatrixXd dMat;
Sparse to dense:
dMat = MatrixXd(spMat);
Dense to sparse:
spMat = dMat.sparseView();