openexr-devel
[Top][All Lists]
Advanced

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

Re: [Openexr-devel] ImathTest Failure


From: Daniel A. Fort
Subject: Re: [Openexr-devel] ImathTest Failure
Date: Tue, 3 Aug 2004 08:58:41 -0700 (PDT)

Hi Florian,

> In file testExtractEuler.cpp, just before line 229, which reads
>
>     assert (Imath::equal (angle, angleEx, eps));
>
> insert these print statements:
>
>     cout << setprecision (10);
>     cout << M << endl;
>     cout << "angle " << angle << endl;
>     cout << "angleEx " << angleEx << endl;
>     cout << "eps " << eps << endl;
>
> then re-run the confidence test
....
> Please send me the last 20 lines of the output before the assertion
> failure.
>
The whole ImathTest portion isn't all that long so here it is after adding
those lines of code:
Testing functions in ImathFun.h
floor
ceil
trunc
divs / mods
divp / modp
successor, predecessor

f 0
sf 1.40129846e-45
pf -1.40129846e-45
spf -0
psf 0

f -0
sf 1.40129846e-45
pf -1.40129846e-45
spf -0
psf 0

f 1
sf 1.00000012
pf 0.99999994
spf 1
psf 1

f -1
sf -0.99999994
pf -1.00000012
spf -1
psf -1

f 16
sf 16.0000019
pf 15.999999
spf 16
psf 16

f 7
sf 7.00000048
pf 6.99999952
spf 7
psf 7

f 0.699999988
sf 0.700000048
pf 0.699999928
spf 0.699999988
psf 0.699999988

f inf
sf inf
pf inf
spf inf
psf inf

f nan
sf nan
pf nan
spf nan
psf nan

f 3.40282347e+38
sf inf
pf 3.40282326e+38
spf 3.40282347e+38
psf inf

f -3.40282347e+38
sf -3.40282326e+38
pf -inf
spf -inf
psf -3.40282347e+38

d 0
sd 4.94065645841246544e-324
pd -4.94065645841246544e-324
spd -9.88131291682493088e-324
psd 0

d -0
sd 4.94065645841246544e-324
pd -4.94065645841246544e-324
spd -9.88131291682493088e-324
psd 0

d 1
sd 1.00000000000000022
pd 0.999999999999999889
spd 1
psd 1

d -1
sd -1.00000000000000022
pd -0.999999999999999889
spd -1
psd -1

d 16
sd 16.0000000000000036
pd 15.9999999999999982
spd 16
psd 16

d 7
sd 7.00000000000000089
pd 6.99999999999999911
spd 7
psd 7

d 0.699999999999999956
sd 0.700000000000000067
pd 0.699999999999999845
spd 0.699999999999999956
psd 0.699999999999999956

d inf
sd inf
pd inf
spd inf
psd inf

d nan
sd nan
pd nan
spd nan
psd nan

d 1.79769313486231571e+308
sd inf
pd 1.79769313486231551e+308
spd 1.79769313486231571e+308
psd inf

d -1.79769313486231571e+308
sd -inf
pd -1.79769313486231551e+308
spd -1.79769313486231571e+308
psd -inf
ok

Testing 4x4 and 3x3 matrix inversion:
M44f
M33f
ok

Testing functions in ImathFrustum.h
perspective 123
exceptions 123
orthographic 1
ok

Testing random number generators
Rand32
  values
  differences between successive values
Rand48
  values
  differences between successive values
solidSphereRand()
hollowSphereRand()
ok

Testing extraction of rotation angle from 3x3 matrices
( -9.3254399300e-01  -3.6105635762e-01   0.0000000000e+00
   3.6105635762e-01  -9.3254399300e-01   0.0000000000e+00
   0.0000000000e+00   0.0000000000e+00   1.0000000000e+00)

angle -2.77219224
angleEx -2.772191525
eps 5.960464478e-07
lt-ImathTest: testExtractEuler.cpp:237: void
<unnamed>::testRandomAngles33(): Assertion `Imath::equal (angle, angleEx,
eps)' failed.FAIL: ImathTest
===================
1 of 1 tests failed
===================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/home/dfort/OpenEXR-1.2.1/ImathTest'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/home/dfort/OpenEXR-1.2.1/ImathTest'
make: *** [check-recursive] Error 1

> Also, can you make the error go away by changing the optimization
> level (-O0, -O1, -O2)?

I'll try that after work tonight.

Thanks!

--Dan










reply via email to

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