openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] ImathTest Failure


From: Florian Kainz
Subject: Re: [Openexr-devel] ImathTest Failure
Date: Tue, 03 Aug 2004 18:23:46 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314

Florian Kainz wrote:
Hi Dan,

I think there is a bug in testRandomAngles33(); the acceptable
error limit is too low.  If extractEuler(), which is called from
testRandomAngles33(), performs all its computations in single
precision, the assertion in line 229 of testExtractEuler.cpp fails.
On most systems, extractEuler() appears to compute a double-precision
arc tangent, and the assertion holds even with a very low error limit.

The Imath confidence tests should succeed if you change line 217 in
testExtractEuler.cpp to

    float eps = 180.0 * 5.0 * limits<float>::epsilon();

Hope this helps,

Florian



Correction:

The new error limit given above is too high.
Line 217 of testExtractEuler.cpp should read:

    float eps = 8.0 * limits<float>::epsilon();






reply via email to

[Prev in Thread] Current Thread [Next in Thread]