Re: [eigen] solve API

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


On Mon, Jun 28, 2010 at 8:49 PM, FMDSPAM <fmdspam@xxxxxxxxx> wrote:
>  Am 28.06.2010 20:16, schrieb Gael Guennebaud:
>>
>> ....
>> LU<>  lu(A);
>>
>> x = lu.invertor() * b;
>> y = lu.invertor().adjoint() * b;
>>
>> but "invertor().adjoint()" is a bit weird.
>
> Yes. it is. Hence, just now, unused as I am, I prefer a weird name for that.
> There is anyway some thing what strikes Eigen newbies:
> "Do not read the expression w/o being aware the c++ magic under the hood!"
> But hopefully that lesson is to learn.
> So, a better philosophy will be to choose "The On And Only Right Name" :-)

agree

> --Frank
>
> P.S.
> Just to ask:
> What is about (Matlab-sytle):
>
> LU<> la(A);
> x=lu / b;
> x=lu.adjoint() / b;
> x= b / lu;

Matlab style would solve all our troubles if the character \ would be
a valid c++ operator.

Indeed,  x = A / b always means x = A b^1. while Matlab syntax for "on
the left" solving is x = A \ b. too bad.

gael

>
>
>



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