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 15:22:09 +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=ctYzCqBvN63uDeEP7gTTnjwJGQTrodUrWFZLqAMfWZ4=; b=J4N7KCX5zXOhFSNY7lz3SjyOEK0Qh7p2Wuypwd+1OkV3YFGjbJ++4Lqh7SRvjWY7uZ s2DSAqDup6Xu2xTYRnhiF4i5zqxwOSbrY5J/3E3YMWWGK0VHXicwMOzveGuMM3LWnHuq wwQrF4RT02Qlw2MdfFNgBn947Hf25yNsYAOK8=
- 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=h1/6Uu7dpiKWU2lOMRB6+ou4bcri2UUqNF/z+tTTiERCkMxMcZM2XceWJrHzfICCHy RY278KMfnlCuLtV+QHaE7u41Eb5mLNG6wRkeSkc9DoDKstth47G44SWJyivA5MEXewV3 Vyi4GLZeKgAwH0ft8JvX/cFauGHg5P+clhnzA=
On Fri, Sep 11, 2009 at 3:13 PM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx> wrote:
> Same thing when we do A.solveInPlace(b.start(n)), start() returns a
> temporary, same problem, whence the idea of inplace() or whatever we
> call it.
Ok, I just caught up with re-reading... that's indeed ugly. But as you
guys already observed, in new compiler versions we already have rvalue
references. Benoit, what about your idea of passing Matrices by
reference and MatrixBase by value? You suggested to do that in the
"MatrixBase::swap - why const" thread? This approach would allow an
easy transition towards rvalues references in the future.
Hauke