Skip to content

Commit 0ae1a94

Browse files
committed
test increase tolerance
1 parent db9c300 commit 0ae1a94

4 files changed

Lines changed: 29 additions & 29 deletions

File tree

test/g100i.ijs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ NB. +/ D ----------------------------------------------------------------
7676

7777
plus=: 4 : 'x+y'
7878

79-
(+/ -:!.1e_11 plus/ ) x=:0.01*_1e9+? 11$2e9 NB. comparison not close because of different orders of operations
80-
(+/ -:!.1e_11 plus/ ) x=:0.01*_1e9+?4 11$2e9
81-
(+/"1 -:!.1e_11 plus/"1) x
82-
(+/ -:!.1e_11 plus/ ) x=:0.01*_1e9+?7 5 11$2e9
83-
(+/"1 -:!.1e_11 plus/"1) x
84-
(+/"2 -:!.1e_11 plus/"2) x
85-
(+/ -:!.1e_11 plus/ )@> x=:(0.01*_1e9+2e9 ?@$~ ])&.> 4 ,&.>/ >: i. 100
86-
(+/ -:!.1e_11 plus/ )@> x=:(0.01*_1e9+2e9 ?@$~ ])&.> >: i. 100
79+
(+/ -:!.5e_11 plus/ ) x=:0.01*_1e9+? 11$2e9 NB. comparison not close because of different orders of operations
80+
(+/ -:!.5e_11 plus/ ) x=:0.01*_1e9+?4 11$2e9
81+
(+/"1 -:!.5e_11 plus/"1) x
82+
(+/ -:!.5e_11 plus/ ) x=:0.01*_1e9+?7 5 11$2e9
83+
(+/"1 -:!.5e_11 plus/"1) x
84+
(+/"2 -:!.5e_11 plus/"2) x
85+
(+/ -:!.5e_11 plus/ )@> x=:(0.01*_1e9+2e9 ?@$~ ])&.> 4 ,&.>/ >: i. 100
86+
(+/ -:!.5e_11 plus/ )@> x=:(0.01*_1e9+2e9 ?@$~ ])&.> >: i. 100
8787

8888
NB. +/!.0 D ----------------------------------------------------------------
8989

@@ -107,12 +107,12 @@ NB. +/ Z ----------------------------------------------------------------
107107

108108
plus=: 4 : 'x+y'
109109

110-
(+/ -:!.1e_11 plus/ ) x=:j./0.01*_1e9+?2 11$2e9
111-
(+/ -:!.1e_11 plus/ ) x=:j./0.01*_1e9+?2 4 11$2e9
112-
(+/"1 -:!.1e_11 plus/"1) x
113-
(+/ -:!.1e_11 plus/ ) x=:j./0.01*_1e9+?2 7 5 11$2e9
114-
(+/"1 -:!.1e_11 plus/"1) x
115-
(+/"2 -:!.1e_11 plus/"2) x
110+
(+/ -:!.5e_11 plus/ ) x=:j./0.01*_1e9+?2 11$2e9
111+
(+/ -:!.5e_11 plus/ ) x=:j./0.01*_1e9+?2 4 11$2e9
112+
(+/"1 -:!.5e_11 plus/"1) x
113+
(+/ -:!.5e_11 plus/ ) x=:j./0.01*_1e9+?2 7 5 11$2e9
114+
(+/"1 -:!.5e_11 plus/"1) x
115+
(+/"2 -:!.5e_11 plus/"2) x
116116

117117

118118
NB. +/ X ----------------------------------------------------------------

