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 10:21:43 +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 :content-transfer-encoding; bh=UbNn9Xylb+uJ6zuN5+k5Zj/fxMH5L2+Q4Z1ohTYc72E=; b=q8XsCSL80HqEmXyfgYLmqRdvMZ85JcLls+2C+2AsBIMCFMvkm5+2Qy3eBt7FyBA4Bv ySbQT2yBa8sQPlICEG0YkmmefPKpKYAOADSjFn4ZcMFE57NSTSlijTsbQtmypbOBXHWO TC31vefWvK1xrSq3FoNlfpsDetebn8vPkKUp0=
- 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:content-transfer-encoding; b=L1+uyLfEIRU6qh0mbJlRhhczlVJcWzBsTnXoccscyjX0AzJ/huCIcVSUaNC0v48HrM SWLOkoBF8Kt3z6xAy2oThOWLXn4JCGtN0DngR26Wl4Vfg6RoIL1yKpXYn8hXewDemTDV MzwjsR+/x4tjNzUiu7jOTm6k9/3OQ3wM+yxNA=
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