Re: [eigen] Matrix assignment |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Matrix assignment
- From: Cristóvão Sousa <crisjss@xxxxxxxxx>
- Date: Tue, 21 Oct 2008 17:37:35 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=teBEcXYTpPhnk+HJAxYn0jVe2COCoakYmSX1xaWh6ko=; b=m1ebAxx91K0EQtCyEhuOdosFw3hAbjUMV/JmH41+n7aVVN7ls/KU94z1uqijyjA7Ty aJiuq0IHlMEg7FRn931itGIhTi2ABsDSJusLkupGDqe91G1p/UMLh1Q3hE3j6kAM2HCG eE6lHXsWW1d1krKb+C4EjZAOjiT9q4fvfdKRU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=nFP1r51ZjCfH6fVn9gm4/lmnK1Pkn2/o4sUkZAcQJyubNsm3O90ycN2wrVFlCIphpa 7cH0hVFUpZblkkdUgdba8er06vUpEhEMrEsDq2JpjICPveO47d8PFiwh3z49I1PtDxPx Sq9d7v1MLehArfRGmKyUa+hZuTsfWhdEIujI0=
> 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
---