Re: [eigen] Matrix assignment

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


> On Tuesday 21 October 2008 16:02:22 Gael Guennebaud wrote:
> > hm... resizeAssign sounds a bit weird to me. Perhaps with
> > only one additional letter:
> >
> > m0.resizedAssign(m1);
> >
> > that can be interpreted as a shortcut for
> > m0.resized().assign(m1);. Or, something much shorter and
> > almost as explicit (IMO):
> >
> > m0.set(m1);
> >
> > I think it is quite clear that a "set" operation is allowed
> > to resize the destination, isn't it ? another argument:
> > when we allow the destination to be resized, that mean we
> > are re-initializing the matrix, so "set" makes sense.
>
> OK, I agree.
>
> Cheers,
> Benoit
>
> ---

Sounds nice to me too :)

And _maybe_ there will be no need for a zero sized matrix 
operator= resizing assignment, because set() is as well 
intuitive.

Cheers,
Cristóvão Sousa


---


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