Re: [eigen] API change proposal

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


Personally, I like having pointers for output values because it makes it clear what the function is doing at the callsite. Yes, sometimes a pointer is passed so there is no &, but that is not the common case.

On Wed, Jul 22, 2009 at 8:47 PM, Markus <grey_earl@xxxxxx> wrote:
Hi all,

I propose to switch the solve() method from LU from the signature
bool solve (const MatrixBase< OtherDerived > & b, ResultType * result) const
to
bool solve (const MatrixBase< OtherDerived > & b, ResultType & result) const

This is
a) more C++-like
b) doesn't shoot with wild pointers.

I'm using 2.0.3, so if this is already in the development branch, forget about
this mail. Opinions?

Greetings,
Markus





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