Re: [eigen] still the solve() API debate

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


On Thu, Sep 10, 2009 at 11:37 PM, Gael Guennebaud
<gael.guennebaud@xxxxxxxxx> wrote:
> you forgot the main advantage of sol 3 and 4 that is to be able to use
> temporary proxy object without having to declare them, e.g.:
>
> opt 3:  x.start(n) = A.solve(b);        // works without temporary

One more argument pro option 3 is the following - we can now write
something like

const VectorXf x = A.solve(b);

It's not a big thing but I am trying hard to use const as often as possible..

So, in case we can use the objects returned by solve-methods as any
other MatrixBase object, I totally prefer option 3.

Cheers,
Hauke



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