diff options
author | torset | 2009-02-27 13:59:12 +0000 |
---|---|---|
committer | torset | 2009-02-27 13:59:12 +0000 |
commit | 6e7f75a3a916ae7b7b6145c0badad7b649265c0f (patch) | |
tree | d6150181ae1536cf65d4a1a873345a7e7e8e8f50 /src/matrixOperations/eye/testMatrixEye.c | |
parent | 05fb6a62c83ae7cea37aa2795e61697b3560f135 (diff) | |
download | scilab2c-6e7f75a3a916ae7b7b6145c0badad7b649265c0f.tar.gz scilab2c-6e7f75a3a916ae7b7b6145c0badad7b649265c0f.tar.bz2 scilab2c-6e7f75a3a916ae7b7b6145c0badad7b649265c0f.zip |
change precision for tests : put it to 3e-16 for double and 3e-6 for float
Diffstat (limited to 'src/matrixOperations/eye/testMatrixEye.c')
-rw-r--r-- | src/matrixOperations/eye/testMatrixEye.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/matrixOperations/eye/testMatrixEye.c b/src/matrixOperations/eye/testMatrixEye.c index e47edcf3..a3682743 100644 --- a/src/matrixOperations/eye/testMatrixEye.c +++ b/src/matrixOperations/eye/testMatrixEye.c @@ -45,7 +45,7 @@ static void deyeaTest ( void ) if ( in[i] < 1e-14 && result < 1e-14 ) assert(1); else - assert ( fabs ( in[i] - result) / fabs( in[i]) < 1e-14 ) ; + assert ( fabs ( in[i] - result) / fabs( in[i]) < 3e-16 ) ; } deyea ( in2, ROWS, COLS ); @@ -65,7 +65,7 @@ static void deyeaTest ( void ) if ( in[i * ROWS + j] < 1e-14 && result < 1e-14 ) assert(1); else - assert ( fabs ( in[i * ROWS + j] - result) / fabs( in[i * ROWS + j]) < 1e-14 ) ; + assert ( fabs ( in[i * ROWS + j] - result) / fabs( in[i * ROWS + j]) < 3e-16 ) ; } } @@ -86,7 +86,7 @@ static void deyeaTest ( void ) if ( in3[j * ROWS2 + i] < 1e-14 && result < 1e-14 ) assert(1); else - assert ( fabs ( in3[j * ROWS2 + i] - result) / fabs( in3[j * ROWS2 + i]) < 1e-14 ) ; + assert ( fabs ( in3[j * ROWS2 + i] - result) / fabs( in3[j * ROWS2 + i]) < 3e-16 ) ; } } @@ -185,7 +185,7 @@ static void zeyeaTest ( void ) if ( zreals( in[i]) < 1e-14 && zreals( result) < 1e-14 ) assert(1); else - assert ( fabs ( zreals(in[i]) - zreals(result)) / fabs( zreals(in[i])) < 1e-14 ) ; + assert ( fabs ( zreals(in[i]) - zreals(result)) / fabs( zreals(in[i])) < 3e-16) ; if ( zimags ( in[i]) < 1e-14 ) assert (1); |