Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freeing Eigen structures/variables #1

Open
akashdexati opened this issue Jan 3, 2019 · 1 comment
Open

Freeing Eigen structures/variables #1

akashdexati opened this issue Jan 3, 2019 · 1 comment

Comments

@akashdexati
Copy link

akashdexati commented Jan 3, 2019

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant