Registered Member
|
Hi everyone,
I have tried to use the GeneralizedEigenSolver, but it seems that the function eigenvectors() is not available. However, there are references in the documentation to the method. Any ideas? Thanks alot! Best regards, David |
Registered Member
|
The documentation seems a bit vague on whether that function exists in GeneralizedEigenSolver. The code (http://eigen.tuxfamily.org/dox-devel/Ge ... ource.html) shows that the variable you want is m_eivec (a protected variable) which has no getters. It think it's a simple omission in the code, but since it's not private you could get it out by making your own subclass with a getter (so no need to change Eigen's source).
There's also the chance that GeneralizedEigenSolver isn't supposed to be used directly, but rather through subclasses, but after looking through I couldn't find anything which subclasses it. Edit: Just noticed lines 278–287. Seems there's a commented out getter for the eigenvectors because it isn't finished. So I suppose it needs some processing to get them out from m_eivec. Seems like either a feature request or DIY job (if you add it yourself, contribute the code back to Eigen!) |
Registered Member
|
Thanks for your quick reponse. I've also seen those lines of code, and it seemed therefore weird to me that the code was commented out, but there are references to the method in the documentation.
Thanks! |
Moderator
|
Right, we did not paid attention this feature was lacking. I just added a bug entry for it: http://eigen.tuxfamily.org/bz/show_bug.cgi?id=645
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]