Re: [eigen] solve API

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


 Just my 2 cent:

I know, that expression do not have to be evaluated but nevertheless
I would try to avoid the word "inverse()", because of lession #1: "Never use matrix inversion".

What about

x = b * A.adjoint().lu().invertor()	(like benoit's solver())



But cleaner for me to read is, what Manoj suggesting:
     x = solve(A,b); // left
     x = solve(b,A); // right
     x = solve(b, A.triangularView<Lower>()); // Gael's example
It's OK to read and understand w/o scarring about "inverse()" too.

--Frank



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/