Re: [eigen] Malloc-free dynamic matrices

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


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
> convinced.
>
> 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.

- Hauke



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/