Re: [eigen] Problem extending MatrixBase |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Problem extending MatrixBase
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Sun, 17 Jan 2010 12:42:22 -0500
- 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=8V+/eJR7p/whf6yH7xs26wgxA1jguXWsTzLOYvULgfI=; b=JBBDKjNczyqLJgYHkzMHhw66Hr6Hiywz2YuxBR2Zu6Spj0jknz8G5iLxyffCo/qscD e/drzs91ejz+u+d+BYA8mBDiwSMGPHu7u1uiKjPsXiINIPL4FHay9Ffp7aIGl85Xrwot 2iH5HEB92t1NYZpyzWEzQr4+aM4HgvP7L7opI=
- 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=WBkaS/BNB6OHj58JsG7ChJoFXdunXzForsdvorARKzo3xIqDt1CVuPQCk911NmyQJT 7SrrOmD1w+r590qRD/JcQ6wg9/6JKIWD51wwfjVA20aua/zfpDuS73VfvfVzE1MDPbmO scEOIjHWNfA6VFf7X+psHh/RsFnQGb0+y7zD0=
Le 17 janvier 2010 05:46, Raphaël Poncet <raphael.poncet@xxxxxxxxx> a écrit :
> Hello list,
>
> I'm running into problems while trying to extending MatrixBase as explained
> in the wiki:
> http://eigen.tuxfamily.org/dox/CustomizingEigen.html#ExtendingMatrixBase
>
> I copied/pasted MatrixBaseAddons.h in my working directory. This code
> doesn't compile
> (with g++-4.4 or g++-4.3, using Eigen 2.0.5, the version packaged in my
> Ubuntu distro) :
[snip]
>
> However, If i comment out the last 2 declarations in MatrixBaseAddons.h (the
> ones with operator+),
> it does compile. What am I doing wrong ?
Nothing it seems, I am really puzzled. I fixed an error in our
example, there was a missing semicolon, but that wasn't it. I don't
understand what ConstantReturnType has to do with it.
>
> P.S. Btw, I want to extend MatrixBase because I'm only using Array
> capabilities in Eigen
> in my code atm, and want to get rid of all the cwise()
Then why don't you give the development branch a try. It has a Array
class where all operations are implicitly cwise.
Benoit