geometry-processing-mesh-reconstruction
geometry-processing-mesh-reconstruction copied to clipboard
Sparse Matrix filling efficiency
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!
setFromTriplets should be faster.
You can also run in release mode to speed things up.
setFromTriplets is mush faster, thank you!