Re: [eigen] Documentation : it's a sprint!! |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Documentation : it's a sprint!!
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Thu, 1 Jul 2010 09:46:00 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Cns2dSeMI+K0/wefj3LSNST+1YQl17rQjDiepA47tu0=; b=czAuy9F3E485zKkpalbl6Fw+UHmzxW5IvIOSFXd933djZa1aLQejONs8oS/jlTg6Va LuCwLEn/CIVV0fqXzy2/ELPEo0nPmoFS6zHDy686q7xfo+T5U9upv/4GRdKljkMqywpR lccfsVOfea1zh4dqg5kk8apokFlwN1iqhvWAc=
- 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=W02QFQIjnvHGbTWAYsH0b1K8q6esx7bjl4zjTopABmvtVn15STqStpIgCxLji8I0vI mkzem0jS/k3/I/2Q1O2Xxd3pT+SQHkLNM35mb32MKq5pvf5bwkEOrygsse+jhUjMl9C1 sMyJEV89gU5kKvSosteZySzWL/1xw4LTizi60=
Broadcasting means e.g.
matrix.colwise() += vector;
Visitors are e.g.
Index i, j;
matrix.maxCoeff(&i, &j);
These are two really different things, no?
Benoit
2010/7/1 Carlos Becker <carlosbecker@xxxxxxxxx>:
> Just a quick question: what would be the difference between visitors and
> broadcasting? Seems to me that broadcasting is able to 'visit' column or
> row-wise, also modifying the data inside the matrix/array object, am I
> right? I haven't used broadcasting with eigen before.
>
>
>
> On Wed, Jun 30, 2010 at 1:30 PM, Carlos Becker <carlosbecker@xxxxxxxxx>
> wrote:
>>
>> oh ok sorry, got confused since I thought that someone was alreay writing
>> the sparse tut
>>
>>
>> On Wed, Jun 30, 2010 at 1:29 PM, Gael Guennebaud
>> <gael.guennebaud@xxxxxxxxx> wrote:
>>>
>>> nevermind, this C07_TutorialSparse.dox file is an old one...
>>>
>>> gael
>>>
>>> On Wed, Jun 30, 2010 at 2:26 PM, Carlos Becker <carlosbecker@xxxxxxxxx>
>>> wrote:
>>> > I am starting with the reductions/visitors/broadcasting tutorial and
>>> > just
>>> > noticed that the sparse tutorial is named as C07_TutorialSparse.dox.
>>> > According to the order in http://eigen.tuxfamily.org/dox-devel/ it
>>> > should be
>>> > C08 and C07 is to be the one I am doing. This is a silly question but
>>> > just
>>> > wanted to make sure we are all following the same conventions.
>>> > Carlos
>>> >
>>> > On Sun, Jun 27, 2010 at 1:59 PM, Gael Guennebaud
>>> > <gael.guennebaud@xxxxxxxxx>
>>> > wrote:
>>> >>
>>> >> On Sun, Jun 27, 2010 at 12:41 PM, Carlos Becker
>>> >> <carlosbecker@xxxxxxxxx>
>>> >> wrote:
>>> >> > Mmm I am trying to think of a straightforward explanation for this..
>>> >> > What
>>> >> > do
>>> >> > you think about calling them fixed-size and dynamic-size blocks,
>>> >> > where
>>> >> > the
>>> >> > former differs from the later because its size is known at
>>> >> > compile-time.
>>> >>
>>> >> a slightly more precise variant: "the latter are optimized versions of
>>> >> the former when the size is known at compile-time." I just added the
>>> >> word "optimized"
>>> >>
>>> >> you might also have a look at the reference tables, section "Sub
>>> >> matrices" to see how they are presented. The old version of this
>>> >> section is available online there:
>>> >>
>>> >>
>>> >>
>>> >> http://eigen.tuxfamily.org/dox-devel/TutorialCore.html#TutorialCoreMatrixBlocks
>>> >>
>>> >> gael
>>> >>
>>> >> >
>>> >> >
>>> >> > On Sun, Jun 27, 2010 at 11:02 AM, Carlos Becker
>>> >> > <carlosbecker@xxxxxxxxx>
>>> >> > wrote:
>>> >> >>
>>> >> >> Yes, I got that and actually it was my mistake since I supposed
>>> >> >> that it
>>> >> >> was only for fixed-size matrices, so now I am changing it.
>>> >> >> Thanks,
>>> >> >>
>>> >> >>
>>> >> >> 2010/6/27 Björn Piltz <bjornpiltz@xxxxxxxxxxxxxx>
>>> >> >>>
>>> >> >>> "The following tables show a summary of Eigen's block operations
>>> >> >>> and
>>> >> >>> how
>>> >> >>> they are applied to fixed- and dynamic-sized Eigen objects."
>>> >> >>> This quote and the following table gives the impression that the
>>> >> >>> fixed
>>> >> >>> size functions are only available for fixed size matrices. But
>>> >> >>> using
>>> >> >>> fixed
>>> >> >>> size vs dynamic size functions acually only determin the return
>>> >> >>> type.
>>> >> >>> Björn
>>> >> >
>>> >> >
>>> >>
>>> >>
>>> >
>>> >
>>>
>>>
>>
>
>