|Re: [eigen] Malloc-free dynamic matrices|
[ Thread Index |
| More lists.tuxfamily.org/eigen Archives
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Malloc-free dynamic matrices
- From: Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>
- Date: Fri, 5 Mar 2010 09:16:40 +0100
- 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=L+smEd1VLrUnvnqBq7ZoR8SUaCkiLQokKXz4O+6UwbQ=; b=JrjvwjCIrvurhXo/6RbcJTakKZ0mTcy8k07WI4jHDXPcc82ATfRRSLwt4lIpWSvT2v XbNULlrtCS18d7guTuJwHOPxAxanWeRjzXvvc2mDk5IQGRR9BvFz546aPVcV70RHP7cJ FR7BDjkFQ4tjkkputJZy5Ng1vu4q+Irhf7VxY=
- 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=dSLDHphQfrqaYs78HE9sV11qXIPbrTE3Bb8ykuE7wi3otIQh4ABg+htMbV4dDaaOBy Be+c3BHa06IzahlK1HnOr2wWaE0eZvZ2v9X6tSnKJgyV9x4V0YqCKuIPnkJOiZQHTNg6 +2EKtTv705SGy4LaxsvIs1gsSIxD82aVMfd3g=
On Fri, Mar 5, 2010 at 6:25 AM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx> wrote:
> My conclusion:
> - adding a shared library would be giving up a very large advantage
> that we have. Being purely headers makes it far easier for people to
> use Eigen.
> - once allocatedSize member is added, i don't see any more potential
> reason on the horizon for changing the Matrix ABI, hence no potential
> use case for a d-pointer.
> - if such a use case happens it's always possible to do that with a
> new template parameter / class.
> - any fixed amount of reserved space can still fail to be enough the
> day we need it, while having a constant cost. Hence, I'm not
> So my opinion: Option2 without any reserved space, just set in stone
> the matrix ABI after you've implemented this change.
I could not agree more with what you've written. I think it's too much
to try to cover any potential future use case by adding some data to
Matrix. As you've pointed out, we could always create a new class.