Re: [eigen] matrix exponential with c++0x |

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] matrix exponential with c++0x*From*: Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>*Date*: Wed, 2 Dec 2009 21:45:41 +0100*Dkim-signature*: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=BbElA+dFqtzFZISdef445epSy8+55lWDXqXzjVeRB1c=; b=NyGsmfOmTVnjg3tAutjSrAPV+dJ+9ObsD/J3B0qgdCeChCdLGLhuU7yhOGBhGRPqyk JvjSGcGclTiJBH2H18FZL3SxtgWF/IL6lJGuIE7m0jGCRPYuqnlE5ztV7mhX1PTNpOEk 4mWrc528b5nXbxVqOvkUTfeki9ElCt84EdlcA=*Domainkey-signature*: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=wbbYYHu8GjB3TWtc6T2lRIPvRTwlr41EWyJjracRpjYdgAjM9mwwbBXwD0DTMqw0Gz v4GLcg0POdXybhWtR8fK+agHFn29h9FGrwA4m5h6Z/lLxf6r5bGkHVTZuptIJjUVcANX vPAVkOzwv4MC/vnI4/FhI7z4Hdtoxvb6F7zEg=

Two things...

First, I wonder whether it is important to rename the tempalte parameters of NumericalDiff? Did they lead to a compilation error too?

Second, I think we (might) need a comment from Mark whether M_PIl is really required.

I think defining M_PIl as what is usually defined as M_PI is not a good solution - ok, its just a unit test but anyways.

If we really need M_PIl then we might do

#if !define(M_PIl)

#define M_PIl 3.1415926535897932384626433832795029L

#endif

Cheers,

Hauke

2009/12/2 Björn Piltz <bjornpiltz@xxxxxxxxxxxxxx>

M_LOG2_E and M_PI (much less M_PIl) have never been defined in MSVC's stl afaik.pow() has also been problematic since pow(double/float, int) wasn't defined in earlier versions, making "pow(2.0, 2)" not compile.Right now some tests in unsupported don't compile. I'm attaching a patch.

2009/11/30 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>2009/11/30 Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>:

Everybody: Do *not* click on the following links,> On Mon, Nov 30, 2009 at 2:37 PM, mmoll <Markus.Moll@xxxxxxxxxxxxxxxx> wrote:

>>

>> Hi

>>

>> Quoting Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>:

>>

>> > First, M_LOG2_E suddenly was not defined anymore so I added

>> >

>> > #if defined(log2) && !defined(M_LOG2_E)

>> > #define M_LOG2_E 0.693147180559945309417

>> > #endif

>>

>> As far as I know, M_LOG2_E was never standard? (not mentioned in C++98

>> or C99)

>

> Can you cite the exact draft and versions you have been looking at? I cannot

> even find M_PI.

>

> I was just looking since I found M_PIl (the last letter is an L for long) in

> one of our tests and as with M_LOG2_E it is not defined over here...

http://download.tuxfamily.org/eigen/Cxx98.pdf

http://download.tuxfamily.org/eigen/Cxx03.pdf

as that *might* trigger an unauthorized download of copyrighted

material, which would obviously have the effect of putting the ISO out

of business and halting all further development of the C++ language

specification.

Thanks for your attention,

your friendly copyright enforcement agent.

**Follow-Ups**:**Re: [eigen] matrix exponential with c++0x***From:*Mark Borgerding

**References**:**Re: [eigen] matrix exponential with c++0x***From:*Björn Piltz

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Eigen and rigid body simulation** - Next by Date:
**Re: [eigen] matrix exponential with c++0x** - Previous by thread:
**Re: [eigen] matrix exponential with c++0x** - Next by thread:
**Re: [eigen] matrix exponential with c++0x**

Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |