Re: [eigen] Proposal: add M.fill(y) as a synonym for M.setConstant(y) |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Proposal: add M.fill(y) as a synonym for M.setConstant(y)
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Fri, 23 Jan 2009 23:44:56 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=5kCtMbn4UEJqaKOpZZCZg/0KcsaiGqd1hdJwiqeMzrI=; b=H1QxJXoskZAFt4uDdE85IHyxlHtNCk6ddnb6zOFAxdJVWVwKTeBAWQ1FLXsASjr1VI fjpUULTupVVFjxC1I+cs4Yq+9KQm0mRRObv5orx0FWQRB5O0m43DI5FQs2cOZegY+HpL fKN0PCbRf3Ij1rPgefu7f/IPFJzbh+A5A/LWw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Z0TIibCyepNQVxEC/L7xOSS6rLR8bqfb7oPtnjHqpY440XtavqPE2RWBqsDlywzgSh 2ONzSxmDecJr+WPPlVlTg5tBtAK1eLzCCZPLwwaXLmRgow1yD3QblrP3yuoLMLed0PIv y9ALwN3/EIY1K8kwLXI39x+22eAlVczta92Lg=
+1 from me, waiting for Gael approval...
Btw Gael if you're ever looking for a job in Toronto, since today you
gave good chances. I made you sound like some sort of guru of cache
friendliness...
Benoit
2009/1/23 Keir Mierle <mierle@xxxxxxxxx>:
> I find the notation M.setConstant() odd, because in for example
> double y = ... something not constant.
> MatrixXd M = ...
> M.setConstant(y) // <--- y is not a constant!
> I propose adding an alternate method:
> M.fill(y)
> It doesn't overload the meaning of constant, is shorter, and has obvious
> intent.
> Thoughts?
> Keir