Re: [eigen] Matrix assignment |

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] Matrix assignment*From*: Benoît Jacob <jacob@xxxxxxxxxxxxxxx>*Date*: Tue, 21 Oct 2008 17:50:25 +0200*Cc*: "Gael Guennebaud" <gael.guennebaud@xxxxxxxxx>

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

**Follow-Ups**:**Re: [eigen] Matrix assignment***From:*Cristóvão Sousa

**References**:**[eigen] Matrix assignment***From:*Cristóvão Sousa

**Re: [eigen] Matrix assignment***From:*Benoît Jacob

**Re: [eigen] Matrix assignment***From:*Gael Guennebaud

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Projection matrices in Eigen2** - Next by Date:
**Re: [eigen] Matrix assignment** - Previous by thread:
**Re: [eigen] Matrix assignment** - Next by thread:
**Re: [eigen] Matrix assignment**

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