-
Notifications
You must be signed in to change notification settings - Fork 40
Unit test for grpstats fails on i368 #403
Copy link
Copy link
Closed
Description
One of the unit tests for grpstats fails on an i368 system, producing this error message:
octave:5> test grpstats
***** test
## large sample predci
x = (1:50)';
g = [ones(25, 1); 2 * ones(25, 1)];
ci = grpstats (x, g, 'predci');
expected = [-2.49070107176829 28.4907010717683; 22.5092989282317 ...
53.4907010717683];
assert (ci, expected, 1e-14);
!!!!! test failed
ASSERT errors for: assert (ci,expected,1e-14)
Location | Observed | Expected | Reason
(2,1) 22.5093 22.5093 Abs err 1.4211e-14 exceeds tol 1e-14 by 4e-15
(1,2) 28.4907 28.4907 Abs err 1.4211e-14 exceeds tol 1e-14 by 4e-15
(2,2) 53.4907 53.4907 Abs err 1.4211e-14 exceeds tol 1e-14 by 4e-15
It works on all other architectures supported by Debian.
If it would help with the diagnosis, here is a more detailed breakdown of the above issue:
octave:4> x = (1:50)';
octave:5> g = [ones(25, 1); 2 * ones(25, 1)];
octave:6> grpstats (x, g, 'predci') - [-2.49070107176829 28.4907010717683; 22.5092989282317 53.4907010717683]
ans =
4.884981308350689e-15 -1.421085471520200e-14
1.421085471520200e-14 -1.421085471520200e-14
For comparison, the following was obtained on an amd64 system:
octave:4> x = (1:50)';
octave:5> g = [ones(25, 1); 2 * ones(25, 1)];
octave:6> grpstats (x, g, 'predci') - [-2.49070107176829 28.4907010717683; 22.5092989282317 53.4907010717683]
ans =
-3.9968e-15 -7.1054e-15
7.1054e-15 -7.1054e-15
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels