Re: [eigen] still the solve() API debate |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] still the solve() API debate
- From: Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>
- Date: Fri, 11 Sep 2009 17:08:31 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=U2DzpsEakIhJYO0pbCltUHShydBef99x4v+YBJcNhUo=; b=GfxWx2qMSOUvg1o2LOvzoIuBunjtLVTYNlmpUB7QT+pV7VVAYFVX08E92vy1XOJOkK kw7gzSYTQIf6DTGJlTmIzCD2kmXKS597eD3NjwgkJjWSYjg+E81hHswuvmrhMZ/EAUQz 1JCH6+/4DF1w1eaDkKtv0IupRYtsjga4P5Rq8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=JPINNmiUw/0HQgxYf7LHPyRyEaRiu1eAxx0tV3Vh3Sp8tWZVt50YUKVvQXMFbdxqWN jzz9zPZ3tapXHOeddKdETCvxCTIH7wn2kq1eSoNDzzlRCEFWf1vtdgxUciztAsD1iWz6 6ZYSFWP7KH8nyzSImwkBenaxo3kgQglClHDr8=
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...
@Benoit
The other idea was rubbish since derived() will static cast the object
to the derived class which has just been stripped off by copying.
.... and your last mail was definitely a good one :)
Hauke