Re: [eigen] Matrix assignment

[ Thread Index | Date Index | More Archives ]

this one is done:

SVN commit 875595 by ggael:

As discussed on ML:
 * remove the automatic resizing feature of operator =
 * add function Matrix::set() to be used when the previous behavior is wanted
 * the default constructor of dynamic-size matrices now creates a
"null" matrix (data=0, rows = cols = 0) instead of a 1x1 matrix
 * fix UnixX typos ;)


On Tue, Oct 21, 2008 at 6:58 PM, Gael Guennebaud
<gael.guennebaud@xxxxxxxxx> wrote:
> On Tue, Oct 21, 2008 at 6:47 PM, Benoît Jacob <jacob@xxxxxxxxxxxxxxx> wrote:
>> Pretty good idea!
>> We'll just need to make clear in the docs: "if you use the default Matrix()
>> constructor for a dynamic-size matrix, then you need to set() this matrix
>> before doing anything else with it".
>> Seems reasonable to me, and i like the idea of avoiding all that overhead in
>> dynamic matrix assignment; even if it was negligible in terms of time, it
>> generated code, for every different expression type we assigned, which could
>> be non-negligible.
> make sense to me too.
> gael.

Mail converted by MHonArc 2.6.19+