poisson_blend icon indicating copy to clipboard operation
poisson_blend copied to clipboard

Freeing Eigen structures/variables

Open akashdexati opened this issue 6 years ago • 1 comments

Hi @Erkaman

Some structures from Eigen source are used.

typedef Eigen::SparseMatrix<double> SpMat;
typedef Eigen::Triplet<double> Triplet;
typedef Eigen::VectorXd Vec;

Eigen::SimplicialCholesky<SpMat> solver;
..
Vec solutionChannels[3];		
Vec b(numUnknowns);

How to free the memory used by Eigen entities ?

akashdexati avatar Jan 03 '19 16:01 akashdexati

b.resize(0) worked for me. But I am not able to release solutionChannels. Any clue ?

akashdexati avatar Jan 03 '19 17:01 akashdexati