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

[ Thread Index | Date Index | More Archives ]

2009/9/11 Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>:
> On Fri, Sep 11, 2009 at 4:03 PM, Gael Guennebaud
> <gael.guennebaud@xxxxxxxxx> wrote:
>> template<OtherDerived> MatrixBase::swap(INOUT MatrixBase<OtherDerived>& other);
> Like this
> template<OtherDerived>
> MatrixBase::swap(MatrixBase<OtherDerived> INOUT & other);
> we could adapt it to rvalue references when they are supported by
> #define INOUT &
> and the docs are still fine...

OK, coming back to seriousness: I like your idea, I'm just not sure
about the INOUT name. Maybe the more verbose EIGEN_REF_TO_TEMPORARY
would be more explicit as to what it does and why we have to do it?

+1 to Hauke's idea to keep rvalue refs in mind; but then if we want
something flexible, instead of a macro we can even have a template
struct, if you want. It would look heavy in the dox, but if you want
we could make it look arbitrarily differently in the dox by definining
symbols in doxygen and using expand_as_defined.


Mail converted by MHonArc 2.6.19+