test/g520.ijs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ l=.15
66
ix =. l ? c NB. indexes
77
v =. l ?@$ 0 NB. vector values
88
bk=. 0. + i.#M
9-
bkg=.i.#M
10-
cons=.1e_11 1e_6 0.0 0 1. 1.0
11-
Frow=.(1+#M)$_4.
9+
bkg=. i.#M
10+
cons=. 1e_11 1e_6 0.0 0 1. 1.0
11+
Frow=. (1+#M)$_4.
1212
(128!:9) (,c);(,."1 (_2) ]\ 0 , #ix);ix;v;M;bkg;cons;bk;Frow
1313
)
1414

@@ -31,7 +31,7 @@ for_l. >: i. 50 do.
3131
end.
3232
bk =. _2 1 3 1e_8
3333
M =. |: _4 ]\ 0. 1 3 0 0 0.5 3 0 1 0 0 0 0 1e_9 0 0 NB. input by columns
34-
cons=.1e_11 1e_6 0.0 0 1. 1.0 _1 NB. ColThr MinPivot #freepasses #improvements #amounttoimproveby prirow
34+
cons=. 1e_11 1e_6 0.0 0 1. 1.0 _1 NB. ColThr MinPivot #freepasses #improvements #amounttoimproveby prirow
3535
Frow=. _4 _3 _2 _1. 0.
3636
bkg=.i.#M
3737
NB. Test DIP mode - on identity cols
@@ -148,7 +148,7 @@ delth'' NB. make sure we start with an empty system
148148

149149
bk =. _2 1 3 1e_8
150150
M =. |: _4 ]\ 0. 1 2.9 0 0 0.5 3 0 1 0 0 0 0 1e_9 0 0 NB. input by columns
151-
cons=.1e_11 1e_6 0.0 0 1. 1.0 _1 NB. ColThr MinPivot #freepasses #improvements #amounttoimproveby nvirt
151+
cons=. 1e_11 1e_6 0.0 0 1. 1.0 _1 NB. ColThr MinPivot #freepasses #improvements #amounttoimproveby nvirt
152152
Frow=. _4 _3 _2 _1. 0.
153153
bkg=.i.#M
154154
NB. Test DIP mode - on identity cols

test/gpoly.ijs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ test =: 3 : 0
1313
d=: p. r
1414
assert. *./ 1e_6 > c (+/@:|@[ %~ |@]) c p. >{:r
1515
assert. *./ 1e_13 > c %&(+/@:|)~ -/c,:d
16-
assert. (c p. z) -:!.1e_12 r p. z
17-
assert. (c p. z) -:!.1e_11 d p. z
18-
assert. (c p. x) -:!.1e_12 r p. x
19-
assert. (c p. x) -:!.1e_11 d p. x
16+
assert. (c p. z) -:!.5e_11 r p. z
17+
assert. (c p. z) -:!.5e_11 d p. z
18+
assert. (c p. x) -:!.5e_11 r p. x
19+
assert. (c p. x) -:!.5e_11 d p. x
2020
assert. (p. c) -: p. c,0 0 0 0 0
2121
1
2222
)

test/gt.ijs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ p=: (8 %~ _10+?4$20)&p.
8989
q=: (8 %~ _10+?3$20)&p.
9090
sin =: 1&o.
9191
92-
(p@q =!.1e_11 p@q T. 20) x=: (2^ _8)*_200+?30$400
93-
(q@p =!.1e_11 q@p T. 20) x
92+
(p@q =!.5e_11 p@q T. 20) x=: (2^ _8)*_200+?30$400
93+
(q@p =!.5e_11 q@p T. 20) x
9494
95-
(p@sin =!.1e_11 p@sin T. 40) x=: (2^_10)*_600+?30$1200
96-
(q@sin =!.1e_11 q@sin T. 40) x
97-
(p@:^ =!.1e_11 p@:^ T. 40) x
98-
(q@:^ =!.1e_11 q@:^ T. 40) x
95+
(p@sin =!.5e_11 p@sin T. 40) x=: (2^_10)*_600+?30$1200
96+
(q@sin =!.5e_11 q@sin T. 40) x
97+
(p@:^ =!.5e_11 p@:^ T. 40) x
98+
(q@:^ =!.5e_11 q@:^ T. 40) x
9999
100100
101101
NB. %@f t. -------------------------------------------------------------

0 commit comments

Comments
 (0)