|Re: [eigen] Proposal: documentation for Eigen3|
[ Thread Index |
| More lists.tuxfamily.org/eigen Archives
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Proposal: documentation for Eigen3
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Sat, 5 Jun 2010 11:23:27 -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=cjDeABZham8gBnRW01KVThV6PQDOO/BtIclifenYBN0=; b=vqKGGW96HAriqfYktZFvs74We+eHLnOOh1IWlrxBCOgBgrzC30o9HGNohEmYzEoCmP WhS7tJ3mHVhMfw1D+4BhOCTsbHgFT60DF1RlX4vl3SkkvQceO5S2skcQOA7kS+2NY0a+ T/Hj85xPNUqqiFfsYZTdoB2doJtEOfbFEQ6i8=
- 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=EQ7TwiAbPkfCLaoXNUApINHh4VctzYJ58+AHsSlVQJR8I5cK4ry1z417s8kSJCcTRG WmYUNncD6s5y+Bb09MbULzCnJMnLZVj/xmYKjYyZXIEv363vr+IvTTIomQHiQ0S96u1g NoGuajWv5m3IvCPxnQVzKyn36hBuz+bEGkjb4=
2010/6/5 David Roundy <roundyd@xxxxxxxxxxxxxxxxxxxxxxx>:
> I've just recently started using eigen2 (and I've been lurking on this
> list for a while), so I can't add much in the way of documentation
> suggestions for eigen3, but thought I'd add a bit of what I've found
> missing in the eigen2 documentation.
> There isn't any discussion of how to create one's own classes. In
> particular, I'd like to create a class that inherits from MatrixBase
> (or whatever is necessary) such that I can do arithmetic on this
> class. It's mostly going to be a large array, but will also contain a
> bit of metadata. I could, of course, include the array as a data
> member, but then I wouldn't be able to do vector arithmetic on the
> objects directly, which would uglify the code.
That's right, we should add a page on writing one's own expression
classes. That goes into 4) in my proposal. In the special case where
you just want to inherit from Matrix, there is some doc there:
> I also wonder if there is a way to create classes such as subclasses
> of Vector3d, which retain their distinct identity, so you couldn't add
> together two different such classes.
Vector3d is a specialization of Matrix, so, see above link. I agree
that we need more docs in that area.