taiya / dgp

Digital Geometry Processing - Fall 2016 - University of Victoria
38 stars 11 forks source link

The "Eigen::SimplicialCholesky"?? #17

Closed xuzheng0927 closed 7 years ago

xuzheng0927 commented 7 years ago

I've been tortured by the poor documentation of eigen library so much. How to get the decomposed matrix L after running solver.compute(L_uu)? I tried auto new_p = solver.compute(L_uu) but doesn't work at all. There is not any example I can find.

taiya commented 7 years ago

You don't need to "extract" the matrix from the factorizer. You simply call a solve method from the factorizer class (not RHS stands for right hand side): https://eigen.tuxfamily.org/dox/classEigen_1_1SimplicialCholesky.html

(this does the back-substitution in a way that is "factorizer-aware")

xuzheng0927 commented 7 years ago

Got that. Thanks a lot!

My code base still cannot be compiled by cmake (there's a confusing error "ld: 17 duplicate symbols for architecture x86_64") so I cannot do any debugging right now. I might need some help the next week after class :(

taiya commented 7 years ago

Pull the code, I've pushed an update this morning that should fix the problem! A 2nd fix might be necessary to draw handles, but for now it should compile.

On Nov 12, 2016, at 14:15, xuzheng0927 notifications@github.com wrote:

Got that. Thanks a lot!

My code base still cannot be compiled by cmake (there's a confusing error "ld: 17 duplicate symbols for architecture x86_64") so I cannot do any debugging right now. I might need some help the next week after class :(

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

xuzheng0927 commented 7 years ago

Great, it works. I'll continue my work :)