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

Sparse Matrix filling efficiency #43

Open
liupeiLu opened this issue Sep 27, 2018 · 2 comments
Open

Sparse Matrix filling efficiency #43

liupeiLu opened this issue Sep 27, 2018 · 2 comments

Comments

@liupeiLu
Copy link

Hello,

I would like to know is there any speed difference between coeffRef(i,j) and mat.setFromTriplets(tripletList.begin(), tripletList.end()) for filling eigen sparse matrices? Currently I am using the former but it took a very long time to run the interpolate function.

Thanks for the help!

@alecjacobson
Copy link
Owner

alecjacobson commented Sep 27, 2018 via email

@liupeiLu
Copy link
Author

setFromTriplets is mush faster, thank you!

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

2 participants