Registered Member
|
Hello,
What is the analog of eigen v2 .minor(i,j) in eigen v3 ? I would like to retrieve the minor of a matrix , but I don't want to enable v2 support just to use this... Excuse me in advance if this is answered somewhere, I was not able to find it! thnx |
Moderator
|
This feature has been removed because it is rather slow with expression templates.
|
Registered Member
|
It's a pity that minors were removed. My preference would be to leave it with a warning about speed (or lack thereof). How do you know how important the speed of the minor is in the overall algorithm? In my case, I have to implement Minors myself and the matrix part is maybe 0.001% of the overall runtime.
|
Moderator
|
Actually, with the evaluator mechanism of the next 3.3 version, minor could be implemented more efficiently, so we could probably resurrect it.
Note that in the 2.x version, minor compiled to something like:
which is pretty bad because of the branches in the most nested loop. Of course, if you run a O(n^3) computation on the minor with n large enough, then you clearly don't care about this "minor" performance penalty. |
Moderator
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]