|Re: [eigen] A modest start with the documentation|
[ Thread Index |
| More lists.tuxfamily.org/eigen Archives
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] A modest start with the documentation
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Thu, 17 Jun 2010 08:55:30 -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=2JB4lN0rbVAMcZJ4+j8Ew+1nuiuhuOBYpc7OTDtFc7s=; b=a1ctXg77BR5D6vp7odBF9RLAYV5IvMl+1fwMM5C8Le5DFQQbyyc/ps7YQlzOBqdf1H 79TfeyT3C6i2RzWLQ7doER84gbX/nt1PAHmoyzNy8rv83R0uUl/JmQtujsubZocO4y5I hbPrx8uSL3jhmbJxEJXJy3VZH+Sgy/lkJhXZ0=
- 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=HL4ihaOzbfUoQzSrMqFkuP/ysS0UebpELSi0OTnWKks7Ci65OI4bJl6tBCqwReRnt3 opJq/BSSbrTHoya/IvNwCnYfmxFcwxPlM5MlZ4fk4o6/f2EAzjOR2Kezhh40KVJgMdT0 ylpSbVbr7PzsJD9DoS2vgI7bMRH364igT/Zyo=
2010/6/17 Jitse Niesen <jitse@xxxxxxxxxxxxxxxxx>:
> Thanks for all the comments. I updated the Getting Started guide in the
> light of it; as you can see on
Thanks for the update, it looks really great!
> On Tue, 15 Jun 2010, Benoit Jacob wrote:
>> In this paragraph could you also mention that the header files are not
>> configured headers, and are the same for all platforms.
> I don't understand what you mean with "configured" here.
I meant a header that's generated at configure-time, e.g. in CMake
it's the configure_file() command. But since you didn't understand
that word, we shouldn't use it. This paragraph already is perfect now.
>> "A simple first program"
>> I would not use rightCols() here, if only because it's one of these
>> function names that i'm only 99% happy about: it might sound strange.
> Hmm, I notice now that I used columnIndex, writing out "column" in full.
> Perhaps that is a sign. For the rest I don't see anything wrong with the
> name rightCols.
Oh, my concern wasn't about the abbreviation of 'columns' into 'cols'.
It's standard enough. I just wasn't too sure how self-explanatory it
was that m.rightCols(n) meant what it does.
I like the new version, but perhaps rowIndex is a bit too long, how
about just row and column? (Or even col, as you want). That would have
the advantage of using fewer pixels of width: right now we are using
more than 1100 pixels with my default font. This kind of tutorial is
the kind of thing that people might enjoy reading on small gadgets
with just 800 pixels of width.
>> Also because I feel that block operatios can be deferred for the
>> bigger tutorial. Some basic coeff access and arithmetic should be
>> enough here.
> Yes, I was torn between that and showing that the Eigen API can do some
> non-trivial stuff. It's gone now.
The 2 arithmetic operations shown here are scalar-matrix and
matrix-vector product. It would be nice to throw in some addition for
good measure. Maybe, in the second example, introduce a second vector
w that you set using operator()(index), as it's also very important to
demonstrate this index-based access, and then do m*(v+w) ?
These are just vague ideas, do what you want with them :)
>> ---> actually I think that this short tutorial needs to give a second
>> example with VectorXd.
By the way, since the 1st example doesn't use VectorXd, it doesn't need to do
>> The explanation about the Dense/Core headers can be deferred to the
>> longer tutorial. This room can be used for the VectorXd example, and
>> even, why not, for a 3rd example showing some fixed-size Matrix2d.
> Hmm, I'd like to keep it to two examples. And I'm not sure how necessary it
> is for users to learn about fixed-size types. The main advantage is that
> they're faster, but I think getting the best performance out of Eigen is too
> advanced a topic to treat in the short GettingStarted tutorial.
> In the end, I decided to give a dynamic-size and fixed-size program
> side-by-side, so that we still have only two examples.
Great idea: it's even better!
I feel that having the fixed-size version is really useful to get a
feel that Eigen is not just about dynamic-size objects, and also keep
in mind that the question "does Eigen allow fixed sizes and how do I
do it" is one that 50% of our users will be most interested in right
away (and they would discard Eigen if they grew the impression that it
was yet another lib that focuses primarily on dynamic size).
There is a tiny discrepancy between 'program' and 'example':
Explanation of the first program
Explanation of the second example