content
stringlengths 5
1.03M
| input_ids
sequencelengths 4
823k
| ratio_char_token
float64 0.4
12.5
| token_count
int64 4
823k
|
---|---|---|---|
push!(LOAD_PATH,"../../src/")
import UNSflow
alpha_init = 10. *pi/180
alphadot_init = 0.
h_init = 0.
hdot_init = 0.
u = 0.467
udot = 0
kinem = UNSflow.KinemPar2DOF(alpha_init, h_init, alphadot_init, hdot_init, u)
x_alpha = 0.05
r_alpha = 0.5
kappa = 0.05
w_alpha = 1.
w_h = 1.
w_alphadot = 0.
w_hdot = 0.
cubic_h_1 = 1.
cubic_h_3 = 0.
cubic_alpha_1 = 1.
cubic_alpha_3 = 0.
strpar = UNSflow.TwoDOFPar(x_alpha, r_alpha, kappa, w_alpha, w_h, w_alphadot, w_hdot, cubic_h_1, cubic_h_3, cubic_alpha_1, cubic_alpha_3)
#Dummy kinematic definitions to initialise surface
alphadef = UNSflow.ConstDef(alpha_init)
hdef = UNSflow.ConstDef(h_init)
udef = UNSflow.ConstDef(1.) #This is relative to uref
startkinem = UNSflow.KinemDef(alphadef, hdef, udef)
lespcrit = [0.11;]
pvt = 0.35
c = 1.
surf = UNSflow.TwoDSurf("FlatPlate", pvt, startkinem, lespcrit, c=c, uref=u)
curfield = UNSflow.TwoDFlowField()
dtstar = 0.015
nsteps = 50000
t_tot = nsteps * dtstar / u
startflag = 0
writeflag = 0
writeInterval = dtstar * nsteps/20.
writeInterval = t_tot/20.
delvort = UNSflow.delSpalart(500, 12, 1e-5)
mat, surf, curfield = UNSflow.ldvm2DOF(surf, curfield, strpar, kinem, nsteps, dtstar,startflag, writeflag, writeInterval, delvort)
UNSflow.makeForcePlots2D()
#cleanWrite()
| [
14689,
0,
7,
35613,
62,
34219,
553,
40720,
40720,
10677,
14,
4943,
198,
11748,
4725,
50,
11125,
198,
198,
26591,
62,
15003,
796,
838,
13,
1635,
14415,
14,
15259,
198,
17307,
324,
313,
62,
15003,
796,
657,
13,
198,
71,
62,
15003,
796,
657,
13,
198,
71,
26518,
62,
15003,
796,
657,
13,
198,
84,
796,
657,
13,
24669,
198,
463,
313,
796,
657,
198,
5116,
368,
796,
4725,
50,
11125,
13,
42,
7749,
10044,
17,
18227,
37,
7,
26591,
62,
15003,
11,
289,
62,
15003,
11,
435,
746,
324,
313,
62,
15003,
11,
289,
26518,
62,
15003,
11,
334,
8,
198,
198,
87,
62,
26591,
796,
657,
13,
2713,
198,
81,
62,
26591,
796,
657,
13,
20,
198,
74,
20975,
796,
657,
13,
2713,
198,
86,
62,
26591,
796,
352,
13,
198,
86,
62,
71,
796,
352,
13,
198,
86,
62,
17307,
324,
313,
796,
657,
13,
198,
86,
62,
71,
26518,
796,
657,
13,
198,
66,
549,
291,
62,
71,
62,
16,
796,
352,
13,
198,
66,
549,
291,
62,
71,
62,
18,
796,
657,
13,
198,
66,
549,
291,
62,
26591,
62,
16,
796,
352,
13,
198,
66,
549,
291,
62,
26591,
62,
18,
796,
657,
13,
198,
2536,
1845,
796,
4725,
50,
11125,
13,
7571,
18227,
5837,
283,
7,
87,
62,
26591,
11,
374,
62,
26591,
11,
479,
20975,
11,
266,
62,
26591,
11,
266,
62,
71,
11,
266,
62,
17307,
324,
313,
11,
266,
62,
71,
26518,
11,
27216,
62,
71,
62,
16,
11,
27216,
62,
71,
62,
18,
11,
27216,
62,
26591,
62,
16,
11,
27216,
62,
26591,
62,
18,
8,
198,
198,
2,
35,
13513,
479,
7749,
1512,
17336,
284,
4238,
786,
4417,
198,
17307,
671,
69,
796,
4725,
50,
11125,
13,
34184,
7469,
7,
26591,
62,
15003,
8,
198,
71,
4299,
796,
4725,
50,
11125,
13,
34184,
7469,
7,
71,
62,
15003,
8,
198,
463,
891,
796,
4725,
50,
11125,
13,
34184,
7469,
7,
16,
2014,
1303,
1212,
318,
3585,
284,
334,
5420,
198,
9688,
5116,
368,
796,
4725,
50,
11125,
13,
42,
7749,
7469,
7,
17307,
671,
69,
11,
289,
4299,
11,
334,
4299,
8,
198,
198,
829,
14751,
799,
796,
685,
15,
13,
1157,
26,
60,
198,
198,
79,
36540,
796,
657,
13,
2327,
198,
198,
66,
796,
352,
13,
198,
198,
11793,
69,
796,
4725,
50,
11125,
13,
7571,
5258,
333,
69,
7203,
7414,
265,
3646,
378,
1600,
279,
36540,
11,
923,
5116,
368,
11,
300,
9774,
22213,
11,
269,
28,
66,
11,
334,
5420,
28,
84,
8,
198,
198,
22019,
3245,
796,
4725,
50,
11125,
13,
7571,
35,
37535,
15878,
3419,
198,
198,
28664,
7364,
796,
657,
13,
25150,
198,
198,
77,
20214,
796,
642,
2388,
198,
198,
83,
62,
83,
313,
796,
299,
20214,
1635,
288,
83,
7364,
1220,
334,
198,
198,
9688,
32109,
796,
657,
198,
198,
13564,
32109,
796,
657,
198,
13564,
9492,
2100,
796,
288,
83,
7364,
1635,
299,
20214,
14,
1238,
13,
198,
198,
13564,
9492,
2100,
796,
256,
62,
83,
313,
14,
1238,
13,
198,
198,
12381,
85,
419,
796,
4725,
50,
11125,
13,
12381,
4561,
282,
433,
7,
4059,
11,
1105,
11,
352,
68,
12,
20,
8,
198,
198,
6759,
11,
9053,
11,
1090,
3245,
796,
4725,
50,
11125,
13,
335,
14761,
17,
18227,
37,
7,
11793,
69,
11,
1090,
3245,
11,
965,
1845,
11,
479,
7749,
11,
299,
20214,
11,
288,
83,
7364,
11,
9688,
32109,
11,
3551,
32109,
11,
3551,
9492,
2100,
11,
1619,
85,
419,
8,
198,
198,
4944,
50,
11125,
13,
15883,
10292,
3646,
1747,
17,
35,
3419,
198,
198,
2,
27773,
16594,
3419,
198
] | 2.125418 | 598 |
struct DoFHandler{N,T}
DoF::Vector{NTuple{N,T}}
nDofs::T
end
Base.getindex(a::DoFHandler, I::Int64) = a.DoF[I]
Base.getindex(a::DoFHandler, I::Int32) = a.DoF[I]
Base.getindex(a::DoFHandler, I::Int8) = a.DoF[I]
function DoFs_Thermal(EL2NOD, nnodel)
DoF = [ntuple(j->EL2NOD[j,i], nnodel) for i in axes(EL2NOD,2)]
nDofs = maximum(view(EL2NOD,1:nnodel,:))
DoFHandler(DoF,nDofs)
end
function DoFs_Pressure(e2nP)
DoF = [ntuple(j->e2nP[j,i],3) for i in axes(e2nP,2)]
nDofs = maximum(e2nP)
DoFHandler(DoF, nDofs)
end
function DoFs_Velocity(EL2NOD)
dummy = Matrix{Int64}(undef, size(EL2NOD, 2), 12)
@views dummy[:, 1:2:end] .= (@. 2*(EL2NOD-1)+1)'
@views dummy[:, 2:2:end] .= (@. 2*(EL2NOD))'
DoF = [ntuple(j->dummy[i,j], 12) for i in axes(EL2NOD,2)]
nDofs = maximum(EL2NOD)*2
DoFHandler(DoF,nDofs)
end
| [
7249,
2141,
37,
25060,
90,
45,
11,
51,
92,
198,
220,
220,
220,
2141,
37,
3712,
38469,
90,
11251,
29291,
90,
45,
11,
51,
11709,
198,
220,
220,
220,
299,
35,
1659,
82,
3712,
51,
198,
437,
198,
198,
14881,
13,
1136,
9630,
7,
64,
3712,
5211,
37,
25060,
11,
314,
3712,
5317,
2414,
8,
796,
257,
13,
5211,
37,
58,
40,
60,
198,
14881,
13,
1136,
9630,
7,
64,
3712,
5211,
37,
25060,
11,
314,
3712,
5317,
2624,
8,
796,
257,
13,
5211,
37,
58,
40,
60,
198,
14881,
13,
1136,
9630,
7,
64,
3712,
5211,
37,
25060,
11,
314,
3712,
5317,
23,
8,
796,
257,
13,
5211,
37,
58,
40,
60,
198,
198,
8818,
2141,
42388,
62,
35048,
7617,
7,
3698,
17,
45,
3727,
11,
299,
77,
375,
417,
8,
198,
220,
220,
220,
2141,
37,
796,
685,
429,
29291,
7,
73,
3784,
3698,
17,
45,
3727,
58,
73,
11,
72,
4357,
299,
77,
375,
417,
8,
329,
1312,
287,
34197,
7,
3698,
17,
45,
3727,
11,
17,
15437,
198,
220,
220,
220,
299,
35,
1659,
82,
796,
5415,
7,
1177,
7,
3698,
17,
45,
3727,
11,
16,
25,
20471,
375,
417,
11,
25,
4008,
198,
220,
220,
220,
2141,
37,
25060,
7,
5211,
37,
11,
77,
35,
1659,
82,
8,
198,
437,
198,
198,
8818,
2141,
42388,
62,
13800,
495,
7,
68,
17,
77,
47,
8,
198,
220,
220,
220,
2141,
37,
796,
685,
429,
29291,
7,
73,
3784,
68,
17,
77,
47,
58,
73,
11,
72,
4357,
18,
8,
329,
1312,
287,
34197,
7,
68,
17,
77,
47,
11,
17,
15437,
198,
220,
220,
220,
299,
35,
1659,
82,
796,
5415,
7,
68,
17,
77,
47,
8,
198,
220,
220,
220,
2141,
37,
25060,
7,
5211,
37,
11,
299,
35,
1659,
82,
8,
198,
437,
198,
198,
8818,
2141,
42388,
62,
46261,
11683,
7,
3698,
17,
45,
3727,
8,
198,
220,
220,
220,
31548,
796,
24936,
90,
5317,
2414,
92,
7,
917,
891,
11,
2546,
7,
3698,
17,
45,
3727,
11,
362,
828,
1105,
8,
198,
220,
220,
220,
2488,
33571,
31548,
58,
45299,
352,
25,
17,
25,
437,
60,
764,
28,
4275,
13,
362,
9,
7,
3698,
17,
45,
3727,
12,
16,
47762,
16,
33047,
198,
220,
220,
220,
2488,
33571,
31548,
58,
45299,
362,
25,
17,
25,
437,
60,
764,
28,
4275,
13,
362,
9,
7,
3698,
17,
45,
3727,
4008,
6,
628,
220,
220,
220,
2141,
37,
796,
685,
429,
29291,
7,
73,
3784,
67,
13513,
58,
72,
11,
73,
4357,
1105,
8,
329,
1312,
287,
34197,
7,
3698,
17,
45,
3727,
11,
17,
15437,
198,
220,
220,
220,
299,
35,
1659,
82,
796,
5415,
7,
3698,
17,
45,
3727,
27493,
17,
198,
220,
220,
220,
2141,
37,
25060,
7,
5211,
37,
11,
77,
35,
1659,
82,
8,
198,
437,
198
] | 1.826923 | 468 |
using AbstractTrees
using Test
@testset "Array" begin
tree = Any[1,Any[2,3]]
@test collect(Leaves(tree)) == [1,2,3]
@test collect(Leaves(tree)) isa Vector{Int}
@test collect(PostOrderDFS(tree)) == Any[1,2,3,Any[2,3],Any[1,Any[2,3]]]
@test collect(StatelessBFS(tree)) == Any[Any[1,Any[2,3]],1,Any[2,3],2,3]
@test treesize(tree) == 5
@test treebreadth(tree) == 3
@test treeheight(tree) == 2
@test ischild(1, tree)
@test !ischild(2, tree)
@test ischild(tree[2], tree)
@test !ischild(copy(tree[2]), tree) # Should work on identity, not equality
@test isdescendant(1, tree)
@test isdescendant(2, tree)
@test !isdescendant(4, tree)
@test isdescendant(tree[2], tree)
@test !isdescendant(copy(tree[2]), tree)
@test !isdescendant(tree, tree)
@test intree(1, tree)
@test intree(2, tree)
@test !intree(4, tree)
@test intree(tree[2], tree)
@test !intree(copy(tree[2]), tree)
@test intree(tree, tree)
tree2 = Any[Any[1,2],Any[3,'4']]
@test collect(PreOrderDFS(tree2)) == Any[tree2,Any[1,2],1,2,Any[3,'4'],3,'4']
@test treesize(tree2) == 7
@test treebreadth(tree2) == 4
@test treeheight(tree2) == 2
tree3 = []
for itr in [Leaves, PreOrderDFS, PostOrderDFS]
@test collect(itr(tree3)) == [tree3]
end
@test treesize(tree3) == 1
@test treebreadth(tree3) == 1
@test treeheight(tree3) == 0
@test collect(PostOrderDFS([])) == Any[[]]
end
@testset "Pair" begin
tree = 1=>(3=>4)
@test collect(PreOrderDFS(tree)) == Any[tree, tree.second, 4]
end
@testset "Expr" begin
expr = :(foo(x^2 + 3))
@test children(expr) == expr.args
@test collect(Leaves(expr)) == [:foo, :+, :^, :x, 2, 3]
end
@testset "Array-Dict" begin
t = [1, 2, Dict("a"=>3, "b"=>[4,5])]
@test Set(Leaves(t)) == Set(1:5) # don't want to guarantee ordering because of dict
t = [1, Dict("a"=>2)]
@test collect(Leaves(t)) == [1, 2]
@test collect(PreOrderDFS(t)) == [t, 1, t[2], "a"=>2, 2]
@test collect(PostOrderDFS(t)) == [1, 2, "a"=>2, t[2], t]
end
@testset "treemap" begin
a = [1,[2,[3]]]
f = n -> n isa AbstractArray ? (nothing, children(n)) : (n+1, children(n))
b = treemap(f, a)
@test collect(nodevalues(PreOrderDFS(b))) == [nothing, 2, nothing, 3, nothing, 4]
g = n -> isempty(children(n)) ? (nodevalue(n), ()) : (nothing, [0; children(n)])
b = treemap(g, a)
@test nodevalue.(PostOrderDFS(b)) == [0, 1, 0, 2, 0, 3, nothing, nothing, nothing]
end
| [
3500,
27741,
51,
6037,
198,
3500,
6208,
198,
198,
31,
9288,
2617,
366,
19182,
1,
2221,
198,
220,
220,
220,
5509,
796,
4377,
58,
16,
11,
7149,
58,
17,
11,
18,
11907,
628,
220,
220,
220,
2488,
9288,
2824,
7,
3123,
3080,
7,
21048,
4008,
6624,
685,
16,
11,
17,
11,
18,
60,
198,
220,
220,
220,
2488,
9288,
2824,
7,
3123,
3080,
7,
21048,
4008,
318,
64,
20650,
90,
5317,
92,
198,
220,
220,
220,
2488,
9288,
2824,
7,
6307,
18743,
8068,
50,
7,
21048,
4008,
6624,
4377,
58,
16,
11,
17,
11,
18,
11,
7149,
58,
17,
11,
18,
4357,
7149,
58,
16,
11,
7149,
58,
17,
11,
18,
11907,
60,
198,
220,
220,
220,
2488,
9288,
2824,
7,
9012,
1203,
33,
10652,
7,
21048,
4008,
6624,
4377,
58,
7149,
58,
16,
11,
7149,
58,
17,
11,
18,
60,
4357,
16,
11,
7149,
58,
17,
11,
18,
4357,
17,
11,
18,
60,
628,
220,
220,
220,
2488,
9288,
7150,
1096,
7,
21048,
8,
6624,
642,
198,
220,
220,
220,
2488,
9288,
5509,
29573,
400,
7,
21048,
8,
6624,
513,
198,
220,
220,
220,
2488,
9288,
5509,
17015,
7,
21048,
8,
6624,
362,
628,
220,
220,
220,
2488,
9288,
318,
9410,
7,
16,
11,
5509,
8,
198,
220,
220,
220,
2488,
9288,
5145,
271,
9410,
7,
17,
11,
5509,
8,
198,
220,
220,
220,
2488,
9288,
318,
9410,
7,
21048,
58,
17,
4357,
5509,
8,
198,
220,
220,
220,
2488,
9288,
5145,
271,
9410,
7,
30073,
7,
21048,
58,
17,
46570,
5509,
8,
220,
1303,
10358,
670,
319,
5369,
11,
407,
10537,
628,
220,
220,
220,
2488,
9288,
318,
20147,
23048,
7,
16,
11,
5509,
8,
198,
220,
220,
220,
2488,
9288,
318,
20147,
23048,
7,
17,
11,
5509,
8,
198,
220,
220,
220,
2488,
9288,
5145,
9409,
3798,
23048,
7,
19,
11,
5509,
8,
198,
220,
220,
220,
2488,
9288,
318,
20147,
23048,
7,
21048,
58,
17,
4357,
5509,
8,
198,
220,
220,
220,
2488,
9288,
5145,
9409,
3798,
23048,
7,
30073,
7,
21048,
58,
17,
46570,
5509,
8,
198,
220,
220,
220,
2488,
9288,
5145,
9409,
3798,
23048,
7,
21048,
11,
5509,
8,
628,
220,
220,
220,
2488,
9288,
493,
631,
7,
16,
11,
5509,
8,
198,
220,
220,
220,
2488,
9288,
493,
631,
7,
17,
11,
5509,
8,
198,
220,
220,
220,
2488,
9288,
5145,
600,
631,
7,
19,
11,
5509,
8,
198,
220,
220,
220,
2488,
9288,
493,
631,
7,
21048,
58,
17,
4357,
5509,
8,
198,
220,
220,
220,
2488,
9288,
5145,
600,
631,
7,
30073,
7,
21048,
58,
17,
46570,
5509,
8,
198,
220,
220,
220,
2488,
9288,
493,
631,
7,
21048,
11,
5509,
8,
628,
198,
220,
220,
220,
5509,
17,
796,
4377,
58,
7149,
58,
16,
11,
17,
4357,
7149,
58,
18,
4032,
19,
6,
11907,
198,
220,
220,
220,
2488,
9288,
2824,
7,
6719,
18743,
8068,
50,
7,
21048,
17,
4008,
6624,
4377,
58,
21048,
17,
11,
7149,
58,
16,
11,
17,
4357,
16,
11,
17,
11,
7149,
58,
18,
4032,
19,
6,
4357,
18,
4032,
19,
20520,
628,
220,
220,
220,
2488,
9288,
7150,
1096,
7,
21048,
17,
8,
6624,
767,
198,
220,
220,
220,
2488,
9288,
5509,
29573,
400,
7,
21048,
17,
8,
6624,
604,
198,
220,
220,
220,
2488,
9288,
5509,
17015,
7,
21048,
17,
8,
6624,
362,
628,
198,
220,
220,
220,
5509,
18,
796,
17635,
198,
220,
220,
220,
329,
340,
81,
287,
685,
3123,
3080,
11,
3771,
18743,
8068,
50,
11,
2947,
18743,
8068,
50,
60,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
2824,
7,
270,
81,
7,
21048,
18,
4008,
6624,
685,
21048,
18,
60,
198,
220,
220,
220,
886,
628,
220,
220,
220,
2488,
9288,
7150,
1096,
7,
21048,
18,
8,
6624,
352,
198,
220,
220,
220,
2488,
9288,
5509,
29573,
400,
7,
21048,
18,
8,
6624,
352,
198,
220,
220,
220,
2488,
9288,
5509,
17015,
7,
21048,
18,
8,
6624,
657,
628,
220,
220,
220,
2488,
9288,
2824,
7,
6307,
18743,
8068,
50,
7,
21737,
4008,
6624,
4377,
30109,
11907,
198,
437,
198,
198,
31,
9288,
2617,
366,
47,
958,
1,
2221,
198,
220,
220,
220,
5509,
796,
352,
14804,
7,
18,
14804,
19,
8,
198,
220,
220,
220,
2488,
9288,
2824,
7,
6719,
18743,
8068,
50,
7,
21048,
4008,
6624,
4377,
58,
21048,
11,
5509,
13,
12227,
11,
604,
60,
198,
437,
198,
198,
31,
9288,
2617,
366,
3109,
1050,
1,
2221,
198,
220,
220,
220,
44052,
796,
36147,
21943,
7,
87,
61,
17,
1343,
513,
4008,
628,
220,
220,
220,
2488,
9288,
1751,
7,
31937,
8,
6624,
44052,
13,
22046,
628,
220,
220,
220,
2488,
9288,
2824,
7,
3123,
3080,
7,
31937,
4008,
6624,
685,
25,
21943,
11,
1058,
28200,
1058,
61,
11,
1058,
87,
11,
362,
11,
513,
60,
198,
437,
198,
198,
31,
9288,
2617,
366,
19182,
12,
35,
713,
1,
2221,
198,
220,
220,
220,
256,
796,
685,
16,
11,
362,
11,
360,
713,
7203,
64,
1,
14804,
18,
11,
366,
65,
1,
14804,
58,
19,
11,
20,
12962,
60,
198,
220,
220,
220,
2488,
9288,
5345,
7,
3123,
3080,
7,
83,
4008,
6624,
5345,
7,
16,
25,
20,
8,
220,
1303,
836,
470,
765,
284,
9149,
16216,
780,
286,
8633,
628,
220,
220,
220,
256,
796,
685,
16,
11,
360,
713,
7203,
64,
1,
14804,
17,
15437,
198,
220,
220,
220,
2488,
9288,
2824,
7,
3123,
3080,
7,
83,
4008,
6624,
685,
16,
11,
362,
60,
198,
220,
220,
220,
2488,
9288,
2824,
7,
6719,
18743,
8068,
50,
7,
83,
4008,
6624,
685,
83,
11,
352,
11,
256,
58,
17,
4357,
366,
64,
1,
14804,
17,
11,
362,
60,
198,
220,
220,
220,
2488,
9288,
2824,
7,
6307,
18743,
8068,
50,
7,
83,
4008,
6624,
685,
16,
11,
362,
11,
366,
64,
1,
14804,
17,
11,
256,
58,
17,
4357,
256,
60,
198,
437,
198,
198,
31,
9288,
2617,
366,
33945,
368,
499,
1,
2221,
198,
220,
220,
220,
257,
796,
685,
16,
17414,
17,
17414,
18,
11907,
60,
198,
220,
220,
220,
277,
796,
299,
4613,
299,
318,
64,
27741,
19182,
5633,
357,
22366,
11,
1751,
7,
77,
4008,
1058,
357,
77,
10,
16,
11,
1751,
7,
77,
4008,
198,
220,
220,
220,
275,
796,
2054,
368,
499,
7,
69,
11,
257,
8,
198,
220,
220,
220,
2488,
9288,
2824,
7,
17440,
27160,
7,
6719,
18743,
8068,
50,
7,
65,
22305,
6624,
685,
22366,
11,
362,
11,
2147,
11,
513,
11,
2147,
11,
604,
60,
198,
220,
220,
220,
308,
796,
299,
4613,
318,
28920,
7,
17197,
7,
77,
4008,
5633,
357,
17440,
8367,
7,
77,
828,
32865,
1058,
357,
22366,
11,
685,
15,
26,
1751,
7,
77,
8,
12962,
198,
220,
220,
220,
275,
796,
2054,
368,
499,
7,
70,
11,
257,
8,
198,
220,
220,
220,
2488,
9288,
10139,
8367,
12195,
6307,
18743,
8068,
50,
7,
65,
4008,
6624,
685,
15,
11,
352,
11,
657,
11,
362,
11,
657,
11,
513,
11,
2147,
11,
2147,
11,
2147,
60,
198,
437,
628
] | 2.181583 | 1,162 |
const QUOTE_CACHE = Cache{String,Float64}(Minute(1))
finnhub_token() = get(ENV, "FINNHUB_TOKEN", "")
function commander(c::Client, m::Message, ::Val{:ig})
@debug "ig_commander called"
command = extract_command("ig", m.content)
args = split(command)
@debug "parse result" command args
if length(args) == 0 ||
args[1] ∉ ["start-game", "abandon-game", "quote", "chart",
"buy", "sell", "rank", "view",
"abandon-game-really"]
help_commander(c, m, :ig)
return
end
user = @discord retrieve(c, User, m.author.id)
try
ig_execute(c, m, user, Val(Symbol(args[1])), args[2:end])
catch ex
if ex isa IgUserError
discord_reply(c, m, ig_hey(user.username, ex.message))
else
discord_reply(c, m, ig_hey(user.username,
"sorry, looks like you've hit a bug. Please report the problem."))
@error "Internal error" ex
Base.showerror(stdout, ex, catch_backtrace())
end
end
end
function help_commander(c::Client, m::Message, ::Val{:ig})
discord_reply(c, m, """
Play the investment game (ig). US market only for now.
```
ig start-game
ig abandon-game
```
Research stocks:
```
ig quote <symbol> - get current price quote
ig chart <symbol> [period] - historical price chart
Period is optional. Examples are: 200d, 36m, or 10y
for 200 days, 36 months, or 10 years respectively.
```
Manage portfolio:
```
ig view - view holdings and current market values
ig buy <n> <symbol> - buy <n> shares of a stock
ig sell <n> <symbol> - sell <n> shares of a stock
```
How are you doing?
```
ig rank [n] - display top <n> portfolios, defaults to 5.
```
""")
end
"""
ig_execute
This function executes any of the following commands.
# start-game
Start a new game by giving the player \$1MM USD.
# abandon-game
Abandon current game by wiping out the player's record.
# quote <symbol>
Fetch current market price of a stock.
# chart <symbol> <lookback>
The `lookback` argument is optional. If it is not specified, then it is defaulted
to 1 year. Otherwise, it takes the format of a number followed by `y`, `m`, or `d`
for number of years, months, or days respectively.
# buy <n> <symbol>
Buy `n` shares of a stock at the current market price. Player must have enough
cash to settle the trade.
# sell <n> <symbol>
Sell `n` shares of a stock at the current market price. Player must have
that many shares in the portfolio.
# view
Display detailed information about the portfolio, its holdings, and total market value.
# rank
Display top portfolios with highest market value.
"""
function ig_execute end
function ig_execute(c::Client, m::Message, user::User, ::Val{Symbol("start-game")}, args)
ig_affirm_non_player(user.id)
pf = ig_start_new_game(user.id)
discord_reply(c, m, ig_hey(user.username, "you have \$" * format_amount(pf.cash) *
" in your shiny new portfolio now! Good luck!"))
end
function ig_execute(c::Client, m::Message, user::User, ::Val{Symbol("abandon-game")}, args)
ig_affirm_player(user.id)
discord_reply(c, m, ig_hey(user.username,
"do you REALLY want to abandon the game and wipe out all of your data? " *
"If so, type `ig abandon-game-really`."))
end
function ig_execute(c::Client, m::Message, user::User, ::Val{Symbol("abandon-game-really")}, args)
ig_affirm_player(user.id)
ig_remove_game(user.id)
discord_reply(c, m, ig_hey(user.username,
"your investment game is now over. Play again soon!"))
end
function ig_execute(c::Client, m::Message, user::User, ::Val{:buy}, args)
ig_affirm_player(user.id)
length(args) == 2 ||
throw(IgUserError("Invalid command. Try `ig buy 100 aapl` to buy 100 shares of Apple Inc."))
symbol = strip(uppercase(args[2]))
shares = tryparse(Int, args[1])
shares !== nothing || throw(IgUserError("please enter number of shares as a number: `$shares`"))
purchase_price = ig_buy(user.id, symbol, shares)
discord_reply(c, m, ig_hey(user.username, "you have bought $shares shares of $symbol at \$" *
format_amount(purchase_price)))
end
function ig_execute(c::Client, m::Message, user::User, ::Val{:sell}, args)
ig_affirm_player(user.id)
length(args) == 2 ||
throw(IgUserError("Invalid command. Try `ig sell 100 aapl` to sell 100 shares of Apple Inc."))
symbol = strip(uppercase(args[2]))
shares = tryparse(Int, args[1])
shares !== nothing || throw(IgUserError("please enter number of shares as a number: `$shares`"))
current_price = ig_sell(user.id, symbol, shares)
discord_reply(c, m, ig_hey(user.username, "you have sold $shares shares of $symbol at \$" *
format_amount(current_price)))
end
function ig_execute(c::Client, m::Message, user::User, ::Val{:view}, args)
ig_affirm_player(user.id)
df = ig_mark_to_market_portfolio(user.id)
ig_reformat_view!(df)
view = length(args) == 1 && args[1] == "simple" ? SimpleView() : PrettyView()
table = ig_view_table(view, df)
total_str = format_amount(round(Int, sum(df.amount)))
discord_reply(c, m, ig_hey(user.username,
"""
here is your portfolio:
```
$table
```
Total portfolio Value: $total_str
"""))
end
# Shorten colummn headings for better display in Discord
function ig_reformat_view!(df::AbstractDataFrame)
select!(df, Not(:purchase_price))
rename!(df, "current_price" => "price", "market_value" => "amount")
end
function ig_execute(c::Client, m::Message, user::User, ::Val{:quote}, args)
length(args) == 1 ||
throw(IgUserError("Invalid command. Try `ig quote aapl` to fetch the current price of Apple Inc."))
symbol = strip(uppercase(args[1]))
price = ig_get_real_time_quote(symbol)
discord_reply(c, m, ig_hey(user.username, "the current price of $symbol is " * format_amount(price)))
end
function ig_execute(c::Client, m::Message, user::User, ::Val{:chart}, args)
1 <= length(args) <= 2 ||
throw(IgUserError("Invalid command. Try `ig chart aapl` to see a chart for Apple Inc."))
ch = discord_channel(c, m.channel_id)
symbol = strip(uppercase(args[1]))
lookback = length(args) == 1 ? Year(1) : date_period(lowercase(args[2]))
from_date, to_date = recent_date_range(lookback)
df = ig_historical_prices(symbol, from_date, to_date)
filename = ig_chart(symbol, df.Date, df."Adj Close")
discord_upload_file(c, ch, filename;
content = ig_hey(user.username, "here is the chart for $symbol for the past $lookback. " *
"To plot a chart with different time horizon, " *
"try something like `ig chart $symbol 90d` or `ig chart $symbol 10y`."))
end
function ig_execute(c::Client, m::Message, user::User, ::Val{:rank}, args)
length(args) <= 1 ||
throw(IgUserError("Invalid command. Try `ig rank` or `ig rank 10`"))
n = length(args) == 0 ? 5 : tryparse(Int, args[1])
n !== nothing || throw(IgUserError("invalid rank argument `$(args[1])`. " *
"Try `ig rank` or `ig rank 10`"))
rt = ig_ranking_table(c)
rt = rt[1:min(n, nrow(rt)), :] # get top N results
rt_str = ig_view_table(PrettyView(), rt)
discord_reply(c, m, ig_hey(user.username, """here's the current ranking:
```
$rt_str
```
"""))
end
function ig_ranking_table(c::Client)
valuations = ig_value_all_portfolios()
if length(valuations) > 0
users_dict = retrieve_users(c, [v.id for v in valuations])
@debug "ig_ranking_table" valuations
@debug "ig_ranking_table" users_dict
df = DataFrame(
rank = 1:length(valuations),
player = [users_dict[v.id].username for v in valuations],
portfolio_value = [v.total for v in valuations],
)
else
return DataFrame(player = String[], portfolio_value = Float64[])
end
end
@mockable function retrieve_users(c::Client, ids::Vector{UInt64})
futures = retrieve.(Ref(c), User, ids)
responses = fetch.(futures)
unknown = User(; id = UInt64(0), username = "Unknown")
return Dict(k => res.val === nothing ? unknown : res.val for (k, res) in zip(ids, responses))
end
function ig_value_all_portfolios()
pfs = ig_load_all_portfolios()
valuations = []
for (id, pf) in pfs
@debug "Evaluating portfolio" id pf
df = ig_mark_to_market!(ig_holdings_data_frame(pf))
mv = nrow(df) > 0 ? sum(df.market_value) : 0.0
cash = pf.cash
total = mv + cash
push!(valuations, (; id, mv, cash, total))
end
sort!(valuations; lt = (x,y) -> x.total < y.total, rev = true)
# @info "ig_value_all_portfolios result" valuations
valuations
end
"Format money amount"
format_amount(x::Real) = format(x, commas = true, precision = 2)
format_amount(x::Integer) = format(x, commas = true)
"Pretty table formatters"
decimal_formatter(v, i, j) = v isa Real ? format_amount(v) : v
integer_formatter(v, i, j) = v isa Real ? format_amount(round(Int, v)) : v
"Hey someone"
ig_hey(username::AbstractString, message::AbstractString) = "Hey, " * username * ", " * message
"File location of the game file for a user"
ig_file_path(user_id::UInt64) = joinpath(ig_data_directory(), "$user_id.json")
"Directory of the investment game data files"
ig_data_directory() = joinpath("data", "ig")
"Returns true if user already has a game in progress."
ig_is_player(user_id::UInt64) = isfile(ig_file_path(user_id))
"Start a new game file"
function ig_start_new_game(user_id::UInt64)
pf = IgPortfolio(1_000_000.00, IgHolding[])
ig_save_portfolio(user_id, pf)
return pf
end
"Destroy the existing game file for a user."
ig_remove_game(user_id::UInt64) = rm(ig_file_path(user_id))
"Affirms the user has a game or throw an exception."
function ig_affirm_player(user_id::UInt64)
ig_is_player(user_id) || throw(IgUserError("you don't have a game yet."))
return nothing
end
"Affirms the user does not have game or throw an exception."
function ig_affirm_non_player(user_id::UInt64)
!ig_is_player(user_id) || throw(IgUserError(
"you already have a game running. Use `ig view` to see your current portfolio."
))
return nothing
end
"Save a user portfolio in the data directory."
function ig_save_portfolio(user_id::UInt64, pf::IgPortfolio)
@debug "Saving portfolio" user_id
path = ig_file_path(user_id)
mkpath(dirname(path)) # ensure directory is there
write(path, JSON3.write(pf))
return nothing
end
"Load the portfolio for a single user"
function ig_load_portfolio(user_id::UInt64)
@debug "Loading portfolio" user_id
path = ig_file_path(user_id)
return ig_load_portfolio(path)
end
"Load a single portfolio from game file"
function ig_load_portfolio(path::AbstractString)
mkpath(dirname(path)) # ensure directory is there
bytes = read(path)
return JSON3.read(bytes, IgPortfolio)
end
"Extract user id from the portfolio data file"
function ig_user_id_from_path(path::AbstractString)
filename = basename(path)
filename_without_extension = replace(filename, r"\.json$" => "")
return parse(UInt64, filename_without_extension)
end
"Load all game files"
function ig_load_all_portfolios()
dir = ig_data_directory()
files = readdir(dir)
user_ids = ig_user_id_from_path.(files)
return Dict(user_id => ig_load_portfolio(joinpath(dir, file))
for (user_id, file) in zip(user_ids, files))
end
"Fetch the current quote of a stock"
@mockable function ig_get_real_time_quote(symbol::AbstractString)
@info "$(now()) real time quote: $symbol"
token = finnhub_token()
length(token) > 0 || throw(IgSystemError("No market price provider. Please report to admin."))
symbol = HTTP.escapeuri(symbol)
response = HTTP.get("https://finnhub.io/api/v1/quote?symbol=$symbol&token=$token")
data = JSON3.read(response.body)
current_price = data.c
current_price > 0 || throw(IgUserError("there is no price for $symbol. Is it a valid stock symbol?"))
current_price
end
"Fetch quote of a stock, but possibly with a time delay."
function ig_get_quote(symbol::AbstractString)
return get!(QUOTE_CACHE, symbol) do
ig_get_real_time_quote(symbol)
end
end
"Buy stock for a specific user at a specific price."
function ig_buy(
user_id::UInt64,
symbol::AbstractString,
shares::Real,
current_price::Real = ig_get_real_time_quote(symbol)
)
@debug "Buying stock" user_id symbol shares
pf = ig_load_portfolio(user_id)
cost = shares * current_price
if pf.cash >= cost
pf.cash -= cost
push!(pf.holdings, IgHolding(symbol, shares, current_date(), current_price))
ig_save_portfolio(user_id, pf)
return current_price
end
throw(IgUserError("you don't have enough cash. " *
"Buying $shares shares of $symbol will cost you $(format_amount(cost)) " *
"but you only have $(format_amount(pf.cash))"))
end
"Sell stock for a specific user. Returns executed price."
function ig_sell(
user_id::UInt64,
symbol::AbstractString,
shares::Real,
current_price::Real = ig_get_real_time_quote(symbol)
)
@debug "Selling stock" user_id symbol shares
pf = ig_load_portfolio(user_id)
pf_new = ig_sell_fifo(pf, symbol, shares, current_price)
ig_save_portfolio(user_id, pf_new)
return current_price
end
"Sell stock based upon FIFO accounting scheme. Returns the resulting `IgPortfolio` object."
function ig_sell_fifo(pf::IgPortfolio, symbol::AbstractString, shares::Real, current_price::Real)
existing_shares = ig_count_shares(pf, symbol)
if existing_shares == 0
throw(IgUserError("you do not have $symbol in your portfolio"))
elseif shares > existing_shares
existing_shares_str = format_amount(round(Int, existing_shares))
throw(IgUserError("you cannot sell more than what you own ($existing_shares_str shares)"))
end
proceeds = shares * current_price
# Construct a new IgPortfolio object that contains the resulting portfolio after
# selling the stock. The following logic does it incrementally but just for documentation
# purpose an alternative algorithm would be to make a copy and then relief the sold lots.
holdings = IgHolding[]
pf_new = IgPortfolio(pf.cash + proceeds, holdings)
remaining = shares # keep track of how much to sell
for h in pf.holdings
if h.symbol != symbol || remaining == 0
push!(holdings, h)
else
if h.shares > remaining # relief lot partially
revised_lot = IgHolding(symbol, h.shares - remaining, h.date, h.purchase_price)
push!(holdings, revised_lot)
remaining = 0
else # relief this lot completely and continue
remaining -= h.shares
end
end
end
return pf_new
end
"""
Returns a data frame for the portfolio holdings.
Note that:
1. It does not include cash portion of the portfolio
2. Multiple lots of the same stock will be in different rows
See also: `ig_grouped_holdings`(@ref)
"""
function ig_holdings_data_frame(pf::IgPortfolio)
return DataFrame(
symbol = [h.symbol for h in pf.holdings],
shares = [h.shares for h in pf.holdings],
purchase_price = [h.purchase_price for h in pf.holdings],
purchase_date = [h.date for h in pf.holdings],
)
end
"Returns grouped holdings by symbol with average purchase price"
function ig_grouped_holdings(df::AbstractDataFrame)
df = combine(groupby(df, :symbol)) do sdf
shares = sum(sdf.shares)
weights = sdf.shares / shares
purchase_price = sum(weights .* sdf.purchase_price)
(; shares, purchase_price)
end
return sort!(df, :symbol)
end
"Return a data frame with the user's portfolio marked to market."
function ig_mark_to_market_portfolio(user_id::UInt64)
pf = ig_load_portfolio(user_id)
df = ig_grouped_holdings(ig_holdings_data_frame(pf))
cash_entry = ig_cash_entry(pf)
if nrow(df) > 0
ig_mark_to_market!(df)
push!(df, cash_entry)
else
df = DataFrame([cash_entry])
end
return df
end
"Return the portoflio cash as named tuple that can be appended to the portfolio data frame."
function ig_cash_entry(pf::IgPortfolio)
return (symbol = "CASH:USD", shares = pf.cash,
purchase_price = 1.0, current_price = 1.0, market_value = pf.cash)
end
"Add columns with current price and market value"
function ig_mark_to_market!(df::AbstractDataFrame)
df.current_price = [ig_get_quote(s) for s in df.symbol]
df.market_value = df.shares .* df.current_price
return df
end
"Format data frame using pretty table"
function ig_view_table(::PrettyView, df::AbstractDataFrame)
return pretty_table(String, df;
formatters = integer_formatter, header = names(df))
end
"Return portfolio view as string in a simple format"
function ig_view_table(::SimpleView, df::AbstractDataFrame)
io = IOBuffer()
# @show "ig_view_table" df
for (i, r) in enumerate(eachrow(df))
if !startswith(r.symbol, "CASH:")
println(io,
i, ". ", r.symbol, ": ",
round(Int, r.shares), " x \$", format_amount(r.price),
" = \$", format_amount(round(Int, r.amount)))
else
println(io,
i, ". ", r.symbol, " = ", format_amount(round(Int, r.amount)))
end
end
return String(take!(io))
end
"Returns a tuple of two dates by looking back from today's date"
function recent_date_range(lookback::DatePeriod)
T = current_date()
to_date = T
from_date = T - lookback
return from_date, to_date
end
@mockable current_date() = today()
"""
Return a data frame with historical prices data. Columns include:
- `Date`
- `Open`
- `High`
- `Low`
- `Close`
- `Adj Close`
- `Volume`
"""
function ig_historical_prices(symbol::AbstractString, from_date::Date, to_date::Date)
from_sec = seconds_since_1970(from_date)
to_sec = seconds_since_1970(to_date + Day(1)) # apparently, Yahoo is exclusive on this end
symbol = HTTP.escapeuri(symbol)
url = "https://query1.finance.yahoo.com/v7/finance/download/$symbol?" *
"period1=$from_sec&period2=$to_sec&interval=1d&events=history&includeAdjustedClose=true"
try
return DataFrame(CSV.File(Downloads.download(url)))
catch ex
if ex isa Downloads.RequestError && ex.response.status == 404
throw(IgUserError("there is no historical prices for $symbol. Is it a valid stock symbol?"))
else
rethrow()
end
end
end
"Plot a simple price chart"
function ig_chart(symbol::AbstractString, dates::Vector{Date}, values::Vector{<:Real})
theme(:dark)
height = 720
width = height * 16 ÷ 9
from_date, to_date = extrema(dates)
last_price_str = format_amount(last(values))
p = plot(dates, values,
title = "$symbol Historical Prices ($from_date to $to_date)\nLast price: $last_price_str",
linewidth = 2,
size = (width, height),
legend = nothing,
tickfontsize = 12,
)
filename = tempname() * ".png"
savefig(p, filename)
return filename
end
"Find lots for a specific stock in the portfolio. Sort by purchase date."
function ig_find_lots(pf::IgPortfolio, symbol::AbstractString)
lots = IgHolding[x for x in pf.holdings if x.symbol == symbol]
return sort(lots, lt = (x,y) -> x.date < y.date)
end
"Return total number of shares for a specific stock in the portfolio."
function ig_count_shares(pf::IgPortfolio, symbol::AbstractString)
lots = ig_find_lots(pf, symbol)
return length(lots) > 0 ? round(sum(lot.shares for lot in lots); digits = 0) : 0
# note that we store shares as Float64 but uses it as Int (for now)
end
seconds_since_1970(d::Date) = (d - Day(719163)).instant.periods.value * 24 * 60 * 60
function date_period(s::AbstractString)
m = match(r"^(\d+)([ymd])$", s)
m !== nothing || throw(IgUserError("invalid date period: $s. Try `5y` or `30m`."))
num = parse(Int, m.captures[1])
dct = Dict("y" => Year, "m" => Month, "d" => Day)
return dct[m.captures[2]](num)
end
| [
9979,
19604,
23051,
62,
34,
2246,
13909,
796,
34088,
90,
10100,
11,
43879,
2414,
92,
7,
9452,
1133,
7,
16,
4008,
198,
198,
69,
3732,
40140,
62,
30001,
3419,
796,
651,
7,
1677,
53,
11,
366,
20032,
33863,
10526,
62,
10468,
43959,
1600,
366,
4943,
198,
198,
8818,
11561,
7,
66,
3712,
11792,
11,
285,
3712,
12837,
11,
7904,
7762,
90,
25,
328,
30072,
198,
220,
220,
220,
2488,
24442,
366,
328,
62,
9503,
4066,
1444,
1,
628,
220,
220,
220,
3141,
796,
7925,
62,
21812,
7203,
328,
1600,
285,
13,
11299,
8,
198,
220,
220,
220,
26498,
796,
6626,
7,
21812,
8,
198,
220,
220,
220,
2488,
24442,
366,
29572,
1255,
1,
3141,
26498,
628,
220,
220,
220,
611,
4129,
7,
22046,
8,
6624,
657,
8614,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26498,
58,
16,
60,
18872,
231,
14631,
9688,
12,
6057,
1600,
366,
397,
5063,
12,
6057,
1600,
366,
22708,
1600,
366,
40926,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17846,
1600,
366,
7255,
1600,
366,
43027,
1600,
366,
1177,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
397,
5063,
12,
6057,
12,
27485,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
1037,
62,
9503,
4066,
7,
66,
11,
285,
11,
1058,
328,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
198,
220,
220,
220,
886,
628,
220,
220,
220,
2836,
796,
2488,
15410,
585,
19818,
7,
66,
11,
11787,
11,
285,
13,
9800,
13,
312,
8,
198,
220,
220,
220,
1949,
198,
220,
220,
220,
220,
220,
220,
220,
45329,
62,
41049,
7,
66,
11,
285,
11,
2836,
11,
3254,
7,
13940,
23650,
7,
22046,
58,
16,
12962,
828,
26498,
58,
17,
25,
437,
12962,
198,
220,
220,
220,
4929,
409,
198,
220,
220,
220,
220,
220,
220,
220,
611,
409,
318,
64,
28818,
12982,
12331,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
36446,
62,
47768,
7,
66,
11,
285,
11,
45329,
62,
20342,
7,
7220,
13,
29460,
11,
409,
13,
20500,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
36446,
62,
47768,
7,
66,
11,
285,
11,
45329,
62,
20342,
7,
7220,
13,
29460,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
41599,
11,
3073,
588,
345,
1053,
2277,
257,
5434,
13,
4222,
989,
262,
1917,
526,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
18224,
366,
37693,
4049,
1,
409,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7308,
13,
1477,
789,
1472,
7,
19282,
448,
11,
409,
11,
4929,
62,
1891,
40546,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
437,
198,
198,
8818,
1037,
62,
9503,
4066,
7,
66,
3712,
11792,
11,
285,
3712,
12837,
11,
7904,
7762,
90,
25,
328,
30072,
198,
220,
220,
220,
36446,
62,
47768,
7,
66,
11,
285,
11,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
3811,
262,
4896,
983,
357,
328,
737,
1294,
1910,
691,
329,
783,
13,
198,
220,
220,
220,
220,
220,
220,
220,
7559,
63,
198,
220,
220,
220,
220,
220,
220,
220,
45329,
923,
12,
6057,
198,
220,
220,
220,
220,
220,
220,
220,
45329,
6871,
12,
6057,
198,
220,
220,
220,
220,
220,
220,
220,
7559,
63,
198,
220,
220,
220,
220,
220,
220,
220,
4992,
14420,
25,
198,
220,
220,
220,
220,
220,
220,
220,
7559,
63,
198,
220,
220,
220,
220,
220,
220,
220,
45329,
9577,
1279,
1837,
23650,
29,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
532,
651,
1459,
2756,
9577,
198,
220,
220,
220,
220,
220,
220,
220,
45329,
8262,
1279,
1837,
23650,
29,
685,
41007,
60,
220,
220,
532,
6754,
2756,
8262,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18581,
318,
11902,
13,
21066,
389,
25,
939,
67,
11,
4570,
76,
11,
393,
838,
88,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
939,
1528,
11,
4570,
1933,
11,
393,
838,
812,
8148,
13,
198,
220,
220,
220,
220,
220,
220,
220,
7559,
63,
198,
220,
220,
220,
220,
220,
220,
220,
1869,
496,
15320,
25,
198,
220,
220,
220,
220,
220,
220,
220,
7559,
63,
198,
220,
220,
220,
220,
220,
220,
220,
45329,
1570,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
532,
1570,
27572,
290,
1459,
1910,
3815,
198,
220,
220,
220,
220,
220,
220,
220,
45329,
2822,
1279,
77,
29,
1279,
1837,
23650,
29,
220,
220,
220,
532,
2822,
1279,
77,
29,
7303,
286,
257,
4283,
198,
220,
220,
220,
220,
220,
220,
220,
45329,
3677,
1279,
77,
29,
1279,
1837,
23650,
29,
220,
220,
532,
3677,
1279,
77,
29,
7303,
286,
257,
4283,
198,
220,
220,
220,
220,
220,
220,
220,
7559,
63,
198,
220,
220,
220,
220,
220,
220,
220,
1374,
389,
345,
1804,
30,
198,
220,
220,
220,
220,
220,
220,
220,
7559,
63,
198,
220,
220,
220,
220,
220,
220,
220,
45329,
4279,
685,
77,
60,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
532,
3359,
1353,
1279,
77,
29,
47837,
11,
26235,
284,
642,
13,
198,
220,
220,
220,
220,
220,
220,
220,
7559,
63,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
45329,
62,
41049,
198,
198,
1212,
2163,
42985,
597,
286,
262,
1708,
9729,
13,
198,
198,
2,
923,
12,
6057,
198,
10434,
257,
649,
983,
416,
3501,
262,
2137,
3467,
3,
16,
12038,
11403,
13,
198,
198,
2,
6871,
12,
6057,
198,
32,
3903,
261,
1459,
983,
416,
36906,
503,
262,
2137,
338,
1700,
13,
198,
198,
2,
9577,
1279,
1837,
23650,
29,
198,
37,
7569,
1459,
1910,
2756,
286,
257,
4283,
13,
198,
198,
2,
8262,
1279,
1837,
23650,
29,
1279,
5460,
1891,
29,
198,
464,
4600,
5460,
1891,
63,
4578,
318,
11902,
13,
1002,
340,
318,
407,
7368,
11,
788,
340,
318,
4277,
276,
198,
1462,
352,
614,
13,
15323,
11,
340,
2753,
262,
5794,
286,
257,
1271,
3940,
416,
4600,
88,
47671,
4600,
76,
47671,
393,
4600,
67,
63,
198,
1640,
1271,
286,
812,
11,
1933,
11,
393,
1528,
8148,
13,
198,
198,
2,
2822,
1279,
77,
29,
1279,
1837,
23650,
29,
198,
14518,
4600,
77,
63,
7303,
286,
257,
4283,
379,
262,
1459,
1910,
2756,
13,
7853,
1276,
423,
1576,
198,
30350,
284,
12259,
262,
3292,
13,
198,
198,
2,
3677,
1279,
77,
29,
1279,
1837,
23650,
29,
198,
50,
695,
4600,
77,
63,
7303,
286,
257,
4283,
379,
262,
1459,
1910,
2756,
13,
7853,
1276,
423,
198,
5562,
867,
7303,
287,
262,
15320,
13,
198,
198,
2,
1570,
198,
23114,
6496,
1321,
546,
262,
15320,
11,
663,
27572,
11,
290,
2472,
1910,
1988,
13,
198,
198,
2,
4279,
198,
23114,
1353,
47837,
351,
4511,
1910,
1988,
13,
198,
37811,
198,
8818,
45329,
62,
41049,
886,
198,
198,
8818,
45329,
62,
41049,
7,
66,
3712,
11792,
11,
285,
3712,
12837,
11,
2836,
3712,
12982,
11,
7904,
7762,
90,
13940,
23650,
7203,
9688,
12,
6057,
4943,
5512,
26498,
8,
198,
220,
220,
220,
45329,
62,
2001,
2533,
62,
13159,
62,
7829,
7,
7220,
13,
312,
8,
198,
220,
220,
220,
279,
69,
796,
45329,
62,
9688,
62,
3605,
62,
6057,
7,
7220,
13,
312,
8,
198,
220,
220,
220,
36446,
62,
47768,
7,
66,
11,
285,
11,
45329,
62,
20342,
7,
7220,
13,
29460,
11,
366,
5832,
423,
3467,
3,
1,
1635,
5794,
62,
17287,
7,
79,
69,
13,
30350,
8,
1635,
198,
220,
220,
220,
220,
220,
220,
220,
366,
287,
534,
22441,
649,
15320,
783,
0,
4599,
8458,
2474,
4008,
198,
437,
198,
198,
8818,
45329,
62,
41049,
7,
66,
3712,
11792,
11,
285,
3712,
12837,
11,
2836,
3712,
12982,
11,
7904,
7762,
90,
13940,
23650,
7203,
397,
5063,
12,
6057,
4943,
5512,
26498,
8,
198,
220,
220,
220,
45329,
62,
2001,
2533,
62,
7829,
7,
7220,
13,
312,
8,
198,
220,
220,
220,
36446,
62,
47768,
7,
66,
11,
285,
11,
45329,
62,
20342,
7,
7220,
13,
29460,
11,
198,
220,
220,
220,
220,
220,
220,
220,
366,
4598,
345,
36413,
765,
284,
6871,
262,
983,
290,
19916,
503,
477,
286,
534,
1366,
30,
366,
1635,
198,
220,
220,
220,
220,
220,
220,
220,
366,
1532,
523,
11,
2099,
4600,
328,
6871,
12,
6057,
12,
27485,
63,
526,
4008,
198,
437,
198,
198,
8818,
45329,
62,
41049,
7,
66,
3712,
11792,
11,
285,
3712,
12837,
11,
2836,
3712,
12982,
11,
7904,
7762,
90,
13940,
23650,
7203,
397,
5063,
12,
6057,
12,
27485,
4943,
5512,
26498,
8,
198,
220,
220,
220,
45329,
62,
2001,
2533,
62,
7829,
7,
7220,
13,
312,
8,
198,
220,
220,
220,
45329,
62,
28956,
62,
6057,
7,
7220,
13,
312,
8,
198,
220,
220,
220,
36446,
62,
47768,
7,
66,
11,
285,
11,
45329,
62,
20342,
7,
7220,
13,
29460,
11,
198,
220,
220,
220,
220,
220,
220,
220,
366,
14108,
4896,
983,
318,
783,
625,
13,
3811,
757,
2582,
2474,
4008,
198,
437,
198,
198,
8818,
45329,
62,
41049,
7,
66,
3712,
11792,
11,
285,
3712,
12837,
11,
2836,
3712,
12982,
11,
7904,
7762,
90,
25,
17846,
5512,
26498,
8,
198,
220,
220,
220,
45329,
62,
2001,
2533,
62,
7829,
7,
7220,
13,
312,
8,
198,
220,
220,
220,
4129,
7,
22046,
8,
6624,
362,
8614,
198,
220,
220,
220,
220,
220,
220,
220,
3714,
7,
40,
70,
12982,
12331,
7203,
44651,
3141,
13,
9993,
4600,
328,
2822,
1802,
257,
64,
489,
63,
284,
2822,
1802,
7303,
286,
4196,
3457,
526,
4008,
628,
220,
220,
220,
6194,
796,
10283,
7,
7211,
2798,
589,
7,
22046,
58,
17,
60,
4008,
198,
220,
220,
220,
7303,
796,
1949,
29572,
7,
5317,
11,
26498,
58,
16,
12962,
198,
220,
220,
220,
7303,
5145,
855,
2147,
8614,
3714,
7,
40,
70,
12982,
12331,
7203,
29688,
3802,
1271,
286,
7303,
355,
257,
1271,
25,
4600,
3,
1477,
3565,
63,
48774,
628,
220,
220,
220,
5001,
62,
20888,
796,
45329,
62,
17846,
7,
7220,
13,
312,
11,
6194,
11,
7303,
8,
198,
220,
220,
220,
36446,
62,
47768,
7,
66,
11,
285,
11,
45329,
62,
20342,
7,
7220,
13,
29460,
11,
366,
5832,
423,
5839,
720,
1477,
3565,
7303,
286,
720,
1837,
23650,
379,
3467,
3,
1,
1635,
198,
220,
220,
220,
220,
220,
220,
220,
5794,
62,
17287,
7,
79,
18737,
62,
20888,
22305,
198,
437,
198,
198,
8818,
45329,
62,
41049,
7,
66,
3712,
11792,
11,
285,
3712,
12837,
11,
2836,
3712,
12982,
11,
7904,
7762,
90,
25,
7255,
5512,
26498,
8,
198,
220,
220,
220,
45329,
62,
2001,
2533,
62,
7829,
7,
7220,
13,
312,
8,
198,
220,
220,
220,
4129,
7,
22046,
8,
6624,
362,
8614,
198,
220,
220,
220,
220,
220,
220,
220,
3714,
7,
40,
70,
12982,
12331,
7203,
44651,
3141,
13,
9993,
4600,
328,
3677,
1802,
257,
64,
489,
63,
284,
3677,
1802,
7303,
286,
4196,
3457,
526,
4008,
628,
220,
220,
220,
6194,
796,
10283,
7,
7211,
2798,
589,
7,
22046,
58,
17,
60,
4008,
198,
220,
220,
220,
7303,
796,
1949,
29572,
7,
5317,
11,
26498,
58,
16,
12962,
198,
220,
220,
220,
7303,
5145,
855,
2147,
8614,
3714,
7,
40,
70,
12982,
12331,
7203,
29688,
3802,
1271,
286,
7303,
355,
257,
1271,
25,
4600,
3,
1477,
3565,
63,
48774,
628,
220,
220,
220,
1459,
62,
20888,
796,
45329,
62,
7255,
7,
7220,
13,
312,
11,
6194,
11,
7303,
8,
198,
220,
220,
220,
36446,
62,
47768,
7,
66,
11,
285,
11,
45329,
62,
20342,
7,
7220,
13,
29460,
11,
366,
5832,
423,
2702,
720,
1477,
3565,
7303,
286,
720,
1837,
23650,
379,
3467,
3,
1,
1635,
198,
220,
220,
220,
220,
220,
220,
220,
5794,
62,
17287,
7,
14421,
62,
20888,
22305,
198,
437,
198,
198,
8818,
45329,
62,
41049,
7,
66,
3712,
11792,
11,
285,
3712,
12837,
11,
2836,
3712,
12982,
11,
7904,
7762,
90,
25,
1177,
5512,
26498,
8,
198,
220,
220,
220,
45329,
62,
2001,
2533,
62,
7829,
7,
7220,
13,
312,
8,
628,
220,
220,
220,
47764,
796,
45329,
62,
4102,
62,
1462,
62,
10728,
62,
634,
13652,
7,
7220,
13,
312,
8,
198,
220,
220,
220,
45329,
62,
260,
18982,
62,
1177,
0,
7,
7568,
8,
628,
220,
220,
220,
1570,
796,
4129,
7,
22046,
8,
6624,
352,
11405,
26498,
58,
16,
60,
6624,
366,
36439,
1,
5633,
17427,
7680,
3419,
1058,
20090,
7680,
3419,
198,
220,
220,
220,
3084,
796,
45329,
62,
1177,
62,
11487,
7,
1177,
11,
47764,
8,
198,
220,
220,
220,
2472,
62,
2536,
796,
5794,
62,
17287,
7,
744,
7,
5317,
11,
2160,
7,
7568,
13,
17287,
22305,
628,
220,
220,
220,
36446,
62,
47768,
7,
66,
11,
285,
11,
45329,
62,
20342,
7,
7220,
13,
29460,
11,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
994,
318,
534,
15320,
25,
198,
220,
220,
220,
220,
220,
220,
220,
7559,
63,
198,
220,
220,
220,
220,
220,
220,
220,
720,
11487,
198,
220,
220,
220,
220,
220,
220,
220,
7559,
63,
198,
220,
220,
220,
220,
220,
220,
220,
7472,
15320,
11052,
25,
720,
23350,
62,
2536,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
4008,
198,
437,
198,
198,
2,
10073,
268,
951,
388,
10295,
1182,
654,
329,
1365,
3359,
287,
39462,
198,
8818,
45329,
62,
260,
18982,
62,
1177,
0,
7,
7568,
3712,
23839,
6601,
19778,
8,
198,
220,
220,
220,
2922,
0,
7,
7568,
11,
1892,
7,
25,
79,
18737,
62,
20888,
4008,
198,
220,
220,
220,
36265,
0,
7,
7568,
11,
366,
14421,
62,
20888,
1,
5218,
366,
20888,
1600,
366,
10728,
62,
8367,
1,
5218,
366,
17287,
4943,
198,
437,
198,
198,
8818,
45329,
62,
41049,
7,
66,
3712,
11792,
11,
285,
3712,
12837,
11,
2836,
3712,
12982,
11,
7904,
7762,
90,
25,
22708,
5512,
26498,
8,
198,
220,
220,
220,
4129,
7,
22046,
8,
6624,
352,
8614,
198,
220,
220,
220,
220,
220,
220,
220,
3714,
7,
40,
70,
12982,
12331,
7203,
44651,
3141,
13,
9993,
4600,
328,
9577,
257,
64,
489,
63,
284,
21207,
262,
1459,
2756,
286,
4196,
3457,
526,
4008,
628,
220,
220,
220,
6194,
796,
10283,
7,
7211,
2798,
589,
7,
22046,
58,
16,
60,
4008,
198,
220,
220,
220,
2756,
796,
45329,
62,
1136,
62,
5305,
62,
2435,
62,
22708,
7,
1837,
23650,
8,
198,
220,
220,
220,
36446,
62,
47768,
7,
66,
11,
285,
11,
45329,
62,
20342,
7,
7220,
13,
29460,
11,
366,
1169,
1459,
2756,
286,
720,
1837,
23650,
318,
366,
1635,
5794,
62,
17287,
7,
20888,
22305,
198,
437,
198,
198,
8818,
45329,
62,
41049,
7,
66,
3712,
11792,
11,
285,
3712,
12837,
11,
2836,
3712,
12982,
11,
7904,
7762,
90,
25,
40926,
5512,
26498,
8,
198,
220,
220,
220,
352,
19841,
4129,
7,
22046,
8,
19841,
362,
8614,
198,
220,
220,
220,
220,
220,
220,
220,
3714,
7,
40,
70,
12982,
12331,
7203,
44651,
3141,
13,
9993,
4600,
328,
8262,
257,
64,
489,
63,
284,
766,
257,
8262,
329,
4196,
3457,
526,
4008,
628,
220,
220,
220,
442,
796,
36446,
62,
17620,
7,
66,
11,
285,
13,
17620,
62,
312,
8,
198,
220,
220,
220,
6194,
796,
10283,
7,
7211,
2798,
589,
7,
22046,
58,
16,
60,
4008,
198,
220,
220,
220,
804,
1891,
796,
4129,
7,
22046,
8,
6624,
352,
5633,
6280,
7,
16,
8,
1058,
3128,
62,
41007,
7,
21037,
7442,
7,
22046,
58,
17,
60,
4008,
198,
220,
220,
220,
422,
62,
4475,
11,
284,
62,
4475,
796,
2274,
62,
4475,
62,
9521,
7,
5460,
1891,
8,
198,
220,
220,
220,
47764,
796,
45329,
62,
10034,
12409,
62,
1050,
1063,
7,
1837,
23650,
11,
422,
62,
4475,
11,
284,
62,
4475,
8,
198,
220,
220,
220,
29472,
796,
45329,
62,
40926,
7,
1837,
23650,
11,
47764,
13,
10430,
11,
47764,
526,
2782,
73,
13872,
4943,
198,
220,
220,
220,
36446,
62,
25850,
62,
7753,
7,
66,
11,
442,
11,
29472,
26,
198,
220,
220,
220,
220,
220,
220,
220,
2695,
796,
45329,
62,
20342,
7,
7220,
13,
29460,
11,
366,
1456,
318,
262,
8262,
329,
720,
1837,
23650,
329,
262,
1613,
720,
5460,
1891,
13,
366,
1635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
2514,
7110,
257,
8262,
351,
1180,
640,
17810,
11,
366,
1635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
28311,
1223,
588,
4600,
328,
8262,
720,
1837,
23650,
4101,
67,
63,
393,
4600,
328,
8262,
720,
1837,
23650,
838,
88,
63,
526,
4008,
198,
437,
198,
198,
8818,
45329,
62,
41049,
7,
66,
3712,
11792,
11,
285,
3712,
12837,
11,
2836,
3712,
12982,
11,
7904,
7762,
90,
25,
43027,
5512,
26498,
8,
198,
220,
220,
220,
4129,
7,
22046,
8,
19841,
352,
8614,
198,
220,
220,
220,
220,
220,
220,
220,
3714,
7,
40,
70,
12982,
12331,
7203,
44651,
3141,
13,
9993,
4600,
328,
4279,
63,
393,
4600,
328,
4279,
838,
63,
48774,
628,
220,
220,
220,
299,
796,
4129,
7,
22046,
8,
6624,
657,
5633,
642,
1058,
1949,
29572,
7,
5317,
11,
26498,
58,
16,
12962,
198,
220,
220,
220,
299,
5145,
855,
2147,
8614,
3714,
7,
40,
70,
12982,
12331,
7203,
259,
12102,
4279,
4578,
4600,
3,
7,
22046,
58,
16,
12962,
44646,
366,
1635,
198,
220,
220,
220,
220,
220,
220,
220,
366,
23433,
4600,
328,
4279,
63,
393,
4600,
328,
4279,
838,
63,
48774,
628,
220,
220,
220,
374,
83,
796,
45329,
62,
28405,
62,
11487,
7,
66,
8,
198,
220,
220,
220,
374,
83,
796,
374,
83,
58,
16,
25,
1084,
7,
77,
11,
299,
808,
7,
17034,
36911,
1058,
60,
220,
1303,
651,
1353,
399,
2482,
198,
220,
220,
220,
374,
83,
62,
2536,
796,
45329,
62,
1177,
62,
11487,
7,
35700,
7680,
22784,
374,
83,
8,
628,
220,
220,
220,
36446,
62,
47768,
7,
66,
11,
285,
11,
45329,
62,
20342,
7,
7220,
13,
29460,
11,
37227,
1456,
338,
262,
1459,
12759,
25,
198,
220,
220,
220,
7559,
63,
198,
220,
220,
220,
720,
17034,
62,
2536,
198,
220,
220,
220,
7559,
63,
198,
220,
220,
220,
37227,
4008,
198,
437,
198,
198,
8818,
45329,
62,
28405,
62,
11487,
7,
66,
3712,
11792,
8,
198,
220,
220,
220,
1188,
6055,
796,
45329,
62,
8367,
62,
439,
62,
634,
45242,
3419,
198,
220,
220,
220,
611,
4129,
7,
2100,
6055,
8,
1875,
657,
198,
220,
220,
220,
220,
220,
220,
220,
2985,
62,
11600,
796,
19818,
62,
18417,
7,
66,
11,
685,
85,
13,
312,
329,
410,
287,
1188,
6055,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
24442,
366,
328,
62,
28405,
62,
11487,
1,
1188,
6055,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
24442,
366,
328,
62,
28405,
62,
11487,
1,
2985,
62,
11600,
198,
220,
220,
220,
220,
220,
220,
220,
47764,
796,
6060,
19778,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4279,
796,
352,
25,
13664,
7,
2100,
6055,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2137,
796,
685,
18417,
62,
11600,
58,
85,
13,
312,
4083,
29460,
329,
410,
287,
1188,
6055,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
15320,
62,
8367,
796,
685,
85,
13,
23350,
329,
410,
287,
1188,
6055,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6060,
19778,
7,
7829,
796,
10903,
58,
4357,
15320,
62,
8367,
796,
48436,
2414,
58,
12962,
198,
220,
220,
220,
886,
198,
437,
198,
198,
31,
76,
735,
540,
2163,
19818,
62,
18417,
7,
66,
3712,
11792,
11,
220,
2340,
3712,
38469,
90,
52,
5317,
2414,
30072,
198,
220,
220,
220,
25650,
796,
19818,
12195,
8134,
7,
66,
828,
11787,
11,
220,
2340,
8,
198,
220,
220,
220,
9109,
796,
21207,
12195,
69,
315,
942,
8,
198,
220,
220,
220,
6439,
796,
11787,
7,
26,
4686,
796,
471,
5317,
2414,
7,
15,
828,
20579,
796,
366,
20035,
4943,
198,
220,
220,
220,
1441,
360,
713,
7,
74,
5218,
581,
13,
2100,
24844,
2147,
5633,
6439,
1058,
581,
13,
2100,
329,
357,
74,
11,
581,
8,
287,
19974,
7,
2340,
11,
9109,
4008,
198,
437,
198,
198,
8818,
45329,
62,
8367,
62,
439,
62,
634,
45242,
3419,
198,
220,
220,
220,
279,
9501,
796,
45329,
62,
2220,
62,
439,
62,
634,
45242,
3419,
198,
220,
220,
220,
1188,
6055,
796,
17635,
198,
220,
220,
220,
329,
357,
312,
11,
279,
69,
8,
287,
279,
9501,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
24442,
366,
36,
2100,
11927,
15320,
1,
4686,
279,
69,
198,
220,
220,
220,
220,
220,
220,
220,
47764,
796,
45329,
62,
4102,
62,
1462,
62,
10728,
0,
7,
328,
62,
2946,
654,
62,
7890,
62,
14535,
7,
79,
69,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
285,
85,
796,
299,
808,
7,
7568,
8,
1875,
657,
5633,
2160,
7,
7568,
13,
10728,
62,
8367,
8,
1058,
657,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
5003,
796,
279,
69,
13,
30350,
198,
220,
220,
220,
220,
220,
220,
220,
2472,
796,
285,
85,
1343,
5003,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
2100,
6055,
11,
357,
26,
4686,
11,
285,
85,
11,
5003,
11,
2472,
4008,
198,
220,
220,
220,
886,
198,
220,
220,
220,
3297,
0,
7,
2100,
6055,
26,
300,
83,
796,
357,
87,
11,
88,
8,
4613,
2124,
13,
23350,
1279,
331,
13,
23350,
11,
2710,
796,
2081,
8,
198,
220,
220,
220,
1303,
2488,
10951,
366,
328,
62,
8367,
62,
439,
62,
634,
45242,
1255,
1,
1188,
6055,
198,
220,
220,
220,
1188,
6055,
198,
437,
198,
198,
1,
26227,
1637,
2033,
1,
198,
18982,
62,
17287,
7,
87,
3712,
15633,
8,
796,
5794,
7,
87,
11,
725,
292,
796,
2081,
11,
15440,
796,
362,
8,
198,
18982,
62,
17287,
7,
87,
3712,
46541,
8,
796,
5794,
7,
87,
11,
725,
292,
796,
2081,
8,
198,
198,
1,
35700,
3084,
5794,
1010,
1,
198,
12501,
4402,
62,
687,
1436,
7,
85,
11,
1312,
11,
474,
8,
796,
410,
318,
64,
6416,
5633,
5794,
62,
17287,
7,
85,
8,
1058,
410,
198,
41433,
62,
687,
1436,
7,
85,
11,
1312,
11,
474,
8,
796,
410,
318,
64,
6416,
5633,
5794,
62,
17287,
7,
744,
7,
5317,
11,
410,
4008,
1058,
410,
198,
198,
1,
10814,
2130,
1,
198,
328,
62,
20342,
7,
29460,
3712,
23839,
10100,
11,
3275,
3712,
23839,
10100,
8,
796,
366,
10814,
11,
366,
1635,
20579,
1635,
33172,
366,
1635,
3275,
198,
198,
1,
8979,
4067,
286,
262,
983,
2393,
329,
257,
2836,
1,
198,
328,
62,
7753,
62,
6978,
7,
7220,
62,
312,
3712,
52,
5317,
2414,
8,
796,
4654,
6978,
7,
328,
62,
7890,
62,
34945,
22784,
17971,
7220,
62,
312,
13,
17752,
4943,
198,
198,
1,
43055,
286,
262,
4896,
983,
1366,
3696,
1,
198,
328,
62,
7890,
62,
34945,
3419,
796,
4654,
6978,
7203,
7890,
1600,
366,
328,
4943,
198,
198,
1,
35561,
2081,
611,
2836,
1541,
468,
257,
983,
287,
4371,
526,
198,
328,
62,
271,
62,
7829,
7,
7220,
62,
312,
3712,
52,
5317,
2414,
8,
796,
318,
7753,
7,
328,
62,
7753,
62,
6978,
7,
7220,
62,
312,
4008,
198,
198,
1,
10434,
257,
649,
983,
2393,
1,
198,
8818,
45329,
62,
9688,
62,
3605,
62,
6057,
7,
7220,
62,
312,
3712,
52,
5317,
2414,
8,
198,
220,
220,
220,
279,
69,
796,
28818,
13924,
13652,
7,
16,
62,
830,
62,
830,
13,
405,
11,
28818,
26807,
278,
58,
12962,
198,
220,
220,
220,
45329,
62,
21928,
62,
634,
13652,
7,
7220,
62,
312,
11,
279,
69,
8,
198,
220,
220,
220,
1441,
279,
69,
198,
437,
198,
198,
1,
49174,
262,
4683,
983,
2393,
329,
257,
2836,
526,
198,
328,
62,
28956,
62,
6057,
7,
7220,
62,
312,
3712,
52,
5317,
2414,
8,
796,
42721,
7,
328,
62,
7753,
62,
6978,
7,
7220,
62,
312,
4008,
198,
198,
1,
35191,
8789,
262,
2836,
468,
257,
983,
393,
3714,
281,
6631,
526,
198,
8818,
45329,
62,
2001,
2533,
62,
7829,
7,
7220,
62,
312,
3712,
52,
5317,
2414,
8,
198,
220,
220,
220,
45329,
62,
271,
62,
7829,
7,
7220,
62,
312,
8,
8614,
3714,
7,
40,
70,
12982,
12331,
7203,
5832,
836,
470,
423,
257,
983,
1865,
526,
4008,
198,
220,
220,
220,
1441,
2147,
198,
437,
198,
198,
1,
35191,
8789,
262,
2836,
857,
407,
423,
983,
393,
3714,
281,
6631,
526,
198,
8818,
45329,
62,
2001,
2533,
62,
13159,
62,
7829,
7,
7220,
62,
312,
3712,
52,
5317,
2414,
8,
198,
220,
220,
220,
5145,
328,
62,
271,
62,
7829,
7,
7220,
62,
312,
8,
8614,
3714,
7,
40,
70,
12982,
12331,
7,
198,
220,
220,
220,
220,
220,
220,
220,
366,
5832,
1541,
423,
257,
983,
2491,
13,
5765,
4600,
328,
1570,
63,
284,
766,
534,
1459,
15320,
526,
198,
220,
220,
220,
15306,
198,
220,
220,
220,
1441,
2147,
198,
437,
198,
198,
1,
16928,
257,
2836,
15320,
287,
262,
1366,
8619,
526,
198,
8818,
45329,
62,
21928,
62,
634,
13652,
7,
7220,
62,
312,
3712,
52,
5317,
2414,
11,
279,
69,
3712,
40,
70,
13924,
13652,
8,
198,
220,
220,
220,
2488,
24442,
366,
50,
2703,
15320,
1,
2836,
62,
312,
198,
220,
220,
220,
3108,
796,
45329,
62,
7753,
62,
6978,
7,
7220,
62,
312,
8,
198,
220,
220,
220,
33480,
6978,
7,
15908,
3672,
7,
6978,
4008,
1303,
4155,
8619,
318,
612,
198,
220,
220,
220,
3551,
7,
6978,
11,
19449,
18,
13,
13564,
7,
79,
69,
4008,
198,
220,
220,
220,
1441,
2147,
198,
437,
198,
198,
1,
8912,
262,
15320,
329,
257,
2060,
2836,
1,
198,
8818,
45329,
62,
2220,
62,
634,
13652,
7,
7220,
62,
312,
3712,
52,
5317,
2414,
8,
198,
220,
220,
220,
2488,
24442,
366,
19031,
15320,
1,
2836,
62,
312,
198,
220,
220,
220,
3108,
796,
45329,
62,
7753,
62,
6978,
7,
7220,
62,
312,
8,
198,
220,
220,
220,
1441,
45329,
62,
2220,
62,
634,
13652,
7,
6978,
8,
198,
437,
198,
198,
1,
8912,
257,
2060,
15320,
422,
983,
2393,
1,
198,
8818,
45329,
62,
2220,
62,
634,
13652,
7,
6978,
3712,
23839,
10100,
8,
198,
220,
220,
220,
33480,
6978,
7,
15908,
3672,
7,
6978,
4008,
1303,
4155,
8619,
318,
612,
198,
220,
220,
220,
9881,
796,
1100,
7,
6978,
8,
198,
220,
220,
220,
1441,
19449,
18,
13,
961,
7,
33661,
11,
28818,
13924,
13652,
8,
198,
437,
198,
198,
1,
11627,
974,
2836,
4686,
422,
262,
15320,
1366,
2393,
1,
198,
8818,
45329,
62,
7220,
62,
312,
62,
6738,
62,
6978,
7,
6978,
3712,
23839,
10100,
8,
198,
220,
220,
220,
29472,
796,
1615,
12453,
7,
6978,
8,
198,
220,
220,
220,
29472,
62,
19419,
62,
2302,
3004,
796,
6330,
7,
34345,
11,
374,
1,
17405,
17752,
3,
1,
5218,
366,
4943,
198,
220,
220,
220,
1441,
21136,
7,
52,
5317,
2414,
11,
29472,
62,
19419,
62,
2302,
3004,
8,
198,
437,
198,
198,
1,
8912,
477,
983,
3696,
1,
198,
8818,
45329,
62,
2220,
62,
439,
62,
634,
45242,
3419,
198,
220,
220,
220,
26672,
796,
45329,
62,
7890,
62,
34945,
3419,
198,
220,
220,
220,
3696,
796,
1100,
15908,
7,
15908,
8,
198,
220,
220,
220,
2836,
62,
2340,
796,
45329,
62,
7220,
62,
312,
62,
6738,
62,
6978,
12195,
16624,
8,
198,
220,
220,
220,
1441,
360,
713,
7,
7220,
62,
312,
5218,
45329,
62,
2220,
62,
634,
13652,
7,
22179,
6978,
7,
15908,
11,
2393,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
329,
357,
7220,
62,
312,
11,
2393,
8,
287,
19974,
7,
7220,
62,
2340,
11,
3696,
4008,
198,
437,
198,
198,
1,
37,
7569,
262,
1459,
9577,
286,
257,
4283,
1,
198,
31,
76,
735,
540,
2163,
45329,
62,
1136,
62,
5305,
62,
2435,
62,
22708,
7,
1837,
23650,
3712,
23839,
10100,
8,
198,
220,
220,
220,
2488,
10951,
17971,
7,
2197,
28955,
1103,
640,
9577,
25,
720,
1837,
23650,
1,
198,
220,
220,
220,
11241,
796,
957,
77,
40140,
62,
30001,
3419,
198,
220,
220,
220,
4129,
7,
30001,
8,
1875,
657,
8614,
3714,
7,
40,
70,
11964,
12331,
7203,
2949,
1910,
2756,
10131,
13,
4222,
989,
284,
13169,
526,
4008,
198,
220,
220,
220,
6194,
796,
14626,
13,
41915,
9900,
7,
1837,
23650,
8,
198,
220,
220,
220,
2882,
796,
14626,
13,
1136,
7203,
5450,
1378,
69,
3732,
40140,
13,
952,
14,
15042,
14,
85,
16,
14,
22708,
30,
1837,
23650,
43641,
1837,
23650,
5,
30001,
43641,
30001,
4943,
198,
220,
220,
220,
1366,
796,
19449,
18,
13,
961,
7,
26209,
13,
2618,
8,
198,
220,
220,
220,
1459,
62,
20888,
796,
1366,
13,
66,
198,
220,
220,
220,
1459,
62,
20888,
1875,
657,
8614,
3714,
7,
40,
70,
12982,
12331,
7203,
8117,
318,
645,
2756,
329,
720,
1837,
23650,
13,
1148,
340,
257,
4938,
4283,
6194,
1701,
4008,
198,
220,
220,
220,
1459,
62,
20888,
198,
437,
198,
198,
1,
37,
7569,
9577,
286,
257,
4283,
11,
475,
5457,
351,
257,
640,
5711,
526,
198,
8818,
45329,
62,
1136,
62,
22708,
7,
1837,
23650,
3712,
23839,
10100,
8,
198,
220,
220,
220,
1441,
651,
0,
7,
10917,
23051,
62,
34,
2246,
13909,
11,
6194,
8,
466,
198,
220,
220,
220,
220,
220,
220,
220,
45329,
62,
1136,
62,
5305,
62,
2435,
62,
22708,
7,
1837,
23650,
8,
198,
220,
220,
220,
886,
198,
437,
198,
198,
1,
14518,
4283,
329,
257,
2176,
2836,
379,
257,
2176,
2756,
526,
198,
8818,
45329,
62,
17846,
7,
198,
220,
220,
220,
2836,
62,
312,
3712,
52,
5317,
2414,
11,
198,
220,
220,
220,
6194,
3712,
23839,
10100,
11,
198,
220,
220,
220,
7303,
3712,
15633,
11,
198,
220,
220,
220,
1459,
62,
20888,
3712,
15633,
796,
45329,
62,
1136,
62,
5305,
62,
2435,
62,
22708,
7,
1837,
23650,
8,
198,
8,
198,
220,
220,
220,
2488,
24442,
366,
38374,
1112,
4283,
1,
2836,
62,
312,
6194,
7303,
198,
220,
220,
220,
279,
69,
796,
45329,
62,
2220,
62,
634,
13652,
7,
7220,
62,
312,
8,
198,
220,
220,
220,
1575,
796,
7303,
1635,
1459,
62,
20888,
198,
220,
220,
220,
611,
279,
69,
13,
30350,
18189,
1575,
198,
220,
220,
220,
220,
220,
220,
220,
279,
69,
13,
30350,
48185,
1575,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
79,
69,
13,
2946,
654,
11,
28818,
26807,
278,
7,
1837,
23650,
11,
7303,
11,
1459,
62,
4475,
22784,
1459,
62,
20888,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
45329,
62,
21928,
62,
634,
13652,
7,
7220,
62,
312,
11,
279,
69,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1459,
62,
20888,
198,
220,
220,
220,
886,
198,
220,
220,
220,
3714,
7,
40,
70,
12982,
12331,
7203,
5832,
836,
470,
423,
1576,
5003,
13,
366,
1635,
198,
220,
220,
220,
220,
220,
220,
220,
366,
38374,
1112,
720,
1477,
3565,
7303,
286,
720,
1837,
23650,
481,
1575,
345,
29568,
18982,
62,
17287,
7,
15805,
4008,
366,
1635,
198,
220,
220,
220,
220,
220,
220,
220,
366,
4360,
345,
691,
423,
29568,
18982,
62,
17287,
7,
79,
69,
13,
30350,
4008,
48774,
198,
437,
198,
198,
1,
50,
695,
4283,
329,
257,
2176,
2836,
13,
16409,
10945,
2756,
526,
198,
8818,
45329,
62,
7255,
7,
198,
220,
220,
220,
2836,
62,
312,
3712,
52,
5317,
2414,
11,
198,
220,
220,
220,
6194,
3712,
23839,
10100,
11,
198,
220,
220,
220,
7303,
3712,
15633,
11,
198,
220,
220,
220,
1459,
62,
20888,
3712,
15633,
796,
45329,
62,
1136,
62,
5305,
62,
2435,
62,
22708,
7,
1837,
23650,
8,
198,
8,
198,
220,
220,
220,
2488,
24442,
366,
50,
9417,
4283,
1,
2836,
62,
312,
6194,
7303,
198,
220,
220,
220,
279,
69,
796,
45329,
62,
2220,
62,
634,
13652,
7,
7220,
62,
312,
8,
198,
220,
220,
220,
279,
69,
62,
3605,
796,
45329,
62,
7255,
62,
32041,
78,
7,
79,
69,
11,
6194,
11,
7303,
11,
1459,
62,
20888,
8,
198,
220,
220,
220,
45329,
62,
21928,
62,
634,
13652,
7,
7220,
62,
312,
11,
279,
69,
62,
3605,
8,
198,
220,
220,
220,
1441,
1459,
62,
20888,
198,
437,
198,
198,
1,
50,
695,
4283,
1912,
2402,
376,
5064,
46,
14317,
7791,
13,
16409,
262,
7186,
4600,
40,
70,
13924,
13652,
63,
2134,
526,
198,
8818,
45329,
62,
7255,
62,
32041,
78,
7,
79,
69,
3712,
40,
70,
13924,
13652,
11,
6194,
3712,
23839,
10100,
11,
7303,
3712,
15633,
11,
1459,
62,
20888,
3712,
15633,
8,
628,
220,
220,
220,
4683,
62,
1477,
3565,
796,
45329,
62,
9127,
62,
1477,
3565,
7,
79,
69,
11,
6194,
8,
198,
220,
220,
220,
611,
4683,
62,
1477,
3565,
6624,
657,
198,
220,
220,
220,
220,
220,
220,
220,
3714,
7,
40,
70,
12982,
12331,
7203,
5832,
466,
407,
423,
720,
1837,
23650,
287,
534,
15320,
48774,
198,
220,
220,
220,
2073,
361,
7303,
1875,
4683,
62,
1477,
3565,
198,
220,
220,
220,
220,
220,
220,
220,
4683,
62,
1477,
3565,
62,
2536,
796,
5794,
62,
17287,
7,
744,
7,
5317,
11,
4683,
62,
1477,
3565,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3714,
7,
40,
70,
12982,
12331,
7203,
5832,
2314,
3677,
517,
621,
644,
345,
898,
7198,
25687,
62,
1477,
3565,
62,
2536,
7303,
16725,
4008,
198,
220,
220,
220,
886,
628,
220,
220,
220,
15740,
796,
7303,
1635,
1459,
62,
20888,
628,
220,
220,
220,
1303,
28407,
257,
649,
28818,
13924,
13652,
2134,
326,
4909,
262,
7186,
15320,
706,
198,
220,
220,
220,
1303,
6301,
262,
4283,
13,
383,
1708,
9156,
857,
340,
18703,
453,
475,
655,
329,
10314,
198,
220,
220,
220,
1303,
4007,
281,
5559,
11862,
561,
307,
284,
787,
257,
4866,
290,
788,
8259,
262,
2702,
6041,
13,
198,
220,
220,
220,
27572,
796,
28818,
26807,
278,
21737,
198,
220,
220,
220,
279,
69,
62,
3605,
796,
28818,
13924,
13652,
7,
79,
69,
13,
30350,
1343,
15740,
11,
27572,
8,
198,
220,
220,
220,
5637,
796,
7303,
220,
220,
1303,
1394,
2610,
286,
703,
881,
284,
3677,
198,
220,
220,
220,
329,
289,
287,
279,
69,
13,
2946,
654,
198,
220,
220,
220,
220,
220,
220,
220,
611,
289,
13,
1837,
23650,
14512,
6194,
8614,
5637,
6624,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
2946,
654,
11,
289,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
289,
13,
1477,
3565,
1875,
5637,
220,
1303,
8259,
1256,
12387,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
15556,
62,
26487,
796,
28818,
26807,
278,
7,
1837,
23650,
11,
289,
13,
1477,
3565,
532,
5637,
11,
289,
13,
4475,
11,
289,
13,
79,
18737,
62,
20888,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
2946,
654,
11,
15556,
62,
26487,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5637,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
1303,
8259,
428,
1256,
3190,
290,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5637,
48185,
289,
13,
1477,
3565,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
279,
69,
62,
3605,
198,
437,
198,
198,
37811,
198,
35561,
257,
1366,
5739,
329,
262,
15320,
27572,
13,
198,
6425,
326,
25,
198,
16,
13,
632,
857,
407,
2291,
5003,
6903,
286,
262,
15320,
198,
17,
13,
20401,
6041,
286,
262,
976,
4283,
481,
307,
287,
1180,
15274,
198,
198,
6214,
635,
25,
4600,
328,
62,
8094,
276,
62,
2946,
654,
63,
7,
31,
5420,
8,
198,
37811,
198,
8818,
45329,
62,
2946,
654,
62,
7890,
62,
14535,
7,
79,
69,
3712,
40,
70,
13924,
13652,
8,
198,
220,
220,
220,
1441,
6060,
19778,
7,
198,
220,
220,
220,
220,
220,
220,
220,
6194,
796,
685,
71,
13,
1837,
23650,
329,
289,
287,
279,
69,
13,
2946,
654,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
7303,
796,
685,
71,
13,
1477,
3565,
329,
289,
287,
279,
69,
13,
2946,
654,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
5001,
62,
20888,
796,
685,
71,
13,
79,
18737,
62,
20888,
329,
289,
287,
279,
69,
13,
2946,
654,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
5001,
62,
4475,
796,
685,
71,
13,
4475,
329,
289,
287,
279,
69,
13,
2946,
654,
4357,
198,
220,
220,
220,
1267,
198,
437,
198,
198,
1,
35561,
32824,
27572,
416,
6194,
351,
2811,
5001,
2756,
1,
198,
8818,
45329,
62,
8094,
276,
62,
2946,
654,
7,
7568,
3712,
23839,
6601,
19778,
8,
198,
220,
220,
220,
47764,
796,
12082,
7,
8094,
1525,
7,
7568,
11,
1058,
1837,
23650,
4008,
466,
264,
7568,
198,
220,
220,
220,
220,
220,
220,
220,
7303,
796,
2160,
7,
82,
7568,
13,
1477,
3565,
8,
198,
220,
220,
220,
220,
220,
220,
220,
19590,
796,
264,
7568,
13,
1477,
3565,
1220,
7303,
198,
220,
220,
220,
220,
220,
220,
220,
5001,
62,
20888,
796,
2160,
7,
43775,
764,
9,
264,
7568,
13,
79,
18737,
62,
20888,
8,
198,
220,
220,
220,
220,
220,
220,
220,
357,
26,
7303,
11,
5001,
62,
20888,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
3297,
0,
7,
7568,
11,
1058,
1837,
23650,
8,
198,
437,
198,
198,
1,
13615,
257,
1366,
5739,
351,
262,
2836,
338,
15320,
7498,
284,
1910,
526,
198,
8818,
45329,
62,
4102,
62,
1462,
62,
10728,
62,
634,
13652,
7,
7220,
62,
312,
3712,
52,
5317,
2414,
8,
198,
220,
220,
220,
279,
69,
796,
45329,
62,
2220,
62,
634,
13652,
7,
7220,
62,
312,
8,
198,
220,
220,
220,
47764,
796,
45329,
62,
8094,
276,
62,
2946,
654,
7,
328,
62,
2946,
654,
62,
7890,
62,
14535,
7,
79,
69,
4008,
198,
220,
220,
220,
5003,
62,
13000,
796,
45329,
62,
30350,
62,
13000,
7,
79,
69,
8,
198,
220,
220,
220,
611,
299,
808,
7,
7568,
8,
1875,
657,
198,
220,
220,
220,
220,
220,
220,
220,
45329,
62,
4102,
62,
1462,
62,
10728,
0,
7,
7568,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
7568,
11,
5003,
62,
13000,
8,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
47764,
796,
6060,
19778,
26933,
30350,
62,
13000,
12962,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
47764,
198,
437,
198,
198,
1,
13615,
262,
2493,
1659,
48590,
5003,
355,
3706,
46545,
326,
460,
307,
598,
1631,
284,
262,
15320,
1366,
5739,
526,
198,
8818,
45329,
62,
30350,
62,
13000,
7,
79,
69,
3712,
40,
70,
13924,
13652,
8,
198,
220,
220,
220,
1441,
357,
1837,
23650,
796,
366,
34,
11211,
25,
29072,
1600,
7303,
796,
279,
69,
13,
30350,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5001,
62,
20888,
796,
352,
13,
15,
11,
1459,
62,
20888,
796,
352,
13,
15,
11,
1910,
62,
8367,
796,
279,
69,
13,
30350,
8,
198,
437,
198,
198,
1,
4550,
15180,
351,
1459,
2756,
290,
1910,
1988,
1,
198,
8818,
45329,
62,
4102,
62,
1462,
62,
10728,
0,
7,
7568,
3712,
23839,
6601,
19778,
8,
198,
220,
220,
220,
47764,
13,
14421,
62,
20888,
796,
685,
328,
62,
1136,
62,
22708,
7,
82,
8,
329,
264,
287,
47764,
13,
1837,
23650,
60,
198,
220,
220,
220,
47764,
13,
10728,
62,
8367,
796,
47764,
13,
1477,
3565,
764,
9,
47764,
13,
14421,
62,
20888,
198,
220,
220,
220,
1441,
47764,
198,
437,
198,
198,
1,
26227,
1366,
5739,
1262,
2495,
3084,
1,
198,
8818,
45329,
62,
1177,
62,
11487,
7,
3712,
35700,
7680,
11,
47764,
3712,
23839,
6601,
19778,
8,
198,
220,
220,
220,
1441,
2495,
62,
11487,
7,
10100,
11,
47764,
26,
198,
220,
220,
220,
220,
220,
220,
220,
5794,
1010,
796,
18253,
62,
687,
1436,
11,
13639,
796,
3891,
7,
7568,
4008,
198,
437,
198,
198,
1,
13615,
15320,
1570,
355,
4731,
287,
257,
2829,
5794,
1,
198,
8818,
45329,
62,
1177,
62,
11487,
7,
3712,
26437,
7680,
11,
47764,
3712,
23839,
6601,
19778,
8,
198,
220,
220,
220,
33245,
796,
314,
9864,
13712,
3419,
198,
220,
220,
220,
1303,
2488,
12860,
366,
328,
62,
1177,
62,
11487,
1,
47764,
198,
220,
220,
220,
329,
357,
72,
11,
374,
8,
287,
27056,
378,
7,
27379,
808,
7,
7568,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
611,
5145,
9688,
2032,
342,
7,
81,
13,
1837,
23650,
11,
366,
34,
11211,
25,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
44872,
7,
952,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
11,
27071,
33172,
374,
13,
1837,
23650,
11,
366,
25,
33172,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2835,
7,
5317,
11,
374,
13,
1477,
3565,
828,
366,
2124,
3467,
3,
1600,
5794,
62,
17287,
7,
81,
13,
20888,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
796,
3467,
3,
1600,
5794,
62,
17287,
7,
744,
7,
5317,
11,
374,
13,
17287,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
44872,
7,
952,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
11,
27071,
33172,
374,
13,
1837,
23650,
11,
366,
796,
33172,
5794,
62,
17287,
7,
744,
7,
5317,
11,
374,
13,
17287,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1441,
10903,
7,
20657,
0,
7,
952,
4008,
198,
437,
198,
198,
1,
35561,
257,
46545,
286,
734,
9667,
416,
2045,
736,
422,
1909,
338,
3128,
1,
198,
8818,
2274,
62,
4475,
62,
9521,
7,
5460,
1891,
3712,
10430,
5990,
2101,
8,
198,
220,
220,
220,
309,
796,
1459,
62,
4475,
3419,
198,
220,
220,
220,
284,
62,
4475,
796,
309,
198,
220,
220,
220,
422,
62,
4475,
796,
309,
532,
804,
1891,
198,
220,
220,
220,
1441,
422,
62,
4475,
11,
284,
62,
4475,
198,
437,
198,
198,
31,
76,
735,
540,
1459,
62,
4475,
3419,
796,
1909,
3419,
198,
198,
37811,
198,
13615,
257,
1366,
5739,
351,
6754,
4536,
1366,
13,
29201,
82,
2291,
25,
198,
12,
4600,
10430,
63,
198,
12,
4600,
11505,
63,
198,
12,
4600,
11922,
63,
198,
12,
4600,
20535,
63,
198,
12,
4600,
26125,
63,
198,
12,
4600,
2782,
73,
13872,
63,
198,
12,
4600,
31715,
63,
198,
37811,
198,
8818,
45329,
62,
10034,
12409,
62,
1050,
1063,
7,
1837,
23650,
3712,
23839,
10100,
11,
422,
62,
4475,
3712,
10430,
11,
284,
62,
4475,
3712,
10430,
8,
198,
220,
220,
220,
422,
62,
2363,
796,
4201,
62,
20777,
62,
30986,
7,
6738,
62,
4475,
8,
198,
220,
220,
220,
284,
62,
2363,
796,
4201,
62,
20777,
62,
30986,
7,
1462,
62,
4475,
1343,
3596,
7,
16,
4008,
220,
1303,
5729,
11,
16551,
318,
8568,
319,
428,
886,
198,
220,
220,
220,
6194,
796,
14626,
13,
41915,
9900,
7,
1837,
23650,
8,
198,
220,
220,
220,
19016,
796,
366,
5450,
1378,
22766,
16,
13,
69,
14149,
13,
40774,
13,
785,
14,
85,
22,
14,
69,
14149,
14,
15002,
32624,
1837,
23650,
1701,
1635,
198,
220,
220,
220,
220,
220,
220,
220,
366,
41007,
16,
43641,
6738,
62,
2363,
5,
41007,
17,
43641,
1462,
62,
2363,
5,
3849,
2100,
28,
16,
67,
5,
31534,
28,
23569,
5,
17256,
39668,
276,
26125,
28,
7942,
1,
198,
220,
220,
220,
1949,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6060,
19778,
7,
7902,
53,
13,
8979,
7,
10002,
82,
13,
15002,
7,
6371,
22305,
198,
220,
220,
220,
4929,
409,
198,
220,
220,
220,
220,
220,
220,
220,
611,
409,
318,
64,
50093,
13,
18453,
12331,
11405,
409,
13,
26209,
13,
13376,
6624,
32320,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3714,
7,
40,
70,
12982,
12331,
7203,
8117,
318,
645,
6754,
4536,
329,
720,
1837,
23650,
13,
1148,
340,
257,
4938,
4283,
6194,
1701,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
302,
16939,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
437,
198,
198,
1,
43328,
257,
2829,
2756,
8262,
1,
198,
8818,
45329,
62,
40926,
7,
1837,
23650,
3712,
23839,
10100,
11,
9667,
3712,
38469,
90,
10430,
5512,
3815,
3712,
38469,
90,
27,
25,
15633,
30072,
198,
220,
220,
220,
7505,
7,
25,
21953,
8,
198,
220,
220,
220,
6001,
796,
26250,
198,
220,
220,
220,
9647,
796,
6001,
1635,
1467,
6184,
115,
860,
198,
220,
220,
220,
422,
62,
4475,
11,
284,
62,
4475,
796,
1070,
260,
2611,
7,
19581,
8,
198,
220,
220,
220,
938,
62,
20888,
62,
2536,
796,
5794,
62,
17287,
7,
12957,
7,
27160,
4008,
198,
220,
220,
220,
279,
796,
7110,
7,
19581,
11,
3815,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3670,
796,
17971,
1837,
23650,
23121,
29431,
7198,
6738,
62,
4475,
284,
720,
1462,
62,
4475,
19415,
77,
5956,
2756,
25,
720,
12957,
62,
20888,
62,
2536,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
9493,
413,
5649,
796,
362,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2546,
796,
357,
10394,
11,
6001,
828,
198,
220,
220,
220,
220,
220,
220,
220,
8177,
796,
2147,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4378,
10331,
7857,
796,
1105,
11,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
29472,
796,
20218,
3672,
3419,
1635,
27071,
11134,
1,
198,
220,
220,
220,
3613,
5647,
7,
79,
11,
29472,
8,
198,
220,
220,
220,
1441,
29472,
198,
437,
198,
198,
1,
16742,
6041,
329,
257,
2176,
4283,
287,
262,
15320,
13,
33947,
416,
5001,
3128,
526,
198,
8818,
45329,
62,
19796,
62,
75,
1747,
7,
79,
69,
3712,
40,
70,
13924,
13652,
11,
6194,
3712,
23839,
10100,
8,
198,
220,
220,
220,
6041,
796,
28818,
26807,
278,
58,
87,
329,
2124,
287,
279,
69,
13,
2946,
654,
611,
2124,
13,
1837,
23650,
6624,
6194,
60,
198,
220,
220,
220,
1441,
3297,
7,
75,
1747,
11,
300,
83,
796,
357,
87,
11,
88,
8,
4613,
2124,
13,
4475,
1279,
331,
13,
4475,
8,
198,
437,
198,
198,
1,
13615,
2472,
1271,
286,
7303,
329,
257,
2176,
4283,
287,
262,
15320,
526,
198,
8818,
45329,
62,
9127,
62,
1477,
3565,
7,
79,
69,
3712,
40,
70,
13924,
13652,
11,
6194,
3712,
23839,
10100,
8,
198,
220,
220,
220,
6041,
796,
45329,
62,
19796,
62,
75,
1747,
7,
79,
69,
11,
6194,
8,
198,
220,
220,
220,
1441,
4129,
7,
75,
1747,
8,
1875,
657,
5633,
2835,
7,
16345,
7,
26487,
13,
1477,
3565,
329,
1256,
287,
6041,
1776,
19561,
796,
657,
8,
1058,
657,
198,
220,
220,
220,
1303,
3465,
326,
356,
3650,
7303,
355,
48436,
2414,
475,
3544,
340,
355,
2558,
357,
1640,
783,
8,
198,
437,
198,
198,
43012,
62,
20777,
62,
30986,
7,
67,
3712,
10430,
8,
796,
357,
67,
532,
3596,
7,
22,
1129,
24136,
29720,
8625,
415,
13,
41007,
82,
13,
8367,
1635,
1987,
1635,
3126,
1635,
3126,
198,
198,
8818,
3128,
62,
41007,
7,
82,
3712,
23839,
10100,
8,
198,
220,
220,
220,
285,
796,
2872,
7,
81,
1,
61,
38016,
67,
10,
5769,
58,
4948,
67,
12962,
3,
1600,
264,
8,
198,
220,
220,
220,
285,
5145,
855,
2147,
8614,
3714,
7,
40,
70,
12982,
12331,
7203,
259,
12102,
3128,
2278,
25,
720,
82,
13,
9993,
4600,
20,
88,
63,
393,
4600,
1270,
76,
63,
526,
4008,
198,
220,
220,
220,
997,
796,
21136,
7,
5317,
11,
285,
13,
27144,
942,
58,
16,
12962,
198,
220,
220,
220,
288,
310,
796,
360,
713,
7203,
88,
1,
5218,
6280,
11,
366,
76,
1,
5218,
16061,
11,
366,
67,
1,
5218,
3596,
8,
198,
220,
220,
220,
1441,
288,
310,
58,
76,
13,
27144,
942,
58,
17,
11907,
7,
22510,
8,
198,
437,
198
] | 2.522702 | 8,127 |
function p53(data::Dict)
# Setup basic dimensions of arrays
# Parse & check FEdict data
if :struc_el in keys(data)
struc_el = data[:struc_el]
else
println("No fin_el type specified.")
return
end
ndim = struc_el.ndim
nst = struc_el.nst
fin_el = struc_el.fin_el
@assert typeof(fin_el) <: FiniteElement
if typeof(fin_el) == Line
(nels, nn) = mesh_size(fin_el, struc_el.nxe)
elseif typeof(fin_el) == Triangle || typeof(fin_el) == Quadrilateral
(nels, nn) = mesh_size(fin_el, struc_el.nxe, struc_el.nye)
elseif typeof(fin_el) == Hexahedron
(nels, nn) = mesh_size(fin_el, struc_el.nxe, struc_el.nye, struc_el.nze)
else
println("$(typeof(fin_el)) is not a known finite element.")
return
end
nodof = fin_el.nodof # Degrees of freedom per node
ndof = fin_el.nod * nodof # Degrees of freedom per fin_el
# Update penalty if specified in FEdict
penalty = 1e20
if :penalty in keys(data)
penalty = data[:penalty]
end
# Allocate all arrays
# Start with arrays to be initialized from FEdict
if :properties in keys(data)
prop = zeros(size(data[:properties], 1), size(data[:properties], 2))
for i in 1:size(data[:properties], 1)
prop[i, :] = data[:properties][i, :]
end
else
println("No :properties key found in FEdict")
end
nf = ones(Int, nodof, nn)
if :support in keys(data)
for i in 1:size(data[:support], 1)
nf[:, data[:support][i][1]] = data[:support][i][2]
end
end
x_coords = zeros(nn)
if :x_coords in keys(data)
x_coords = data[:x_coords]
end
y_coords = zeros(nn)
if :y_coords in keys(data)
y_coords = data[:y_coords]
end
z_coords = zeros(nn)
if :z_coords in keys(data)
z_coords = data[:z_coords]
end
etype = ones(Int, nels)
if :etype in keys(data)
etype = data[:etype]
end
# All other arrays
points = zeros(struc_el.nip, ndim)
g = zeros(Int, ndof)
g_coord = zeros(ndim,nn)
fun = zeros(fin_el.nod)
coord = zeros(fin_el.nod, ndim)
gamma = zeros(nels)
jac = zeros(ndim, ndim)
g_num = zeros(Int, fin_el.nod, nels)
der = zeros(ndim, fin_el.nod)
deriv = zeros(ndim, fin_el.nod)
bee = zeros(nst,ndof)
km = zeros(ndof, ndof)
mm = zeros(ndof, ndof)
gm = zeros(ndof, ndof)
kg = zeros(ndof, ndof)
eld = zeros(ndof)
weights = zeros(struc_el.nip)
g_g = zeros(Int, ndof, nels)
num = zeros(Int, fin_el.nod)
actions = zeros(ndof, nels)
displacements = zeros(size(nf, 1), ndim)
gc = ones(ndim)
dee = zeros(nst,nst)
sigma = zeros(nst)
axial = zeros(nels)
formnf!(nodof, nn, nf)
neq = maximum(nf)
println("There are $(neq) equations.\n")
# Find global array sizes
for iel in 1:nels
hexahedron_xz!(iel, x_coords, y_coords, z_coords, coord, num)
num_to_g!(num, nf, g)
g_num[:, iel] = num
g_coord[:, num] = coord'
g_g[:, iel] = g
end
sample!(fin_el, points, weights)
gsm = spzeros(neq, neq)
for iel in 1:nels
deemat!(dee, prop[etype[iel], 1], prop[etype[iel], 2])
num = g_num[:, iel]
coord = g_coord[:, num]' # Transpose
g = g_g[:, iel]
km = zeros(ndof, ndof)
for i in 1:struc_el.nip
shape_der!(der, points, i)
jac = der*coord
detm = det(jac)
jac = inv(jac)
deriv = jac*der
beemat!(bee, deriv)
km += (bee')*dee*bee*detm*weights[i]
end
fsparm!(gsm, g, km)
end
loads = OffsetArray(zeros(neq + 1), 0:neq)
if :loaded_nodes in keys(data)
for i in 1:size(data[:loaded_nodes], 1)
loads[nf[:, data[:loaded_nodes][i][1]]] = data[:loaded_nodes][i][2]
end
end
fixed_freedoms = 0
if :fixed_freedoms in keys(data)
fixed_freedoms = size(data[:fixed_freedoms], 1)
end
no = zeros(Int, fixed_freedoms)
node = zeros(Int, fixed_freedoms)
sense = zeros(Int, fixed_freedoms)
value = zeros(Float64, fixed_freedoms)
if :fixed_freedoms in keys(data) && fixed_freedoms > 0
for i in 1:fixed_freedoms
no[i] = nf[data[:fixed_freedoms][i][2], data[:fixed_freedoms][i][1]]
value[i] = data[:fixed_freedoms][i][3]
gsm[no[i], no[i]] += penalty
loads[no[i]] = gsm[no[i], no[i]] * value[i]
end
end
cfgsm = cholesky(gsm)
loads[1:neq] = cfgsm \ loads[1:neq]
displacements = zeros(size(nf))
for i in 1:size(displacements, 1)
for j in 1:size(displacements, 2)
if nf[i, j] > 0
displacements[i,j] = loads[nf[i, j]]
end
end
end
displacements = displacements'
dis_df = DataFrame(
r_disp = displacements[:, 1],
y_disp = displacements[:, 2],
z_disp = displacements[:, 3]
)
struc_el.nip = 1
points = zeros(struc_el.nip, ndim)
weights = zeros(struc_el.nip)
sample!(fin_el, points, weights)
gc1 = Vector{Float64}()
gc2 = Vector{Float64}()
s1 = Vector{Float64}()
s2 = Vector{Float64}()
s3 = Vector{Float64}()
t1 = Vector{Float64}()
t2 = Vector{Float64}()
t3 = Vector{Float64}()
for iel in 1:nels
deemat!(dee, prop[etype[iel], 1], prop[etype[iel], 2])
num = g_num[:, iel]
coord = g_coord[:, num]'
g = g_g[:, iel]
eld = loads[g]
for i in 1:struc_el.nip
shape_fun!(fun, points, i)
shape_der!(der, points, i)
gc = fun'*coord
jac = inv(der*coord)
deriv = jac*der
beemat!(bee, deriv)
sigma = dee*(bee*eld)
gc1 = append!(gc1, gc[1])
gc2 = append!(gc2, gc[2])
s1 = append!(s1, sigma[1])
s2 = append!(s2, sigma[2])
s3 = append!(s3, sigma[3])
t1 = append!(t1, sigma[4])
t2 = append!(t2, sigma[5])
t3 = append!(t3, sigma[6])
end
end
sigma_df = DataFrame(
r_coord = gc1,
y_coord = gc2,
sig_x = s1,
sig_y = s2,
sig_z = s3,
tau_xy = t1,
tau_yz = t2,
tau_zx = t3
)
fem = PtFEM.jFEM(struc_el, fin_el, ndim, nels, nst, ndof, nn, nodof,
neq, penalty, etype, g, g_g, g_num, nf, no,
node, num, sense, actions, bee, coord, gamma, dee,
der, deriv, displacements, eld, fun, gc, g_coord, jac,
km, mm, kg, cfgsm, loads, points, prop, sigma, value,
weights, x_coords, y_coords, z_coords, axial)
(fem, dis_df, sigma_df)
end
| [
8818,
279,
4310,
7,
7890,
3712,
35,
713,
8,
198,
220,
220,
198,
220,
1303,
31122,
4096,
15225,
286,
26515,
198,
220,
220,
198,
220,
1303,
2547,
325,
1222,
2198,
376,
7407,
713,
1366,
198,
220,
220,
198,
220,
611,
1058,
19554,
66,
62,
417,
287,
8251,
7,
7890,
8,
198,
220,
220,
220,
2874,
66,
62,
417,
796,
1366,
58,
25,
19554,
66,
62,
417,
60,
198,
220,
2073,
198,
220,
220,
220,
44872,
7203,
2949,
957,
62,
417,
2099,
7368,
19570,
198,
220,
220,
220,
1441,
198,
220,
886,
198,
220,
220,
198,
220,
299,
27740,
796,
2874,
66,
62,
417,
13,
358,
320,
198,
220,
299,
301,
796,
2874,
66,
62,
417,
13,
77,
301,
198,
220,
220,
198,
220,
957,
62,
417,
796,
2874,
66,
62,
417,
13,
15643,
62,
417,
198,
220,
2488,
30493,
2099,
1659,
7,
15643,
62,
417,
8,
1279,
25,
4463,
578,
20180,
198,
220,
220,
198,
220,
611,
2099,
1659,
7,
15643,
62,
417,
8,
6624,
6910,
198,
220,
220,
220,
357,
19423,
11,
299,
77,
8,
796,
19609,
62,
7857,
7,
15643,
62,
417,
11,
2874,
66,
62,
417,
13,
77,
27705,
8,
198,
220,
2073,
361,
2099,
1659,
7,
15643,
62,
417,
8,
6624,
33233,
8614,
2099,
1659,
7,
15643,
62,
417,
8,
6624,
20648,
81,
14796,
198,
220,
220,
220,
357,
19423,
11,
299,
77,
8,
796,
19609,
62,
7857,
7,
15643,
62,
417,
11,
2874,
66,
62,
417,
13,
77,
27705,
11,
2874,
66,
62,
417,
13,
3281,
68,
8,
198,
220,
2073,
361,
2099,
1659,
7,
15643,
62,
417,
8,
6624,
22212,
64,
704,
1313,
198,
220,
220,
220,
357,
19423,
11,
299,
77,
8,
796,
19609,
62,
7857,
7,
15643,
62,
417,
11,
2874,
66,
62,
417,
13,
77,
27705,
11,
2874,
66,
62,
417,
13,
3281,
68,
11,
2874,
66,
62,
417,
13,
77,
2736,
8,
198,
220,
2073,
198,
220,
220,
220,
44872,
7203,
3,
7,
4906,
1659,
7,
15643,
62,
417,
4008,
318,
407,
257,
1900,
27454,
5002,
19570,
198,
220,
220,
220,
1441,
198,
220,
886,
198,
220,
220,
220,
220,
220,
198,
220,
18666,
1659,
796,
957,
62,
417,
13,
77,
375,
1659,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
25905,
6037,
286,
4925,
583,
10139,
198,
220,
299,
67,
1659,
796,
957,
62,
417,
13,
77,
375,
1635,
18666,
1659,
220,
220,
220,
220,
220,
1303,
25905,
6037,
286,
4925,
583,
957,
62,
417,
198,
220,
220,
198,
220,
1303,
10133,
7389,
611,
7368,
287,
376,
7407,
713,
198,
220,
220,
198,
220,
7389,
796,
352,
68,
1238,
198,
220,
611,
1058,
3617,
6017,
287,
8251,
7,
7890,
8,
198,
220,
220,
220,
7389,
796,
1366,
58,
25,
3617,
6017,
60,
198,
220,
886,
198,
220,
220,
198,
220,
1303,
1439,
13369,
477,
26515,
198,
220,
220,
198,
220,
1303,
7253,
351,
26515,
284,
307,
23224,
422,
376,
7407,
713,
198,
220,
220,
198,
220,
611,
1058,
48310,
287,
8251,
7,
7890,
8,
198,
220,
220,
220,
2632,
796,
1976,
27498,
7,
7857,
7,
7890,
58,
25,
48310,
4357,
352,
828,
2546,
7,
7890,
58,
25,
48310,
4357,
362,
4008,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
7857,
7,
7890,
58,
25,
48310,
4357,
352,
8,
198,
220,
220,
220,
220,
220,
2632,
58,
72,
11,
1058,
60,
796,
1366,
58,
25,
48310,
7131,
72,
11,
1058,
60,
198,
220,
220,
220,
886,
198,
220,
2073,
198,
220,
220,
220,
44872,
7203,
2949,
1058,
48310,
1994,
1043,
287,
376,
7407,
713,
4943,
198,
220,
886,
198,
220,
220,
220,
220,
198,
220,
299,
69,
796,
3392,
7,
5317,
11,
18666,
1659,
11,
299,
77,
8,
198,
220,
611,
1058,
11284,
287,
8251,
7,
7890,
8,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
7857,
7,
7890,
58,
25,
11284,
4357,
352,
8,
198,
220,
220,
220,
220,
220,
299,
69,
58,
45299,
1366,
58,
25,
11284,
7131,
72,
7131,
16,
11907,
796,
1366,
58,
25,
11284,
7131,
72,
7131,
17,
60,
198,
220,
220,
220,
886,
198,
220,
886,
198,
220,
220,
198,
220,
2124,
62,
1073,
3669,
796,
1976,
27498,
7,
20471,
8,
198,
220,
611,
1058,
87,
62,
1073,
3669,
287,
8251,
7,
7890,
8,
198,
220,
220,
220,
2124,
62,
1073,
3669,
796,
1366,
58,
25,
87,
62,
1073,
3669,
60,
198,
220,
886,
198,
220,
220,
198,
220,
331,
62,
1073,
3669,
796,
1976,
27498,
7,
20471,
8,
198,
220,
611,
1058,
88,
62,
1073,
3669,
287,
8251,
7,
7890,
8,
198,
220,
220,
220,
331,
62,
1073,
3669,
796,
1366,
58,
25,
88,
62,
1073,
3669,
60,
198,
220,
886,
198,
220,
220,
198,
220,
1976,
62,
1073,
3669,
796,
1976,
27498,
7,
20471,
8,
198,
220,
611,
1058,
89,
62,
1073,
3669,
287,
8251,
7,
7890,
8,
198,
220,
220,
220,
1976,
62,
1073,
3669,
796,
1366,
58,
25,
89,
62,
1073,
3669,
60,
198,
220,
886,
628,
220,
304,
4906,
796,
3392,
7,
5317,
11,
299,
1424,
8,
198,
220,
611,
1058,
2963,
431,
287,
8251,
7,
7890,
8,
198,
220,
220,
220,
304,
4906,
796,
1366,
58,
25,
2963,
431,
60,
198,
220,
886,
198,
220,
220,
198,
220,
1303,
1439,
584,
26515,
198,
220,
220,
198,
220,
2173,
796,
1976,
27498,
7,
19554,
66,
62,
417,
13,
77,
541,
11,
299,
27740,
8,
198,
220,
308,
796,
1976,
27498,
7,
5317,
11,
299,
67,
1659,
8,
198,
220,
308,
62,
37652,
796,
1976,
27498,
7,
358,
320,
11,
20471,
8,
198,
220,
1257,
796,
1976,
27498,
7,
15643,
62,
417,
13,
77,
375,
8,
198,
220,
6349,
796,
1976,
27498,
7,
15643,
62,
417,
13,
77,
375,
11,
299,
27740,
8,
198,
220,
34236,
796,
1976,
27498,
7,
19423,
8,
198,
220,
474,
330,
796,
1976,
27498,
7,
358,
320,
11,
299,
27740,
8,
198,
220,
308,
62,
22510,
796,
1976,
27498,
7,
5317,
11,
957,
62,
417,
13,
77,
375,
11,
299,
1424,
8,
198,
220,
4587,
796,
1976,
27498,
7,
358,
320,
11,
957,
62,
417,
13,
77,
375,
8,
198,
220,
16124,
796,
1976,
27498,
7,
358,
320,
11,
957,
62,
417,
13,
77,
375,
8,
198,
220,
20697,
796,
1976,
27498,
7,
77,
301,
11,
358,
1659,
8,
198,
220,
10571,
796,
1976,
27498,
7,
358,
1659,
11,
299,
67,
1659,
8,
198,
220,
8085,
796,
1976,
27498,
7,
358,
1659,
11,
299,
67,
1659,
8,
198,
220,
308,
76,
796,
1976,
27498,
7,
358,
1659,
11,
299,
67,
1659,
8,
198,
220,
14211,
796,
1976,
27498,
7,
358,
1659,
11,
299,
67,
1659,
8,
198,
220,
18441,
796,
1976,
27498,
7,
358,
1659,
8,
198,
220,
19590,
796,
1976,
27498,
7,
19554,
66,
62,
417,
13,
77,
541,
8,
198,
220,
308,
62,
70,
796,
1976,
27498,
7,
5317,
11,
299,
67,
1659,
11,
299,
1424,
8,
198,
220,
997,
796,
1976,
27498,
7,
5317,
11,
957,
62,
417,
13,
77,
375,
8,
198,
220,
4028,
796,
1976,
27498,
7,
358,
1659,
11,
299,
1424,
8,
198,
220,
7845,
28613,
796,
1976,
27498,
7,
7857,
7,
77,
69,
11,
352,
828,
299,
27740,
8,
198,
220,
308,
66,
796,
3392,
7,
358,
320,
8,
198,
220,
390,
68,
796,
1976,
27498,
7,
77,
301,
11,
77,
301,
8,
198,
220,
264,
13495,
796,
1976,
27498,
7,
77,
301,
8,
198,
220,
7877,
498,
796,
1976,
27498,
7,
19423,
8,
198,
220,
220,
198,
220,
1296,
77,
69,
0,
7,
77,
375,
1659,
11,
299,
77,
11,
299,
69,
8,
198,
220,
497,
80,
796,
5415,
7,
77,
69,
8,
198,
220,
44872,
7203,
1858,
389,
29568,
710,
80,
8,
27490,
13,
59,
77,
4943,
198,
220,
220,
198,
220,
1303,
9938,
3298,
7177,
10620,
198,
220,
220,
198,
220,
329,
1312,
417,
287,
352,
25,
19423,
198,
220,
220,
220,
17910,
64,
704,
1313,
62,
87,
89,
0,
7,
8207,
11,
2124,
62,
1073,
3669,
11,
331,
62,
1073,
3669,
11,
1976,
62,
1073,
3669,
11,
6349,
11,
997,
8,
198,
220,
220,
220,
997,
62,
1462,
62,
70,
0,
7,
22510,
11,
299,
69,
11,
308,
8,
198,
220,
220,
220,
308,
62,
22510,
58,
45299,
1312,
417,
60,
796,
997,
198,
220,
220,
220,
308,
62,
37652,
58,
45299,
997,
60,
796,
6349,
6,
198,
220,
220,
220,
308,
62,
70,
58,
45299,
1312,
417,
60,
796,
308,
198,
220,
886,
198,
220,
220,
198,
220,
6291,
0,
7,
15643,
62,
417,
11,
2173,
11,
19590,
8,
198,
220,
220,
198,
220,
308,
5796,
796,
599,
9107,
418,
7,
710,
80,
11,
497,
80,
8,
198,
220,
329,
1312,
417,
287,
352,
25,
19423,
198,
220,
220,
220,
32435,
265,
0,
7,
67,
1453,
11,
2632,
58,
2963,
431,
58,
8207,
4357,
352,
4357,
2632,
58,
2963,
431,
58,
8207,
4357,
362,
12962,
198,
220,
220,
220,
997,
796,
308,
62,
22510,
58,
45299,
1312,
417,
60,
198,
220,
220,
220,
6349,
796,
308,
62,
37652,
58,
45299,
997,
49946,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3602,
3455,
198,
220,
220,
220,
308,
796,
308,
62,
70,
58,
45299,
1312,
417,
60,
198,
220,
220,
220,
10571,
796,
1976,
27498,
7,
358,
1659,
11,
299,
67,
1659,
8,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
19554,
66,
62,
417,
13,
77,
541,
198,
220,
220,
220,
220,
220,
5485,
62,
1082,
0,
7,
1082,
11,
2173,
11,
1312,
8,
198,
220,
220,
220,
220,
220,
474,
330,
796,
4587,
9,
37652,
198,
220,
220,
220,
220,
220,
1062,
76,
796,
1062,
7,
30482,
8,
198,
220,
220,
220,
220,
220,
474,
330,
796,
800,
7,
30482,
8,
198,
220,
220,
220,
220,
220,
16124,
796,
474,
330,
9,
1082,
198,
220,
220,
220,
220,
220,
307,
368,
265,
0,
7,
20963,
11,
16124,
8,
198,
220,
220,
220,
220,
220,
10571,
15853,
357,
20963,
11537,
9,
67,
1453,
9,
20963,
9,
15255,
76,
9,
43775,
58,
72,
60,
198,
220,
220,
220,
886,
198,
220,
220,
220,
277,
2777,
1670,
0,
7,
70,
5796,
11,
308,
11,
10571,
8,
198,
220,
886,
198,
220,
220,
198,
220,
15989,
796,
3242,
2617,
19182,
7,
9107,
418,
7,
710,
80,
1343,
352,
828,
657,
25,
710,
80,
8,
198,
220,
611,
1058,
14578,
62,
77,
4147,
287,
8251,
7,
7890,
8,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
7857,
7,
7890,
58,
25,
14578,
62,
77,
4147,
4357,
352,
8,
198,
220,
220,
220,
220,
220,
15989,
58,
77,
69,
58,
45299,
1366,
58,
25,
14578,
62,
77,
4147,
7131,
72,
7131,
16,
11907,
60,
796,
1366,
58,
25,
14578,
62,
77,
4147,
7131,
72,
7131,
17,
60,
198,
220,
220,
220,
886,
198,
220,
886,
198,
220,
220,
198,
220,
5969,
62,
69,
15977,
3150,
796,
657,
198,
220,
611,
1058,
34021,
62,
69,
15977,
3150,
287,
8251,
7,
7890,
8,
198,
220,
220,
220,
5969,
62,
69,
15977,
3150,
796,
2546,
7,
7890,
58,
25,
34021,
62,
69,
15977,
3150,
4357,
352,
8,
198,
220,
886,
198,
220,
645,
796,
1976,
27498,
7,
5317,
11,
5969,
62,
69,
15977,
3150,
8,
198,
220,
10139,
796,
1976,
27498,
7,
5317,
11,
5969,
62,
69,
15977,
3150,
8,
198,
220,
2565,
796,
1976,
27498,
7,
5317,
11,
5969,
62,
69,
15977,
3150,
8,
198,
220,
1988,
796,
1976,
27498,
7,
43879,
2414,
11,
5969,
62,
69,
15977,
3150,
8,
198,
220,
611,
1058,
34021,
62,
69,
15977,
3150,
287,
8251,
7,
7890,
8,
11405,
5969,
62,
69,
15977,
3150,
1875,
657,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
34021,
62,
69,
15977,
3150,
198,
220,
220,
220,
220,
220,
645,
58,
72,
60,
796,
299,
69,
58,
7890,
58,
25,
34021,
62,
69,
15977,
3150,
7131,
72,
7131,
17,
4357,
1366,
58,
25,
34021,
62,
69,
15977,
3150,
7131,
72,
7131,
16,
11907,
198,
220,
220,
220,
220,
220,
1988,
58,
72,
60,
796,
1366,
58,
25,
34021,
62,
69,
15977,
3150,
7131,
72,
7131,
18,
60,
198,
220,
220,
220,
220,
220,
308,
5796,
58,
3919,
58,
72,
4357,
645,
58,
72,
11907,
15853,
7389,
198,
220,
220,
220,
220,
220,
15989,
58,
3919,
58,
72,
11907,
796,
308,
5796,
58,
3919,
58,
72,
4357,
645,
58,
72,
11907,
1635,
1988,
58,
72,
60,
198,
220,
220,
220,
886,
198,
220,
886,
628,
220,
30218,
70,
5796,
796,
442,
4316,
2584,
7,
70,
5796,
8,
198,
220,
15989,
58,
16,
25,
710,
80,
60,
796,
30218,
70,
5796,
3467,
15989,
58,
16,
25,
710,
80,
60,
628,
220,
7845,
28613,
796,
1976,
27498,
7,
7857,
7,
77,
69,
4008,
198,
220,
329,
1312,
287,
352,
25,
7857,
7,
6381,
489,
28613,
11,
352,
8,
198,
220,
220,
220,
329,
474,
287,
352,
25,
7857,
7,
6381,
489,
28613,
11,
362,
8,
198,
220,
220,
220,
220,
220,
611,
299,
69,
58,
72,
11,
474,
60,
1875,
657,
198,
220,
220,
220,
220,
220,
220,
220,
7845,
28613,
58,
72,
11,
73,
60,
796,
15989,
58,
77,
69,
58,
72,
11,
474,
11907,
198,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
886,
198,
220,
7845,
28613,
796,
7845,
28613,
6,
198,
220,
220,
198,
220,
595,
62,
7568,
796,
6060,
19778,
7,
198,
220,
220,
220,
374,
62,
6381,
79,
796,
7845,
28613,
58,
45299,
352,
4357,
198,
220,
220,
220,
331,
62,
6381,
79,
796,
7845,
28613,
58,
45299,
362,
4357,
198,
220,
220,
220,
1976,
62,
6381,
79,
796,
7845,
28613,
58,
45299,
513,
60,
198,
220,
1267,
198,
220,
220,
198,
220,
2874,
66,
62,
417,
13,
77,
541,
796,
352,
198,
220,
2173,
796,
1976,
27498,
7,
19554,
66,
62,
417,
13,
77,
541,
11,
299,
27740,
8,
198,
220,
19590,
796,
1976,
27498,
7,
19554,
66,
62,
417,
13,
77,
541,
8,
198,
220,
220,
198,
220,
6291,
0,
7,
15643,
62,
417,
11,
2173,
11,
19590,
8,
198,
220,
220,
198,
220,
308,
66,
16,
796,
20650,
90,
43879,
2414,
92,
3419,
198,
220,
308,
66,
17,
796,
20650,
90,
43879,
2414,
92,
3419,
198,
220,
264,
16,
796,
20650,
90,
43879,
2414,
92,
3419,
198,
220,
264,
17,
796,
20650,
90,
43879,
2414,
92,
3419,
198,
220,
264,
18,
796,
20650,
90,
43879,
2414,
92,
3419,
198,
220,
256,
16,
796,
20650,
90,
43879,
2414,
92,
3419,
198,
220,
256,
17,
796,
20650,
90,
43879,
2414,
92,
3419,
198,
220,
256,
18,
796,
20650,
90,
43879,
2414,
92,
3419,
198,
220,
220,
198,
220,
329,
1312,
417,
287,
352,
25,
19423,
198,
220,
220,
220,
32435,
265,
0,
7,
67,
1453,
11,
2632,
58,
2963,
431,
58,
8207,
4357,
352,
4357,
2632,
58,
2963,
431,
58,
8207,
4357,
362,
12962,
198,
220,
220,
220,
997,
796,
308,
62,
22510,
58,
45299,
1312,
417,
60,
198,
220,
220,
220,
6349,
796,
308,
62,
37652,
58,
45299,
997,
49946,
198,
220,
220,
220,
308,
796,
308,
62,
70,
58,
45299,
1312,
417,
60,
198,
220,
220,
220,
18441,
796,
15989,
58,
70,
60,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
19554,
66,
62,
417,
13,
77,
541,
198,
220,
220,
220,
220,
220,
5485,
62,
12543,
0,
7,
12543,
11,
2173,
11,
1312,
8,
198,
220,
220,
220,
220,
220,
5485,
62,
1082,
0,
7,
1082,
11,
2173,
11,
1312,
8,
198,
220,
220,
220,
220,
220,
308,
66,
796,
1257,
6,
9,
37652,
198,
220,
220,
220,
220,
220,
474,
330,
796,
800,
7,
1082,
9,
37652,
8,
198,
220,
220,
220,
220,
220,
16124,
796,
474,
330,
9,
1082,
198,
220,
220,
220,
220,
220,
307,
368,
265,
0,
7,
20963,
11,
16124,
8,
198,
220,
220,
220,
220,
220,
264,
13495,
796,
390,
68,
9,
7,
20963,
9,
68,
335,
8,
198,
220,
220,
220,
220,
220,
308,
66,
16,
796,
24443,
0,
7,
36484,
16,
11,
308,
66,
58,
16,
12962,
198,
220,
220,
220,
220,
220,
308,
66,
17,
796,
24443,
0,
7,
36484,
17,
11,
308,
66,
58,
17,
12962,
198,
220,
220,
220,
220,
220,
264,
16,
796,
24443,
0,
7,
82,
16,
11,
264,
13495,
58,
16,
12962,
198,
220,
220,
220,
220,
220,
264,
17,
796,
24443,
0,
7,
82,
17,
11,
264,
13495,
58,
17,
12962,
198,
220,
220,
220,
220,
220,
264,
18,
796,
24443,
0,
7,
82,
18,
11,
264,
13495,
58,
18,
12962,
198,
220,
220,
220,
220,
220,
256,
16,
796,
24443,
0,
7,
83,
16,
11,
264,
13495,
58,
19,
12962,
198,
220,
220,
220,
220,
220,
256,
17,
796,
24443,
0,
7,
83,
17,
11,
264,
13495,
58,
20,
12962,
198,
220,
220,
220,
220,
220,
256,
18,
796,
24443,
0,
7,
83,
18,
11,
264,
13495,
58,
21,
12962,
198,
220,
220,
220,
886,
198,
220,
886,
198,
220,
220,
198,
220,
264,
13495,
62,
7568,
796,
6060,
19778,
7,
198,
220,
220,
220,
374,
62,
37652,
796,
308,
66,
16,
11,
198,
220,
220,
220,
331,
62,
37652,
796,
308,
66,
17,
11,
198,
220,
220,
220,
43237,
62,
87,
796,
264,
16,
11,
198,
220,
220,
220,
43237,
62,
88,
796,
264,
17,
11,
198,
220,
220,
220,
43237,
62,
89,
796,
264,
18,
11,
198,
220,
220,
220,
256,
559,
62,
5431,
796,
256,
16,
11,
198,
220,
220,
220,
256,
559,
62,
45579,
796,
256,
17,
11,
198,
220,
220,
220,
256,
559,
62,
42592,
796,
256,
18,
198,
220,
1267,
198,
220,
220,
198,
220,
2796,
796,
34352,
37,
3620,
13,
73,
37,
3620,
7,
19554,
66,
62,
417,
11,
957,
62,
417,
11,
299,
27740,
11,
299,
1424,
11,
299,
301,
11,
299,
67,
1659,
11,
299,
77,
11,
18666,
1659,
11,
198,
220,
220,
220,
497,
80,
11,
7389,
11,
304,
4906,
11,
308,
11,
308,
62,
70,
11,
308,
62,
22510,
11,
299,
69,
11,
645,
11,
198,
220,
220,
220,
10139,
11,
997,
11,
2565,
11,
4028,
11,
20697,
11,
6349,
11,
34236,
11,
390,
68,
11,
198,
220,
220,
220,
4587,
11,
16124,
11,
7845,
28613,
11,
18441,
11,
1257,
11,
308,
66,
11,
308,
62,
37652,
11,
474,
330,
11,
198,
220,
220,
220,
10571,
11,
8085,
11,
14211,
11,
30218,
70,
5796,
11,
15989,
11,
2173,
11,
2632,
11,
264,
13495,
11,
1988,
11,
198,
220,
220,
220,
19590,
11,
2124,
62,
1073,
3669,
11,
331,
62,
1073,
3669,
11,
1976,
62,
1073,
3669,
11,
7877,
498,
8,
198,
220,
220,
198,
220,
220,
220,
357,
69,
368,
11,
595,
62,
7568,
11,
264,
13495,
62,
7568,
8,
198,
220,
886,
628
] | 2.008387 | 3,100 |
include("../src/read/read_datasets.jl")
include("../src/utils.jl")
include("../src/pq/PQ.jl");
include("../src/lsq_sparse/LSQ_SPGL1.jl");
include("../src/linscan/Linscan.jl");
function demo_lsq_sparse(
dataset_name="SIFT1M",
nread::Integer=Int(1e4))
# === Hyperparams ===
m = 7 # In LSQ we use m-1 codebooks
h = 256
verbose = true
nquery = Int(1e4)
knn = Int(1e3) # Compute recall up to
b = Int( log2(h) * m )
niter = 10
# === PQ initialization ===
x_train = read_dataset(dataset_name, nread )
d, _ = size( x_train )
C, B, train_error = train_pq(x_train, m, h, verbose)
@printf("Error after PQ is %e\n", train_error)
# === LSQ sparse train ===
ilsiter = 8
icmiter = 4
randord = true
npert = 4
randord = true
S = d*h # SLSQ1 in the paper. Use S = d*h + (d.^2) for SLSQ2
tau = 0.7 # 0.7 for SLSQ1. Use 0.9 for SLSQ2
# Multiply tau times the l1 norm of the PQ solution
taus = zeros( d )
subdims = splitarray( 1:d, m )
for i = 1:m
taus[ subdims[i] ] += sum( abs(C[i]), 2 ) .* tau
end
tau = sum( taus )
spgl1_path = joinpath( pwd(), "matlab/spgl1")
C, B, R, train_error, cbnorms, objs =
train_lsq_sparse(x_train, m, h, niter, ilsiter, icmiter, randord, npert, S, tau,
B, C, eye(Float32, d), spgl1_path)
cbnorms = vec( cbnorms[:] )
# === Encode the base set ===
nread_base = Int(1e6)
x_base = read_dataset(dataset_name * "_base", nread_base )
B_base = randinit(nread_base, m, h) # initialize B at random
ilsiter_base = 16 # LSQ-16 in the paper
for i = 1:ilsiter_base
@printf("Iteration %02d / %02d\n", i, ilsiter_base)
@time B_base = encoding_icm( x_base, B_base, C, icmiter, randord, npert, verbose )
end
base_error = qerror( x_base, B_base, C )
@printf("Error in base is %e\n", base_error)
# Compute and quantize the database norms
B_base_norms = quantize_norms( B_base, C, cbnorms )
db_norms = vec( cbnorms[ B_base_norms ] )
# === Compute recall ===
x_query = read_dataset( dataset_name * "_query", nquery, verbose )
gt = read_dataset( dataset_name * "_groundtruth", nquery, verbose )
if dataset_name == "SIFT1M" || dataset_name == "GIST1M"
gt = gt + 1;
end
gt = convert( Vector{UInt32}, gt[1,1:nquery] )
B_base = convert( Matrix{UInt8}, B_base-1 )
B_base_norms = convert( Vector{UInt8}, B_base_norms-1 )
print("Querying m=$m ... ")
@time dists, idx = linscan_lsq( B_base, x_query, C, db_norms, eye(Float32, d), knn )
println("done")
idx = convert( Matrix{UInt32}, idx );
rec = eval_recall( gt, idx, knn )
end
# train
demo_lsq_sparse()
| [
17256,
7203,
40720,
10677,
14,
961,
14,
961,
62,
19608,
292,
1039,
13,
20362,
4943,
198,
17256,
7203,
40720,
10677,
14,
26791,
13,
20362,
4943,
198,
17256,
7203,
40720,
10677,
14,
79,
80,
14,
47,
48,
13,
20362,
15341,
198,
17256,
7203,
40720,
10677,
14,
7278,
80,
62,
82,
29572,
14,
6561,
48,
62,
4303,
8763,
16,
13,
20362,
15341,
198,
17256,
7203,
40720,
10677,
14,
21602,
5171,
14,
43,
1040,
5171,
13,
20362,
15341,
198,
198,
8818,
13605,
62,
7278,
80,
62,
82,
29572,
7,
198,
220,
27039,
62,
3672,
2625,
50,
32297,
16,
44,
1600,
198,
220,
299,
961,
3712,
46541,
28,
5317,
7,
16,
68,
19,
4008,
628,
220,
1303,
24844,
15079,
37266,
24844,
198,
220,
285,
220,
220,
220,
220,
220,
220,
796,
767,
1303,
554,
30948,
48,
356,
779,
285,
12,
16,
2438,
12106,
198,
220,
289,
220,
220,
220,
220,
220,
220,
796,
17759,
198,
220,
15942,
577,
796,
2081,
198,
220,
299,
22766,
220,
796,
2558,
7,
16,
68,
19,
8,
198,
220,
638,
77,
220,
220,
220,
220,
796,
2558,
7,
16,
68,
18,
8,
1303,
3082,
1133,
10014,
510,
284,
198,
220,
275,
220,
220,
220,
220,
220,
220,
796,
2558,
7,
2604,
17,
7,
71,
8,
1635,
285,
1267,
198,
220,
299,
2676,
220,
220,
796,
838,
628,
220,
1303,
24844,
350,
48,
37588,
24844,
198,
220,
2124,
62,
27432,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
1100,
62,
19608,
292,
316,
7,
19608,
292,
316,
62,
3672,
11,
299,
961,
1267,
198,
220,
288,
11,
4808,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
2546,
7,
2124,
62,
27432,
1267,
198,
220,
327,
11,
347,
11,
4512,
62,
18224,
796,
4512,
62,
79,
80,
7,
87,
62,
27432,
11,
285,
11,
289,
11,
15942,
577,
8,
198,
220,
2488,
37435,
7203,
12331,
706,
350,
48,
318,
4064,
68,
59,
77,
1600,
4512,
62,
18224,
8,
628,
220,
1303,
24844,
30948,
48,
29877,
4512,
24844,
198,
220,
4229,
82,
2676,
796,
807,
198,
220,
14158,
76,
2676,
796,
604,
198,
220,
43720,
585,
796,
2081,
198,
220,
299,
11766,
220,
220,
796,
604,
198,
220,
43720,
585,
796,
2081,
198,
220,
311,
220,
220,
220,
220,
220,
220,
796,
288,
9,
71,
1303,
311,
6561,
48,
16,
287,
262,
3348,
13,
5765,
311,
796,
288,
9,
71,
1343,
357,
67,
13,
61,
17,
8,
329,
311,
6561,
48,
17,
198,
220,
256,
559,
220,
220,
220,
220,
796,
657,
13,
22,
1303,
657,
13,
22,
329,
311,
6561,
48,
16,
13,
5765,
657,
13,
24,
329,
311,
6561,
48,
17,
628,
220,
1303,
7854,
541,
306,
256,
559,
1661,
262,
300,
16,
2593,
286,
262,
350,
48,
4610,
198,
220,
256,
8717,
220,
220,
220,
796,
1976,
27498,
7,
288,
1267,
198,
220,
850,
67,
12078,
796,
6626,
18747,
7,
352,
25,
67,
11,
285,
1267,
198,
220,
329,
1312,
796,
352,
25,
76,
198,
220,
220,
220,
256,
8717,
58,
850,
67,
12078,
58,
72,
60,
2361,
15853,
2160,
7,
2352,
7,
34,
58,
72,
46570,
362,
1267,
764,
9,
256,
559,
198,
220,
886,
198,
220,
256,
559,
796,
2160,
7,
256,
8717,
1267,
628,
220,
599,
4743,
16,
62,
6978,
796,
4654,
6978,
7,
279,
16993,
22784,
366,
6759,
23912,
14,
2777,
4743,
16,
4943,
198,
220,
327,
11,
347,
11,
371,
11,
4512,
62,
18224,
11,
269,
9374,
579,
82,
11,
909,
8457,
796,
198,
220,
220,
220,
4512,
62,
7278,
80,
62,
82,
29572,
7,
87,
62,
27432,
11,
285,
11,
289,
11,
299,
2676,
11,
4229,
82,
2676,
11,
14158,
76,
2676,
11,
43720,
585,
11,
299,
11766,
11,
311,
11,
256,
559,
11,
198,
220,
220,
220,
347,
11,
327,
11,
4151,
7,
43879,
2624,
11,
288,
828,
599,
4743,
16,
62,
6978,
8,
198,
220,
269,
9374,
579,
82,
796,
43030,
7,
269,
9374,
579,
82,
58,
47715,
1267,
628,
220,
1303,
24844,
2039,
8189,
262,
2779,
900,
24844,
198,
220,
299,
961,
62,
8692,
220,
220,
796,
2558,
7,
16,
68,
21,
8,
198,
220,
2124,
62,
8692,
220,
220,
220,
220,
220,
220,
796,
1100,
62,
19608,
292,
316,
7,
19608,
292,
316,
62,
3672,
1635,
45434,
8692,
1600,
299,
961,
62,
8692,
1267,
198,
220,
347,
62,
8692,
220,
220,
220,
220,
220,
220,
796,
43720,
15003,
7,
77,
961,
62,
8692,
11,
285,
11,
289,
8,
1303,
41216,
347,
379,
4738,
628,
220,
4229,
82,
2676,
62,
8692,
796,
1467,
1303,
30948,
48,
12,
1433,
287,
262,
3348,
198,
220,
329,
1312,
796,
352,
25,
4487,
2676,
62,
8692,
198,
220,
220,
220,
2488,
37435,
7203,
29993,
341,
4064,
2999,
67,
1220,
4064,
2999,
67,
59,
77,
1600,
1312,
11,
4229,
82,
2676,
62,
8692,
8,
198,
220,
220,
220,
2488,
2435,
347,
62,
8692,
796,
21004,
62,
291,
76,
7,
2124,
62,
8692,
11,
347,
62,
8692,
11,
327,
11,
14158,
76,
2676,
11,
43720,
585,
11,
299,
11766,
11,
15942,
577,
1267,
198,
220,
886,
198,
220,
2779,
62,
18224,
796,
10662,
18224,
7,
2124,
62,
8692,
11,
347,
62,
8692,
11,
327,
1267,
198,
220,
2488,
37435,
7203,
12331,
287,
2779,
318,
4064,
68,
59,
77,
1600,
2779,
62,
18224,
8,
628,
220,
1303,
3082,
1133,
290,
5554,
1096,
262,
6831,
19444,
198,
220,
347,
62,
8692,
62,
27237,
82,
796,
5554,
1096,
62,
27237,
82,
7,
347,
62,
8692,
11,
327,
11,
269,
9374,
579,
82,
1267,
198,
220,
20613,
62,
27237,
82,
220,
220,
220,
220,
796,
43030,
7,
269,
9374,
579,
82,
58,
347,
62,
8692,
62,
27237,
82,
2361,
1267,
628,
220,
1303,
24844,
3082,
1133,
10014,
24844,
198,
220,
2124,
62,
22766,
796,
1100,
62,
19608,
292,
316,
7,
27039,
62,
3672,
1635,
45434,
22766,
1600,
299,
22766,
11,
15942,
577,
1267,
198,
220,
308,
83,
220,
220,
220,
220,
220,
796,
1100,
62,
19608,
292,
316,
7,
27039,
62,
3672,
1635,
45434,
2833,
35310,
1600,
299,
22766,
11,
15942,
577,
1267,
198,
220,
611,
27039,
62,
3672,
6624,
366,
50,
32297,
16,
44,
1,
8614,
27039,
62,
3672,
6624,
366,
38,
8808,
16,
44,
1,
198,
220,
220,
220,
308,
83,
796,
308,
83,
1343,
352,
26,
198,
220,
886,
198,
220,
308,
83,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
10385,
7,
20650,
90,
52,
5317,
2624,
5512,
308,
83,
58,
16,
11,
16,
25,
77,
22766,
60,
1267,
198,
220,
347,
62,
8692,
220,
220,
220,
220,
220,
220,
796,
10385,
7,
24936,
90,
52,
5317,
23,
5512,
347,
62,
8692,
12,
16,
1267,
198,
220,
347,
62,
8692,
62,
27237,
82,
796,
10385,
7,
20650,
90,
52,
5317,
23,
5512,
347,
62,
8692,
62,
27237,
82,
12,
16,
1267,
628,
220,
3601,
7203,
4507,
263,
1112,
285,
43641,
76,
2644,
366,
8,
198,
220,
2488,
2435,
288,
1023,
11,
4686,
87,
796,
300,
1040,
5171,
62,
7278,
80,
7,
347,
62,
8692,
11,
2124,
62,
22766,
11,
327,
11,
20613,
62,
27237,
82,
11,
4151,
7,
43879,
2624,
11,
288,
828,
638,
77,
1267,
198,
220,
44872,
7203,
28060,
4943,
628,
220,
4686,
87,
796,
10385,
7,
24936,
90,
52,
5317,
2624,
5512,
4686,
87,
5619,
198,
220,
664,
796,
5418,
62,
8344,
439,
7,
308,
83,
11,
4686,
87,
11,
638,
77,
1267,
198,
198,
437,
198,
198,
2,
4512,
198,
9536,
78,
62,
7278,
80,
62,
82,
29572,
3419,
198
] | 2.166935 | 1,240 |
"""
Lasso(; alpha = 0.1, tol = 1e-4, mi = 1e+8)
Lasso Regression structure. eEach parameters are as follows:
- `alpha` : leaarning rate.
- `tol` : Allowable error.
- `mi` : Maximum number of learning.
# Example
```jldoctest regression
julia> model = Lasso()
Lasso(Float64[], 0.1, 0.0001, 100000000)
julia> fit!(model, x, t)
3-element Vector{Float64}:
0.0
0.5022766549841176
154.43624186616267
julia> model(x)
20-element Vector{Float64}:
188.64541774549468
187.30088075704523
181.5191726873298
184.15748544986084
185.72158909964372
176.33798923891868
185.80014722707335
184.71565381947883
189.20524796663838
189.67502263476888
189.50409373058318
188.39535519538825
188.481083670683
188.88872347085172
182.8477136378307
188.64156231429416
181.43996475587224
188.9400571253936
179.39836073711297
185.6065850765288
```
"""
mutable struct Lasso
w::Array{Float64, 1}
α::Float64
tol::Float64
mi::Int64
Lasso(; alpha = 0.1, tol = 1e-4, mi = 1e+8) = new(Array{Float64}(undef, 0), alpha, tol, mi)
end
sfvf(x, y) = sign(x) * max(abs(x) - y, 0)
function fit!(model::Lasso, x, t)
function update!(x, t, w, α)
n, d = size(x)
w[1] = mean(t - x' * w[2:end])
wvec = fill!(Array{Float64}(undef, d), w[1])
for k in 1 : n
ww = w[2:end]
ww[k] = 0
q = (t - wvec - x' * ww) ⋅ x[k, :]
r = x[k, :] ⋅ x[k, :]
w[k+1] = sfvf(q / r, α)
end
end
α, tol, mi = model.α, model.tol, model.mi
check_size(x, t)
if ndims(x) == 1 x = x[:, :] end
w = zeros(size(x, 1) + 1)
e = 0.0
for _ in 1 : mi
eb = e
update!(x, t, w, α)
e = sum(abs.(w)) / length(w)
abs(e - eb) <= tol && break
end
model.w = w[end:-1:1]
end
(model::Lasso)(x) = expand(x)' * model.w | [
37811,
198,
220,
220,
220,
406,
28372,
7,
26,
17130,
796,
657,
13,
16,
11,
284,
75,
796,
352,
68,
12,
19,
11,
21504,
796,
352,
68,
10,
23,
8,
198,
43,
28372,
3310,
2234,
4645,
13,
304,
10871,
10007,
389,
355,
5679,
25,
198,
12,
4600,
26591,
63,
1058,
443,
64,
4228,
2494,
13,
198,
12,
4600,
83,
349,
63,
1058,
22507,
540,
4049,
13,
198,
12,
4600,
11632,
63,
1058,
22246,
1271,
286,
4673,
13,
198,
198,
2,
17934,
198,
15506,
63,
73,
335,
38441,
395,
20683,
198,
73,
43640,
29,
2746,
796,
406,
28372,
3419,
198,
43,
28372,
7,
43879,
2414,
58,
4357,
657,
13,
16,
11,
657,
13,
18005,
11,
1802,
10535,
8,
198,
198,
73,
43640,
29,
4197,
0,
7,
19849,
11,
2124,
11,
256,
8,
198,
18,
12,
30854,
20650,
90,
43879,
2414,
38362,
198,
220,
220,
657,
13,
15,
198,
220,
220,
657,
13,
1120,
24403,
36879,
2920,
5705,
1157,
4304,
198,
24235,
13,
43690,
1731,
1507,
2791,
1433,
25674,
198,
198,
73,
43640,
29,
2746,
7,
87,
8,
198,
1238,
12,
30854,
20650,
90,
43879,
2414,
38362,
198,
27778,
13,
21,
34229,
22413,
2231,
2920,
38472,
198,
27649,
13,
6200,
41655,
2425,
2154,
2231,
1954,
198,
30110,
13,
47785,
1558,
25022,
4790,
27728,
198,
28598,
13,
18458,
32642,
2598,
4089,
1899,
5705,
198,
22855,
13,
4761,
21273,
3829,
2079,
2414,
36720,
198,
26937,
13,
2091,
3720,
4531,
1954,
4531,
1507,
3104,
198,
22855,
13,
7410,
20198,
1828,
24038,
27326,
198,
28598,
13,
22,
1314,
2996,
2548,
1129,
2857,
49287,
198,
27230,
13,
21261,
1731,
3720,
27310,
2548,
2548,
198,
27230,
13,
3134,
1120,
24909,
2682,
30610,
3459,
198,
27230,
13,
1120,
29416,
2718,
1270,
3365,
36042,
198,
27778,
13,
31010,
28567,
22186,
30460,
1495,
198,
27778,
13,
2780,
15711,
2623,
2154,
47521,
198,
27778,
13,
3459,
5774,
24409,
2154,
5332,
23628,
198,
28581,
13,
23,
32883,
20809,
30695,
22996,
198,
27778,
13,
2414,
21599,
1954,
1415,
27696,
1433,
198,
30110,
13,
3559,
2079,
2414,
2425,
3365,
4761,
1731,
198,
27778,
13,
5824,
405,
3553,
11623,
2670,
2623,
198,
27228,
13,
2670,
5999,
31980,
2718,
14686,
5607,
198,
22855,
13,
1899,
2996,
25764,
29143,
25270,
198,
15506,
63,
198,
37811,
198,
76,
18187,
2878,
406,
28372,
198,
220,
220,
220,
266,
3712,
19182,
90,
43879,
2414,
11,
352,
92,
198,
220,
220,
220,
26367,
3712,
43879,
2414,
198,
220,
220,
220,
284,
75,
3712,
43879,
2414,
198,
220,
220,
220,
21504,
3712,
5317,
2414,
198,
220,
220,
220,
406,
28372,
7,
26,
17130,
796,
657,
13,
16,
11,
284,
75,
796,
352,
68,
12,
19,
11,
21504,
796,
352,
68,
10,
23,
8,
796,
649,
7,
19182,
90,
43879,
2414,
92,
7,
917,
891,
11,
657,
828,
17130,
11,
284,
75,
11,
21504,
8,
198,
437,
198,
198,
28202,
85,
69,
7,
87,
11,
331,
8,
796,
1051,
7,
87,
8,
1635,
3509,
7,
8937,
7,
87,
8,
532,
331,
11,
657,
8,
198,
198,
8818,
4197,
0,
7,
19849,
3712,
43,
28372,
11,
2124,
11,
256,
8,
198,
220,
220,
220,
2163,
4296,
0,
7,
87,
11,
256,
11,
266,
11,
26367,
8,
198,
220,
220,
220,
220,
220,
220,
220,
299,
11,
288,
796,
2546,
7,
87,
8,
198,
220,
220,
220,
220,
220,
220,
220,
266,
58,
16,
60,
796,
1612,
7,
83,
532,
2124,
6,
1635,
266,
58,
17,
25,
437,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
266,
35138,
796,
6070,
0,
7,
19182,
90,
43879,
2414,
92,
7,
917,
891,
11,
288,
828,
266,
58,
16,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
329,
479,
287,
352,
1058,
299,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
266,
86,
796,
266,
58,
17,
25,
437,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
266,
86,
58,
74,
60,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
796,
357,
83,
532,
266,
35138,
532,
2124,
6,
1635,
266,
86,
8,
2343,
233,
227,
2124,
58,
74,
11,
1058,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
796,
2124,
58,
74,
11,
1058,
60,
2343,
233,
227,
2124,
58,
74,
11,
1058,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
266,
58,
74,
10,
16,
60,
796,
264,
69,
85,
69,
7,
80,
1220,
374,
11,
26367,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
26367,
11,
284,
75,
11,
21504,
796,
2746,
13,
17394,
11,
2746,
13,
83,
349,
11,
2746,
13,
11632,
198,
220,
220,
220,
2198,
62,
7857,
7,
87,
11,
256,
8,
198,
220,
220,
220,
611,
299,
67,
12078,
7,
87,
8,
6624,
352,
2124,
796,
2124,
58,
45299,
1058,
60,
886,
198,
220,
220,
220,
266,
796,
1976,
27498,
7,
7857,
7,
87,
11,
352,
8,
1343,
352,
8,
198,
220,
220,
220,
304,
796,
657,
13,
15,
198,
220,
220,
220,
329,
4808,
287,
352,
1058,
21504,
198,
220,
220,
220,
220,
220,
220,
220,
36649,
796,
304,
198,
220,
220,
220,
220,
220,
220,
220,
4296,
0,
7,
87,
11,
256,
11,
266,
11,
26367,
8,
198,
220,
220,
220,
220,
220,
220,
220,
304,
796,
2160,
7,
8937,
12195,
86,
4008,
1220,
4129,
7,
86,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2352,
7,
68,
532,
36649,
8,
19841,
284,
75,
11405,
2270,
198,
220,
220,
220,
886,
198,
220,
220,
220,
2746,
13,
86,
796,
266,
58,
437,
21912,
16,
25,
16,
60,
198,
437,
198,
198,
7,
19849,
3712,
43,
28372,
5769,
87,
8,
796,
4292,
7,
87,
33047,
1635,
2746,
13,
86
] | 1.918665 | 959 |
# script to run inference for the OU SDEMEM model
using Pkg
using LinearAlgebra
using DataFrames
# TODO
# what to do w the adaptive tuning?
# updated resources for sbatch scripts
println("start run script")
# load functions
include(pwd()*"/src/SDEMEM OU process/ou_sdemem.jl")
include(pwd()*"/src/SDEMEM OU process/mcmc.jl")
N_time = 200
M_subjects = 40
nbr_particles = parse(Int,ARGS[1])
ρ = parse(Float64,ARGS[2])
seed = parse(Int,ARGS[3])
y,x,t_vec,dt,η,σ_ϵ,ϕ,prior_parameters_η,prior_parameters_σ_ϵ = set_up(M=M_subjects,N=N_time,seed=seed)
# run MH-Gibbs
# These are now adjusted
R = 60000
burn_in = 10000
job = string(M_subjects)*"_"*string(N_time)*"_"*string(nbr_particles)*"_"*string(ρ)
# hard coded start values
#startval_ϕ = ϕ
#startval_σ_ϵ = σ_ϵ
startval_ϕ = ones(M_subjects,3)
for j = 1:3
μ_0_j, M_0_j, α_j, β_j = prior_parameters_η[j,:]
startval_ϕ[:,j,1] = μ_0_j*ones(M_subjects)
end
startval_σ_ϵ = 0.2
# Set correct start values
startval_ϕ = ϕ
startval_σ_ϵ = σ_ϵ
startval_η = η
Σ_i_σ_ϵ = 0.02^2
Σ_i_ϕ = Matrix{Float64}[]
for i in 1:M_subjects; push!(Σ_i_ϕ, [0.06 0 0;0 0.1 0;0 0 0.06]); end
γ_ϕ_0 = 1.
γ_σ_ϵ_0 = 1.
μ_i_ϕ = startval_ϕ
μ_i_σ_ϵ = startval_σ_ϵ
α_star_ϕ = 0.25
α_star_σ_ϵ = 0.25
log_λ_i_ϕ = log.(2.4/sqrt(3)*ones(M_subjects))
log_λ_i_σ_ϵ = log(2.4)
update_interval = 1
α_power = 0.7
start_update = 100
# estimate parameters using exact Gibbs sampling
# set random numbers
Random.seed!(seed)
run_time_cpmmh = @elapsed chain_ϕ_cpmmh, chain_σ_ϵ_cpmmh, chain_η_cpmmh, accept_vec_cpmmh = gibbs_cpmmh(R,
y,
dt,
Σ_i_σ_ϵ,
Σ_i_ϕ,
γ_ϕ_0,
γ_σ_ϵ_0,
μ_i_ϕ,
μ_i_σ_ϵ,
α_star_ϕ,
α_star_σ_ϵ,
log_λ_i_ϕ,
log_λ_i_σ_ϵ,
update_interval,
start_update,
α_power,
startval_ϕ,
startval_σ_ϵ,
startval_η,
prior_parameters_η,
prior_parameters_σ_ϵ,
nbr_particles,
ρ);
println(run_time_cpmmh)
println(sum(accept_vec_cpmmh[1,:])/(M_subjects*R))
println(sum(accept_vec_cpmmh[2,:])/R)
println(sum(accept_vec_cpmmh[3,:])/(3*R))
sim_data = zeros(4,1)
sim_data[1] = run_time_cpmmh
sim_data[2] = sum(accept_vec_cpmmh[1,:])/(M_subjects*R)
sim_data[3] = sum(accept_vec_cpmmh[2,:])/R
sim_data[4] = sum(accept_vec_cpmmh[3,:])/(3*R)
# Save results
chain_ϕ_export = zeros(M_subjects*3, R)
idx = 0
for m = 1:M_subjects
for j = 1:3
global idx = idx + 1
chain_ϕ_export[idx,:] = chain_ϕ_cpmmh[m,j,:]
end
end
CSV.write("data/SDEMEM OU/cpmmh for plot mess vs N/sim_data_"*string(seed)*"_"*job*".csv", DataFrame(sim_data))
CSV.write("data/SDEMEM OU/cpmmh for plot mess vs N/chain_sigma_epsilon_"*string(seed)*"_"*job*".csv", DataFrame(chain_σ_ϵ_cpmmh'))
CSV.write("data/SDEMEM OU/cpmmh for plot mess vs N/chain_eta_"*string(seed)*"_"*job*".csv", DataFrame(chain_η_cpmmh'))
CSV.write("data/SDEMEM OU/cpmmh for plot mess vs N/chain_phi_"*string(seed)*"_"*job*".csv", DataFrame(chain_ϕ_export'))
| [
2,
4226,
284,
1057,
32278,
329,
262,
47070,
9834,
3620,
3620,
2746,
198,
3500,
350,
10025,
198,
3500,
44800,
2348,
29230,
198,
3500,
6060,
35439,
628,
198,
2,
16926,
46,
198,
2,
644,
284,
466,
266,
262,
29605,
24549,
30,
198,
2,
6153,
4133,
329,
264,
43501,
14750,
198,
198,
35235,
7203,
9688,
1057,
4226,
4943,
198,
198,
2,
3440,
5499,
198,
17256,
7,
79,
16993,
3419,
9,
1,
14,
10677,
14,
10305,
3620,
3620,
47070,
1429,
14,
280,
62,
82,
9536,
368,
13,
20362,
4943,
198,
17256,
7,
79,
16993,
3419,
9,
1,
14,
10677,
14,
10305,
3620,
3620,
47070,
1429,
14,
76,
11215,
66,
13,
20362,
4943,
198,
198,
45,
62,
2435,
796,
939,
198,
44,
62,
32796,
82,
796,
2319,
198,
198,
77,
1671,
62,
3911,
2983,
796,
21136,
7,
5317,
11,
1503,
14313,
58,
16,
12962,
198,
33643,
796,
21136,
7,
43879,
2414,
11,
1503,
14313,
58,
17,
12962,
198,
28826,
796,
21136,
7,
5317,
11,
1503,
14313,
58,
18,
12962,
198,
198,
88,
11,
87,
11,
83,
62,
35138,
11,
28664,
11,
138,
115,
11,
38392,
62,
139,
113,
11,
139,
243,
11,
3448,
273,
62,
17143,
7307,
62,
138,
115,
11,
3448,
273,
62,
17143,
7307,
62,
38392,
62,
139,
113,
796,
900,
62,
929,
7,
44,
28,
44,
62,
32796,
82,
11,
45,
28,
45,
62,
2435,
11,
28826,
28,
28826,
8,
198,
198,
2,
1057,
20752,
12,
38,
571,
1443,
198,
198,
2,
2312,
389,
783,
12328,
198,
49,
796,
718,
2388,
198,
10899,
62,
259,
796,
33028,
198,
198,
21858,
796,
4731,
7,
44,
62,
32796,
82,
27493,
1,
62,
1,
9,
8841,
7,
45,
62,
2435,
27493,
1,
62,
1,
9,
8841,
7,
77,
1671,
62,
3911,
2983,
27493,
1,
62,
1,
9,
8841,
7,
33643,
8,
198,
198,
2,
1327,
30817,
923,
3815,
198,
2,
9688,
2100,
62,
139,
243,
796,
18074,
243,
198,
2,
9688,
2100,
62,
38392,
62,
139,
113,
796,
18074,
225,
62,
139,
113,
198,
198,
9688,
2100,
62,
139,
243,
796,
3392,
7,
44,
62,
32796,
82,
11,
18,
8,
198,
198,
1640,
474,
796,
352,
25,
18,
628,
220,
220,
220,
18919,
62,
15,
62,
73,
11,
337,
62,
15,
62,
73,
11,
26367,
62,
73,
11,
27169,
62,
73,
796,
3161,
62,
17143,
7307,
62,
138,
115,
58,
73,
11,
47715,
628,
220,
220,
220,
923,
2100,
62,
139,
243,
58,
45299,
73,
11,
16,
60,
796,
18919,
62,
15,
62,
73,
9,
1952,
7,
44,
62,
32796,
82,
8,
198,
198,
437,
198,
198,
9688,
2100,
62,
38392,
62,
139,
113,
796,
657,
13,
17,
198,
198,
2,
5345,
3376,
923,
3815,
198,
9688,
2100,
62,
139,
243,
796,
18074,
243,
198,
9688,
2100,
62,
38392,
62,
139,
113,
796,
18074,
225,
62,
139,
113,
198,
9688,
2100,
62,
138,
115,
796,
7377,
115,
198,
198,
138,
96,
62,
72,
62,
38392,
62,
139,
113,
796,
657,
13,
2999,
61,
17,
198,
198,
138,
96,
62,
72,
62,
139,
243,
796,
24936,
90,
43879,
2414,
92,
21737,
198,
1640,
1312,
287,
352,
25,
44,
62,
32796,
82,
26,
4574,
0,
7,
138,
96,
62,
72,
62,
139,
243,
11,
685,
15,
13,
3312,
657,
657,
26,
15,
657,
13,
16,
657,
26,
15,
657,
657,
13,
3312,
36563,
886,
198,
198,
42063,
62,
139,
243,
62,
15,
796,
352,
13,
198,
42063,
62,
38392,
62,
139,
113,
62,
15,
796,
352,
13,
198,
34703,
62,
72,
62,
139,
243,
796,
923,
2100,
62,
139,
243,
198,
34703,
62,
72,
62,
38392,
62,
139,
113,
796,
923,
2100,
62,
38392,
62,
139,
113,
198,
17394,
62,
7364,
62,
139,
243,
796,
657,
13,
1495,
198,
17394,
62,
7364,
62,
38392,
62,
139,
113,
796,
657,
13,
1495,
198,
6404,
62,
39377,
62,
72,
62,
139,
243,
796,
2604,
12195,
17,
13,
19,
14,
31166,
17034,
7,
18,
27493,
1952,
7,
44,
62,
32796,
82,
4008,
198,
6404,
62,
39377,
62,
72,
62,
38392,
62,
139,
113,
796,
2604,
7,
17,
13,
19,
8,
198,
19119,
62,
3849,
2100,
796,
352,
198,
17394,
62,
6477,
796,
657,
13,
22,
198,
9688,
62,
19119,
796,
1802,
198,
198,
2,
8636,
10007,
1262,
2748,
41071,
19232,
198,
198,
2,
900,
4738,
3146,
198,
29531,
13,
28826,
0,
7,
28826,
8,
198,
198,
5143,
62,
2435,
62,
13155,
3020,
71,
796,
2488,
417,
28361,
6333,
62,
139,
243,
62,
13155,
3020,
71,
11,
6333,
62,
38392,
62,
139,
113,
62,
13155,
3020,
71,
11,
6333,
62,
138,
115,
62,
13155,
3020,
71,
11,
2453,
62,
35138,
62,
13155,
3020,
71,
796,
46795,
1443,
62,
13155,
3020,
71,
7,
49,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
83,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7377,
96,
62,
72,
62,
38392,
62,
139,
113,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7377,
96,
62,
72,
62,
139,
243,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7377,
111,
62,
139,
243,
62,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7377,
111,
62,
38392,
62,
139,
113,
62,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18919,
62,
72,
62,
139,
243,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18919,
62,
72,
62,
38392,
62,
139,
113,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26367,
62,
7364,
62,
139,
243,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26367,
62,
7364,
62,
38392,
62,
139,
113,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2604,
62,
39377,
62,
72,
62,
139,
243,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2604,
62,
39377,
62,
72,
62,
38392,
62,
139,
113,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4296,
62,
3849,
2100,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
923,
62,
19119,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26367,
62,
6477,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
923,
2100,
62,
139,
243,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
923,
2100,
62,
38392,
62,
139,
113,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
923,
2100,
62,
138,
115,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3161,
62,
17143,
7307,
62,
138,
115,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3161,
62,
17143,
7307,
62,
38392,
62,
139,
113,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
1671,
62,
3911,
2983,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18074,
223,
1776,
198,
198,
35235,
7,
5143,
62,
2435,
62,
13155,
3020,
71,
8,
198,
35235,
7,
16345,
7,
13635,
62,
35138,
62,
13155,
3020,
71,
58,
16,
11,
25,
12962,
29006,
44,
62,
32796,
82,
9,
49,
4008,
198,
35235,
7,
16345,
7,
13635,
62,
35138,
62,
13155,
3020,
71,
58,
17,
11,
25,
12962,
14,
49,
8,
198,
35235,
7,
16345,
7,
13635,
62,
35138,
62,
13155,
3020,
71,
58,
18,
11,
25,
12962,
29006,
18,
9,
49,
4008,
628,
198,
14323,
62,
7890,
796,
1976,
27498,
7,
19,
11,
16,
8,
198,
198,
14323,
62,
7890,
58,
16,
60,
796,
1057,
62,
2435,
62,
13155,
3020,
71,
198,
14323,
62,
7890,
58,
17,
60,
796,
2160,
7,
13635,
62,
35138,
62,
13155,
3020,
71,
58,
16,
11,
25,
12962,
29006,
44,
62,
32796,
82,
9,
49,
8,
198,
14323,
62,
7890,
58,
18,
60,
796,
2160,
7,
13635,
62,
35138,
62,
13155,
3020,
71,
58,
17,
11,
25,
12962,
14,
49,
198,
14323,
62,
7890,
58,
19,
60,
796,
2160,
7,
13635,
62,
35138,
62,
13155,
3020,
71,
58,
18,
11,
25,
12962,
29006,
18,
9,
49,
8,
628,
198,
2,
12793,
2482,
198,
198,
7983,
62,
139,
243,
62,
39344,
796,
1976,
27498,
7,
44,
62,
32796,
82,
9,
18,
11,
371,
8,
198,
198,
312,
87,
796,
657,
198,
1640,
285,
796,
352,
25,
44,
62,
32796,
82,
198,
220,
220,
220,
329,
474,
796,
352,
25,
18,
198,
220,
220,
220,
220,
220,
220,
220,
3298,
4686,
87,
796,
4686,
87,
1343,
352,
198,
220,
220,
220,
220,
220,
220,
220,
6333,
62,
139,
243,
62,
39344,
58,
312,
87,
11,
47715,
796,
6333,
62,
139,
243,
62,
13155,
3020,
71,
58,
76,
11,
73,
11,
47715,
198,
220,
220,
220,
886,
198,
437,
198,
198,
7902,
53,
13,
13564,
7203,
7890,
14,
10305,
3620,
3620,
47070,
14,
13155,
3020,
71,
329,
7110,
2085,
3691,
399,
14,
14323,
62,
7890,
62,
1,
9,
8841,
7,
28826,
27493,
1,
62,
1,
9,
21858,
9,
1911,
40664,
1600,
6060,
19778,
7,
14323,
62,
7890,
4008,
198,
7902,
53,
13,
13564,
7203,
7890,
14,
10305,
3620,
3620,
47070,
14,
13155,
3020,
71,
329,
7110,
2085,
3691,
399,
14,
7983,
62,
82,
13495,
62,
538,
18217,
261,
62,
1,
9,
8841,
7,
28826,
27493,
1,
62,
1,
9,
21858,
9,
1911,
40664,
1600,
6060,
19778,
7,
7983,
62,
38392,
62,
139,
113,
62,
13155,
3020,
71,
6,
4008,
198,
7902,
53,
13,
13564,
7203,
7890,
14,
10305,
3620,
3620,
47070,
14,
13155,
3020,
71,
329,
7110,
2085,
3691,
399,
14,
7983,
62,
17167,
62,
1,
9,
8841,
7,
28826,
27493,
1,
62,
1,
9,
21858,
9,
1911,
40664,
1600,
6060,
19778,
7,
7983,
62,
138,
115,
62,
13155,
3020,
71,
6,
4008,
198,
7902,
53,
13,
13564,
7203,
7890,
14,
10305,
3620,
3620,
47070,
14,
13155,
3020,
71,
329,
7110,
2085,
3691,
399,
14,
7983,
62,
34846,
62,
1,
9,
8841,
7,
28826,
27493,
1,
62,
1,
9,
21858,
9,
1911,
40664,
1600,
6060,
19778,
7,
7983,
62,
139,
243,
62,
39344,
6,
4008,
198
] | 1.372822 | 3,731 |
# Tests for Big Data Radial DEA Models
@testset "BigData RadialDEAModel" begin
## Test Radial DEA Models with FLS Book data
X = [5 13; 16 12; 16 26; 17 15; 18 14; 23 6; 25 10; 27 22; 37 14; 42 25; 5 17]
Y = [12; 14; 25; 26; 8; 9; 27; 30; 31; 26; 12]
# Input oriented CRS
deaio = deabigdata(X, Y, orient = :Input, rts = :CRS)
@test typeof(deaio) == RadialDEAModel
@test nobs(deaio) == 11
@test ninputs(deaio) == 2
@test noutputs(deaio) == 1
@test efficiency(deaio) ≈ [1.0000000000;
0.6222896791;
0.8198562444;
1.0000000000;
0.3103709311;
0.5555555556;
1.0000000000;
0.7576690896;
0.8201058201;
0.4905660377;
1.0000000000]
@test convert(Matrix, peers(deaio)) ≈
[1.000000000 0 0 0.0000000000 0 0 0.00000000000 0 0 0 0;
0.000000000 0 0 0.4249783174 0 0 0.10928013877 0 0 0 0;
1.134321653 0 0 0.4380053908 0 0 0.00000000000 0 0 0 0;
0.000000000 0 0 1.0000000000 0 0 0.00000000000 0 0 0 0;
0.000000000 0 0 0.2573807721 0 0 0.04844814534 0 0 0 0;
0.000000000 0 0 0.0000000000 0 0 0.33333333333 0 0 0 0;
0.000000000 0 0 0.0000000000 0 0 1.00000000000 0 0 0 0;
0.000000000 0 0 1.0348650979 0 0 0.11457435013 0 0 0 0;
0.000000000 0 0 0.0000000000 0 0 1.14814814815 0 0 0 0;
0.000000000 0 0 0.4905660377 0 0 0.49056603774 0 0 0 0;
0.000000000 0 0 0.0000000000 0 0 0.00000000000 0 0 0 1.000000000] atol = 1e-8
@test slacks(deaio, :X) ≈ [0.000000000 0;
0.000000000 0;
0.000000000 0;
0.000000000 0;
0.000000000 0;
4.444444444 0;
0.000000000 0;
0.000000000 0;
1.640211640 0;
0.000000000 0;
0.000000000 4]
@test slacks(deaio, :Y) ≈ zeros(11)
@test efficiency(deabigdata(targets(deaio, :X), targets(deaio, :Y), orient = :Input, rts = :CRS, slack = false)) ≈ ones(11)
@test efficiency(deaadd(targets(deaio, :X), targets(deaio, :Y))) ≈ zeros(11) atol=1e-14
# Otuput oriented CRS
deaoo = deabigdata(X, Y, orient = :Output, rts = :CRS)
@test nobs(deaoo) == 11
@test ninputs(deaoo) == 2
@test noutputs(deaoo) == 1
@test efficiency(deaoo) ≈ [1.0000000000;
1.606968641;
1.219726027;
1.0000000000;
3.221951220;
1.800000000;
1.0000000000;
1.319837398;
1.219354839;
2.038461538;
1.0000000000]
@test convert(Matrix, peers(deaoo)) ≈
[1.000000000 0 0 0.0000000000 0 0 0.00000000000 0 0 0 0;
0.000000000 0 0 0.6829268293 0 0 0.1756097561 0 0 0 0;
1.383561644 0 0 0.5342465753 0 0 0.00000000000 0 0 0 0;
0.000000000 0 0 1.0000000000 0 0 0.00000000000 0 0 0 0;
0.000000000 0 0 0.8292682927 0 0 0.1560975610 0 0 0 0;
0.000000000 0 0 0.0000000000 0 0 0.6000000000 0 0 0 0;
0.000000000 0 0 0.0000000000 0 0 1.00000000000 0 0 0 0;
0.000000000 0 0 1.3658536585 0 0 0.1512195122 0 0 0 0;
0.000000000 0 0 0.0000000000 0 0 1.4000000000 0 0 0 0;
0.000000000 0 0 1.0000000000 0 0 1.0000000000 0 0 0 0;
1.000000000 0 0 0.0000000000 0 0 0.00000000000 0 0 0 0]
@test slacks(deaoo, :X) ≈ [0.000000000 0;
0.000000000 0;
0.000000000 0;
0.000000000 0;
0.000000000 0;
8 0;
0.000000000 0;
0.000000000 0;
2 0;
0.000000000 0;
0.000000000 4]
@test slacks(deaoo, :Y) ≈ zeros(11)
@test efficiency(deabigdata(targets(deaoo, :X), targets(deaoo, :Y), orient = :Output, rts = :CRS, slack = false)) ≈ ones(11)
@test efficiency(deaadd(targets(deaoo, :X), targets(deaoo, :Y))) ≈ zeros(11) atol=1e-10
# Input oriented VRS
deaiovrs = deabigdata(X, Y, orient = :Input, rts = :VRS)
@test nobs(deaiovrs) == 11
@test ninputs(deaiovrs) == 2
@test noutputs(deaiovrs) == 1
@test efficiency(deaiovrs) ≈ [1.0000000000;
0.8699861687;
1.0000000000;
1.0000000000;
0.7116402116;
1.0000000000;
1.0000000000;
1.0000000000;
1.0000000000;
0.4931209269;
1.0000000000]
@test convert(Matrix, peers(deaiovrs)) ≈
[1.000000000 0 0 0.0000000000 0 0.00000000000 0.00000000000 0 0 0 0;
0.52558782849 0 0 0.0000000000 0 0.2842323651 0.1901798064 0 0 0 0;
0.000000000 0 1 0.0000000000 0 0.00000000000 0.00000000000 0 0 0 0;
0.000000000 0 0 1.0000000000 0 0.00000000000 0.00000000000 0 0 0 0;
0.56613756614 0 0 0.0000000000 0 0.4338624339 0.00000000000 0 0 0 0;
0.000000000 0 0 0.0000000000 0 1.00000000000 0.00000000000 0 0 0 0;
0.000000000 0 0 0.0000000000 0 0.00000000000 1.00000000000 0 0 0 0;
0.000000000 0 0 0.0000000000 0 0.00000000000 0.00000000000 1 0 0 0;
0.000000000 0 0 0.0000000000 0 0.00000000000 0.00000000000 0 1 0 0;
0.03711078928 0 0 0.4433381608 0 0.00000000000 0.5195510500 0 0 0 0;
0.000000000 0 0 0.0000000000 0 0.00000000000 0.00000000000 0 0 0 1.000000000]
@test slacks(deaiovrs, :X) ≈ [0.000000000 0;
0.000000000 0;
0.000000000 0;
0.000000000 0;
0.000000000 0;
0 0;
0.000000000 0;
0.000000000 0;
0 0;
0.000000000 0;
0.000000000 4]
@test slacks(deaiovrs, :Y) ≈ [0.000000000;
0.000000000;
0.000000000;
0.000000000;
2.698412698;
0.000000000;
0.000000000;
0.000000000;
0.000000000;
0.000000000;
0.000000000]
@test efficiency(deabigdata(targets(deaiovrs, :X), targets(deaiovrs, :Y), orient = :Input, rts = :VRS, slack = false)) ≈ ones(11)
@test efficiency(deaadd(targets(deaiovrs, :X), targets(deaiovrs, :Y))) ≈ zeros(11) atol=1e-12
# Output oriented VRS
deaoovrs = deabigdata(X, Y, orient = :Output, rts = :VRS)
@test nobs(deaoovrs) == 11
@test ninputs(deaoovrs) == 2
@test noutputs(deaoovrs) == 1
@test efficiency(deaoovrs) ≈ [1.0000000000;
1.507518797;
1.0000000000;
1.0000000000;
3.203947368;
1.000000000;
1.0000000000;
1.000000000;
1.000000000;
1.192307692;
1.0000000000]
@test convert(Matrix, peers(deaoovrs)) ≈
[1.000000000 0 0 0.0000000000 0 0 0.00000000000 0 0 0 0;
0.38157894737 0 0 0.1710526316 0 0 0.4473684211 0 0 0 0;
0.000000000 0 1 0.0000000000 0 0 0.00000000000 0 0 0 0;
0.000000000 0 0 1.0000000000 0 0 0.00000000000 0 0 0 0;
0.03947368421 0 0 0.7763157895 0 0 0.1842105263 0 0 0 0;
0.000000000 0 0 0.0000000000 0 1 0.00000000000 0 0 0 0;
0.000000000 0 0 0.0000000000 0 0 1.00000000000 0 0 0 0;
0.000000000 0 0 0.0000000000 0 0 0.00000000000 1 0 0 0;
0.000000000 0 0 0.0000000000 0 0 0.00000000000 0 1 0 0;
0.000000000 0 0 0.0000000000 0 0 0.00000000000 0 1 0 0;
1.000000000 0 0 0.0000000000 0 0 0.00000000000 0 0 0 0]
@test slacks(deaoovrs, :X) ≈ [0.000000000 0;
0.000000000 0;
0.000000000 0;
0.000000000 0;
0.000000000 0;
0.000000000 0;
0.000000000 0;
0.000000000 0;
0.000000000 0;
5 11;
0.000000000 4]
@test slacks(deaoovrs, :Y) ≈ zeros(11) atol=1e-10
@test efficiency(deabigdata(targets(deaoovrs, :X), targets(deaoovrs, :Y), orient = :Output, rts = :VRS, slack = false)) ≈ ones(11)
@test efficiency(deaadd(targets(deaoovrs, :X), targets(deaoovrs, :Y))) ≈ zeros(11) atol=1e-12
# Test no slacks
deaionoslack = deabigdata(X, Y, slack = false)
@test efficiency(deaionoslack) == efficiency(deaio)
@test isempty(slacks(deaionoslack, :X)) == 1
@test isempty(slacks(deaionoslack, :Y)) == 1
@test efficiency(deabigdata(targets(deaionoslack, :X), targets(deaionoslack, :Y), slack = false)) ≈ ones(11)
@test efficiency(deaadd(targets(deaionoslack, :X), targets(deaionoslack, :Y))) != zeros(11) # Different as there is no slacks in first model
# Print
show(IOBuffer(), deaio)
show(IOBuffer(), deaionoslack)
# Test errors
@test_throws DimensionMismatch deabigdata([1; 2 ; 3], [4 ; 5]) # Different number of observations
@test_throws ArgumentError deabigdata([1; 2; 3], [4; 5; 6], orient = :Error) # Invalid orientation
@test_throws ArgumentError deabigdata([1; 2; 3], [4; 5; 6], rts = :Error) # Invalid returns to scale
@test_throws ErrorException deabigdata(X, Y, atol = 0.0, optimizer = DEAOptimizer(:NLP))
# ------------------
# Test if no exteriors
# ------------------
Xnoext = [1 1; 1.5 1; 2 1]
Ynoext = [2 2; 1.5 1.5; 1 0.5]
deanoext = dea(Xnoext, Ynoext, orient = :Input)
deabignoext = deabigdata(Xnoext, Ynoext, orient = :Input)
@test efficiency(deanoext) ≈ efficiency(deabignoext)
@test slacks(deanoext, :X) ≈ slacks(deabignoext, :X)
@test slacks(deanoext, :X) ≈ slacks(deabignoext, :X)
@test targets(deanoext, :X) ≈ targets(deabignoext, :X)
@test targets(deanoext, :Y) ≈ targets(deabignoext, :Y)
@test peersmatrix(deanoext) ≈ peersmatrix(deabignoext)
# ------------------
# Test with random data
# ------------------
rng = StableRNG(1234567)
X = rand(Uniform(10, 20), 500, 6)
Y = rand(Uniform(10, 20), 500, 4)
rdea = dea(X, Y, progress = false)
rdeabig = deabigdata(X, Y, progress = false)
@test efficiency(rdeabig) ≈ efficiency(rdea)
@test slacks(rdeabig, :X) ≈ slacks(rdea, :X)
@test slacks(rdeabig, :Y) ≈ slacks(rdea, :Y)
@test targets(rdeabig, :X) ≈ targets(rdea, :X)
@test targets(rdeabig, :Y) ≈ targets(rdea, :Y)
@test peersmatrix(rdeabig) ≈ peersmatrix(rdea)
# ------------------
# Test Vector and Matrix inputs and outputs
# ------------------
# Tests against results in R
# Inputs is Matrix, Outputs is Vector
X = [2 2; 1 4; 4 1; 4 3; 5 5; 6 1; 2 5; 1.6 8]
Y = [1; 1; 1; 1; 1; 1; 1; 1]
@test efficiency(deabigdata(X, Y, orient = :Input)) ≈ [1; 1; 1; 0.6; 0.4; 1; 0.6666666667; 0.625]
# Inputs is Vector, Output is Matrix
X = [1; 1; 1; 1; 1; 1; 1; 1]
Y = [7 7; 4 8; 8 4; 3 5; 3 3; 8 2; 6 4; 1.5 5]
@test efficiency(deabigdata(X, Y, orient = :Output)) ≈ [1; 1; 1; 1.555555556; 2.333333333; 1; 1.272727273; 1.6]
# Inputs is Vector, Output is Vector
X = [2; 4; 8; 12; 6; 14; 14; 9.412]
Y = [1; 5; 8; 9; 3; 7; 9; 2.353]
@test efficiency(deabigdata(X, Y, orient = :Input)) ≈ [0.4; 1; 0.8; 0.6; 0.4; 0.4; 0.5142857143; 0.2]
end
| [
2,
30307,
329,
4403,
6060,
5325,
498,
28647,
32329,
198,
31,
9288,
2617,
366,
12804,
6601,
5325,
498,
7206,
2390,
375,
417,
1,
2221,
628,
220,
220,
220,
22492,
6208,
5325,
498,
28647,
32329,
351,
376,
6561,
4897,
1366,
198,
220,
220,
220,
1395,
796,
685,
20,
1511,
26,
1467,
1105,
26,
1467,
2608,
26,
1596,
1315,
26,
1248,
1478,
26,
2242,
718,
26,
1679,
838,
26,
2681,
2534,
26,
5214,
1478,
26,
5433,
1679,
26,
642,
1596,
60,
198,
220,
220,
220,
575,
796,
685,
1065,
26,
1478,
26,
1679,
26,
2608,
26,
807,
26,
860,
26,
2681,
26,
1542,
26,
3261,
26,
2608,
26,
1105,
60,
628,
220,
220,
220,
1303,
23412,
25921,
327,
6998,
198,
220,
220,
220,
390,
64,
952,
796,
390,
397,
328,
7890,
7,
55,
11,
575,
11,
11367,
796,
1058,
20560,
11,
374,
912,
796,
1058,
34,
6998,
8,
628,
220,
220,
220,
2488,
9288,
2099,
1659,
7,
2934,
64,
952,
8,
6624,
5325,
498,
7206,
2390,
375,
417,
628,
220,
220,
220,
2488,
9288,
645,
1443,
7,
2934,
64,
952,
8,
6624,
1367,
198,
220,
220,
220,
2488,
9288,
13462,
1996,
82,
7,
2934,
64,
952,
8,
6624,
362,
198,
220,
220,
220,
2488,
9288,
299,
22915,
82,
7,
2934,
64,
952,
8,
6624,
352,
198,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
64,
952,
8,
15139,
230,
685,
16,
13,
8269,
405,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
21,
1828,
27693,
3134,
6420,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
23,
22337,
3980,
1731,
2598,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
8269,
405,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
18,
15197,
2154,
6052,
1157,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
2816,
2816,
2816,
2816,
3980,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
8269,
405,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
39251,
36657,
2919,
4846,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
23,
1264,
2713,
23,
1264,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
2920,
2713,
39885,
26514,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
8269,
405,
60,
198,
220,
220,
220,
2488,
9288,
10385,
7,
46912,
11,
14495,
7,
2934,
64,
952,
4008,
15139,
230,
198,
220,
220,
220,
685,
16,
13,
10535,
830,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
657,
220,
657,
657,
13,
19,
21626,
50165,
22985,
220,
657,
220,
657,
657,
13,
14454,
2078,
486,
2548,
3324,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
352,
13,
19880,
2624,
1433,
4310,
220,
657,
220,
657,
657,
13,
43704,
22544,
2670,
2919,
220,
657,
220,
657,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
657,
220,
657,
352,
13,
8269,
405,
220,
657,
220,
657,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
657,
220,
657,
657,
13,
1495,
4790,
1795,
3324,
2481,
220,
657,
220,
657,
657,
13,
47202,
31115,
18781,
2682,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
657,
13,
24840,
24840,
20370,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
352,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
657,
220,
657,
352,
13,
49841,
4521,
29022,
3720,
220,
657,
220,
657,
657,
13,
1157,
2231,
4524,
2327,
30273,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
352,
13,
18294,
18294,
18294,
1314,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
657,
220,
657,
657,
13,
2920,
2713,
39885,
26514,
220,
657,
220,
657,
657,
13,
2920,
2713,
39885,
2718,
4524,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
352,
13,
10535,
830,
60,
379,
349,
796,
352,
68,
12,
23,
198,
220,
220,
220,
220,
2488,
9288,
1017,
4595,
7,
2934,
64,
952,
11,
1058,
55,
8,
15139,
230,
685,
15,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
604,
13,
2598,
2598,
2598,
30272,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
31102,
17,
18298,
1821,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
604,
60,
198,
220,
220,
220,
2488,
9288,
1017,
4595,
7,
2934,
64,
952,
11,
1058,
56,
8,
15139,
230,
1976,
27498,
7,
1157,
8,
628,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
397,
328,
7890,
7,
83,
853,
1039,
7,
2934,
64,
952,
11,
1058,
55,
828,
6670,
7,
2934,
64,
952,
11,
1058,
56,
828,
11367,
796,
1058,
20560,
11,
374,
912,
796,
1058,
34,
6998,
11,
30740,
796,
3991,
4008,
15139,
230,
3392,
7,
1157,
8,
198,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
64,
2860,
7,
83,
853,
1039,
7,
2934,
64,
952,
11,
1058,
55,
828,
6670,
7,
2934,
64,
952,
11,
1058,
56,
22305,
15139,
230,
1976,
27498,
7,
1157,
8,
379,
349,
28,
16,
68,
12,
1415,
628,
220,
220,
220,
1303,
1849,
46,
83,
929,
315,
25921,
327,
6998,
198,
220,
220,
220,
390,
64,
2238,
796,
390,
397,
328,
7890,
7,
55,
11,
575,
11,
11367,
796,
1058,
26410,
11,
374,
912,
796,
1058,
34,
6998,
8,
628,
220,
220,
220,
2488,
9288,
645,
1443,
7,
2934,
64,
2238,
8,
6624,
1367,
198,
220,
220,
220,
2488,
9288,
13462,
1996,
82,
7,
2934,
64,
2238,
8,
6624,
362,
198,
220,
220,
220,
2488,
9288,
299,
22915,
82,
7,
2934,
64,
2238,
8,
6624,
352,
198,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
64,
2238,
8,
15139,
230,
685,
16,
13,
8269,
405,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
1899,
3388,
3104,
42759,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
28896,
4761,
1899,
1983,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
8269,
405,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
513,
13,
1828,
22186,
1065,
1238,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
23,
8269,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
8269,
405,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
18,
22337,
2718,
31952,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
28896,
2327,
2780,
2670,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
362,
13,
15,
2548,
3510,
1314,
2548,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
8269,
405,
60,
198,
220,
220,
220,
2488,
9288,
10385,
7,
46912,
11,
14495,
7,
2934,
64,
2238,
4008,
15139,
230,
198,
220,
220,
220,
685,
16,
13,
10535,
830,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
657,
220,
657,
657,
13,
3104,
1959,
25022,
31675,
220,
657,
220,
657,
657,
13,
17430,
31751,
2425,
5333,
220,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
352,
13,
2548,
32066,
1433,
2598,
220,
657,
220,
657,
657,
13,
20,
2682,
1731,
2996,
44550,
220,
657,
220,
657,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
657,
220,
657,
352,
13,
8269,
405,
220,
657,
220,
657,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
657,
220,
657,
657,
13,
23,
1959,
25022,
1959,
1983,
220,
657,
220,
657,
657,
13,
1314,
31751,
38219,
940,
220,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
657,
13,
21,
10535,
830,
220,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
352,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
657,
220,
657,
352,
13,
2623,
38905,
2623,
38905,
220,
657,
220,
657,
657,
13,
1314,
1065,
22186,
18376,
220,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
352,
13,
19,
10535,
830,
220,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
657,
220,
657,
352,
13,
8269,
405,
220,
657,
220,
657,
352,
13,
8269,
405,
220,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
352,
13,
10535,
830,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
60,
198,
220,
220,
220,
220,
2488,
9288,
1017,
4595,
7,
2934,
64,
2238,
11,
1058,
55,
8,
15139,
230,
685,
15,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
807,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
362,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
604,
60,
198,
220,
220,
220,
2488,
9288,
1017,
4595,
7,
2934,
64,
2238,
11,
1058,
56,
8,
15139,
230,
1976,
27498,
7,
1157,
8,
628,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
397,
328,
7890,
7,
83,
853,
1039,
7,
2934,
64,
2238,
11,
1058,
55,
828,
6670,
7,
2934,
64,
2238,
11,
1058,
56,
828,
11367,
796,
1058,
26410,
11,
374,
912,
796,
1058,
34,
6998,
11,
30740,
796,
3991,
4008,
15139,
230,
3392,
7,
1157,
8,
198,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
64,
2860,
7,
83,
853,
1039,
7,
2934,
64,
2238,
11,
1058,
55,
828,
6670,
7,
2934,
64,
2238,
11,
1058,
56,
22305,
15139,
230,
1976,
27498,
7,
1157,
8,
379,
349,
28,
16,
68,
12,
940,
628,
220,
220,
220,
1303,
23412,
25921,
6453,
50,
198,
220,
220,
220,
390,
1872,
709,
3808,
796,
390,
397,
328,
7890,
7,
55,
11,
575,
11,
11367,
796,
1058,
20560,
11,
374,
912,
796,
1058,
53,
6998,
8,
628,
220,
220,
220,
2488,
9288,
645,
1443,
7,
2934,
1872,
709,
3808,
8,
6624,
1367,
198,
220,
220,
220,
2488,
9288,
13462,
1996,
82,
7,
2934,
1872,
709,
3808,
8,
6624,
362,
198,
220,
220,
220,
2488,
9288,
299,
22915,
82,
7,
2934,
1872,
709,
3808,
8,
6624,
352,
198,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
1872,
709,
3808,
8,
15139,
230,
685,
16,
13,
8269,
405,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
4521,
2079,
4521,
1433,
5774,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
8269,
405,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
8269,
405,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
22,
18298,
32531,
18298,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
8269,
405,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
8269,
405,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
8269,
405,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
8269,
405,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
2920,
27970,
2931,
26276,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
8269,
405,
60,
198,
220,
220,
220,
2488,
9288,
10385,
7,
46912,
11,
14495,
7,
2934,
1872,
709,
3808,
4008,
15139,
230,
198,
220,
220,
220,
685,
16,
13,
10535,
830,
220,
220,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
13,
8269,
830,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
39088,
3365,
3695,
2078,
2920,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
13,
30336,
1954,
1954,
40639,
220,
657,
13,
1129,
486,
3720,
1795,
2414,
220,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
220,
657,
220,
352,
657,
13,
8269,
405,
220,
657,
220,
657,
13,
8269,
830,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
220,
657,
220,
657,
352,
13,
8269,
405,
220,
657,
220,
657,
13,
8269,
830,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
20,
2791,
1485,
2425,
2791,
1415,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
13,
42117,
4521,
1731,
29626,
220,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
352,
13,
8269,
830,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
13,
8269,
830,
352,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
13,
8269,
830,
657,
13,
8269,
830,
220,
352,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
13,
8269,
830,
657,
13,
8269,
830,
220,
657,
220,
352,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
15,
2718,
11442,
40401,
2078,
220,
657,
220,
657,
657,
13,
2598,
2091,
2548,
1433,
2919,
220,
657,
220,
657,
13,
8269,
830,
657,
13,
47785,
2816,
940,
4059,
220,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
13,
8269,
830,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
352,
13,
10535,
830,
60,
198,
220,
220,
220,
220,
2488,
9288,
1017,
4595,
7,
2934,
1872,
709,
3808,
11,
1058,
55,
8,
15139,
230,
685,
15,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
604,
60,
198,
220,
220,
220,
2488,
9288,
1017,
4595,
7,
2934,
1872,
709,
3808,
11,
1058,
56,
8,
15139,
230,
685,
15,
13,
10535,
830,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
362,
13,
3388,
5705,
1065,
39357,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
60,
628,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
397,
328,
7890,
7,
83,
853,
1039,
7,
2934,
1872,
709,
3808,
11,
1058,
55,
828,
6670,
7,
2934,
1872,
709,
3808,
11,
1058,
56,
828,
11367,
796,
1058,
20560,
11,
374,
912,
796,
1058,
53,
6998,
11,
30740,
796,
3991,
4008,
15139,
230,
3392,
7,
1157,
8,
198,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
64,
2860,
7,
83,
853,
1039,
7,
2934,
1872,
709,
3808,
11,
1058,
55,
828,
6670,
7,
2934,
1872,
709,
3808,
11,
1058,
56,
22305,
15139,
230,
1976,
27498,
7,
1157,
8,
379,
349,
28,
16,
68,
12,
1065,
628,
220,
220,
220,
1303,
25235,
25921,
6453,
50,
198,
220,
220,
220,
390,
5488,
709,
3808,
796,
390,
397,
328,
7890,
7,
55,
11,
575,
11,
11367,
796,
1058,
26410,
11,
374,
912,
796,
1058,
53,
6998,
8,
628,
220,
220,
220,
2488,
9288,
645,
1443,
7,
2934,
5488,
709,
3808,
8,
6624,
1367,
198,
220,
220,
220,
2488,
9288,
13462,
1996,
82,
7,
2934,
5488,
709,
3808,
8,
6624,
362,
198,
220,
220,
220,
2488,
9288,
299,
22915,
82,
7,
2934,
5488,
709,
3808,
8,
6624,
352,
198,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
5488,
709,
3808,
8,
15139,
230,
685,
16,
13,
8269,
405,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
1120,
2425,
1507,
44673,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
8269,
405,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
8269,
405,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
513,
13,
1238,
2670,
2857,
27412,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
10535,
830,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
8269,
405,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
10535,
830,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
10535,
830,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
17477,
22996,
46589,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
8269,
405,
60,
198,
220,
220,
220,
2488,
9288,
10385,
7,
46912,
11,
14495,
7,
2934,
5488,
709,
3808,
4008,
15139,
230,
198,
220,
220,
220,
685,
16,
13,
10535,
830,
220,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
2548,
1314,
40401,
2857,
2718,
657,
220,
657,
657,
13,
1558,
13348,
29558,
1433,
220,
657,
220,
657,
657,
13,
34825,
27412,
3682,
1157,
220,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
220,
352,
657,
13,
8269,
405,
220,
657,
220,
657,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
220,
657,
352,
13,
8269,
405,
220,
657,
220,
657,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
15,
2670,
2857,
2623,
5705,
2481,
657,
220,
657,
657,
13,
3324,
5066,
1314,
3695,
3865,
220,
657,
220,
657,
657,
13,
1507,
3682,
13348,
29558,
220,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
352,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
352,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
657,
13,
8269,
830,
220,
352,
220,
657,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
657,
13,
8269,
830,
220,
657,
220,
352,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
657,
13,
8269,
830,
220,
657,
220,
352,
220,
220,
657,
220,
220,
657,
26,
198,
220,
220,
220,
220,
352,
13,
10535,
830,
220,
220,
657,
220,
657,
657,
13,
8269,
405,
220,
657,
220,
657,
657,
13,
8269,
830,
220,
657,
220,
657,
220,
220,
657,
220,
220,
657,
60,
198,
220,
220,
220,
2488,
9288,
1017,
4595,
7,
2934,
5488,
709,
3808,
11,
1058,
55,
8,
15139,
230,
685,
15,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
657,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
642,
220,
220,
1367,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
13,
10535,
830,
220,
220,
604,
60,
198,
220,
220,
220,
2488,
9288,
1017,
4595,
7,
2934,
5488,
709,
3808,
11,
1058,
56,
8,
15139,
230,
1976,
27498,
7,
1157,
8,
379,
349,
28,
16,
68,
12,
940,
628,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
397,
328,
7890,
7,
83,
853,
1039,
7,
2934,
5488,
709,
3808,
11,
1058,
55,
828,
6670,
7,
2934,
5488,
709,
3808,
11,
1058,
56,
828,
11367,
796,
1058,
26410,
11,
374,
912,
796,
1058,
53,
6998,
11,
30740,
796,
3991,
4008,
15139,
230,
3392,
7,
1157,
8,
198,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
64,
2860,
7,
83,
853,
1039,
7,
2934,
5488,
709,
3808,
11,
1058,
55,
828,
6670,
7,
2934,
5488,
709,
3808,
11,
1058,
56,
22305,
15139,
230,
1976,
27498,
7,
1157,
8,
379,
349,
28,
16,
68,
12,
1065,
628,
220,
220,
220,
1303,
6208,
645,
1017,
4595,
198,
220,
220,
220,
390,
64,
295,
418,
75,
441,
796,
390,
397,
328,
7890,
7,
55,
11,
575,
11,
30740,
796,
3991,
8,
198,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
64,
295,
418,
75,
441,
8,
6624,
9332,
7,
2934,
64,
952,
8,
198,
220,
220,
220,
2488,
9288,
318,
28920,
7,
6649,
4595,
7,
2934,
64,
295,
418,
75,
441,
11,
1058,
55,
4008,
6624,
352,
198,
220,
220,
220,
2488,
9288,
318,
28920,
7,
6649,
4595,
7,
2934,
64,
295,
418,
75,
441,
11,
1058,
56,
4008,
6624,
352,
628,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
397,
328,
7890,
7,
83,
853,
1039,
7,
2934,
64,
295,
418,
75,
441,
11,
1058,
55,
828,
6670,
7,
2934,
64,
295,
418,
75,
441,
11,
1058,
56,
828,
30740,
796,
3991,
4008,
15139,
230,
3392,
7,
1157,
8,
198,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
64,
2860,
7,
83,
853,
1039,
7,
2934,
64,
295,
418,
75,
441,
11,
1058,
55,
828,
6670,
7,
2934,
64,
295,
418,
75,
441,
11,
1058,
56,
22305,
14512,
1976,
27498,
7,
1157,
8,
1303,
20615,
355,
612,
318,
645,
1017,
4595,
287,
717,
2746,
628,
220,
220,
220,
1303,
12578,
198,
220,
220,
220,
905,
7,
9399,
28632,
22784,
390,
64,
952,
8,
198,
220,
220,
220,
905,
7,
9399,
28632,
22784,
390,
64,
295,
418,
75,
441,
8,
628,
220,
220,
220,
1303,
1849,
14402,
1849,
48277,
198,
33477,
1849,
31,
9288,
62,
400,
8516,
1849,
29271,
3004,
44,
1042,
963,
1849,
2934,
397,
328,
7890,
26933,
16,
26,
1849,
17,
1849,
26,
1849,
18,
4357,
1849,
58,
19,
1849,
26,
1849,
20,
12962,
1303,
1849,
20615,
1271,
286,
13050,
44320,
220,
220,
2488,
9288,
62,
400,
8516,
1849,
28100,
1713,
12331,
1849,
2934,
397,
328,
7890,
26933,
16,
26,
362,
26,
513,
4357,
685,
19,
26,
642,
26,
718,
4357,
11367,
796,
1058,
12331,
8,
1303,
17665,
12852,
198,
220,
220,
220,
2488,
9288,
62,
400,
8516,
1849,
28100,
1713,
12331,
1849,
2934,
397,
328,
7890,
26933,
16,
26,
362,
26,
513,
4357,
685,
19,
26,
642,
26,
718,
4357,
374,
912,
796,
1058,
12331,
8,
1303,
17665,
5860,
284,
5046,
198,
220,
220,
220,
2488,
9288,
62,
400,
8516,
13047,
16922,
390,
397,
328,
7890,
7,
55,
11,
575,
11,
379,
349,
796,
657,
13,
15,
11,
6436,
7509,
796,
28647,
27871,
320,
7509,
7,
25,
45,
19930,
4008,
628,
220,
220,
220,
1303,
34400,
438,
198,
220,
220,
220,
1303,
6208,
611,
645,
409,
353,
12706,
198,
220,
220,
220,
1303,
34400,
438,
198,
220,
220,
220,
1395,
3919,
2302,
796,
685,
16,
352,
26,
352,
13,
20,
352,
26,
362,
352,
60,
198,
220,
220,
220,
575,
3919,
2302,
796,
685,
17,
362,
26,
352,
13,
20,
352,
13,
20,
26,
352,
657,
13,
20,
60,
628,
220,
220,
220,
390,
5733,
2302,
796,
390,
64,
7,
55,
3919,
2302,
11,
575,
3919,
2302,
11,
11367,
796,
1058,
20560,
8,
198,
220,
220,
220,
390,
397,
570,
78,
2302,
796,
390,
397,
328,
7890,
7,
55,
3919,
2302,
11,
575,
3919,
2302,
11,
11367,
796,
1058,
20560,
8,
628,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
5733,
2302,
8,
15139,
230,
9332,
7,
2934,
397,
570,
78,
2302,
8,
198,
220,
220,
220,
2488,
9288,
1017,
4595,
7,
2934,
5733,
2302,
11,
1058,
55,
8,
15139,
230,
1017,
4595,
7,
2934,
397,
570,
78,
2302,
11,
1058,
55,
8,
198,
220,
220,
220,
2488,
9288,
1017,
4595,
7,
2934,
5733,
2302,
11,
1058,
55,
8,
15139,
230,
1017,
4595,
7,
2934,
397,
570,
78,
2302,
11,
1058,
55,
8,
198,
220,
220,
220,
2488,
9288,
6670,
7,
2934,
5733,
2302,
11,
1058,
55,
8,
15139,
230,
6670,
7,
2934,
397,
570,
78,
2302,
11,
1058,
55,
8,
198,
220,
220,
220,
2488,
9288,
6670,
7,
2934,
5733,
2302,
11,
1058,
56,
8,
15139,
230,
6670,
7,
2934,
397,
570,
78,
2302,
11,
1058,
56,
8,
198,
220,
220,
220,
2488,
9288,
14495,
6759,
8609,
7,
2934,
5733,
2302,
8,
15139,
230,
14495,
6759,
8609,
7,
2934,
397,
570,
78,
2302,
8,
628,
220,
220,
220,
1303,
34400,
438,
198,
220,
220,
220,
1303,
6208,
351,
4738,
1366,
198,
220,
220,
220,
1303,
34400,
438,
198,
220,
220,
220,
374,
782,
796,
520,
540,
49,
10503,
7,
10163,
2231,
3134,
8,
198,
220,
220,
220,
1395,
796,
43720,
7,
3118,
6933,
7,
940,
11,
1160,
828,
5323,
11,
718,
8,
198,
220,
220,
220,
575,
796,
43720,
7,
3118,
6933,
7,
940,
11,
1160,
828,
5323,
11,
604,
8,
628,
220,
220,
220,
374,
2934,
64,
796,
390,
64,
7,
55,
11,
575,
11,
4371,
796,
3991,
8,
198,
220,
220,
220,
374,
2934,
397,
328,
796,
390,
397,
328,
7890,
7,
55,
11,
575,
11,
4371,
796,
3991,
8,
628,
220,
220,
220,
2488,
9288,
9332,
7,
81,
2934,
397,
328,
8,
15139,
230,
9332,
7,
81,
2934,
64,
8,
198,
220,
220,
220,
2488,
9288,
1017,
4595,
7,
81,
2934,
397,
328,
11,
1058,
55,
8,
15139,
230,
1017,
4595,
7,
81,
2934,
64,
11,
1058,
55,
8,
198,
220,
220,
220,
2488,
9288,
1017,
4595,
7,
81,
2934,
397,
328,
11,
1058,
56,
8,
15139,
230,
1017,
4595,
7,
81,
2934,
64,
11,
1058,
56,
8,
198,
220,
220,
220,
2488,
9288,
6670,
7,
81,
2934,
397,
328,
11,
1058,
55,
8,
15139,
230,
6670,
7,
81,
2934,
64,
11,
1058,
55,
8,
198,
220,
220,
220,
2488,
9288,
6670,
7,
81,
2934,
397,
328,
11,
1058,
56,
8,
15139,
230,
6670,
7,
81,
2934,
64,
11,
1058,
56,
8,
198,
220,
220,
220,
2488,
9288,
14495,
6759,
8609,
7,
81,
2934,
397,
328,
8,
15139,
230,
14495,
6759,
8609,
7,
81,
2934,
64,
8,
628,
220,
220,
220,
1303,
34400,
438,
198,
220,
220,
220,
1303,
6208,
20650,
290,
24936,
17311,
290,
23862,
198,
220,
220,
220,
1303,
34400,
438,
198,
220,
220,
220,
1303,
30307,
1028,
2482,
287,
371,
628,
220,
220,
220,
1303,
23412,
82,
318,
24936,
11,
25235,
82,
318,
20650,
198,
220,
220,
220,
1395,
796,
685,
17,
362,
26,
352,
604,
26,
604,
352,
26,
604,
513,
26,
642,
642,
26,
718,
352,
26,
362,
642,
26,
352,
13,
21,
197,
23,
60,
198,
220,
220,
220,
575,
796,
685,
16,
26,
352,
26,
352,
26,
352,
26,
352,
26,
352,
26,
352,
26,
352,
60,
628,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
397,
328,
7890,
7,
55,
11,
575,
11,
11367,
796,
1058,
20560,
4008,
15139,
230,
685,
16,
26,
352,
26,
352,
26,
657,
13,
21,
26,
657,
13,
19,
26,
352,
26,
657,
13,
41977,
3134,
26,
657,
13,
26704,
60,
628,
220,
220,
220,
1303,
23412,
82,
318,
20650,
11,
25235,
318,
24936,
198,
220,
220,
220,
1395,
796,
685,
16,
26,
352,
26,
352,
26,
352,
26,
352,
26,
352,
26,
352,
26,
352,
60,
198,
220,
220,
220,
575,
796,
685,
22,
767,
26,
604,
807,
26,
807,
604,
26,
513,
642,
26,
513,
513,
26,
807,
362,
26,
718,
604,
26,
352,
13,
20,
642,
60,
628,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
397,
328,
7890,
7,
55,
11,
575,
11,
11367,
796,
1058,
26410,
4008,
15139,
230,
685,
16,
26,
352,
26,
352,
26,
352,
13,
2816,
2816,
2816,
37864,
26,
362,
13,
24840,
2091,
20370,
26,
352,
26,
352,
13,
1983,
1983,
1983,
27367,
26,
352,
13,
21,
60,
628,
220,
220,
220,
1303,
23412,
82,
318,
20650,
11,
25235,
318,
20650,
198,
220,
220,
220,
1395,
796,
685,
17,
26,
604,
26,
807,
26,
1105,
26,
718,
26,
1478,
26,
1478,
26,
860,
13,
39226,
60,
198,
220,
220,
220,
575,
796,
685,
16,
26,
642,
26,
807,
26,
860,
26,
513,
26,
767,
26,
860,
26,
362,
13,
33319,
60,
628,
220,
220,
220,
2488,
9288,
9332,
7,
2934,
397,
328,
7890,
7,
55,
11,
575,
11,
11367,
796,
1058,
20560,
4008,
15139,
230,
685,
15,
13,
19,
26,
352,
26,
657,
13,
23,
26,
657,
13,
21,
26,
657,
13,
19,
26,
657,
13,
19,
26,
657,
13,
47396,
2078,
3553,
21139,
26,
657,
13,
17,
60,
198,
198,
437,
198
] | 1.668008 | 7,952 |
using IterativeSolvers
using FactCheck
using Base.Test
# Type used in SOL test
type Wrapper
m::Int
n::Int
end
Base.size(op::Wrapper, dim::Integer) = (dim == 1) ? op.m :
(dim == 2) ? op.n : 1
Base.size(op::Wrapper) = (op.m, op.n)
Base.eltype(op::Wrapper) = Int
function Base.A_mul_B!(α, A::Wrapper, x, β, y)
m, n = size(A)
scale!(y, β)
y[1] = y[1] + α * x[1]
for i = 2:n
y[i] = y[i] + i * α * x[i] + (i-1) * α * x[i-1]
end
for i = n+1:m
y[i] = y[i]
end
return y
end
function Base.Ac_mul_B!(α, A::Wrapper, x, β, y)
m, n = size(A)
mn = min(m, n)
scale!(y, β)
for i = 1:mn-1
y[i] = y[i] + α * i* (x[i]+x[i+1])
end
y[mn] = y[mn] + α * mn * x[mn]
for i = m+1:n
y[i] = y[i]
end
return y
end
# Type used in Dampenedtest
# solve (A'A + diag(v).^2 ) x = b
# using LSMR in the augmented space A' = [A ; diag(v)] b' = [b; zeros(size(A, 2)]
type DampenedVector{Ty, Tx}
y::Ty
x::Tx
end
Base.eltype(a::DampenedVector) = promote_type(eltype(a.y), eltype(a.x))
function Base.norm(a::DampenedVector)
return sqrt(norm(a.y)^2 + norm(a.x)^2)
end
function Base.copy!{Ty, Tx}(a::DampenedVector{Ty, Tx}, b::DampenedVector{Ty, Tx})
copy!(a.y, b.y)
copy!(a.x, b.x)
return a
end
function Base.fill!(a::DampenedVector, α::Number)
fill!(a.y, α)
fill!(a.x, α)
return a
end
function Base.scale!(a::DampenedVector, α::Number)
scale!(a.y, α)
scale!(a.x, α)
return a
end
function Base.similar(a::DampenedVector, T)
return DampenedVector(similar(a.y, T), similar(a.x, T))
end
function Base.length(a::DampenedVector)
length(a.y) + length(a.x)
end
type DampenedMatrix{TA, Tx}
A::TA
diagonal::Tx
end
Base.eltype(A::DampenedMatrix) = promote_type(eltype(A.A), eltype(A.diagonal))
function Base.size(A::DampenedMatrix, dim::Integer)
m, n = size(A.A)
l = length(A.diagonal)
dim == 1 ? (m + l) :
dim == 2 ? n : 1
end
function Base.A_mul_B!{TA, Tx, Ty}(α::Number, mw::DampenedMatrix{TA, Tx}, a::Tx,
β::Number, b::DampenedVector{Ty, Tx})
if β != 1.
if β == 0.
fill!(b, 0.)
else
scale!(b, β)
end
end
A_mul_B!(α, mw.A, a, 1.0, b.y)
map!((z, x, y)-> z + α * x * y, b.x, b.x, a, mw.diagonal)
return b
end
function Base.Ac_mul_B!{TA, Tx, Ty}(α::Number, mw::DampenedMatrix{TA, Tx}, a::DampenedVector{Ty, Tx},
β::Number, b::Tx)
if β != 1.
if β == 0.
fill!(b, 0.)
else
scale!(b, β)
end
end
Ac_mul_B!(α, mw.A, a.y, 1.0, b)
map!((z, x, y)-> z + α * x * y, b, b, a.x, mw.diagonal)
return b
end
facts(string("lsmr")) do
context("Small dense matrix") do
A = rand(10, 5)
b = rand(10)
x, = lsmr(A, b)
@fact norm(x - A\b) --> less_than(√eps())
end
context("SOL test") do
# Test adapted from the BSD-licensed Matlab implementation at
# http://www.stanford.edu/group/SOL/software/lsqr.html
# Michael Saunders, Systems Optimization Laboratory,
# Dept of MS&E, Stanford University.
#-----------------------------------------------------------------------
# This is a simple example for testing LSMR.
# It uses the leading m*n submatrix from
# A = [ 1
# 1 2
# 2 3
# 3 4
# ...
# n ]
# suitably padded by zeros.
#
# 11 Apr 1996: First version for distribution with lsqr.m.
# Michael Saunders, Dept of EESOR, Stanford University.
function SOLtest(m, n, damp)
A = Wrapper(m, n)
xtrue = n:-1:1
b = Array(Float64, m)
b = float(A_mul_B!(1.0, A, xtrue, 0.0, b))
x, = lsmr(A, b, atol = 1e-7, btol = 1e-7, conlim = 1e10, maxiter = 10n)
r = A_mul_B!(-1, A, x, 1, b)
@fact norm(r) --> less_than_or_equal(1e-4)
end
SOLtest(10, 10, 0)
SOLtest(20, 10, 0)
SOLtest(20, 10, 0.1)
end
context("dampened test") do
# Test used to make sure A, b can be generic matrix / vector
srand(1234)
function DampenedTest(m, n)
b = rand(m)
A = rand(m, n)
v = rand(n)
Adampened = DampenedMatrix(A, v)
bdampened = DampenedVector(b, zeros(n))
x, ch = lsmr(Adampened, bdampened)
@fact norm((A'A + diagm(v).^2)x - A'b) --> less_than(1e-3)
end
DampenedTest(10, 10)
DampenedTest(20, 10)
end
end
| [
3500,
40806,
876,
36949,
690,
198,
3500,
19020,
9787,
198,
3500,
7308,
13,
14402,
628,
198,
198,
2,
5994,
973,
287,
36817,
1332,
198,
4906,
27323,
2848,
198,
220,
220,
220,
285,
3712,
5317,
198,
220,
220,
220,
299,
3712,
5317,
198,
437,
198,
14881,
13,
7857,
7,
404,
3712,
36918,
2848,
11,
5391,
3712,
46541,
8,
796,
357,
27740,
6624,
352,
8,
5633,
1034,
13,
76,
1058,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
27740,
6624,
362,
8,
5633,
1034,
13,
77,
1058,
352,
198,
14881,
13,
7857,
7,
404,
3712,
36918,
2848,
8,
796,
357,
404,
13,
76,
11,
1034,
13,
77,
8,
198,
14881,
13,
417,
4906,
7,
404,
3712,
36918,
2848,
8,
796,
2558,
198,
198,
8818,
7308,
13,
32,
62,
76,
377,
62,
33,
0,
7,
17394,
11,
317,
3712,
36918,
2848,
11,
2124,
11,
27169,
11,
331,
8,
198,
220,
220,
220,
285,
11,
299,
796,
2546,
7,
32,
8,
198,
220,
220,
220,
5046,
0,
7,
88,
11,
27169,
8,
198,
220,
220,
220,
331,
58,
16,
60,
796,
331,
58,
16,
60,
1343,
26367,
1635,
2124,
58,
16,
60,
198,
220,
220,
220,
329,
1312,
796,
362,
25,
77,
198,
220,
220,
220,
220,
220,
220,
220,
331,
58,
72,
60,
796,
331,
58,
72,
60,
1343,
1312,
1635,
26367,
1635,
2124,
58,
72,
60,
1343,
357,
72,
12,
16,
8,
1635,
26367,
1635,
2124,
58,
72,
12,
16,
60,
198,
220,
220,
220,
886,
198,
220,
220,
220,
329,
1312,
796,
299,
10,
16,
25,
76,
198,
220,
220,
220,
220,
220,
220,
220,
331,
58,
72,
60,
796,
331,
58,
72,
60,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
331,
198,
437,
198,
198,
8818,
7308,
13,
12832,
62,
76,
377,
62,
33,
0,
7,
17394,
11,
317,
3712,
36918,
2848,
11,
2124,
11,
27169,
11,
331,
8,
198,
220,
220,
220,
285,
11,
299,
796,
2546,
7,
32,
8,
198,
220,
220,
220,
285,
77,
796,
949,
7,
76,
11,
299,
8,
198,
220,
220,
220,
5046,
0,
7,
88,
11,
27169,
8,
198,
220,
220,
220,
329,
1312,
796,
352,
25,
10295,
12,
16,
198,
220,
220,
220,
220,
220,
220,
220,
331,
58,
72,
60,
796,
331,
58,
72,
60,
1343,
26367,
1635,
1312,
9,
357,
87,
58,
72,
48688,
87,
58,
72,
10,
16,
12962,
198,
220,
220,
220,
886,
198,
220,
220,
220,
331,
58,
10295,
60,
796,
331,
58,
10295,
60,
1343,
26367,
1635,
285,
77,
1635,
2124,
58,
10295,
60,
198,
220,
220,
220,
329,
1312,
796,
285,
10,
16,
25,
77,
198,
220,
220,
220,
220,
220,
220,
220,
331,
58,
72,
60,
796,
331,
58,
72,
60,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
331,
198,
437,
628,
198,
198,
2,
5994,
973,
287,
360,
696,
2945,
9288,
198,
2,
8494,
357,
32,
6,
32,
1343,
2566,
363,
7,
85,
737,
61,
17,
1267,
2124,
796,
275,
198,
2,
1262,
406,
12310,
49,
287,
262,
30259,
2272,
317,
6,
796,
685,
32,
2162,
2566,
363,
7,
85,
15437,
275,
6,
796,
685,
65,
26,
1976,
27498,
7,
7857,
7,
32,
11,
362,
15437,
198,
4906,
360,
696,
2945,
38469,
90,
25492,
11,
309,
87,
92,
198,
220,
220,
220,
331,
3712,
25492,
198,
220,
220,
220,
2124,
3712,
46047,
198,
437,
198,
14881,
13,
417,
4906,
7,
64,
3712,
35,
696,
2945,
38469,
8,
796,
220,
7719,
62,
4906,
7,
417,
4906,
7,
64,
13,
88,
828,
1288,
4906,
7,
64,
13,
87,
4008,
198,
198,
8818,
7308,
13,
27237,
7,
64,
3712,
35,
696,
2945,
38469,
8,
198,
220,
220,
220,
1441,
19862,
17034,
7,
27237,
7,
64,
13,
88,
8,
61,
17,
1343,
2593,
7,
64,
13,
87,
8,
61,
17,
8,
198,
437,
198,
198,
8818,
7308,
13,
30073,
0,
90,
25492,
11,
309,
87,
92,
7,
64,
3712,
35,
696,
2945,
38469,
90,
25492,
11,
309,
87,
5512,
275,
3712,
35,
696,
2945,
38469,
90,
25492,
11,
309,
87,
30072,
198,
220,
220,
220,
4866,
0,
7,
64,
13,
88,
11,
275,
13,
88,
8,
198,
220,
220,
220,
4866,
0,
7,
64,
13,
87,
11,
275,
13,
87,
8,
198,
220,
220,
220,
1441,
257,
198,
437,
198,
198,
8818,
7308,
13,
20797,
0,
7,
64,
3712,
35,
696,
2945,
38469,
11,
26367,
3712,
15057,
8,
198,
220,
220,
220,
6070,
0,
7,
64,
13,
88,
11,
26367,
8,
198,
220,
220,
220,
6070,
0,
7,
64,
13,
87,
11,
26367,
8,
198,
220,
220,
220,
1441,
257,
198,
437,
198,
198,
8818,
7308,
13,
9888,
0,
7,
64,
3712,
35,
696,
2945,
38469,
11,
26367,
3712,
15057,
8,
198,
220,
220,
220,
5046,
0,
7,
64,
13,
88,
11,
26367,
8,
198,
220,
220,
220,
5046,
0,
7,
64,
13,
87,
11,
26367,
8,
198,
220,
220,
220,
1441,
257,
198,
437,
198,
198,
8818,
7308,
13,
38610,
7,
64,
3712,
35,
696,
2945,
38469,
11,
309,
8,
198,
220,
220,
220,
1441,
360,
696,
2945,
38469,
7,
38610,
7,
64,
13,
88,
11,
309,
828,
2092,
7,
64,
13,
87,
11,
309,
4008,
198,
437,
198,
198,
8818,
7308,
13,
13664,
7,
64,
3712,
35,
696,
2945,
38469,
8,
198,
220,
220,
220,
4129,
7,
64,
13,
88,
8,
1343,
4129,
7,
64,
13,
87,
8,
198,
437,
628,
198,
4906,
360,
696,
2945,
46912,
90,
5603,
11,
309,
87,
92,
198,
220,
220,
220,
317,
3712,
5603,
198,
220,
220,
220,
40039,
3712,
46047,
198,
437,
198,
198,
14881,
13,
417,
4906,
7,
32,
3712,
35,
696,
2945,
46912,
8,
796,
7719,
62,
4906,
7,
417,
4906,
7,
32,
13,
32,
828,
1288,
4906,
7,
32,
13,
10989,
27923,
4008,
198,
198,
8818,
7308,
13,
7857,
7,
32,
3712,
35,
696,
2945,
46912,
11,
5391,
3712,
46541,
8,
198,
220,
220,
220,
285,
11,
299,
796,
2546,
7,
32,
13,
32,
8,
198,
220,
220,
220,
300,
796,
4129,
7,
32,
13,
10989,
27923,
8,
198,
220,
220,
220,
5391,
6624,
352,
5633,
357,
76,
1343,
300,
8,
1058,
198,
220,
220,
220,
5391,
6624,
362,
5633,
299,
1058,
352,
198,
437,
198,
198,
8818,
7308,
13,
32,
62,
76,
377,
62,
33,
0,
90,
5603,
11,
309,
87,
11,
7039,
92,
7,
17394,
3712,
15057,
11,
285,
86,
3712,
35,
696,
2945,
46912,
90,
5603,
11,
309,
87,
5512,
257,
3712,
46047,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27169,
3712,
15057,
11,
275,
3712,
35,
696,
2945,
38469,
90,
25492,
11,
309,
87,
30072,
198,
220,
220,
220,
611,
27169,
14512,
352,
13,
198,
220,
220,
220,
220,
220,
220,
220,
611,
27169,
6624,
657,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6070,
0,
7,
65,
11,
657,
2014,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5046,
0,
7,
65,
11,
27169,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
317,
62,
76,
377,
62,
33,
0,
7,
17394,
11,
285,
86,
13,
32,
11,
257,
11,
352,
13,
15,
11,
275,
13,
88,
8,
198,
220,
220,
220,
3975,
0,
19510,
89,
11,
2124,
11,
331,
8,
3784,
1976,
1343,
26367,
1635,
2124,
1635,
331,
11,
275,
13,
87,
11,
275,
13,
87,
11,
257,
11,
285,
86,
13,
10989,
27923,
8,
198,
220,
220,
220,
1441,
275,
198,
437,
198,
198,
8818,
7308,
13,
12832,
62,
76,
377,
62,
33,
0,
90,
5603,
11,
309,
87,
11,
7039,
92,
7,
17394,
3712,
15057,
11,
285,
86,
3712,
35,
696,
2945,
46912,
90,
5603,
11,
309,
87,
5512,
257,
3712,
35,
696,
2945,
38469,
90,
25492,
11,
309,
87,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27169,
3712,
15057,
11,
275,
3712,
46047,
8,
198,
220,
220,
220,
611,
27169,
14512,
352,
13,
198,
220,
220,
220,
220,
220,
220,
220,
611,
27169,
6624,
657,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6070,
0,
7,
65,
11,
657,
2014,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5046,
0,
7,
65,
11,
27169,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
4013,
62,
76,
377,
62,
33,
0,
7,
17394,
11,
285,
86,
13,
32,
11,
257,
13,
88,
11,
352,
13,
15,
11,
275,
8,
198,
220,
220,
220,
3975,
0,
19510,
89,
11,
2124,
11,
331,
8,
3784,
1976,
1343,
26367,
1635,
2124,
1635,
331,
11,
275,
11,
275,
11,
257,
13,
87,
11,
285,
86,
13,
10989,
27923,
8,
198,
220,
220,
220,
1441,
275,
198,
437,
628,
198,
198,
37473,
7,
8841,
7203,
75,
5796,
81,
48774,
466,
628,
198,
220,
220,
220,
4732,
7203,
18712,
15715,
17593,
4943,
466,
198,
220,
220,
220,
220,
220,
220,
220,
317,
796,
43720,
7,
940,
11,
642,
8,
198,
220,
220,
220,
220,
220,
220,
220,
275,
796,
43720,
7,
940,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
11,
796,
300,
5796,
81,
7,
32,
11,
275,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
22584,
2593,
7,
87,
532,
317,
59,
65,
8,
14610,
1342,
62,
14813,
7,
24861,
248,
25386,
28955,
198,
220,
220,
220,
886,
628,
198,
220,
220,
220,
4732,
7203,
50,
3535,
1332,
4943,
466,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
6208,
16573,
422,
262,
347,
10305,
12,
36612,
6550,
23912,
7822,
379,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
2638,
1378,
2503,
13,
14192,
3841,
13,
15532,
14,
8094,
14,
50,
3535,
14,
43776,
14,
7278,
80,
81,
13,
6494,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3899,
35896,
11,
11998,
30011,
1634,
18643,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28786,
286,
6579,
5,
36,
11,
13863,
2059,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
10097,
26866,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
770,
318,
257,
2829,
1672,
329,
4856,
220,
406,
12310,
49,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
632,
3544,
262,
3756,
285,
9,
77,
850,
6759,
8609,
422,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
317,
796,
685,
352,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
352,
362,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
362,
513,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
513,
604,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2644,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
6050,
1346,
44582,
416,
1976,
27498,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1367,
2758,
8235,
25,
3274,
2196,
329,
6082,
351,
300,
31166,
81,
13,
76,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3899,
35896,
11,
28786,
286,
412,
1546,
1581,
11,
13863,
2059,
13,
628,
220,
220,
220,
220,
220,
220,
220,
2163,
36817,
9288,
7,
76,
11,
299,
11,
21151,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
796,
27323,
2848,
7,
76,
11,
299,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
742,
24508,
796,
299,
21912,
16,
25,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
796,
15690,
7,
43879,
2414,
11,
285,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
796,
12178,
7,
32,
62,
76,
377,
62,
33,
0,
7,
16,
13,
15,
11,
317,
11,
220,
742,
24508,
11,
657,
13,
15,
11,
275,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
11,
796,
300,
5796,
81,
7,
32,
11,
275,
11,
379,
349,
796,
352,
68,
12,
22,
11,
275,
83,
349,
796,
352,
68,
12,
22,
11,
369,
2475,
796,
352,
68,
940,
11,
3509,
2676,
796,
838,
77,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
796,
317,
62,
76,
377,
62,
33,
0,
32590,
16,
11,
317,
11,
2124,
11,
352,
11,
275,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
22584,
2593,
7,
81,
8,
14610,
1342,
62,
14813,
62,
273,
62,
40496,
7,
16,
68,
12,
19,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
36817,
9288,
7,
940,
11,
838,
11,
657,
8,
198,
220,
220,
220,
220,
220,
220,
220,
36817,
9288,
7,
1238,
11,
838,
11,
657,
8,
198,
220,
220,
220,
220,
220,
220,
220,
36817,
9288,
7,
1238,
11,
838,
11,
657,
13,
16,
8,
198,
220,
220,
220,
886,
628,
628,
220,
220,
220,
4732,
7203,
67,
696,
2945,
1332,
4943,
466,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
6208,
973,
284,
787,
1654,
317,
11,
275,
460,
307,
14276,
17593,
1220,
15879,
198,
220,
220,
220,
220,
220,
220,
220,
19677,
392,
7,
1065,
2682,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2163,
360,
696,
2945,
14402,
7,
76,
11,
299,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
796,
43720,
7,
76,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
796,
43720,
7,
76,
11,
299,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
410,
796,
43720,
7,
77,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1215,
696,
2945,
796,
360,
696,
2945,
46912,
7,
32,
11,
410,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
67,
696,
2945,
796,
360,
696,
2945,
38469,
7,
65,
11,
1976,
27498,
7,
77,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
11,
442,
796,
300,
5796,
81,
7,
2782,
696,
2945,
11,
275,
67,
696,
2945,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
22584,
2593,
19510,
32,
6,
32,
1343,
2566,
363,
76,
7,
85,
737,
61,
17,
8,
87,
532,
317,
6,
65,
8,
14610,
1342,
62,
14813,
7,
16,
68,
12,
18,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
360,
696,
2945,
14402,
7,
940,
11,
838,
8,
198,
220,
220,
220,
220,
220,
220,
220,
360,
696,
2945,
14402,
7,
1238,
11,
838,
8,
198,
220,
220,
220,
886,
198,
437,
198
] | 1.820023 | 2,617 |
include("module.jl")
using Logging
Logging.global_logger(Logging.ConsoleLogger(Logging.Info))
F5_DETECTED_USELESS_NF = 0
F5_USELESS_NF = 0
F5_NF = 0
F5_BASIS_SIZE = 0
function zerof5()
global F5_DETECTED_USELESS_NF
global F5_USELESS_NF
global F5_NF
global F5_BASIS_SIZE
F5_DETECTED_USELESS_NF = 0
F5_USELESS_NF = 0
F5_NF = 0
F5_BASIS_SIZE = 0
end
function katsuran(n; ground=QQ)
R, x = PolynomialRing(ground, ["x$i" for i in 0:n])
return [
(sum(x[abs(l)+1]*x[abs(m-l)+1] for l=-n:n if abs(m-l)<=n) -
x[m+1] for m=0:n-1)...,
x[1] + 2sum(x[i+1] for i=1:n) - 1
]
end
#-----------------------------------------------------------------------------
function homogenize(F)
base = parent(F[1])
s = copy(symbols(base))
push!(s, :h)
R, xsu = PolynomialRing(base_ring(base), s, ordering=ordering(base))
xs = xsu[1:end-1]
u = xsu[end]
homF = Vector{eltype(F)}(undef, 0)
for f in F
tdeg = total_degree(leading_monomial(f))
f = evaluate(f, xs)
homf = zero(R)
for t in terms(f)
homf += t * u^(tdeg - total_degree(t))
end
push!(homF, homf)
end
homF
end
function dehomogenize(homF)
R = parent(homF[1])
xs = collect(gens(R))
xs[end] = one(R)
F = Vector{eltype(homF)}(undef, 0)
for homf in homF
f = evaluate(homf, xs)
push!(F, f)
end
F
end
#-----------------------------------------------------------------------------
# Regular reductions
# try to reduce f with g in a regular way and return result
function regular_reduction_step(f::ModuleElement, g::ModuleElement)
evalf = f.ev
evalg = g.ev
# @info "reducing $(f) with $(g)" evalf evalg
for t in terms(evalf)
# if divides
success, u = divides(t, leading_term(evalg))
if success
u = divexact(t, leading_term(evalg))
@info "$(leading_term(evalg)) | $t"
# if reduction is regular (and does not change signature)
# not really correct!
if f > u*g
newf = f - u*g
# @info "regular! $(f) - $(u)*$(g) --> $newf"
return true, newf
end
end
end
return false, f
end
# // same as above, but in terms of set G //
# try to reduce f with G in a regular way and return result
function regular_reduction_step(f::ModuleElement, G)
evalf = f.ev
for g in G
success, newf = regular_reduction_step(f, g)
if success
return true, newf
end
end
return false, f
end
# regular normal form of f w.r.t. G
function regular_normal_form(f::ModuleElement, G)
# @info "computing reg normalform of $f w.r.t $G.."
success = true
newf = copy(f)
while success
success, newf = regular_reduction_step(newf, G)
# @info "reduction $success"
end
newf
end
#-----------------------------------------------------------------------------
# Singular reductions
# if f is singurarly top reducible by G
function issingularlytopreducible(f::ModuleElement, G)
leadevalf = leading_monomial(f.ev)
for g in G
evalg = g.ev
success, u = divides(leadevalf, leading_monomial(evalg))
if success
if (g*u).sgn == f.sgn
return true
end
end
end
return false
end
# if f is singurarly top reducible by G
function syzygy_criterion(f::ModuleElement, syzygies)
for syz in syzygies
success, u = divides(f.sgn.monom, syz.sgn.monom)
if success && f.sgn.index == syz.sgn.index
# @warn "DISCARDED $f by $syz"
global F5_DETECTED_USELESS_NF
F5_DETECTED_USELESS_NF += 1
return true
end
end
return false
end
#-----------------------------------------------------------------------------
# S-polynomial
# returns u, v, such that
# u*a - v*b is spoly(a, b)
function mults(a::ModuleElement, b::ModuleElement)
u = lcm(leading_monomial(a.ev), leading_monomial(b.ev))
u = divexact(u, leading_term(a.ev))
v = lcm(leading_monomial(a.ev), leading_monomial(b.ev))
v = divexact(v, leading_term(b.ev))
u, v
end
# S-polynomial of a and b
function spoly(a::ModuleElement, b::ModuleElement)
u, v = mults(a, b)
u*a - v*b
end
#-----------------------------------------------------------------------------
# Groebner basis things
function construct_module(F)
[
ModuleElement(f, Signature(i, one(f)))
for (i, f) in enumerate(F)
]
end
function signature_groebner_basis(F)
sort!(F, by=leading_monomial, lt=f5_total_degree_lead_cmp)
F = map(f -> map_coefficients(c -> c // leading_coefficient(f), f), F)
G = construct_module(F)
syzygies = []
for i in 1:length(G)
for j in i+1:length(G)
s1 = (G[i]*leading_monomial(G[j].ev)).sgn
s2 = (G[j]*leading_monomial(G[i].ev)).sgn
push!(syzygies, ModuleElement( zero(F[1]), max(s1, s2) ) )
end
end
P = []
for i in 1:length(G)
for j in i+1:length(G)
if syzygy_criterion(spoly(G[i], G[j]), syzygies)
continue
end
push!(P, spoly(G[i], G[j]))
end
end
# @info "generated initial G and P:"
# @info "F = $F"
# @info "G = $G"
# @info "P = $P"
# @info "syz = $syzygies"
while !isempty(P)
sort!(P, rev=false)
f = popfirst!(P)
@info "selected $f"
if syzygy_criterion(f, syzygies)
continue
end
# global F5_NF
# F5_NF += 1
fNF = regular_normal_form(f, G)
global F5_NF
F5_NF += 1
if issyzygy(fNF)
# @warn "Reduction to zero!"
# global F5_REDUCED
# F5_REDUCED += 1
push!(syzygies, fNF)
global F5_USELESS_NF
F5_USELESS_NF += 1
elseif !issingularlytopreducible(fNF, G)
# update P
for fj in G
if syzygy_criterion(spoly(fNF, fj), syzygies)
continue
end
push!(P, spoly(fNF, fj))
# @info "$fNF $fj"
# @info "SPOLY $(last(P))"
end
# update G
fNFnormalzed = fNF * inv(leading_coefficient(fNF.ev))
push!(G, fNFnormalzed)
else
global F5_USELESS_NF
F5_USELESS_NF += 1
end
# @info "updated G and P"
# @info "G = $G"
# @info "P = $P"
# @info "syz = $syzygies"
end
# global F5_SIZE
# F5_SIZE = length(G) - length(F)
# global F5_REDUCED
# global F5_DISCARDED
global F5_BASIS_SIZE
F5_BASIS_SIZE = length(G)
G
end
#-----------------------------------------------------------------------------
using Logging
Logging.global_logger(ConsoleLogger(Logging.Warn))
R, (x,y,z) = PolynomialRing(QQ, ["x","y", "z"], ordering=:degrevlex)
F = [x*z + 1, y*z + 1]
# evaluation
G = signature_groebner_basis(F)
Gev = [g.ev for g in G]
println("############")
println(G)
println(Gev)
| [
198,
17256,
7203,
21412,
13,
20362,
4943,
198,
198,
3500,
5972,
2667,
198,
11187,
2667,
13,
20541,
62,
6404,
1362,
7,
11187,
2667,
13,
47581,
11187,
1362,
7,
11187,
2667,
13,
12360,
4008,
198,
198,
37,
20,
62,
35,
2767,
9782,
1961,
62,
2937,
3698,
7597,
62,
21870,
796,
657,
198,
37,
20,
62,
2937,
3698,
7597,
62,
21870,
220,
220,
796,
657,
198,
37,
20,
62,
21870,
220,
220,
220,
220,
220,
220,
220,
796,
657,
198,
37,
20,
62,
33,
1921,
1797,
62,
33489,
220,
220,
220,
220,
220,
796,
657,
198,
198,
8818,
1976,
263,
1659,
20,
3419,
198,
220,
220,
220,
3298,
376,
20,
62,
35,
2767,
9782,
1961,
62,
2937,
3698,
7597,
62,
21870,
198,
220,
220,
220,
3298,
376,
20,
62,
2937,
3698,
7597,
62,
21870,
198,
220,
220,
220,
3298,
376,
20,
62,
21870,
198,
220,
220,
220,
3298,
376,
20,
62,
33,
1921,
1797,
62,
33489,
198,
220,
220,
220,
376,
20,
62,
35,
2767,
9782,
1961,
62,
2937,
3698,
7597,
62,
21870,
796,
657,
198,
220,
220,
220,
376,
20,
62,
2937,
3698,
7597,
62,
21870,
220,
220,
220,
220,
220,
220,
220,
796,
657,
198,
220,
220,
220,
376,
20,
62,
21870,
220,
220,
220,
220,
220,
796,
657,
198,
220,
220,
220,
376,
20,
62,
33,
1921,
1797,
62,
33489,
220,
220,
796,
657,
198,
437,
628,
198,
8818,
479,
1381,
42211,
7,
77,
26,
2323,
28,
48,
48,
8,
198,
220,
220,
220,
371,
11,
2124,
796,
12280,
26601,
498,
39687,
7,
2833,
11,
14631,
87,
3,
72,
1,
329,
1312,
287,
657,
25,
77,
12962,
628,
220,
220,
220,
1441,
685,
198,
220,
220,
220,
220,
220,
220,
220,
357,
16345,
7,
87,
58,
8937,
7,
75,
47762,
16,
60,
9,
87,
58,
8937,
7,
76,
12,
75,
47762,
16,
60,
329,
300,
10779,
77,
25,
77,
611,
2352,
7,
76,
12,
75,
8,
27,
28,
77,
8,
532,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
58,
76,
10,
16,
60,
329,
285,
28,
15,
25,
77,
12,
16,
26513,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
58,
16,
60,
1343,
362,
16345,
7,
87,
58,
72,
10,
16,
60,
329,
1312,
28,
16,
25,
77,
8,
532,
352,
198,
220,
220,
220,
2361,
198,
437,
628,
198,
2,
10097,
32501,
198,
198,
8818,
3488,
6644,
1096,
7,
37,
8,
198,
220,
220,
220,
2779,
796,
2560,
7,
37,
58,
16,
12962,
198,
220,
220,
220,
264,
796,
4866,
7,
1837,
2022,
10220,
7,
8692,
4008,
198,
220,
220,
220,
4574,
0,
7,
82,
11,
1058,
71,
8,
198,
220,
220,
220,
371,
11,
2124,
2385,
796,
12280,
26601,
498,
39687,
7,
8692,
62,
1806,
7,
8692,
828,
264,
11,
16216,
28,
34555,
7,
8692,
4008,
198,
220,
220,
220,
2124,
82,
796,
2124,
2385,
58,
16,
25,
437,
12,
16,
60,
198,
220,
220,
220,
334,
796,
2124,
2385,
58,
437,
60,
628,
220,
220,
220,
3488,
37,
796,
20650,
90,
417,
4906,
7,
37,
38165,
7,
917,
891,
11,
657,
8,
198,
220,
220,
220,
329,
277,
287,
376,
198,
220,
220,
220,
220,
220,
220,
220,
256,
13500,
796,
2472,
62,
16863,
7,
12294,
62,
2144,
49070,
7,
69,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
277,
796,
13446,
7,
69,
11,
2124,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3488,
69,
796,
6632,
7,
49,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
256,
287,
2846,
7,
69,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3488,
69,
15853,
256,
1635,
334,
61,
7,
8671,
1533,
532,
2472,
62,
16863,
7,
83,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
26452,
37,
11,
3488,
69,
8,
198,
220,
220,
220,
886,
628,
220,
220,
220,
3488,
37,
198,
437,
198,
198,
8818,
390,
26452,
6644,
1096,
7,
26452,
37,
8,
198,
220,
220,
220,
371,
796,
2560,
7,
26452,
37,
58,
16,
12962,
198,
220,
220,
220,
2124,
82,
796,
2824,
7,
70,
641,
7,
49,
4008,
198,
220,
220,
220,
2124,
82,
58,
437,
60,
796,
530,
7,
49,
8,
628,
220,
220,
220,
376,
796,
20650,
90,
417,
4906,
7,
26452,
37,
38165,
7,
917,
891,
11,
657,
8,
198,
220,
220,
220,
329,
3488,
69,
287,
3488,
37,
198,
220,
220,
220,
220,
220,
220,
220,
277,
796,
13446,
7,
26452,
69,
11,
2124,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
37,
11,
277,
8,
198,
220,
220,
220,
886,
628,
220,
220,
220,
376,
198,
437,
198,
198,
2,
10097,
32501,
198,
2,
23603,
20691,
198,
198,
2,
1949,
284,
4646,
277,
351,
308,
287,
257,
3218,
835,
290,
1441,
1255,
198,
8818,
3218,
62,
445,
8110,
62,
9662,
7,
69,
3712,
26796,
20180,
11,
308,
3712,
26796,
20180,
8,
198,
220,
220,
220,
819,
1604,
796,
277,
13,
1990,
198,
220,
220,
220,
5418,
70,
796,
308,
13,
1990,
628,
220,
220,
220,
1303,
2488,
10951,
366,
445,
25648,
29568,
69,
8,
351,
29568,
70,
16725,
819,
1604,
5418,
70,
628,
220,
220,
220,
329,
256,
287,
2846,
7,
1990,
1604,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
611,
36319,
198,
220,
220,
220,
220,
220,
220,
220,
1943,
11,
334,
796,
36319,
7,
83,
11,
3756,
62,
4354,
7,
1990,
14016,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
334,
796,
15647,
87,
529,
7,
83,
11,
3756,
62,
4354,
7,
1990,
14016,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
10951,
17971,
7,
12294,
62,
4354,
7,
1990,
14016,
4008,
930,
720,
83,
1,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
611,
7741,
318,
3218,
357,
392,
857,
407,
1487,
9877,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
407,
1107,
3376,
0,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
277,
1875,
334,
9,
70,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
649,
69,
796,
277,
532,
334,
9,
70,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2488,
10951,
366,
16338,
0,
29568,
69,
8,
532,
29568,
84,
27493,
3,
7,
70,
8,
14610,
720,
3605,
69,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2081,
11,
649,
69,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
3991,
11,
277,
198,
437,
198,
198,
2,
3373,
976,
355,
2029,
11,
475,
287,
2846,
286,
900,
402,
3373,
198,
2,
1949,
284,
4646,
277,
351,
402,
287,
257,
3218,
835,
290,
1441,
1255,
198,
8818,
3218,
62,
445,
8110,
62,
9662,
7,
69,
3712,
26796,
20180,
11,
402,
8,
198,
220,
220,
220,
819,
1604,
796,
277,
13,
1990,
198,
220,
220,
220,
329,
308,
287,
402,
198,
220,
220,
220,
220,
220,
220,
220,
1943,
11,
649,
69,
796,
3218,
62,
445,
8110,
62,
9662,
7,
69,
11,
308,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2081,
11,
649,
69,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
3991,
11,
277,
198,
437,
198,
198,
2,
3218,
3487,
1296,
286,
277,
266,
13,
81,
13,
83,
13,
402,
198,
8818,
3218,
62,
11265,
62,
687,
7,
69,
3712,
26796,
20180,
11,
402,
8,
198,
220,
220,
220,
1303,
2488,
10951,
366,
785,
48074,
842,
3487,
687,
286,
720,
69,
266,
13,
81,
13,
83,
720,
38,
492,
1,
628,
220,
220,
220,
1943,
796,
2081,
198,
220,
220,
220,
649,
69,
796,
4866,
7,
69,
8,
198,
220,
220,
220,
981,
1943,
198,
220,
220,
220,
220,
220,
220,
220,
1943,
11,
649,
69,
796,
3218,
62,
445,
8110,
62,
9662,
7,
3605,
69,
11,
402,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2488,
10951,
366,
445,
8110,
720,
13138,
1,
198,
220,
220,
220,
886,
198,
220,
220,
220,
649,
69,
198,
437,
198,
198,
2,
10097,
32501,
198,
2,
5573,
934,
20691,
198,
198,
2,
611,
277,
318,
1702,
333,
283,
306,
1353,
2027,
37369,
416,
402,
198,
8818,
1189,
278,
934,
306,
4852,
445,
1229,
856,
7,
69,
3712,
26796,
20180,
11,
402,
8,
198,
220,
220,
220,
443,
671,
85,
1604,
796,
3756,
62,
2144,
49070,
7,
69,
13,
1990,
8,
198,
220,
220,
220,
329,
308,
287,
402,
198,
220,
220,
220,
220,
220,
220,
220,
5418,
70,
796,
308,
13,
1990,
198,
220,
220,
220,
220,
220,
220,
220,
1943,
11,
334,
796,
36319,
7,
293,
671,
85,
1604,
11,
3756,
62,
2144,
49070,
7,
1990,
14016,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
357,
70,
9,
84,
737,
82,
4593,
6624,
277,
13,
82,
4593,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2081,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
3991,
198,
437,
198,
198,
2,
611,
277,
318,
1702,
333,
283,
306,
1353,
2027,
37369,
416,
402,
198,
8818,
827,
7357,
1360,
62,
22213,
28019,
7,
69,
3712,
26796,
20180,
11,
827,
7357,
70,
444,
8,
198,
220,
220,
220,
329,
827,
89,
287,
827,
7357,
70,
444,
198,
220,
220,
220,
220,
220,
220,
220,
1943,
11,
334,
796,
36319,
7,
69,
13,
82,
4593,
13,
2144,
296,
11,
827,
89,
13,
82,
4593,
13,
2144,
296,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1943,
11405,
277,
13,
82,
4593,
13,
9630,
6624,
827,
89,
13,
82,
4593,
13,
9630,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2488,
40539,
366,
26288,
34,
9795,
1961,
720,
69,
416,
720,
1837,
89,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3298,
376,
20,
62,
35,
2767,
9782,
1961,
62,
2937,
3698,
7597,
62,
21870,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
376,
20,
62,
35,
2767,
9782,
1961,
62,
2937,
3698,
7597,
62,
21870,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2081,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
3991,
198,
437,
198,
198,
2,
10097,
32501,
198,
2,
311,
12,
35428,
26601,
498,
198,
198,
2,
5860,
334,
11,
410,
11,
220,
884,
326,
198,
2,
334,
9,
64,
532,
410,
9,
65,
318,
599,
3366,
7,
64,
11,
275,
8,
198,
8818,
1963,
82,
7,
64,
3712,
26796,
20180,
11,
275,
3712,
26796,
20180,
8,
198,
220,
220,
220,
334,
796,
300,
11215,
7,
12294,
62,
2144,
49070,
7,
64,
13,
1990,
828,
3756,
62,
2144,
49070,
7,
65,
13,
1990,
4008,
198,
220,
220,
220,
334,
796,
15647,
87,
529,
7,
84,
11,
3756,
62,
4354,
7,
64,
13,
1990,
4008,
628,
220,
220,
220,
410,
796,
300,
11215,
7,
12294,
62,
2144,
49070,
7,
64,
13,
1990,
828,
3756,
62,
2144,
49070,
7,
65,
13,
1990,
4008,
198,
220,
220,
220,
410,
796,
15647,
87,
529,
7,
85,
11,
3756,
62,
4354,
7,
65,
13,
1990,
4008,
628,
220,
220,
220,
334,
11,
410,
198,
437,
198,
198,
2,
311,
12,
35428,
26601,
498,
286,
257,
290,
275,
198,
8818,
599,
3366,
7,
64,
3712,
26796,
20180,
11,
275,
3712,
26796,
20180,
8,
198,
220,
220,
220,
334,
11,
410,
796,
1963,
82,
7,
64,
11,
275,
8,
198,
220,
220,
220,
334,
9,
64,
532,
410,
9,
65,
198,
437,
198,
198,
2,
10097,
32501,
198,
2,
10299,
1765,
1008,
4308,
1243,
198,
198,
8818,
5678,
62,
21412,
7,
37,
8,
198,
220,
220,
220,
685,
198,
220,
220,
220,
220,
220,
220,
220,
19937,
20180,
7,
69,
11,
34894,
7,
72,
11,
530,
7,
69,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
329,
357,
72,
11,
277,
8,
287,
27056,
378,
7,
37,
8,
198,
220,
220,
220,
2361,
198,
437,
198,
198,
8818,
9877,
62,
27333,
1765,
1008,
62,
12093,
271,
7,
37,
8,
198,
220,
220,
220,
3297,
0,
7,
37,
11,
416,
28,
12294,
62,
2144,
49070,
11,
300,
83,
28,
69,
20,
62,
23350,
62,
16863,
62,
28230,
62,
48991,
8,
628,
220,
220,
220,
376,
796,
3975,
7,
69,
4613,
3975,
62,
1073,
41945,
7,
66,
4613,
269,
3373,
3756,
62,
1073,
16814,
7,
69,
828,
277,
828,
376,
8,
628,
220,
220,
220,
402,
796,
5678,
62,
21412,
7,
37,
8,
628,
220,
220,
220,
827,
7357,
70,
444,
796,
17635,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
13664,
7,
38,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
474,
287,
1312,
10,
16,
25,
13664,
7,
38,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
16,
796,
357,
38,
58,
72,
60,
9,
12294,
62,
2144,
49070,
7,
38,
58,
73,
4083,
1990,
29720,
82,
4593,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
17,
796,
357,
38,
58,
73,
60,
9,
12294,
62,
2144,
49070,
7,
38,
58,
72,
4083,
1990,
29720,
82,
4593,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
1837,
7357,
70,
444,
11,
19937,
20180,
7,
6632,
7,
37,
58,
16,
46570,
3509,
7,
82,
16,
11,
264,
17,
8,
1267,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
350,
796,
17635,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
13664,
7,
38,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
474,
287,
1312,
10,
16,
25,
13664,
7,
38,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
827,
7357,
1360,
62,
22213,
28019,
7,
2777,
3366,
7,
38,
58,
72,
4357,
402,
58,
73,
46570,
827,
7357,
70,
444,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
47,
11,
599,
3366,
7,
38,
58,
72,
4357,
402,
58,
73,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1303,
2488,
10951,
366,
27568,
4238,
402,
290,
350,
11097,
198,
220,
220,
220,
1303,
2488,
10951,
366,
37,
796,
720,
37,
1,
198,
220,
220,
220,
1303,
2488,
10951,
366,
38,
796,
720,
38,
1,
198,
220,
220,
220,
1303,
2488,
10951,
366,
47,
796,
720,
47,
1,
198,
220,
220,
220,
1303,
2488,
10951,
366,
1837,
89,
796,
720,
1837,
7357,
70,
444,
1,
628,
220,
220,
220,
981,
5145,
271,
28920,
7,
47,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3297,
0,
7,
47,
11,
2710,
28,
9562,
8,
198,
220,
220,
220,
220,
220,
220,
220,
277,
796,
1461,
11085,
0,
7,
47,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
10951,
366,
34213,
720,
69,
1,
628,
220,
220,
220,
220,
220,
220,
220,
611,
827,
7357,
1360,
62,
22213,
28019,
7,
69,
11,
827,
7357,
70,
444,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
3298,
376,
20,
62,
21870,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
376,
20,
62,
21870,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
277,
21870,
796,
3218,
62,
11265,
62,
687,
7,
69,
11,
402,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3298,
376,
20,
62,
21870,
198,
220,
220,
220,
220,
220,
220,
220,
376,
20,
62,
21870,
15853,
352,
628,
220,
220,
220,
220,
220,
220,
220,
611,
1189,
88,
7357,
1360,
7,
69,
21870,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2488,
40539,
366,
7738,
8110,
284,
6632,
2474,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3298,
376,
20,
62,
22083,
9598,
1961,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
376,
20,
62,
22083,
9598,
1961,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
1837,
7357,
70,
444,
11,
277,
21870,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3298,
376,
20,
62,
2937,
3698,
7597,
62,
21870,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
376,
20,
62,
2937,
3698,
7597,
62,
21870,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
5145,
747,
278,
934,
306,
4852,
445,
1229,
856,
7,
69,
21870,
11,
402,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4296,
350,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
277,
73,
287,
402,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
827,
7357,
1360,
62,
22213,
28019,
7,
2777,
3366,
7,
69,
21870,
11,
277,
73,
828,
827,
7357,
70,
444,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
47,
11,
599,
3366,
7,
69,
21870,
11,
277,
73,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2488,
10951,
17971,
69,
21870,
220,
720,
69,
73,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2488,
10951,
366,
4303,
3535,
56,
29568,
12957,
7,
47,
4008,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4296,
402,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
21870,
11265,
8863,
796,
277,
21870,
1635,
800,
7,
12294,
62,
1073,
16814,
7,
69,
21870,
13,
1990,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
38,
11,
277,
21870,
11265,
8863,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3298,
376,
20,
62,
2937,
3698,
7597,
62,
21870,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
376,
20,
62,
2937,
3698,
7597,
62,
21870,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2488,
10951,
366,
43162,
402,
290,
350,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2488,
10951,
366,
38,
796,
720,
38,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2488,
10951,
366,
47,
796,
720,
47,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2488,
10951,
366,
1837,
89,
796,
720,
1837,
7357,
70,
444,
1,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1303,
3298,
376,
20,
62,
33489,
198,
220,
220,
220,
1303,
376,
20,
62,
33489,
796,
4129,
7,
38,
8,
532,
4129,
7,
37,
8,
628,
220,
220,
220,
1303,
3298,
376,
20,
62,
22083,
9598,
1961,
198,
220,
220,
220,
1303,
3298,
376,
20,
62,
26288,
34,
9795,
1961,
198,
220,
220,
220,
3298,
376,
20,
62,
33,
1921,
1797,
62,
33489,
198,
220,
220,
220,
376,
20,
62,
33,
1921,
1797,
62,
33489,
796,
4129,
7,
38,
8,
628,
220,
220,
220,
402,
198,
437,
198,
198,
2,
10097,
32501,
198,
198,
3500,
5972,
2667,
198,
11187,
2667,
13,
20541,
62,
6404,
1362,
7,
47581,
11187,
1362,
7,
11187,
2667,
13,
54,
1501,
4008,
198,
198,
49,
11,
357,
87,
11,
88,
11,
89,
8,
796,
12280,
26601,
498,
39687,
7,
48,
48,
11,
14631,
87,
2430,
88,
1600,
366,
89,
33116,
16216,
28,
25,
13500,
18218,
2588,
8,
198,
198,
37,
796,
685,
87,
9,
89,
1343,
352,
11,
331,
9,
89,
1343,
352,
60,
198,
198,
2,
12660,
198,
38,
796,
9877,
62,
27333,
1765,
1008,
62,
12093,
271,
7,
37,
8,
198,
38,
1990,
796,
685,
70,
13,
1990,
329,
308,
287,
402,
60,
198,
35235,
7203,
7804,
4242,
4943,
198,
35235,
7,
38,
8,
198,
35235,
7,
38,
1990,
8,
198
] | 2.017011 | 3,586 |
@testset "rand" begin
# Some arbitrary alignment
x = iterdates()
expected_times = _eval_fast(x).times
@testset "scalar" begin
n = rand(x)
# calling multiple times should give different nodes, since we use a different rng.
@test n != rand(x)
# If we specify an explicit rng, then we should get identical nodes back.
rng = MersenneTwister()
n = rand(rng, x)
@test n === rand(rng, x)
@test value_type(n) == Float64
block = _eval(n)
@test block.times == expected_times
@test all(0 .<= block.values .< 1)
n = rand(rng, x, Int32)
@test n === rand(rng, x, Int32)
@test value_type(n) == Int32
block = _eval(n)
@test block.times == expected_times
@test all(typemin(Int32) .<= block.values .<= typemax(Int32))
end
@testset "array" begin
n = rand(x, ())
@test value_type(n) == Array{Float64,0}
# If we specify an explicit rng, then we should get identical nodes back.
rng = MersenneTwister()
n = rand(rng, x, (2,))
@test n === rand(rng, x, (2,))
@test n != rand(rng, x, (3,))
@test n != rand(rng, x, (2, 3))
@test rand(rng, x, (2,)) === rand(rng, x, 2)
@test rand(rng, x, Float64, (2,)) === rand(rng, x, 2)
@test rand(rng, x, (2,)) === rand(rng, x, Float64, 2)
@test rand(rng, x, (2, 3)) === rand(rng, x, 2, 3)
@test rand(rng, x, Float64, (2, 3)) === rand(rng, x, 2, 3)
@test rand(rng, x, (2, 3)) === rand(rng, x, Float64, 2, 3)
@test value_type(n) == Vector{Float64}
block = _eval(n)
@test block.times == expected_times
@test all(map(value -> all(0 .<= value .< 1), block.values))
end
end
| [
31,
9288,
2617,
366,
25192,
1,
2221,
198,
220,
220,
220,
1303,
2773,
14977,
19114,
198,
220,
220,
220,
2124,
796,
11629,
19581,
3419,
198,
220,
220,
220,
2938,
62,
22355,
796,
4808,
18206,
62,
7217,
7,
87,
737,
22355,
628,
220,
220,
220,
2488,
9288,
2617,
366,
1416,
282,
283,
1,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
299,
796,
43720,
7,
87,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4585,
3294,
1661,
815,
1577,
1180,
13760,
11,
1201,
356,
779,
257,
1180,
374,
782,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
299,
14512,
43720,
7,
87,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1002,
356,
11986,
281,
7952,
374,
782,
11,
788,
356,
815,
651,
10411,
13760,
736,
13,
198,
220,
220,
220,
220,
220,
220,
220,
374,
782,
796,
337,
364,
29727,
5080,
1694,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
299,
796,
43720,
7,
81,
782,
11,
2124,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
299,
24844,
43720,
7,
81,
782,
11,
2124,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
1988,
62,
4906,
7,
77,
8,
6624,
48436,
2414,
198,
220,
220,
220,
220,
220,
220,
220,
2512,
796,
4808,
18206,
7,
77,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
2512,
13,
22355,
6624,
2938,
62,
22355,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
477,
7,
15,
764,
27,
28,
2512,
13,
27160,
764,
27,
352,
8,
628,
220,
220,
220,
220,
220,
220,
220,
299,
796,
43720,
7,
81,
782,
11,
2124,
11,
2558,
2624,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
299,
24844,
43720,
7,
81,
782,
11,
2124,
11,
2558,
2624,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
1988,
62,
4906,
7,
77,
8,
6624,
2558,
2624,
198,
220,
220,
220,
220,
220,
220,
220,
2512,
796,
4808,
18206,
7,
77,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
2512,
13,
22355,
6624,
2938,
62,
22355,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
477,
7,
28004,
14857,
7,
5317,
2624,
8,
764,
27,
28,
2512,
13,
27160,
764,
27,
28,
2170,
368,
897,
7,
5317,
2624,
4008,
198,
220,
220,
220,
886,
628,
220,
220,
220,
2488,
9288,
2617,
366,
18747,
1,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
299,
796,
43720,
7,
87,
11,
32865,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
1988,
62,
4906,
7,
77,
8,
6624,
15690,
90,
43879,
2414,
11,
15,
92,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1002,
356,
11986,
281,
7952,
374,
782,
11,
788,
356,
815,
651,
10411,
13760,
736,
13,
198,
220,
220,
220,
220,
220,
220,
220,
374,
782,
796,
337,
364,
29727,
5080,
1694,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
299,
796,
43720,
7,
81,
782,
11,
2124,
11,
357,
17,
11,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
299,
24844,
43720,
7,
81,
782,
11,
2124,
11,
357,
17,
11,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
299,
14512,
43720,
7,
81,
782,
11,
2124,
11,
357,
18,
11,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
299,
14512,
43720,
7,
81,
782,
11,
2124,
11,
357,
17,
11,
513,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
43720,
7,
81,
782,
11,
2124,
11,
357,
17,
11,
4008,
24844,
43720,
7,
81,
782,
11,
2124,
11,
362,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
43720,
7,
81,
782,
11,
2124,
11,
48436,
2414,
11,
357,
17,
11,
4008,
24844,
43720,
7,
81,
782,
11,
2124,
11,
362,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
43720,
7,
81,
782,
11,
2124,
11,
357,
17,
11,
4008,
24844,
43720,
7,
81,
782,
11,
2124,
11,
48436,
2414,
11,
362,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
43720,
7,
81,
782,
11,
2124,
11,
357,
17,
11,
513,
4008,
24844,
43720,
7,
81,
782,
11,
2124,
11,
362,
11,
513,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
43720,
7,
81,
782,
11,
2124,
11,
48436,
2414,
11,
357,
17,
11,
513,
4008,
24844,
43720,
7,
81,
782,
11,
2124,
11,
362,
11,
513,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
43720,
7,
81,
782,
11,
2124,
11,
357,
17,
11,
513,
4008,
24844,
43720,
7,
81,
782,
11,
2124,
11,
48436,
2414,
11,
362,
11,
513,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
1988,
62,
4906,
7,
77,
8,
6624,
20650,
90,
43879,
2414,
92,
198,
220,
220,
220,
220,
220,
220,
220,
2512,
796,
4808,
18206,
7,
77,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
2512,
13,
22355,
6624,
2938,
62,
22355,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
477,
7,
8899,
7,
8367,
4613,
477,
7,
15,
764,
27,
28,
1988,
764,
27,
352,
828,
2512,
13,
27160,
4008,
198,
220,
220,
220,
886,
198,
437,
198
] | 2.051429 | 875 |
### Run Simulation ###
function initialize_sim_and_run(;m::MapData
, routes_path::OrderedDict{Symbol, OrderedDict{Int64,Int64}}
, routes_distances::OrderedDict{Symbol, OrderedDict{Int64,Float64}}
, routes_types_both_dir::Dict{Symbol,Symbol}
, orig_map_nodes_num::Int
, when_to_run_people::Float64 = sim_params.when_to_run_people
, when_to_run_wagons::Float64 = sim_params.when_to_run_wagons
, TTC_freq::Int = sim_params.TTC_car_freq
, max_load_subway::Int = sim_params.max_load_subway
, max_load_streetcar::Int = sim_params.max_load_streetcar
, max_load_gov_restr::Float64 = sim_params.max_load_gov_restr
, N_agents::Int = sim_params.N_agents
, sim_run_time_in_secs::Int = sim_params.sim_run_time_in_secs
, serialize_finished_sim_object::Bool = false
, p0::Float64 = sim_params.p0
, parset_id::Int64 = 1)
"""
Description:
Initialization of the simulation with a given parameters. Next the simulation will be running for the specified number of seconds.
Returns:
Simulation objects with the results.
"""
println("By default parameters from `sim_params` object will be used")
println("--------------------")
simul = Simulation(m
, orig_map_nodes_num
, routes_path
, routes_distances
, routes_types_both_dir
, N_agents
, sim_run_time_in_secs
, TTC_freq
, max_load_subway
, max_load_streetcar
, max_load_gov_restr
, p0)
println("when_to_run_people: ",when_to_run_people)
println("when_to_run_wagons: ",when_to_run_wagons)
enqueue!.(Ref(simul.events), simul.agents, tuple.(when_to_run_people,rand(length(simul.agents))))
enqueue!.(Ref(simul.events), simul.wagons, tuple.(when_to_run_wagons,rand(length(simul.wagons))))
enqueue!(simul.events, simul.artificial_agent_stats, tuple(when_to_run_people, rand()))
println("--------------------")
println("Final simul object before run: \n", simul)
println("--------------------")
current_time = 0
while sim_run_time_in_secs > current_time && length(simul.events) > 0
event, t = dequeue_pair!(simul.events)
step!(simul, t, event, orig_map_nodes_num)
current_time = deepcopy(t[1])
if simul.infected_agents_count[end] >= 0.95*N_agents
println("Simulation has ended ealier, because 95% of agents are already infected. Current time: ",current_time)
break
end
end
if serialize_finished_sim_object == true
path_simul = "./data_output/simulation_finished_parset_id_$parset_id.bin"
serialize(path_simul, simul)
println("Simulation object with results was saved in: ", path_simul)
end
println("Simulation has already ended. You can check the results.")
return simul
end
### Run Simulation N times###
function initialize_sim_and_run_N_times_and_gather_results(;m::MapData
, routes_path::OrderedDict{Symbol, OrderedDict{Int64,Int64}}
, routes_distances::OrderedDict{Symbol, OrderedDict{Int64,Float64}}
, routes_types_both_dir::Dict{Symbol,Symbol}
, orig_map_nodes_num::Int
, when_to_run_people::Float64 = sim_params.when_to_run_people
, when_to_run_wagons::Float64 = sim_params.when_to_run_wagons
, TTC_freq::Int = sim_params.TTC_car_freq
, max_load_subway::Int = sim_params.max_load_subway
, max_load_streetcar::Int = sim_params.max_load_streetcar
, max_load_gov_restr::Float64 = sim_params.max_load_gov_restr
, N_agents::Int = sim_params.N_agents
, sim_run_time_in_secs::Int = sim_params.sim_run_time_in_secs
, serialize_finished_sim_object::Bool = false
, parset_id::Int64 = 1
, p0::Float64 = sim_params.p0
, N_times_to_run::Int64 = 30)
"""
Description:
Run the simulation with specified parameters N times and then gather related results into dict.
Returns:
Dict object with mean results of N runs.
"""
res_gathering = Dict{String,Any}()
total_cnt = Vector{Int}[]
ttc_cnt = Vector{Int}[]
street_cnt = Vector{Int}[]
prct_ag_used_TTC = Float64[]
mean_time_spent_in_TTC = Float64[]
max_load_achieved_streetcars = Float64[]
max_load_achieved_subway = Float64[]
all_TTC_trips_count_streetcars = Float64[]
all_TTC_trips_count_subway = Float64[]
max_pass_per_wagon_subway = Vector{Float64}[]
max_pass_per_wagon_streetcars = Vector{Float64}[]
println("Your simulation will be run ", N_times_to_run, " times")
for i in 1:N_times_to_run
println("Is is a run number $i for parameters set number $parset_id.")
@time s = initialize_sim_and_run(m = m
, routes_path = routes_path
, routes_distances = routes_distances
, routes_types_both_dir = routes_types_both_dir
, orig_map_nodes_num = orig_map_nodes_num
, when_to_run_people = when_to_run_people
, when_to_run_wagons = when_to_run_wagons
, TTC_freq = TTC_freq
, max_load_subway = max_load_subway
, max_load_streetcar = max_load_streetcar
, max_load_gov_restr = max_load_gov_restr
, N_agents = N_agents
, sim_run_time_in_secs = sim_run_time_in_secs
, serialize_finished_sim_object =serialize_finished_sim_object
, p0 = p0
, parset_id = parset_id);
push!(total_cnt, s.infected_agents_count)
push!(ttc_cnt, s.infected_agents_wagon)
push!(street_cnt, s.infected_agents_street)
time_spend_in_TTC, TTC_types_used, time_spend_in_TTC_comp_to_total_path_time = TTC_usage_by_agents(s,orig_map_nodes_num);
push!(prct_ag_used_TTC, round((sum([1 for i in time_spend_in_TTC if i > 0]) / N_agents)*100))
push!(mean_time_spent_in_TTC, mean([i for i in time_spend_in_TTC if i > 0]))
loop_max_load_achieved_streetcar = [1 for (k,v) in s.max_passengers_per_TTC_car if (routes_types_both_dir[k[2]] == :streetcar) & (v >= max_load_streetcar)]
loop_max_load_achieved_subway = [1 for (k,v) in s.max_passengers_per_TTC_car if (routes_types_both_dir[k[2]] == :subway) & (v >= max_load_subway)]
push!(max_load_achieved_streetcars,sum(loop_max_load_achieved_streetcar))
push!(max_load_achieved_subway,sum(loop_max_load_achieved_subway))
loop_all_TTC_trips_count_streetcars = [1 for (k,v) in s.max_passengers_per_TTC_car if (routes_types_both_dir[k[2]] == :streetcar)]
loop_all_TTC_trips_count_subway = [1 for (k,v) in s.max_passengers_per_TTC_car if (routes_types_both_dir[k[2]] == :subway)]
push!(all_TTC_trips_count_streetcars,sum(loop_all_TTC_trips_count_streetcars))
push!(all_TTC_trips_count_subway,sum(loop_all_TTC_trips_count_subway))
loop_max_pass_per_wagon_streetcars = [v for (k,v) in s.max_passengers_per_TTC_car if (routes_types_both_dir[k[2]] == :streetcar)]
loop_max_pass_per_wagon_subway = [v for (k,v) in s.max_passengers_per_TTC_car if (routes_types_both_dir[k[2]] == :subway)]
push!(max_pass_per_wagon_streetcars, [mean(loop_max_pass_per_wagon_streetcars),std(loop_max_pass_per_wagon_streetcars),maximum(loop_max_pass_per_wagon_streetcars)])
push!(max_pass_per_wagon_subway, [mean(loop_max_pass_per_wagon_subway),std(loop_max_pass_per_wagon_subway),maximum(loop_max_pass_per_wagon_subway)])
end
res_gathering["total_infected"] = (floor.(mean(total_cnt)), floor.(std(total_cnt)))
res_gathering["TTC_infected"] = (floor.(mean(ttc_cnt)), floor.(std(ttc_cnt)))
res_gathering["street_infected"] = (floor.(mean(street_cnt)), floor.(std(street_cnt)))
res_gathering["prct_of_agents_used_TTC"] = (floor.(mean(prct_ag_used_TTC)), floor.(std(prct_ag_used_TTC)))
res_gathering["mean_sec_spent_in_TTC_by_those_who_used"] = (floor.(mean(mean_time_spent_in_TTC)), floor.(std(mean_time_spent_in_TTC)))
res_gathering["times_max_load_achieved_streetcars"] = (floor.(mean(max_load_achieved_streetcars)), floor.(std(max_load_achieved_streetcars)))
res_gathering["times_max_load_achieved_subway"] = (floor.(mean(max_load_achieved_subway)), floor.(std(max_load_achieved_subway)))
res_gathering["all_TTC_trips_count_streetcars"] = (floor.(mean(all_TTC_trips_count_streetcars)),floor.(std(all_TTC_trips_count_streetcars)))
res_gathering["all_TTC_trips_count_subway"] = (floor.(mean(all_TTC_trips_count_subway)),floor.(std(all_TTC_trips_count_subway)))
res_gathering["max_pass_per_wagon_subway"] = (floor.(mean(max_pass_per_wagon_subway)),floor.(maximum(max_pass_per_wagon_subway)))
res_gathering["max_pass_per_wagon_streetcars"] = (floor.(mean(max_pass_per_wagon_streetcars)),floor.(maximum(max_pass_per_wagon_subway)))
println("All runs completed!")
return res_gathering
end
### Create parameters grid ###
function create_df_with_sim_params(;TTC_car_freq::Union{Vector{Int64},Int64}
, max_load_gov_restr::Union{Vector{Float64},Float64}
, when_to_run_people::Union{Vector{Float64},Float64}
, when_to_run_wagons::Union{Vector{Float64},Float64}
, sim_run_time_in_secs::Union{Vector{Int64},Int64}
, N_agents::Union{Vector{Int64},Int64}
, agents_speed_in_sec_per_m::Union{Vector{Float64},Float64}
, max_load_subway::Union{Vector{Int64},Int64}
, max_load_streetcar::Union{Vector{Int64},Int64}
, p0::Union{Vector{Float64},Float64})
"""
Description:
Make all possible combinations of given values.
Returns:
DataFrame with all possible combinations of given parameters where one row means one set of parameters for Simulation.
"""
df = DataFrame(Iterators.product(TTC_car_freq
, max_load_gov_restr
, when_to_run_people
, when_to_run_wagons
, sim_run_time_in_secs
, N_agents
, agents_speed_in_sec_per_m
, max_load_subway
, max_load_streetcar
, p0))
colnames = ["TTC_car_freq", "max_load_gov_restr", "when_to_run_people", "when_to_run_wagons", "sim_run_time_in_secs", "N_agents", "agents_speed_in_sec_per_m", "max_load_subway", "max_load_streetcar", "p0"]
rename!(df,Symbol.(colnames))
df[!,"parset_id"] = [i for i in 1:nrow(df)]
df = df[:,["parset_id","TTC_car_freq", "max_load_gov_restr", "when_to_run_people", "when_to_run_wagons", "sim_run_time_in_secs", "N_agents", "agents_speed_in_sec_per_m", "max_load_subway", "max_load_streetcar", "p0"]]
return df
end
println("Run sim functions were read")
| [
21017,
5660,
41798,
44386,
198,
8818,
41216,
62,
14323,
62,
392,
62,
5143,
7,
26,
76,
3712,
13912,
6601,
198,
197,
197,
197,
197,
11,
11926,
62,
6978,
3712,
35422,
1068,
35,
713,
90,
13940,
23650,
11,
14230,
1068,
35,
713,
90,
5317,
2414,
11,
5317,
2414,
11709,
198,
197,
197,
197,
197,
11,
11926,
62,
17080,
1817,
3712,
35422,
1068,
35,
713,
90,
13940,
23650,
11,
14230,
1068,
35,
713,
90,
5317,
2414,
11,
43879,
2414,
11709,
198,
197,
197,
197,
197,
11,
11926,
62,
19199,
62,
16885,
62,
15908,
3712,
35,
713,
90,
13940,
23650,
11,
13940,
23650,
92,
198,
197,
197,
197,
197,
11,
1796,
62,
8899,
62,
77,
4147,
62,
22510,
3712,
5317,
198,
197,
197,
197,
197,
11,
618,
62,
1462,
62,
5143,
62,
15332,
3712,
43879,
2414,
796,
985,
62,
37266,
13,
12518,
62,
1462,
62,
5143,
62,
15332,
198,
197,
197,
197,
197,
11,
618,
62,
1462,
62,
5143,
62,
86,
34765,
3712,
43879,
2414,
796,
985,
62,
37266,
13,
12518,
62,
1462,
62,
5143,
62,
86,
34765,
198,
197,
197,
197,
197,
11,
42662,
62,
19503,
80,
3712,
5317,
796,
985,
62,
37266,
13,
51,
4825,
62,
7718,
62,
19503,
80,
198,
197,
197,
197,
197,
11,
3509,
62,
2220,
62,
7266,
1014,
3712,
5317,
796,
985,
62,
37266,
13,
9806,
62,
2220,
62,
7266,
1014,
198,
197,
197,
197,
197,
11,
3509,
62,
2220,
62,
25662,
7718,
3712,
5317,
796,
985,
62,
37266,
13,
9806,
62,
2220,
62,
25662,
7718,
198,
197,
197,
197,
197,
11,
3509,
62,
2220,
62,
9567,
62,
2118,
81,
3712,
43879,
2414,
796,
220,
985,
62,
37266,
13,
9806,
62,
2220,
62,
9567,
62,
2118,
81,
198,
197,
197,
197,
197,
11,
399,
62,
49638,
3712,
5317,
796,
220,
985,
62,
37266,
13,
45,
62,
49638,
198,
197,
197,
197,
197,
11,
985,
62,
5143,
62,
2435,
62,
259,
62,
2363,
82,
3712,
5317,
796,
985,
62,
37266,
13,
14323,
62,
5143,
62,
2435,
62,
259,
62,
2363,
82,
198,
197,
197,
197,
197,
11,
11389,
1096,
62,
43952,
62,
14323,
62,
15252,
3712,
33,
970,
796,
3991,
198,
197,
197,
197,
197,
11,
279,
15,
3712,
43879,
2414,
796,
220,
985,
62,
37266,
13,
79,
15,
198,
197,
197,
197,
197,
11,
13544,
316,
62,
312,
3712,
5317,
2414,
796,
352,
8,
198,
197,
37811,
198,
197,
11828,
25,
198,
197,
197,
24243,
1634,
286,
262,
18640,
351,
257,
1813,
10007,
13,
7406,
262,
18640,
481,
307,
2491,
329,
262,
7368,
1271,
286,
4201,
13,
198,
197,
35561,
25,
198,
197,
197,
8890,
1741,
5563,
351,
262,
2482,
13,
198,
197,
37811,
197,
198,
197,
198,
197,
35235,
7203,
3886,
4277,
10007,
422,
4600,
14323,
62,
37266,
63,
2134,
481,
307,
973,
4943,
198,
197,
35235,
7203,
19351,
4943,
198,
197,
14323,
377,
796,
41798,
7,
76,
198,
197,
197,
197,
197,
197,
197,
11,
1796,
62,
8899,
62,
77,
4147,
62,
22510,
198,
197,
197,
197,
197,
197,
197,
11,
11926,
62,
6978,
198,
197,
197,
197,
197,
197,
197,
11,
11926,
62,
17080,
1817,
198,
197,
197,
197,
197,
197,
197,
11,
11926,
62,
19199,
62,
16885,
62,
15908,
198,
197,
197,
197,
197,
197,
197,
11,
399,
62,
49638,
198,
197,
197,
197,
197,
197,
197,
11,
985,
62,
5143,
62,
2435,
62,
259,
62,
2363,
82,
198,
197,
197,
197,
197,
197,
197,
11,
42662,
62,
19503,
80,
198,
197,
197,
197,
197,
197,
197,
11,
3509,
62,
2220,
62,
7266,
1014,
198,
197,
197,
197,
197,
197,
197,
11,
3509,
62,
2220,
62,
25662,
7718,
198,
197,
197,
197,
197,
197,
197,
11,
3509,
62,
2220,
62,
9567,
62,
2118,
81,
198,
197,
197,
197,
197,
197,
197,
11,
279,
15,
8,
198,
197,
198,
197,
35235,
7203,
12518,
62,
1462,
62,
5143,
62,
15332,
25,
33172,
12518,
62,
1462,
62,
5143,
62,
15332,
8,
198,
197,
35235,
7203,
12518,
62,
1462,
62,
5143,
62,
86,
34765,
25,
33172,
12518,
62,
1462,
62,
5143,
62,
86,
34765,
8,
198,
197,
268,
36560,
0,
12195,
8134,
7,
14323,
377,
13,
31534,
828,
39698,
13,
49638,
11,
46545,
12195,
12518,
62,
1462,
62,
5143,
62,
15332,
11,
25192,
7,
13664,
7,
14323,
377,
13,
49638,
35514,
198,
197,
268,
36560,
0,
12195,
8134,
7,
14323,
377,
13,
31534,
828,
39698,
13,
86,
34765,
11,
46545,
12195,
12518,
62,
1462,
62,
5143,
62,
86,
34765,
11,
25192,
7,
13664,
7,
14323,
377,
13,
86,
34765,
35514,
198,
197,
268,
36560,
0,
7,
14323,
377,
13,
31534,
11,
39698,
13,
433,
9542,
62,
25781,
62,
34242,
11,
46545,
7,
12518,
62,
1462,
62,
5143,
62,
15332,
11,
43720,
3419,
4008,
198,
197,
628,
198,
220,
220,
220,
220,
198,
197,
35235,
7203,
19351,
4943,
198,
197,
35235,
7203,
19006,
39698,
2134,
878,
1057,
25,
3467,
77,
1600,
39698,
8,
198,
197,
35235,
7203,
19351,
4943,
198,
197,
14421,
62,
2435,
796,
657,
198,
197,
198,
197,
4514,
985,
62,
5143,
62,
2435,
62,
259,
62,
2363,
82,
1875,
1459,
62,
2435,
11405,
4129,
7,
14323,
377,
13,
31534,
8,
1875,
657,
198,
197,
197,
15596,
11,
256,
796,
390,
36560,
62,
24874,
0,
7,
14323,
377,
13,
31534,
8,
198,
197,
197,
9662,
0,
7,
14323,
377,
11,
220,
256,
11,
220,
1785,
11,
1796,
62,
8899,
62,
77,
4147,
62,
22510,
8,
198,
197,
197,
14421,
62,
2435,
796,
2769,
30073,
7,
83,
58,
16,
12962,
198,
197,
197,
361,
39698,
13,
27816,
276,
62,
49638,
62,
9127,
58,
437,
60,
18189,
657,
13,
3865,
9,
45,
62,
49638,
198,
197,
197,
197,
35235,
7203,
8890,
1741,
468,
4444,
304,
282,
959,
11,
780,
6957,
4,
286,
6554,
389,
1541,
14112,
13,
9236,
640,
25,
33172,
14421,
62,
2435,
8,
220,
198,
197,
197,
197,
9032,
198,
197,
197,
437,
198,
197,
437,
628,
197,
361,
11389,
1096,
62,
43952,
62,
14323,
62,
15252,
6624,
2081,
198,
197,
197,
6978,
62,
14323,
377,
796,
366,
19571,
7890,
62,
22915,
14,
14323,
1741,
62,
43952,
62,
79,
945,
316,
62,
312,
62,
3,
79,
945,
316,
62,
312,
13,
8800,
1,
198,
197,
197,
46911,
1096,
7,
6978,
62,
14323,
377,
11,
39698,
8,
198,
197,
197,
35235,
7203,
8890,
1741,
2134,
351,
2482,
373,
7448,
287,
25,
33172,
3108,
62,
14323,
377,
8,
198,
197,
437,
198,
197,
198,
197,
35235,
7203,
8890,
1741,
468,
1541,
4444,
13,
921,
460,
2198,
262,
2482,
19570,
198,
220,
220,
220,
1441,
39698,
198,
437,
198,
21017,
5660,
41798,
399,
1661,
21017,
198,
8818,
41216,
62,
14323,
62,
392,
62,
5143,
62,
45,
62,
22355,
62,
392,
62,
70,
1032,
62,
43420,
7,
26,
76,
3712,
13912,
6601,
198,
197,
197,
197,
197,
11,
11926,
62,
6978,
3712,
35422,
1068,
35,
713,
90,
13940,
23650,
11,
14230,
1068,
35,
713,
90,
5317,
2414,
11,
5317,
2414,
11709,
198,
197,
197,
197,
197,
11,
11926,
62,
17080,
1817,
3712,
35422,
1068,
35,
713,
90,
13940,
23650,
11,
14230,
1068,
35,
713,
90,
5317,
2414,
11,
43879,
2414,
11709,
198,
197,
197,
197,
197,
11,
11926,
62,
19199,
62,
16885,
62,
15908,
3712,
35,
713,
90,
13940,
23650,
11,
13940,
23650,
92,
198,
197,
197,
197,
197,
11,
1796,
62,
8899,
62,
77,
4147,
62,
22510,
3712,
5317,
198,
197,
197,
197,
197,
11,
618,
62,
1462,
62,
5143,
62,
15332,
3712,
43879,
2414,
796,
985,
62,
37266,
13,
12518,
62,
1462,
62,
5143,
62,
15332,
198,
197,
197,
197,
197,
11,
618,
62,
1462,
62,
5143,
62,
86,
34765,
3712,
43879,
2414,
796,
985,
62,
37266,
13,
12518,
62,
1462,
62,
5143,
62,
86,
34765,
198,
197,
197,
197,
197,
11,
42662,
62,
19503,
80,
3712,
5317,
796,
985,
62,
37266,
13,
51,
4825,
62,
7718,
62,
19503,
80,
198,
197,
197,
197,
197,
11,
3509,
62,
2220,
62,
7266,
1014,
3712,
5317,
796,
985,
62,
37266,
13,
9806,
62,
2220,
62,
7266,
1014,
198,
197,
197,
197,
197,
11,
3509,
62,
2220,
62,
25662,
7718,
3712,
5317,
796,
985,
62,
37266,
13,
9806,
62,
2220,
62,
25662,
7718,
198,
197,
197,
197,
197,
11,
3509,
62,
2220,
62,
9567,
62,
2118,
81,
3712,
43879,
2414,
796,
220,
985,
62,
37266,
13,
9806,
62,
2220,
62,
9567,
62,
2118,
81,
198,
197,
197,
197,
197,
11,
399,
62,
49638,
3712,
5317,
796,
220,
985,
62,
37266,
13,
45,
62,
49638,
198,
197,
197,
197,
197,
11,
985,
62,
5143,
62,
2435,
62,
259,
62,
2363,
82,
3712,
5317,
796,
985,
62,
37266,
13,
14323,
62,
5143,
62,
2435,
62,
259,
62,
2363,
82,
198,
197,
197,
197,
197,
11,
11389,
1096,
62,
43952,
62,
14323,
62,
15252,
3712,
33,
970,
796,
3991,
198,
197,
197,
197,
197,
11,
13544,
316,
62,
312,
3712,
5317,
2414,
796,
352,
198,
197,
197,
197,
197,
11,
279,
15,
3712,
43879,
2414,
796,
220,
985,
62,
37266,
13,
79,
15,
198,
197,
197,
197,
197,
11,
399,
62,
22355,
62,
1462,
62,
5143,
3712,
5317,
2414,
796,
1542,
8,
198,
197,
37811,
198,
197,
11828,
25,
198,
197,
197,
10987,
262,
18640,
351,
7368,
10007,
399,
1661,
290,
788,
6431,
3519,
2482,
656,
8633,
13,
198,
197,
35561,
25,
198,
197,
197,
35,
713,
2134,
351,
1612,
2482,
286,
399,
4539,
13,
198,
197,
37811,
197,
628,
198,
197,
411,
62,
70,
25545,
796,
360,
713,
90,
10100,
11,
7149,
92,
3419,
198,
197,
23350,
62,
66,
429,
796,
20650,
90,
5317,
92,
21737,
198,
197,
926,
66,
62,
66,
429,
796,
20650,
90,
5317,
92,
21737,
198,
197,
25662,
62,
66,
429,
796,
20650,
90,
5317,
92,
21737,
220,
198,
197,
198,
197,
1050,
310,
62,
363,
62,
1484,
62,
51,
4825,
796,
48436,
2414,
21737,
198,
197,
32604,
62,
2435,
62,
2777,
298,
62,
259,
62,
51,
4825,
796,
48436,
2414,
21737,
198,
197,
198,
197,
9806,
62,
2220,
62,
620,
39591,
62,
25662,
37993,
796,
48436,
2414,
21737,
198,
197,
9806,
62,
2220,
62,
620,
39591,
62,
7266,
1014,
796,
48436,
2414,
21737,
198,
197,
198,
197,
439,
62,
51,
4825,
62,
28461,
862,
62,
9127,
62,
25662,
37993,
796,
48436,
2414,
21737,
198,
197,
439,
62,
51,
4825,
62,
28461,
862,
62,
9127,
62,
7266,
1014,
796,
48436,
2414,
21737,
198,
197,
198,
197,
9806,
62,
6603,
62,
525,
62,
41127,
62,
7266,
1014,
796,
20650,
90,
43879,
2414,
92,
21737,
220,
198,
197,
9806,
62,
6603,
62,
525,
62,
41127,
62,
25662,
37993,
796,
20650,
90,
43879,
2414,
92,
21737,
198,
197,
198,
197,
35235,
7203,
7120,
18640,
481,
307,
1057,
33172,
399,
62,
22355,
62,
1462,
62,
5143,
11,
366,
1661,
4943,
198,
197,
1640,
1312,
287,
352,
25,
45,
62,
22355,
62,
1462,
62,
5143,
197,
198,
197,
198,
197,
197,
35235,
7203,
3792,
318,
257,
1057,
1271,
720,
72,
329,
10007,
900,
1271,
720,
79,
945,
316,
62,
312,
19570,
198,
197,
197,
31,
2435,
264,
796,
41216,
62,
14323,
62,
392,
62,
5143,
7,
76,
796,
285,
198,
197,
197,
197,
197,
197,
197,
11,
11926,
62,
6978,
796,
11926,
62,
6978,
198,
197,
197,
197,
197,
197,
197,
11,
11926,
62,
17080,
1817,
796,
11926,
62,
17080,
1817,
198,
197,
197,
197,
197,
197,
197,
11,
11926,
62,
19199,
62,
16885,
62,
15908,
796,
11926,
62,
19199,
62,
16885,
62,
15908,
198,
197,
197,
197,
197,
197,
197,
11,
1796,
62,
8899,
62,
77,
4147,
62,
22510,
796,
1796,
62,
8899,
62,
77,
4147,
62,
22510,
198,
197,
197,
197,
197,
197,
197,
11,
618,
62,
1462,
62,
5143,
62,
15332,
796,
618,
62,
1462,
62,
5143,
62,
15332,
198,
197,
197,
197,
197,
197,
197,
11,
618,
62,
1462,
62,
5143,
62,
86,
34765,
796,
618,
62,
1462,
62,
5143,
62,
86,
34765,
198,
197,
197,
197,
197,
197,
197,
11,
42662,
62,
19503,
80,
796,
42662,
62,
19503,
80,
198,
197,
197,
197,
197,
197,
197,
11,
3509,
62,
2220,
62,
7266,
1014,
796,
3509,
62,
2220,
62,
7266,
1014,
198,
197,
197,
197,
197,
197,
197,
11,
3509,
62,
2220,
62,
25662,
7718,
796,
3509,
62,
2220,
62,
25662,
7718,
220,
198,
197,
197,
197,
197,
197,
197,
11,
3509,
62,
2220,
62,
9567,
62,
2118,
81,
796,
3509,
62,
2220,
62,
9567,
62,
2118,
81,
198,
197,
197,
197,
197,
197,
197,
11,
399,
62,
49638,
796,
399,
62,
49638,
198,
197,
197,
197,
197,
197,
197,
11,
985,
62,
5143,
62,
2435,
62,
259,
62,
2363,
82,
796,
985,
62,
5143,
62,
2435,
62,
259,
62,
2363,
82,
198,
197,
197,
197,
197,
197,
197,
11,
11389,
1096,
62,
43952,
62,
14323,
62,
15252,
796,
46911,
1096,
62,
43952,
62,
14323,
62,
15252,
198,
197,
197,
197,
197,
197,
197,
11,
279,
15,
796,
279,
15,
198,
197,
197,
197,
197,
197,
197,
11,
13544,
316,
62,
312,
796,
13544,
316,
62,
312,
1776,
197,
198,
197,
197,
14689,
0,
7,
23350,
62,
66,
429,
11,
264,
13,
27816,
276,
62,
49638,
62,
9127,
8,
198,
197,
197,
14689,
0,
7,
926,
66,
62,
66,
429,
11,
264,
13,
27816,
276,
62,
49638,
62,
41127,
8,
198,
197,
197,
14689,
0,
7,
25662,
62,
66,
429,
11,
264,
13,
27816,
276,
62,
49638,
62,
25662,
8,
198,
197,
197,
198,
197,
197,
2435,
62,
2777,
437,
62,
259,
62,
51,
4825,
11,
42662,
62,
19199,
62,
1484,
11,
640,
62,
2777,
437,
62,
259,
62,
51,
4825,
62,
5589,
62,
1462,
62,
23350,
62,
6978,
62,
2435,
796,
42662,
62,
26060,
62,
1525,
62,
49638,
7,
82,
11,
11612,
62,
8899,
62,
77,
4147,
62,
22510,
1776,
198,
197,
197,
14689,
0,
7,
1050,
310,
62,
363,
62,
1484,
62,
51,
4825,
11,
2835,
19510,
16345,
26933,
16,
329,
1312,
287,
640,
62,
2777,
437,
62,
259,
62,
51,
4825,
611,
1312,
1875,
657,
12962,
1220,
399,
62,
49638,
27493,
3064,
4008,
198,
197,
197,
14689,
0,
7,
32604,
62,
2435,
62,
2777,
298,
62,
259,
62,
51,
4825,
11,
1612,
26933,
72,
329,
1312,
287,
640,
62,
2777,
437,
62,
259,
62,
51,
4825,
611,
1312,
1875,
657,
60,
4008,
198,
197,
197,
198,
197,
197,
26268,
62,
9806,
62,
2220,
62,
620,
39591,
62,
25662,
7718,
796,
685,
16,
329,
357,
74,
11,
85,
8,
287,
264,
13,
9806,
62,
6603,
9302,
62,
525,
62,
51,
4825,
62,
7718,
611,
357,
81,
448,
274,
62,
19199,
62,
16885,
62,
15908,
58,
74,
58,
17,
11907,
6624,
1058,
25662,
7718,
8,
1222,
357,
85,
18189,
3509,
62,
2220,
62,
25662,
7718,
15437,
198,
197,
197,
26268,
62,
9806,
62,
2220,
62,
620,
39591,
62,
7266,
1014,
796,
685,
16,
329,
357,
74,
11,
85,
8,
287,
264,
13,
9806,
62,
6603,
9302,
62,
525,
62,
51,
4825,
62,
7718,
611,
357,
81,
448,
274,
62,
19199,
62,
16885,
62,
15908,
58,
74,
58,
17,
11907,
6624,
1058,
7266,
1014,
8,
1222,
357,
85,
18189,
3509,
62,
2220,
62,
7266,
1014,
15437,
198,
197,
197,
14689,
0,
7,
9806,
62,
2220,
62,
620,
39591,
62,
25662,
37993,
11,
16345,
7,
26268,
62,
9806,
62,
2220,
62,
620,
39591,
62,
25662,
7718,
4008,
198,
197,
197,
14689,
0,
7,
9806,
62,
2220,
62,
620,
39591,
62,
7266,
1014,
11,
16345,
7,
26268,
62,
9806,
62,
2220,
62,
620,
39591,
62,
7266,
1014,
4008,
198,
197,
197,
198,
197,
197,
26268,
62,
439,
62,
51,
4825,
62,
28461,
862,
62,
9127,
62,
25662,
37993,
796,
685,
16,
329,
357,
74,
11,
85,
8,
287,
264,
13,
9806,
62,
6603,
9302,
62,
525,
62,
51,
4825,
62,
7718,
611,
357,
81,
448,
274,
62,
19199,
62,
16885,
62,
15908,
58,
74,
58,
17,
11907,
6624,
1058,
25662,
7718,
15437,
198,
197,
197,
26268,
62,
439,
62,
51,
4825,
62,
28461,
862,
62,
9127,
62,
7266,
1014,
796,
685,
16,
329,
357,
74,
11,
85,
8,
287,
264,
13,
9806,
62,
6603,
9302,
62,
525,
62,
51,
4825,
62,
7718,
611,
357,
81,
448,
274,
62,
19199,
62,
16885,
62,
15908,
58,
74,
58,
17,
11907,
6624,
1058,
7266,
1014,
15437,
198,
197,
197,
14689,
0,
7,
439,
62,
51,
4825,
62,
28461,
862,
62,
9127,
62,
25662,
37993,
11,
16345,
7,
26268,
62,
439,
62,
51,
4825,
62,
28461,
862,
62,
9127,
62,
25662,
37993,
4008,
198,
197,
197,
14689,
0,
7,
439,
62,
51,
4825,
62,
28461,
862,
62,
9127,
62,
7266,
1014,
11,
16345,
7,
26268,
62,
439,
62,
51,
4825,
62,
28461,
862,
62,
9127,
62,
7266,
1014,
4008,
198,
197,
197,
198,
197,
197,
26268,
62,
9806,
62,
6603,
62,
525,
62,
41127,
62,
25662,
37993,
796,
685,
85,
329,
357,
74,
11,
85,
8,
287,
264,
13,
9806,
62,
6603,
9302,
62,
525,
62,
51,
4825,
62,
7718,
611,
357,
81,
448,
274,
62,
19199,
62,
16885,
62,
15908,
58,
74,
58,
17,
11907,
6624,
1058,
25662,
7718,
15437,
198,
197,
197,
26268,
62,
9806,
62,
6603,
62,
525,
62,
41127,
62,
7266,
1014,
796,
685,
85,
329,
357,
74,
11,
85,
8,
287,
264,
13,
9806,
62,
6603,
9302,
62,
525,
62,
51,
4825,
62,
7718,
611,
357,
81,
448,
274,
62,
19199,
62,
16885,
62,
15908,
58,
74,
58,
17,
11907,
6624,
1058,
7266,
1014,
15437,
198,
197,
197,
14689,
0,
7,
9806,
62,
6603,
62,
525,
62,
41127,
62,
25662,
37993,
11,
685,
32604,
7,
26268,
62,
9806,
62,
6603,
62,
525,
62,
41127,
62,
25662,
37993,
828,
19282,
7,
26268,
62,
9806,
62,
6603,
62,
525,
62,
41127,
62,
25662,
37993,
828,
47033,
7,
26268,
62,
9806,
62,
6603,
62,
525,
62,
41127,
62,
25662,
37993,
8,
12962,
198,
197,
197,
14689,
0,
7,
9806,
62,
6603,
62,
525,
62,
41127,
62,
7266,
1014,
11,
685,
32604,
7,
26268,
62,
9806,
62,
6603,
62,
525,
62,
41127,
62,
7266,
1014,
828,
19282,
7,
26268,
62,
9806,
62,
6603,
62,
525,
62,
41127,
62,
7266,
1014,
828,
47033,
7,
26268,
62,
9806,
62,
6603,
62,
525,
62,
41127,
62,
7266,
1014,
8,
12962,
198,
197,
197,
198,
197,
437,
197,
198,
197,
198,
197,
411,
62,
70,
25545,
14692,
23350,
62,
27816,
276,
8973,
796,
357,
28300,
12195,
32604,
7,
23350,
62,
66,
429,
36911,
4314,
12195,
19282,
7,
23350,
62,
66,
429,
22305,
198,
197,
411,
62,
70,
25545,
14692,
51,
4825,
62,
27816,
276,
8973,
796,
357,
28300,
12195,
32604,
7,
926,
66,
62,
66,
429,
36911,
4314,
12195,
19282,
7,
926,
66,
62,
66,
429,
22305,
198,
197,
411,
62,
70,
25545,
14692,
25662,
62,
27816,
276,
8973,
796,
357,
28300,
12195,
32604,
7,
25662,
62,
66,
429,
36911,
4314,
12195,
19282,
7,
25662,
62,
66,
429,
22305,
198,
197,
198,
197,
411,
62,
70,
25545,
14692,
1050,
310,
62,
1659,
62,
49638,
62,
1484,
62,
51,
4825,
8973,
796,
357,
28300,
12195,
32604,
7,
1050,
310,
62,
363,
62,
1484,
62,
51,
4825,
36911,
4314,
12195,
19282,
7,
1050,
310,
62,
363,
62,
1484,
62,
51,
4825,
22305,
198,
197,
411,
62,
70,
25545,
14692,
32604,
62,
2363,
62,
2777,
298,
62,
259,
62,
51,
4825,
62,
1525,
62,
25591,
62,
8727,
62,
1484,
8973,
796,
357,
28300,
12195,
32604,
7,
32604,
62,
2435,
62,
2777,
298,
62,
259,
62,
51,
4825,
36911,
4314,
12195,
19282,
7,
32604,
62,
2435,
62,
2777,
298,
62,
259,
62,
51,
4825,
22305,
198,
197,
198,
197,
411,
62,
70,
25545,
14692,
22355,
62,
9806,
62,
2220,
62,
620,
39591,
62,
25662,
37993,
8973,
796,
357,
28300,
12195,
32604,
7,
9806,
62,
2220,
62,
620,
39591,
62,
25662,
37993,
36911,
4314,
12195,
19282,
7,
9806,
62,
2220,
62,
620,
39591,
62,
25662,
37993,
22305,
198,
197,
411,
62,
70,
25545,
14692,
22355,
62,
9806,
62,
2220,
62,
620,
39591,
62,
7266,
1014,
8973,
796,
357,
28300,
12195,
32604,
7,
9806,
62,
2220,
62,
620,
39591,
62,
7266,
1014,
36911,
4314,
12195,
19282,
7,
9806,
62,
2220,
62,
620,
39591,
62,
7266,
1014,
22305,
198,
197,
198,
197,
411,
62,
70,
25545,
14692,
439,
62,
51,
4825,
62,
28461,
862,
62,
9127,
62,
25662,
37993,
8973,
796,
357,
28300,
12195,
32604,
7,
439,
62,
51,
4825,
62,
28461,
862,
62,
9127,
62,
25662,
37993,
36911,
28300,
12195,
19282,
7,
439,
62,
51,
4825,
62,
28461,
862,
62,
9127,
62,
25662,
37993,
22305,
198,
197,
411,
62,
70,
25545,
14692,
439,
62,
51,
4825,
62,
28461,
862,
62,
9127,
62,
7266,
1014,
8973,
796,
357,
28300,
12195,
32604,
7,
439,
62,
51,
4825,
62,
28461,
862,
62,
9127,
62,
7266,
1014,
36911,
28300,
12195,
19282,
7,
439,
62,
51,
4825,
62,
28461,
862,
62,
9127,
62,
7266,
1014,
22305,
198,
197,
198,
197,
411,
62,
70,
25545,
14692,
9806,
62,
6603,
62,
525,
62,
41127,
62,
7266,
1014,
8973,
796,
357,
28300,
12195,
32604,
7,
9806,
62,
6603,
62,
525,
62,
41127,
62,
7266,
1014,
36911,
28300,
12195,
47033,
7,
9806,
62,
6603,
62,
525,
62,
41127,
62,
7266,
1014,
22305,
198,
197,
411,
62,
70,
25545,
14692,
9806,
62,
6603,
62,
525,
62,
41127,
62,
25662,
37993,
8973,
796,
357,
28300,
12195,
32604,
7,
9806,
62,
6603,
62,
525,
62,
41127,
62,
25662,
37993,
36911,
28300,
12195,
47033,
7,
9806,
62,
6603,
62,
525,
62,
41127,
62,
7266,
1014,
22305,
198,
197,
198,
197,
35235,
7203,
3237,
4539,
5668,
2474,
8,
198,
197,
7783,
581,
62,
70,
25545,
198,
437,
628,
198,
21017,
13610,
10007,
10706,
44386,
198,
8818,
2251,
62,
7568,
62,
4480,
62,
14323,
62,
37266,
7,
26,
51,
4825,
62,
7718,
62,
19503,
80,
3712,
38176,
90,
38469,
90,
5317,
2414,
5512,
5317,
2414,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
837,
3509,
62,
2220,
62,
9567,
62,
2118,
81,
3712,
38176,
90,
38469,
90,
43879,
2414,
5512,
43879,
2414,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
837,
618,
62,
1462,
62,
5143,
62,
15332,
3712,
38176,
90,
38469,
90,
43879,
2414,
5512,
43879,
2414,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
837,
618,
62,
1462,
62,
5143,
62,
86,
34765,
3712,
38176,
90,
38469,
90,
43879,
2414,
5512,
43879,
2414,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
837,
985,
62,
5143,
62,
2435,
62,
259,
62,
2363,
82,
3712,
38176,
90,
38469,
90,
5317,
2414,
5512,
5317,
2414,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
837,
399,
62,
49638,
3712,
38176,
90,
38469,
90,
5317,
2414,
5512,
5317,
2414,
92,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
11,
6554,
62,
12287,
62,
259,
62,
2363,
62,
525,
62,
76,
3712,
38176,
90,
38469,
90,
43879,
2414,
5512,
43879,
2414,
92,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
11,
3509,
62,
2220,
62,
7266,
1014,
3712,
38176,
90,
38469,
90,
5317,
2414,
5512,
5317,
2414,
92,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
11,
3509,
62,
2220,
62,
25662,
7718,
3712,
38176,
90,
38469,
90,
5317,
2414,
5512,
5317,
2414,
92,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
11,
279,
15,
3712,
38176,
90,
38469,
90,
43879,
2414,
5512,
43879,
2414,
30072,
198,
197,
37811,
198,
197,
11828,
25,
198,
197,
197,
12050,
477,
1744,
17790,
286,
1813,
3815,
13,
198,
197,
35561,
25,
198,
197,
197,
6601,
19778,
351,
477,
1744,
17790,
286,
1813,
10007,
810,
530,
5752,
1724,
530,
900,
286,
10007,
329,
41798,
13,
198,
197,
37811,
197,
198,
220,
220,
220,
47764,
796,
6060,
19778,
7,
29993,
2024,
13,
11167,
7,
51,
4825,
62,
7718,
62,
19503,
80,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
837,
3509,
62,
2220,
62,
9567,
62,
2118,
81,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
837,
618,
62,
1462,
62,
5143,
62,
15332,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
837,
618,
62,
1462,
62,
5143,
62,
86,
34765,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
837,
985,
62,
5143,
62,
2435,
62,
259,
62,
2363,
82,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
837,
399,
62,
49638,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
11,
6554,
62,
12287,
62,
259,
62,
2363,
62,
525,
62,
76,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
11,
3509,
62,
2220,
62,
7266,
1014,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
11,
3509,
62,
2220,
62,
25662,
7718,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
11,
279,
15,
4008,
198,
220,
220,
220,
951,
14933,
796,
14631,
51,
4825,
62,
7718,
62,
19503,
80,
1600,
366,
9806,
62,
2220,
62,
9567,
62,
2118,
81,
1600,
366,
12518,
62,
1462,
62,
5143,
62,
15332,
1600,
366,
12518,
62,
1462,
62,
5143,
62,
86,
34765,
1600,
366,
14323,
62,
5143,
62,
2435,
62,
259,
62,
2363,
82,
1600,
366,
45,
62,
49638,
1600,
366,
49638,
62,
12287,
62,
259,
62,
2363,
62,
525,
62,
76,
1600,
366,
9806,
62,
2220,
62,
7266,
1014,
1600,
366,
9806,
62,
2220,
62,
25662,
7718,
1600,
366,
79,
15,
8973,
198,
220,
220,
220,
36265,
0,
7,
7568,
11,
13940,
23650,
12195,
4033,
14933,
4008,
198,
197,
7568,
58,
0,
553,
79,
945,
316,
62,
312,
8973,
796,
685,
72,
329,
1312,
287,
352,
25,
77,
808,
7,
7568,
15437,
198,
197,
7568,
796,
47764,
58,
45299,
14692,
79,
945,
316,
62,
312,
2430,
51,
4825,
62,
7718,
62,
19503,
80,
1600,
366,
9806,
62,
2220,
62,
9567,
62,
2118,
81,
1600,
366,
12518,
62,
1462,
62,
5143,
62,
15332,
1600,
366,
12518,
62,
1462,
62,
5143,
62,
86,
34765,
1600,
366,
14323,
62,
5143,
62,
2435,
62,
259,
62,
2363,
82,
1600,
366,
45,
62,
49638,
1600,
366,
49638,
62,
12287,
62,
259,
62,
2363,
62,
525,
62,
76,
1600,
366,
9806,
62,
2220,
62,
7266,
1014,
1600,
366,
9806,
62,
2220,
62,
25662,
7718,
1600,
366,
79,
15,
8973,
60,
198,
220,
220,
220,
1441,
47764,
198,
437,
198,
198,
35235,
7203,
10987,
985,
5499,
547,
1100,
4943,
198
] | 2.252166 | 4,616 |
devices = Dict{Symbol, DeviceModel}(:Generators => DeviceModel(PSY.ThermalStandard, ThermalDispatch),
:Loads => DeviceModel(PSY.PowerLoad, StaticPowerLoad))
branches = Dict{Symbol, DeviceModel}(:L => DeviceModel(PSY.Line, StaticLineUnbounded))
services = Dict{Symbol, ServiceModel}()
@testset "Operation set ref models" begin
model_ref = ModelReference(CopperPlatePowerModel, devices, branches, services);
op_model = OperationModel(TestOptModel, model_ref, c_sys5)
set_transmission_ref!(op_model, DCPLLPowerModel)
@test op_model.model_ref.transmission == DCPLLPowerModel
model_ref = ModelReference(CopperPlatePowerModel, devices, branches, services);
op_model = OperationModel(TestOptModel, model_ref, c_sys5)
new_devices = Dict{Symbol, DeviceModel}(:Generators => DeviceModel(PSY.ThermalStandard, ThermalBasicUnitCommitment),
:Loads => DeviceModel(PSY.PowerLoad, StaticPowerLoad))
set_devices_ref!(op_model, new_devices)
@test op_model.model_ref.devices[:Generators].formulation == ThermalBasicUnitCommitment
jump_model = op_model.canonical.JuMPmodel
@test ((JuMP.VariableRef, MOI.ZeroOne) in JuMP.list_of_constraint_types(jump_model)) == true
model_ref = ModelReference(DCPPowerModel, devices, branches, services);
op_model = OperationModel(TestOptModel, model_ref, c_sys5)
new_branches = Dict{Symbol, DeviceModel}(:L => DeviceModel(PSY.Line, StaticLine))
set_branches_ref!(op_model, new_branches)
@test op_model.model_ref.branches[:L].formulation == StaticLine
end
@testset "Operation set models" begin
model_ref = ModelReference(CopperPlatePowerModel, devices, branches, services);
op_model = OperationModel(TestOptModel, model_ref, c_sys5)
set_device_model!(op_model, :Generators, DeviceModel(PSY.ThermalStandard, ThermalBasicUnitCommitment))
@test op_model.model_ref.devices[:Generators].formulation == ThermalBasicUnitCommitment
jump_model = op_model.canonical.JuMPmodel
@test ((JuMP.VariableRef, MOI.ZeroOne) in JuMP.list_of_constraint_types(jump_model)) == true
model_ref = ModelReference(DCPPowerModel, devices, branches, services);
op_model = OperationModel(TestOptModel, model_ref, c_sys5)
set_branch_model!(op_model, :L, DeviceModel(PSY.Line, StaticLine))
@test op_model.model_ref.branches[:L].formulation == StaticLine
end
| [
42034,
796,
360,
713,
90,
13940,
23650,
11,
16232,
17633,
92,
7,
25,
8645,
2024,
5218,
16232,
17633,
7,
3705,
56,
13,
35048,
7617,
23615,
11,
41590,
49354,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
8912,
82,
5218,
220,
16232,
17633,
7,
3705,
56,
13,
13434,
8912,
11,
36125,
13434,
8912,
4008,
198,
1671,
12140,
796,
360,
713,
90,
13940,
23650,
11,
16232,
17633,
92,
7,
25,
43,
5218,
16232,
17633,
7,
3705,
56,
13,
13949,
11,
36125,
13949,
3118,
65,
6302,
4008,
198,
30416,
796,
360,
713,
90,
13940,
23650,
11,
4809,
17633,
92,
3419,
198,
198,
31,
9288,
2617,
366,
32180,
900,
1006,
4981,
1,
2221,
198,
220,
220,
220,
2746,
62,
5420,
796,
9104,
26687,
7,
7222,
2848,
3646,
378,
13434,
17633,
11,
4410,
11,
13737,
11,
2594,
1776,
198,
220,
220,
220,
1034,
62,
19849,
796,
14680,
17633,
7,
14402,
27871,
17633,
11,
2746,
62,
5420,
11,
269,
62,
17597,
20,
8,
198,
220,
220,
220,
900,
62,
7645,
3411,
62,
5420,
0,
7,
404,
62,
19849,
11,
6257,
47,
3069,
13434,
17633,
8,
198,
220,
220,
220,
2488,
9288,
1034,
62,
19849,
13,
19849,
62,
5420,
13,
7645,
3411,
6624,
6257,
47,
3069,
13434,
17633,
628,
220,
220,
220,
2746,
62,
5420,
796,
9104,
26687,
7,
7222,
2848,
3646,
378,
13434,
17633,
11,
4410,
11,
13737,
11,
2594,
1776,
198,
220,
220,
220,
1034,
62,
19849,
796,
14680,
17633,
7,
14402,
27871,
17633,
11,
2746,
62,
5420,
11,
269,
62,
17597,
20,
8,
198,
220,
220,
220,
649,
62,
42034,
796,
360,
713,
90,
13940,
23650,
11,
16232,
17633,
92,
7,
25,
8645,
2024,
5218,
16232,
17633,
7,
3705,
56,
13,
35048,
7617,
23615,
11,
41590,
26416,
26453,
6935,
270,
434,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1058,
8912,
82,
5218,
220,
16232,
17633,
7,
3705,
56,
13,
13434,
8912,
11,
36125,
13434,
8912,
4008,
198,
220,
220,
220,
900,
62,
42034,
62,
5420,
0,
7,
404,
62,
19849,
11,
649,
62,
42034,
8,
198,
220,
220,
220,
2488,
9288,
1034,
62,
19849,
13,
19849,
62,
5420,
13,
42034,
58,
25,
8645,
2024,
4083,
687,
1741,
6624,
41590,
26416,
26453,
6935,
270,
434,
198,
220,
220,
220,
4391,
62,
19849,
796,
1034,
62,
19849,
13,
49883,
605,
13,
33018,
7378,
19849,
198,
220,
220,
220,
2488,
9288,
14808,
33018,
7378,
13,
43015,
8134,
11,
13070,
40,
13,
28667,
3198,
8,
287,
12585,
7378,
13,
4868,
62,
1659,
62,
1102,
2536,
2913,
62,
19199,
7,
43327,
62,
19849,
4008,
6624,
2081,
628,
220,
220,
220,
2746,
62,
5420,
796,
9104,
26687,
7,
35,
8697,
13434,
17633,
11,
4410,
11,
13737,
11,
2594,
1776,
198,
220,
220,
220,
1034,
62,
19849,
796,
14680,
17633,
7,
14402,
27871,
17633,
11,
2746,
62,
5420,
11,
269,
62,
17597,
20,
8,
198,
220,
220,
220,
649,
62,
1671,
12140,
796,
360,
713,
90,
13940,
23650,
11,
16232,
17633,
92,
7,
25,
43,
5218,
16232,
17633,
7,
3705,
56,
13,
13949,
11,
36125,
13949,
4008,
198,
220,
220,
220,
900,
62,
1671,
12140,
62,
5420,
0,
7,
404,
62,
19849,
11,
649,
62,
1671,
12140,
8,
198,
220,
220,
220,
2488,
9288,
1034,
62,
19849,
13,
19849,
62,
5420,
13,
1671,
12140,
58,
25,
43,
4083,
687,
1741,
6624,
36125,
13949,
198,
437,
628,
198,
31,
9288,
2617,
366,
32180,
900,
4981,
1,
2221,
198,
220,
220,
220,
2746,
62,
5420,
796,
9104,
26687,
7,
7222,
2848,
3646,
378,
13434,
17633,
11,
4410,
11,
13737,
11,
2594,
1776,
198,
220,
220,
220,
1034,
62,
19849,
796,
14680,
17633,
7,
14402,
27871,
17633,
11,
2746,
62,
5420,
11,
269,
62,
17597,
20,
8,
198,
220,
220,
220,
900,
62,
25202,
62,
19849,
0,
7,
404,
62,
19849,
11,
1058,
8645,
2024,
11,
16232,
17633,
7,
3705,
56,
13,
35048,
7617,
23615,
11,
41590,
26416,
26453,
6935,
270,
434,
4008,
198,
220,
220,
220,
2488,
9288,
1034,
62,
19849,
13,
19849,
62,
5420,
13,
42034,
58,
25,
8645,
2024,
4083,
687,
1741,
6624,
41590,
26416,
26453,
6935,
270,
434,
198,
220,
220,
220,
4391,
62,
19849,
796,
1034,
62,
19849,
13,
49883,
605,
13,
33018,
7378,
19849,
198,
220,
220,
220,
2488,
9288,
14808,
33018,
7378,
13,
43015,
8134,
11,
13070,
40,
13,
28667,
3198,
8,
287,
12585,
7378,
13,
4868,
62,
1659,
62,
1102,
2536,
2913,
62,
19199,
7,
43327,
62,
19849,
4008,
6624,
2081,
628,
220,
220,
220,
2746,
62,
5420,
796,
9104,
26687,
7,
35,
8697,
13434,
17633,
11,
4410,
11,
13737,
11,
2594,
1776,
198,
220,
220,
220,
1034,
62,
19849,
796,
14680,
17633,
7,
14402,
27871,
17633,
11,
2746,
62,
5420,
11,
269,
62,
17597,
20,
8,
198,
220,
220,
220,
900,
62,
1671,
3702,
62,
19849,
0,
7,
404,
62,
19849,
11,
1058,
43,
11,
16232,
17633,
7,
3705,
56,
13,
13949,
11,
36125,
13949,
4008,
198,
220,
220,
220,
2488,
9288,
1034,
62,
19849,
13,
19849,
62,
5420,
13,
1671,
12140,
58,
25,
43,
4083,
687,
1741,
6624,
36125,
13949,
198,
437,
198
] | 2.707915 | 897 |
"""
ZeroKernel()
Create a kernel that always returning zero
```
κ(x,y) = 0.0
```
The output type depends of `x` and `y`
"""
struct ZeroKernel <: SimpleKernel end
kappa(κ::ZeroKernel, d::T) where {T<:Real} = zero(T)
metric(::ZeroKernel) = Delta()
Base.show(io::IO, ::ZeroKernel) = print(io, "Zero Kernel")
"""
WhiteKernel()
```
κ(x,y) = δ(x,y)
```
Kernel function working as an equivalent to add white noise. Can also be called via `EyeKernel()`
"""
struct WhiteKernel <: SimpleKernel end
"""
EyeKernel()
See [WhiteKernel](@ref)
"""
const EyeKernel = WhiteKernel
kappa(κ::WhiteKernel, δₓₓ::Real) = δₓₓ
metric(::WhiteKernel) = Delta()
Base.show(io::IO, ::WhiteKernel) = print(io, "White Kernel")
"""
ConstantKernel(; c=1.0)
Kernel function always returning a constant value `c`
```
κ(x,y) = c
```
"""
struct ConstantKernel{Tc<:Real} <: SimpleKernel
c::Vector{Tc}
function ConstantKernel(;c::T=1.0) where {T<:Real}
new{T}([c])
end
end
kappa(κ::ConstantKernel,x::Real) = first(κ.c)*one(x)
metric(::ConstantKernel) = Delta()
Base.show(io::IO, κ::ConstantKernel) = print(io, "Constant Kernel (c = ", first(κ.c), ")")
| [
37811,
198,
220,
220,
220,
12169,
42,
7948,
3419,
198,
198,
16447,
257,
9720,
326,
1464,
8024,
6632,
198,
15506,
63,
198,
220,
220,
220,
7377,
118,
7,
87,
11,
88,
8,
796,
657,
13,
15,
198,
15506,
63,
198,
464,
5072,
2099,
8338,
286,
4600,
87,
63,
290,
4600,
88,
63,
198,
37811,
198,
7249,
12169,
42,
7948,
1279,
25,
17427,
42,
7948,
886,
198,
198,
74,
20975,
7,
43000,
3712,
28667,
42,
7948,
11,
288,
3712,
51,
8,
810,
1391,
51,
27,
25,
15633,
92,
796,
6632,
7,
51,
8,
198,
198,
4164,
1173,
7,
3712,
28667,
42,
7948,
8,
796,
16978,
3419,
198,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
7904,
28667,
42,
7948,
8,
796,
3601,
7,
952,
11,
366,
28667,
32169,
4943,
628,
198,
37811,
198,
220,
220,
220,
2635,
42,
7948,
3419,
198,
198,
15506,
63,
198,
220,
220,
220,
7377,
118,
7,
87,
11,
88,
8,
796,
7377,
112,
7,
87,
11,
88,
8,
198,
15506,
63,
198,
42,
7948,
2163,
1762,
355,
281,
7548,
284,
751,
2330,
7838,
13,
1680,
635,
307,
1444,
2884,
4600,
24876,
42,
7948,
3419,
63,
198,
37811,
198,
7249,
2635,
42,
7948,
1279,
25,
17427,
42,
7948,
886,
198,
198,
37811,
198,
220,
220,
220,
14144,
42,
7948,
3419,
198,
198,
6214,
685,
12256,
42,
7948,
16151,
31,
5420,
8,
198,
37811,
198,
9979,
14144,
42,
7948,
796,
2635,
42,
7948,
198,
198,
74,
20975,
7,
43000,
3712,
12256,
42,
7948,
11,
7377,
112,
158,
224,
241,
158,
224,
241,
3712,
15633,
8,
796,
7377,
112,
158,
224,
241,
158,
224,
241,
198,
198,
4164,
1173,
7,
3712,
12256,
42,
7948,
8,
796,
16978,
3419,
198,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
7904,
12256,
42,
7948,
8,
796,
3601,
7,
952,
11,
366,
12256,
32169,
4943,
628,
198,
37811,
198,
220,
220,
220,
20217,
42,
7948,
7,
26,
269,
28,
16,
13,
15,
8,
198,
198,
42,
7948,
2163,
1464,
8024,
257,
6937,
1988,
4600,
66,
63,
198,
15506,
63,
198,
220,
220,
220,
7377,
118,
7,
87,
11,
88,
8,
796,
269,
198,
15506,
63,
198,
37811,
198,
7249,
20217,
42,
7948,
90,
51,
66,
27,
25,
15633,
92,
1279,
25,
17427,
42,
7948,
198,
220,
220,
220,
269,
3712,
38469,
90,
51,
66,
92,
198,
220,
220,
220,
2163,
20217,
42,
7948,
7,
26,
66,
3712,
51,
28,
16,
13,
15,
8,
810,
1391,
51,
27,
25,
15633,
92,
198,
220,
220,
220,
220,
220,
220,
220,
649,
90,
51,
92,
26933,
66,
12962,
198,
220,
220,
220,
886,
198,
437,
198,
198,
74,
20975,
7,
43000,
3712,
3103,
18797,
42,
7948,
11,
87,
3712,
15633,
8,
796,
717,
7,
43000,
13,
66,
27493,
505,
7,
87,
8,
198,
198,
4164,
1173,
7,
3712,
3103,
18797,
42,
7948,
8,
796,
16978,
3419,
198,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
7377,
118,
3712,
3103,
18797,
42,
7948,
8,
796,
3601,
7,
952,
11,
366,
3103,
18797,
32169,
357,
66,
796,
33172,
717,
7,
43000,
13,
66,
828,
366,
8,
4943,
198
] | 2.294347 | 513 |
module SpikeTrains
export SpikeTrain, draw_uncorrelated_spikes, draw_correlated_spikes, draw_coincident_spikes, length, iterate, convert, vcat, merge, make_exponentialShift, correlation_code, coincidence_code, plot_spike_trains
using Distributions, Plots#, PlotRecipes
struct SpikeTrain
times::Vector{Float64}
SpikeTrain(times=Float64[]) = new(sort(times))
end
Base.length(s::SpikeTrain) = length(s.times)
Base.iterate(s::SpikeTrain, args...) = iterate(s.times, args...)
Base.convert(SpikeTrain, v) = SpikeTrain(v)
Base.vcat(s::SpikeTrain...) = SpikeTrain(vcat(getfield.(s,:times)...))
Base.merge(s::Array{SpikeTrain}; dims=Base.OneTo(ndims(s))) = dropdims(mapslices(x->vcat(x...), s, dims=dims), dims=dims)
function has_min_distance(times, min_distance)
keep = ones(Bool, length(times))
last_time = -Inf
for (i,t) ∈ enumerate(times)
if t < last_time
keep[i] = false
else
last_time = t+min_distance
end
end
return keep
end
ensure_min_distance(times, min_distance) = times[has_min_distance(times, min_distance)]
"""
draw_uncorrelated_spikes(trange, rates; sorted=true)
Draw uncorrelated spike trains in the interval `trange` with the respective `rates`.
"""
function draw_uncorrelated_spikes(trange, rates)
duration = trange[2]-trange[1]
source = Vector{SpikeTrain}(undef, length(rates))
# draw uncorrelated spike trains with high rate
for (i,r) ∈ enumerate(rates)
num_spikes = rand(Poisson(duration*r))
spikes = rand(num_spikes).*duration.+trange[1]
sort!(spikes)
source[i] = SpikeTrain(spikes)
end
return source
end
make_exponentialShift(τ) = t -> t+rand(Exponential(τ))
"""
draw_correlated_spikes(trange, rates, c, [shift]; min_master_distance=0)
Draws spike trains with given `rates` within the given time interval `trange` and
pairwise correlation coefficients c. A function to `shift` the drawn spikes can be
included. A minimum distance between master spikes can be required. The algorithm implemented
is the offline version of the mixture process (4.6.1) by Brette 2008 [1].
[1](http://romainbrette.fr/WordPress3/wp-content/uploads/2014/06/Brette2008NC.pdf)
E[wt] = E[n_good]*min_master_distance
P(n_good|E[wt]) = Poisson(n_good|rate*(1-E[n_good]*min_master_distance))
E[n_good] = rate*1-rate*E[n_good]*min_master_distance
E[n_good] = rate/(1+rate*min_master_distance) = 1/(1/rate+min_master_distance)
rate_desired =!= E[n_good] = 1/(1/rate+min_master_distance)
=> rate := rate_desired/(1-rate_desired*min_master_distance)
"""
function draw_correlated_spikes(trange, rates, c, shift = make_exponentialShift(1.0); min_master_distance=-0)
# correct the rates to account for the expected loss due to pruning overlapping spikes
frac_overlap = sum(rates)
# draw the uncorrelated source spiketrains
source = if c≈0.0
@assert all(0 .<= rates*min_master_distance .< 1) "Cannot draw $(maximum(rates)) master spikes per unit-time with $(min_master_distance) minimum distance (rates must sum to < $(1/min_master_distance))."
# correct sampling rate for expected loss of master spikes due to enforced minimum distance
rates .= rates./(1 .- rates.*min_master_distance)
draw_uncorrelated_spikes(trange, rates)
else
# determine master spike sampling rate
v = 1/c * mean(rates.^2)/sum(rates)
@assert 0<=length(rates)*v*min_master_distance<1 "Cannot draw ~$(length(rates)*v) master spikes per unit-time with $(min_master_distance) minimum distance (rates must sum to < $(1/min_master_distance))."
# correct sampling rate for expected loss of master spikes due to enforced minimum distance
v /= (1-length(rates)*v*min_master_distance)
# determine subsampling probability
p = (c/mean(rates.^2)) .* (rates * rates')
@assert all(0 .<= p .<= 1) "P not all valid probabilities."
draw_uncorrelated_spikes(trange, fill(v, length(rates)))
end
# ensure minimum distance between all source spike trains
if min_master_distance > 0
n = sum(length, source)
times = Vector{Float64}(undef, n)
sources = Vector{Int}(undef, n)
i = 1
for (s,spikes) ∈ enumerate(source)
inew = i+length(spikes)
times[i:inew-1] = spikes.times
sources[i:inew-1] .= s
i=inew
end
# sort times and corresponding sources
idx=sortperm(times)
times=times[idx]
sources=sources[idx]
# determine which spikes to keep ...
keep=has_min_distance(times, min_master_distance)
# ... and keep only those spikes for the respective source
for (s,spikes) ∈ enumerate(source)
source[s] = SpikeTrain(times[(sources.==s) .& keep])
end
end
if c≈0.0
return source
else
target = Vector{SpikeTrain}(undef, length(rates))
# draw correlated spike trains
for i ∈ eachindex(target)
t = target[i] = SpikeTrain()
for (k,s) ∈ enumerate(source)
num_spikes = rand(Binomial(length(s.times), p[i,k]))
append!(t.times, sample(s.times, num_spikes; replace=false))
end
# shift each value randomly
t.times .= shift.(t.times)
sort!(t.times)
end
return target
end
end
"""
draw_coincident_spikes(trange, num_spikes, p=ones(Float64,1), shift = make_exponentialShift(1.0); sorted=true)
Draws `num_spikes` Poisson spikes in the interval `trange`, each of which appears
in each spike-train `i` with the respective probability `p[i]`.
"""
function draw_coincident_spikes(trange, num_spikes, p=ones(Float64,1), shift = make_exponentialShift(1.0); sorted=true)
times = rand(num_spikes).*(trange[2]-trange[1]).+trange[1]
if sorted
sort!(times)
end
target = Vector{SpikeTrain}(undef, length(p))
for i ∈ eachindex(target)
n = rand(Binomial(num_spikes, p[i]))
target[i] = SpikeTrain(sample(times, n; replace=false))
end
return target
end
"""
correlation_code(trange, stimulus, rates, correlations; kwargs...)
Each slice `stimulus[:,...,:,i]` contains an array indicating the class that the
spike-train with corresponding index represents in the time interval `trange[i:i+1]`.
Each class `c` results in spike-trains with rate `rates[c]` and mutual pairwise
correlation `correlations[c]`.
"""
function correlation_code(trange, stimulus, rates, correlations; kwargs...)
@assert length(trange)-1 == size(stimulus)[end] "trange must include n+1 steps for stimuli with last dimension n"
spiketrains = Array{SpikeTrain}(undef, size(stimulus))
classes = unique(stimulus)
for c ∈ classes
for i ∈ Base.OneTo(length(trange)-1)
idx = findall(s->c==s, view(stimulus, fill(Colon(), ndims(stimulus)-1)...,i))
spiketrains[idx,i] = draw_correlated_spikes(trange[i:i+1], fill(rates[c], length(idx)), correlations[c]; kwargs...)
end
end
return spiketrains
end
"""
coincidence_code(trange, stimulus, background_rate, p; kwargs...)
Each slice `stimulus[:,...,:,i]` contains a boolean array corresponding to
whether or not a spike train with corresponding index participates or not
in the coincident spiking during the time interval `trange[i:i+1]`.
A single spike is drawn within each interval, that appears with probability `p`
in each of the spike trains for which the corresponding entry in `stimulus` is `true`.
In addition to the signal spike for each interval, uncorrelated poisson spike-trains,
drawn with a given `background_rate`, are added as background noise.
"""
function coincidence_code(trange, stimulus, background_rate, p; kwargs...)
@assert length(trange)-1 == size(stimulus)[end] "trange must include n+1 steps for stimuli with last dimension n"
spiketrains = reshape(draw_uncorrelated_spikes((trange[1],trange[end]), fill(background_rate, length(stimulus))), size(stimulus))
for i ∈ Base.OneTo(length(trange)-1)
idx = findall(view(stimulus, fill(Colon(), ndims(stimulus)-1)...,i))
nd = ndims(idx)+1
spiketrains[idx,i] = merge(cat(spiketrains[idx,i], draw_coincident_spikes(trange[i:i+1], 1, fill(p, length(idx)); kwargs...), dims=nd),dims=nd)
end
return spiketrains
end
"""
plot_spike_trains(spiketrains::Array{SpikeTrain}, colors=fill(:auto, length(spiketrains)), plt=plot(); kwargs...)
Draw an array of `spiketrains` with given `colors` within a single given or new plot `plt`.
"""
function plot_spike_trains(spiketrains::Array{SpikeTrain}, colors=fill(:auto, length(spiketrains)), plt=plot(); kwargs...)
for (i,(spiketrain, color)) ∈ enumerate(zip(spiketrains, colors))
plot!(plt, ([spiketrain.times spiketrain.times fill(NaN, length(spiketrain.times))])'[:], i .- 0.5 .+ ([zeros(length(spiketrain.times)) ones(length(spiketrain.times)) fill(NaN, length(spiketrain.times))])'[:], lc=color; kwargs...)
end
return plt
end
end
| [
21412,
26309,
2898,
1299,
198,
198,
39344,
26309,
44077,
11,
3197,
62,
403,
10215,
5363,
62,
2777,
7938,
11,
3197,
62,
10215,
5363,
62,
2777,
7938,
11,
3197,
62,
1073,
1939,
738,
62,
2777,
7938,
11,
4129,
11,
11629,
378,
11,
10385,
11,
410,
9246,
11,
20121,
11,
787,
62,
11201,
35470,
33377,
11,
16096,
62,
8189,
11,
21083,
62,
8189,
11,
7110,
62,
2777,
522,
62,
2213,
1299,
198,
198,
3500,
46567,
507,
11,
1345,
1747,
2,
11,
28114,
6690,
18636,
628,
198,
7249,
26309,
44077,
198,
220,
220,
220,
1661,
3712,
38469,
90,
43879,
2414,
92,
198,
220,
220,
220,
26309,
44077,
7,
22355,
28,
43879,
2414,
58,
12962,
796,
649,
7,
30619,
7,
22355,
4008,
198,
437,
198,
198,
14881,
13,
13664,
7,
82,
3712,
4561,
522,
44077,
8,
796,
4129,
7,
82,
13,
22355,
8,
198,
14881,
13,
2676,
378,
7,
82,
3712,
4561,
522,
44077,
11,
26498,
23029,
796,
11629,
378,
7,
82,
13,
22355,
11,
26498,
23029,
198,
14881,
13,
1102,
1851,
7,
4561,
522,
44077,
11,
410,
8,
796,
26309,
44077,
7,
85,
8,
198,
14881,
13,
85,
9246,
7,
82,
3712,
4561,
522,
44077,
23029,
796,
26309,
44077,
7,
85,
9246,
7,
1136,
3245,
12195,
82,
11,
25,
22355,
26513,
4008,
198,
14881,
13,
647,
469,
7,
82,
3712,
19182,
90,
4561,
522,
44077,
19629,
5391,
82,
28,
14881,
13,
3198,
2514,
7,
358,
12078,
7,
82,
22305,
796,
4268,
67,
12078,
7,
31803,
677,
274,
7,
87,
3784,
85,
9246,
7,
87,
986,
828,
264,
11,
5391,
82,
28,
67,
12078,
828,
5391,
82,
28,
67,
12078,
8,
198,
198,
8818,
468,
62,
1084,
62,
30246,
7,
22355,
11,
949,
62,
30246,
8,
198,
220,
220,
220,
1394,
796,
3392,
7,
33,
970,
11,
4129,
7,
22355,
4008,
198,
220,
220,
220,
938,
62,
2435,
796,
532,
18943,
198,
220,
220,
220,
329,
357,
72,
11,
83,
8,
18872,
230,
27056,
378,
7,
22355,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
256,
1279,
938,
62,
2435,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1394,
58,
72,
60,
796,
3991,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
938,
62,
2435,
796,
256,
10,
1084,
62,
30246,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
1394,
198,
437,
198,
198,
641,
495,
62,
1084,
62,
30246,
7,
22355,
11,
949,
62,
30246,
8,
796,
1661,
58,
10134,
62,
1084,
62,
30246,
7,
22355,
11,
949,
62,
30246,
15437,
198,
220,
220,
220,
220,
198,
37811,
198,
220,
220,
220,
3197,
62,
403,
10215,
5363,
62,
2777,
7938,
7,
2213,
858,
11,
3965,
26,
23243,
28,
7942,
8,
198,
220,
220,
220,
220,
198,
25302,
4591,
273,
5363,
20240,
13404,
287,
262,
16654,
4600,
2213,
858,
63,
351,
262,
11756,
4600,
9700,
44646,
198,
37811,
198,
8818,
3197,
62,
403,
10215,
5363,
62,
2777,
7938,
7,
2213,
858,
11,
3965,
8,
198,
220,
220,
220,
9478,
796,
491,
858,
58,
17,
45297,
2213,
858,
58,
16,
60,
198,
220,
220,
220,
2723,
796,
20650,
90,
4561,
522,
44077,
92,
7,
917,
891,
11,
4129,
7,
9700,
4008,
198,
220,
220,
220,
1303,
3197,
4591,
273,
5363,
20240,
13404,
351,
1029,
2494,
198,
220,
220,
220,
329,
357,
72,
11,
81,
8,
18872,
230,
27056,
378,
7,
9700,
8,
198,
220,
220,
220,
220,
220,
220,
220,
997,
62,
2777,
7938,
796,
43720,
7,
18833,
30927,
7,
32257,
9,
81,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
27198,
796,
43720,
7,
22510,
62,
2777,
7938,
737,
9,
32257,
13,
10,
2213,
858,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
3297,
0,
7,
2777,
7938,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2723,
58,
72,
60,
796,
26309,
44077,
7,
2777,
7938,
8,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1441,
2723,
198,
437,
198,
198,
15883,
62,
11201,
35470,
33377,
7,
32830,
8,
796,
256,
4613,
256,
10,
25192,
7,
16870,
35470,
7,
32830,
4008,
198,
198,
37811,
198,
220,
220,
220,
3197,
62,
10215,
5363,
62,
2777,
7938,
7,
2213,
858,
11,
3965,
11,
269,
11,
685,
30846,
11208,
949,
62,
9866,
62,
30246,
28,
15,
8,
198,
198,
25302,
82,
20240,
13404,
351,
1813,
4600,
9700,
63,
1626,
262,
1813,
640,
16654,
4600,
2213,
858,
63,
290,
198,
24874,
3083,
16096,
44036,
269,
13,
317,
2163,
284,
4600,
30846,
63,
262,
7428,
27198,
460,
307,
198,
259,
10341,
13,
317,
5288,
5253,
1022,
4958,
27198,
460,
307,
2672,
13,
383,
11862,
9177,
198,
271,
262,
18043,
2196,
286,
262,
11710,
1429,
357,
19,
13,
21,
13,
16,
8,
416,
39420,
660,
3648,
685,
16,
4083,
198,
198,
58,
16,
16151,
4023,
1378,
398,
391,
65,
42908,
13,
8310,
14,
26449,
13800,
18,
14,
24142,
12,
11299,
14,
39920,
14,
4967,
14,
3312,
14,
33,
42908,
11528,
7792,
13,
12315,
8,
198,
198,
36,
58,
46569,
60,
796,
412,
58,
77,
62,
11274,
60,
9,
1084,
62,
9866,
62,
30246,
198,
47,
7,
77,
62,
11274,
91,
36,
58,
46569,
12962,
796,
7695,
30927,
7,
77,
62,
11274,
91,
4873,
9,
7,
16,
12,
36,
58,
77,
62,
11274,
60,
9,
1084,
62,
9866,
62,
30246,
4008,
198,
36,
58,
77,
62,
11274,
60,
796,
2494,
9,
16,
12,
4873,
9,
36,
58,
77,
62,
11274,
60,
9,
1084,
62,
9866,
62,
30246,
198,
36,
58,
77,
62,
11274,
60,
796,
2494,
29006,
16,
10,
4873,
9,
1084,
62,
9866,
62,
30246,
8,
796,
352,
29006,
16,
14,
4873,
10,
1084,
62,
9866,
62,
30246,
8,
198,
198,
4873,
62,
8906,
1202,
796,
0,
28,
412,
58,
77,
62,
11274,
60,
796,
352,
29006,
16,
14,
4873,
10,
1084,
62,
9866,
62,
30246,
8,
198,
14804,
2494,
19039,
2494,
62,
8906,
1202,
29006,
16,
12,
4873,
62,
8906,
1202,
9,
1084,
62,
9866,
62,
30246,
8,
198,
37811,
198,
8818,
3197,
62,
10215,
5363,
62,
2777,
7938,
7,
2213,
858,
11,
3965,
11,
269,
11,
6482,
796,
787,
62,
11201,
35470,
33377,
7,
16,
13,
15,
1776,
949,
62,
9866,
62,
30246,
10779,
15,
8,
198,
220,
220,
220,
1303,
3376,
262,
3965,
284,
1848,
329,
262,
2938,
2994,
2233,
284,
778,
46493,
32997,
27198,
198,
220,
220,
220,
1216,
330,
62,
2502,
37796,
796,
2160,
7,
9700,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
3197,
262,
4591,
273,
5363,
2723,
599,
1134,
21879,
1299,
198,
220,
220,
220,
2723,
796,
611,
269,
35705,
230,
15,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
30493,
477,
7,
15,
764,
27,
28,
3965,
9,
1084,
62,
9866,
62,
30246,
764,
27,
352,
8,
366,
34,
34574,
3197,
29568,
47033,
7,
9700,
4008,
4958,
27198,
583,
4326,
12,
2435,
351,
29568,
1084,
62,
9866,
62,
30246,
8,
5288,
5253,
357,
9700,
1276,
2160,
284,
1279,
29568,
16,
14,
1084,
62,
9866,
62,
30246,
4008,
526,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3376,
19232,
2494,
329,
2938,
2994,
286,
4958,
27198,
2233,
284,
20326,
5288,
5253,
198,
220,
220,
220,
220,
220,
220,
220,
3965,
764,
28,
3965,
19571,
7,
16,
764,
12,
3965,
15885,
1084,
62,
9866,
62,
30246,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3197,
62,
403,
10215,
5363,
62,
2777,
7938,
7,
2213,
858,
11,
3965,
8,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
5004,
4958,
20240,
19232,
2494,
198,
220,
220,
220,
220,
220,
220,
220,
410,
796,
352,
14,
66,
1635,
1612,
7,
9700,
13,
61,
17,
20679,
16345,
7,
9700,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
30493,
657,
27,
28,
13664,
7,
9700,
27493,
85,
9,
1084,
62,
9866,
62,
30246,
27,
16,
366,
34,
34574,
3197,
5299,
3,
7,
13664,
7,
9700,
27493,
85,
8,
4958,
27198,
583,
4326,
12,
2435,
351,
29568,
1084,
62,
9866,
62,
30246,
8,
5288,
5253,
357,
9700,
1276,
2160,
284,
1279,
29568,
16,
14,
1084,
62,
9866,
62,
30246,
4008,
526,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3376,
19232,
2494,
329,
2938,
2994,
286,
4958,
27198,
2233,
284,
20326,
5288,
5253,
198,
220,
220,
220,
220,
220,
220,
220,
410,
1220,
28,
357,
16,
12,
13664,
7,
9700,
27493,
85,
9,
1084,
62,
9866,
62,
30246,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
5004,
6352,
321,
11347,
12867,
198,
220,
220,
220,
220,
220,
220,
220,
279,
796,
357,
66,
14,
32604,
7,
9700,
13,
61,
17,
4008,
764,
9,
357,
9700,
1635,
3965,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
30493,
477,
7,
15,
764,
27,
28,
279,
764,
27,
28,
352,
8,
366,
47,
407,
477,
4938,
39522,
526,
628,
220,
220,
220,
220,
220,
220,
220,
220,
628,
220,
220,
220,
220,
220,
220,
220,
3197,
62,
403,
10215,
5363,
62,
2777,
7938,
7,
2213,
858,
11,
6070,
7,
85,
11,
4129,
7,
9700,
22305,
198,
220,
220,
220,
886,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
4155,
5288,
5253,
1022,
477,
2723,
20240,
13404,
198,
220,
220,
220,
611,
949,
62,
9866,
62,
30246,
1875,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
299,
796,
2160,
7,
13664,
11,
2723,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1661,
796,
20650,
90,
43879,
2414,
92,
7,
917,
891,
11,
299,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4237,
796,
20650,
90,
5317,
92,
7,
917,
891,
11,
299,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
329,
357,
82,
11,
2777,
7938,
8,
18872,
230,
27056,
378,
7,
10459,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
287,
413,
796,
1312,
10,
13664,
7,
2777,
7938,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1661,
58,
72,
25,
259,
413,
12,
16,
60,
796,
27198,
13,
22355,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4237,
58,
72,
25,
259,
413,
12,
16,
60,
764,
28,
264,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
28,
259,
413,
220,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3297,
1661,
290,
11188,
4237,
198,
220,
220,
220,
220,
220,
220,
220,
4686,
87,
28,
30619,
16321,
7,
22355,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1661,
28,
22355,
58,
312,
87,
60,
198,
220,
220,
220,
220,
220,
220,
220,
4237,
28,
82,
2203,
58,
312,
87,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
5004,
543,
27198,
284,
1394,
2644,
198,
220,
220,
220,
220,
220,
220,
220,
1394,
28,
10134,
62,
1084,
62,
30246,
7,
22355,
11,
949,
62,
9866,
62,
30246,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2644,
290,
1394,
691,
883,
27198,
329,
262,
11756,
2723,
198,
220,
220,
220,
220,
220,
220,
220,
329,
357,
82,
11,
2777,
7938,
8,
18872,
230,
27056,
378,
7,
10459,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2723,
58,
82,
60,
796,
26309,
44077,
7,
22355,
58,
7,
82,
2203,
13,
855,
82,
8,
764,
5,
1394,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
220,
198,
220,
220,
220,
611,
269,
35705,
230,
15,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2723,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
2496,
796,
20650,
90,
4561,
522,
44077,
92,
7,
917,
891,
11,
4129,
7,
9700,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
3197,
23551,
20240,
13404,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
18872,
230,
1123,
9630,
7,
16793,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
796,
2496,
58,
72,
60,
796,
26309,
44077,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
357,
74,
11,
82,
8,
18872,
230,
27056,
378,
7,
10459,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
997,
62,
2777,
7938,
796,
43720,
7,
33,
259,
49070,
7,
13664,
7,
82,
13,
22355,
828,
279,
58,
72,
11,
74,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24443,
0,
7,
83,
13,
22355,
11,
6291,
7,
82,
13,
22355,
11,
997,
62,
2777,
7938,
26,
6330,
28,
9562,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
6482,
1123,
1988,
15456,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
13,
22355,
764,
28,
6482,
12195,
83,
13,
22355,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3297,
0,
7,
83,
13,
22355,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2496,
198,
220,
220,
220,
886,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
3197,
62,
1073,
1939,
738,
62,
2777,
7938,
7,
2213,
858,
11,
997,
62,
2777,
7938,
11,
279,
28,
1952,
7,
43879,
2414,
11,
16,
828,
6482,
796,
787,
62,
11201,
35470,
33377,
7,
16,
13,
15,
1776,
23243,
28,
7942,
8,
198,
198,
25302,
82,
4600,
22510,
62,
2777,
7938,
63,
7695,
30927,
27198,
287,
262,
16654,
4600,
2213,
858,
47671,
1123,
286,
543,
3568,
220,
198,
259,
1123,
20240,
12,
27432,
4600,
72,
63,
351,
262,
11756,
12867,
4600,
79,
58,
72,
60,
44646,
198,
37811,
198,
8818,
3197,
62,
1073,
1939,
738,
62,
2777,
7938,
7,
2213,
858,
11,
997,
62,
2777,
7938,
11,
279,
28,
1952,
7,
43879,
2414,
11,
16,
828,
6482,
796,
787,
62,
11201,
35470,
33377,
7,
16,
13,
15,
1776,
23243,
28,
7942,
8,
198,
220,
220,
220,
1661,
796,
43720,
7,
22510,
62,
2777,
7938,
737,
9,
7,
2213,
858,
58,
17,
45297,
2213,
858,
58,
16,
35944,
10,
2213,
858,
58,
16,
60,
198,
220,
220,
220,
220,
198,
220,
220,
220,
611,
23243,
198,
220,
220,
220,
220,
220,
220,
220,
3297,
0,
7,
22355,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
220,
198,
220,
220,
220,
2496,
796,
20650,
90,
4561,
522,
44077,
92,
7,
917,
891,
11,
4129,
7,
79,
4008,
198,
220,
220,
220,
329,
1312,
18872,
230,
1123,
9630,
7,
16793,
8,
198,
220,
220,
220,
220,
220,
220,
220,
299,
796,
43720,
7,
33,
259,
49070,
7,
22510,
62,
2777,
7938,
11,
279,
58,
72,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2496,
58,
72,
60,
796,
26309,
44077,
7,
39873,
7,
22355,
11,
299,
26,
6330,
28,
9562,
4008,
198,
220,
220,
220,
886,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1441,
2496,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
16096,
62,
8189,
7,
2213,
858,
11,
19819,
11,
3965,
11,
35811,
26,
479,
86,
22046,
23029,
198,
198,
10871,
16416,
4600,
42003,
23515,
58,
25,
42303,
11,
45299,
72,
60,
63,
4909,
281,
7177,
12739,
262,
1398,
326,
262,
198,
2777,
522,
12,
27432,
351,
11188,
6376,
6870,
287,
262,
640,
16654,
4600,
2213,
858,
58,
72,
25,
72,
10,
16,
60,
44646,
198,
10871,
1398,
4600,
66,
63,
2482,
287,
20240,
12,
2213,
1299,
351,
2494,
4600,
9700,
58,
66,
60,
63,
290,
13584,
5166,
3083,
198,
10215,
49501,
4600,
10215,
39468,
58,
66,
60,
44646,
198,
37811,
198,
8818,
16096,
62,
8189,
7,
2213,
858,
11,
19819,
11,
3965,
11,
35811,
26,
479,
86,
22046,
23029,
198,
220,
220,
220,
2488,
30493,
4129,
7,
2213,
858,
13219,
16,
6624,
2546,
7,
42003,
23515,
38381,
437,
60,
366,
2213,
858,
1276,
2291,
299,
10,
16,
4831,
329,
25973,
351,
938,
15793,
299,
1,
198,
220,
220,
220,
599,
1134,
21879,
1299,
796,
15690,
90,
4561,
522,
44077,
92,
7,
917,
891,
11,
2546,
7,
42003,
23515,
4008,
198,
220,
220,
220,
6097,
796,
3748,
7,
42003,
23515,
8,
628,
220,
220,
220,
329,
269,
18872,
230,
6097,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
18872,
230,
7308,
13,
3198,
2514,
7,
13664,
7,
2213,
858,
13219,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
87,
796,
1064,
439,
7,
82,
3784,
66,
855,
82,
11,
1570,
7,
42003,
23515,
11,
6070,
7,
5216,
261,
22784,
299,
67,
12078,
7,
42003,
23515,
13219,
16,
26513,
11,
72,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
599,
1134,
21879,
1299,
58,
312,
87,
11,
72,
60,
796,
3197,
62,
10215,
5363,
62,
2777,
7938,
7,
2213,
858,
58,
72,
25,
72,
10,
16,
4357,
6070,
7,
9700,
58,
66,
4357,
4129,
7,
312,
87,
36911,
35811,
58,
66,
11208,
479,
86,
22046,
23029,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1441,
599,
1134,
21879,
1299,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
21083,
62,
8189,
7,
2213,
858,
11,
19819,
11,
4469,
62,
4873,
11,
279,
26,
479,
86,
22046,
23029,
198,
220,
220,
220,
220,
198,
10871,
16416,
4600,
42003,
23515,
58,
25,
42303,
11,
45299,
72,
60,
63,
4909,
257,
25131,
7177,
11188,
284,
220,
198,
25356,
393,
407,
257,
20240,
4512,
351,
11188,
6376,
49567,
393,
407,
198,
259,
262,
11194,
738,
599,
14132,
1141,
262,
640,
16654,
4600,
2213,
858,
58,
72,
25,
72,
10,
16,
60,
44646,
220,
198,
32,
2060,
20240,
318,
7428,
1626,
1123,
16654,
11,
326,
3568,
351,
12867,
4600,
79,
63,
198,
259,
1123,
286,
262,
20240,
220,
13404,
329,
543,
262,
11188,
5726,
287,
4600,
42003,
23515,
63,
318,
4600,
7942,
44646,
198,
818,
3090,
284,
262,
6737,
20240,
329,
1123,
16654,
11,
4591,
273,
5363,
745,
30927,
20240,
12,
2213,
1299,
11,
198,
41549,
351,
257,
1813,
4600,
25249,
62,
4873,
47671,
389,
2087,
355,
4469,
7838,
13,
198,
37811,
198,
8818,
21083,
62,
8189,
7,
2213,
858,
11,
19819,
11,
4469,
62,
4873,
11,
279,
26,
479,
86,
22046,
23029,
198,
220,
220,
220,
2488,
30493,
4129,
7,
2213,
858,
13219,
16,
6624,
2546,
7,
42003,
23515,
38381,
437,
60,
366,
2213,
858,
1276,
2291,
299,
10,
16,
4831,
329,
25973,
351,
938,
15793,
299,
1,
198,
220,
220,
220,
599,
1134,
21879,
1299,
796,
27179,
1758,
7,
19334,
62,
403,
10215,
5363,
62,
2777,
7938,
19510,
2213,
858,
58,
16,
4357,
2213,
858,
58,
437,
46570,
6070,
7,
25249,
62,
4873,
11,
4129,
7,
42003,
23515,
4008,
828,
2546,
7,
42003,
23515,
4008,
198,
220,
220,
220,
220,
198,
220,
220,
220,
329,
1312,
18872,
230,
7308,
13,
3198,
2514,
7,
13664,
7,
2213,
858,
13219,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4686,
87,
796,
1064,
439,
7,
1177,
7,
42003,
23515,
11,
6070,
7,
5216,
261,
22784,
299,
67,
12078,
7,
42003,
23515,
13219,
16,
26513,
11,
72,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
299,
67,
796,
299,
67,
12078,
7,
312,
87,
47762,
16,
198,
220,
220,
220,
220,
220,
220,
220,
599,
1134,
21879,
1299,
58,
312,
87,
11,
72,
60,
796,
20121,
7,
9246,
7,
2777,
1134,
21879,
1299,
58,
312,
87,
11,
72,
4357,
3197,
62,
1073,
1939,
738,
62,
2777,
7938,
7,
2213,
858,
58,
72,
25,
72,
10,
16,
4357,
352,
11,
6070,
7,
79,
11,
4129,
7,
312,
87,
18125,
479,
86,
22046,
986,
828,
5391,
82,
28,
358,
828,
67,
12078,
28,
358,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1441,
599,
1134,
21879,
1299,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
7110,
62,
2777,
522,
62,
2213,
1299,
7,
2777,
1134,
21879,
1299,
3712,
19182,
90,
4561,
522,
44077,
5512,
7577,
28,
20797,
7,
25,
23736,
11,
4129,
7,
2777,
1134,
21879,
1299,
36911,
458,
83,
28,
29487,
9783,
479,
86,
22046,
23029,
198,
220,
220,
220,
220,
198,
25302,
281,
7177,
286,
4600,
2777,
1134,
21879,
1299,
63,
351,
1813,
4600,
4033,
669,
63,
1626,
257,
2060,
1813,
393,
649,
7110,
4600,
489,
83,
44646,
198,
37811,
198,
8818,
7110,
62,
2777,
522,
62,
2213,
1299,
7,
2777,
1134,
21879,
1299,
3712,
19182,
90,
4561,
522,
44077,
5512,
7577,
28,
20797,
7,
25,
23736,
11,
4129,
7,
2777,
1134,
21879,
1299,
36911,
458,
83,
28,
29487,
9783,
479,
86,
22046,
23029,
198,
220,
220,
220,
329,
357,
72,
11,
7,
2777,
1134,
316,
3201,
11,
3124,
4008,
18872,
230,
27056,
378,
7,
13344,
7,
2777,
1134,
21879,
1299,
11,
7577,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
7110,
0,
7,
489,
83,
11,
29565,
2777,
1134,
316,
3201,
13,
22355,
599,
1134,
316,
3201,
13,
22355,
6070,
7,
26705,
45,
11,
4129,
7,
2777,
1134,
316,
3201,
13,
22355,
4008,
12962,
6,
58,
25,
4357,
1312,
764,
12,
657,
13,
20,
764,
10,
29565,
9107,
418,
7,
13664,
7,
2777,
1134,
316,
3201,
13,
22355,
4008,
3392,
7,
13664,
7,
2777,
1134,
316,
3201,
13,
22355,
4008,
6070,
7,
26705,
45,
11,
4129,
7,
2777,
1134,
316,
3201,
13,
22355,
4008,
12962,
6,
58,
25,
4357,
300,
66,
28,
8043,
26,
479,
86,
22046,
23029,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
458,
83,
198,
437,
198,
198,
437,
198
] | 2.48197 | 3,716 |
# DBL_EPSILON - jest to dokładność dla liczb zmiennoprzecinkowych
# dla Float64 jest to 2.2204460492503131e-16
DBL_EPSILON = 2.2204460492503131e-16
function DIFFSIGN(x, y)
if (x <=0 && y >= 0) || (x >= 0 && y <= 0)
return true
else
return false
end
end
function fun(x)
return 1 / (x - 3) - 6
end
function between(x, a, b)
if b > a
return (x >= a && x <= b)
else
return (x >= b && x <= a)
end
end
function lfun(b, a, fb, fa)
if fb != fa
return b - fb*(b - a) / (fb - fa) # metoda siecznych
elseif fa != 0
return Inf
else
return b
end
end
function hfun(b, c)
if c > b
return b + abs(b*DBL_EPSILON)
else
return b - abs(b*DBL_EPSILON)
end
end
function mfun(b, c)
return 0.5*(b + c) # metoda bisekcji
end
function wfun(l, b, c)
h = hfun(b, c)
m = mfun(b, c)
if between(l, h, m) == true
return l
elseif (fun(abs(l - b)) <= abs(b*DBL_EPSILON)) && (between(l, b, m) == false)
return h
else
return m
end
end
function ffun(a, b, fa, fb)
return (fa - fb) / (a - b)
end
function rfun(b, a, d, fb, fa, fd)
alpha = ffun(b, d, fb, fd)*fa
beta = ffun(a, d, fa, fd)*fb
if beta != alpha
return b - beta*(b - a) / (beta - alpha)
elseif alpha != 0
return Inf
else
return 0 # beta == alpha == 0
end
end
function DekkerM(x0, x1, Eps)
"""
b - ostatnie przyblizenie wyniku
c - kontrapunkt b, punkt w którym funkcja f ma przeciwny znak niż w punkcie b
a – poprzednia wartość punktu a, używana do wyliczania następnego punktu metodą siecznych
Metoda bisekcji z punktów b i c tworzy punkt m pomiędzy nimi na środku przedziału.
Wyliczany jest ciąg xi, którego ostatni element oznaczany jest przez x, a poprzedni przez xp.
xk - ostatni punkt w ciągu, który ma różny znak niż x.
Punkt x wyliczany jest dwoma metodami:
- siecznych
- bisekcji
i wybierany jest ten obliczony z metody siecznych jeśli leży pomiędzy punktem b
(ze względów dokładnościowych z pewną poprawką) a punktem m wyliczonym z bisekcji.
Jeżeli f(x) czy f(xk) leży bliżej zera i jeśli f(x) leży bliżej zera
wtedy b ma wartość x, c ma wartość xk, w przeciwnym razie zamiana.
"""
d = NaN
fd = NaN
fxp = fun(x0)
fx = fun(x1)
if x0 == x1
return fx
end
if DIFFSIGN(fx, fxp) == false
return 0
end
if abs(fx) <= abs(fxp)
b = x1
a = c = x0
fa = fxp
fb = fx
else
b = x0
a = c = x1
fa = fx
fb = fxp
end
xk = xp = x0
fxk = fxp
x = x1
iter = 0
age = 0
bp = b
cp = c
ap = a
while abs(b - c) > 2*Eps
iter = iter + 1
age = age + 1
if abs(b - c) <= (0.5 + 2 * DBL_EPSILON)*(abs(bp - cp) + abs(b*DBL_EPSILON))
age = 1
end
xp = x
if iter == 2
lambda = lfun(b, a, fb, fa)
if abs(lambda - b) < abs(b*DBL_EPSILON)
break
end
x = wfun(lambda, b, c)
elseif iter >= 3 && age <= 3
rho = rfun(b, a, d, fb, fa, fd)
if abs(rho - b) < abs(b*DBL_EPSILON)
break
end
x = wfun(rho, b, c)
elseif iter >=3 && age == 4
rho = rfun(b, a, d, fb, fa, fd)
if abs(rho - b) < abs(b*DBL_EPSILON)
break
end
x = wfun(2 * rho - b, b, c)
else
x = mfun(b, c)
end
fxp = fx
fx = fun(x)
if DIFFSIGN(fxp, fx) == true
xk = xp
fxk = fxp
end
bp = b
fbp = fb
ap = a
fap = fa
cp = c
if abs(fx) <= abs(fxk)
a = b
fa = fb
b = x
fb = fx
c = xk
else
b = xk
fb = fxk
a = c = x
fa = fx
end
if b == x || b == bp
d = ap
fd = fap
else
d = ap
fd = fdp
end
end
println("Number of iterations: ", iter)
return b
end
println("f(x) = 1/(x-3)-6\n")
result = DekkerM(3.01, 4, 1e-12)
println("x0 = ", result)
| [
198,
2,
360,
9148,
62,
36,
3705,
4146,
1340,
532,
474,
395,
284,
466,
74,
41615,
324,
3919,
129,
249,
38325,
288,
5031,
3476,
14969,
1976,
11632,
1697,
404,
81,
89,
721,
676,
322,
88,
354,
198,
2,
288,
5031,
48436,
2414,
474,
395,
284,
362,
13,
17572,
2598,
1899,
2920,
9031,
18,
22042,
68,
12,
1433,
198,
35,
9148,
62,
36,
3705,
4146,
1340,
796,
362,
13,
17572,
2598,
1899,
2920,
9031,
18,
22042,
68,
12,
1433,
198,
198,
8818,
360,
5064,
10652,
16284,
7,
87,
11,
331,
8,
198,
220,
220,
220,
611,
357,
87,
19841,
15,
11405,
331,
18189,
657,
8,
8614,
357,
87,
18189,
657,
11405,
331,
19841,
657,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2081,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
3991,
198,
220,
220,
220,
886,
198,
437,
198,
198,
8818,
1257,
7,
87,
8,
198,
220,
220,
220,
1441,
352,
1220,
357,
87,
532,
513,
8,
532,
718,
198,
437,
198,
198,
8818,
1022,
7,
87,
11,
257,
11,
275,
8,
198,
220,
220,
220,
611,
275,
1875,
257,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
357,
87,
18189,
257,
11405,
2124,
19841,
275,
8,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
357,
87,
18189,
275,
11405,
2124,
19841,
257,
8,
198,
220,
220,
220,
886,
198,
437,
198,
198,
8818,
300,
12543,
7,
65,
11,
257,
11,
277,
65,
11,
24685,
8,
198,
220,
220,
220,
611,
277,
65,
14512,
24685,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
275,
532,
277,
65,
9,
7,
65,
532,
257,
8,
1220,
357,
21855,
532,
24685,
8,
1303,
1138,
11329,
264,
494,
26691,
3281,
354,
198,
220,
220,
220,
2073,
361,
24685,
14512,
657,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
4806,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
275,
198,
220,
220,
220,
886,
198,
437,
198,
198,
8818,
289,
12543,
7,
65,
11,
269,
8,
198,
220,
220,
220,
611,
269,
1875,
275,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
275,
1343,
2352,
7,
65,
9,
35,
9148,
62,
36,
3705,
4146,
1340,
8,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
275,
532,
2352,
7,
65,
9,
35,
9148,
62,
36,
3705,
4146,
1340,
8,
198,
220,
220,
220,
886,
198,
437,
198,
198,
8818,
285,
12543,
7,
65,
11,
269,
8,
198,
220,
220,
220,
1441,
657,
13,
20,
9,
7,
65,
1343,
269,
8,
1303,
1138,
11329,
275,
786,
74,
66,
7285,
198,
437,
198,
198,
8818,
266,
12543,
7,
75,
11,
275,
11,
269,
8,
198,
220,
220,
220,
289,
796,
289,
12543,
7,
65,
11,
269,
8,
198,
220,
220,
220,
285,
796,
285,
12543,
7,
65,
11,
269,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
611,
1022,
7,
75,
11,
289,
11,
285,
8,
6624,
2081,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
300,
198,
220,
220,
220,
2073,
361,
357,
12543,
7,
8937,
7,
75,
532,
275,
4008,
19841,
2352,
7,
65,
9,
35,
9148,
62,
36,
3705,
4146,
1340,
4008,
11405,
357,
23395,
7,
75,
11,
275,
11,
285,
8,
6624,
3991,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
289,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
285,
198,
220,
220,
220,
886,
198,
437,
198,
198,
8818,
277,
12543,
7,
64,
11,
275,
11,
24685,
11,
277,
65,
8,
198,
220,
220,
220,
220,
1441,
357,
13331,
532,
277,
65,
8,
1220,
357,
64,
532,
275,
8,
198,
437,
198,
198,
8818,
374,
12543,
7,
65,
11,
257,
11,
288,
11,
277,
65,
11,
24685,
11,
277,
67,
8,
198,
220,
220,
220,
17130,
796,
277,
12543,
7,
65,
11,
288,
11,
277,
65,
11,
277,
67,
27493,
13331,
198,
220,
220,
220,
12159,
796,
277,
12543,
7,
64,
11,
288,
11,
24685,
11,
277,
67,
27493,
21855,
198,
220,
220,
220,
220,
198,
220,
220,
220,
611,
12159,
14512,
17130,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
275,
532,
12159,
9,
7,
65,
532,
257,
8,
1220,
357,
31361,
532,
17130,
8,
198,
220,
220,
220,
2073,
361,
17130,
14512,
657,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
4806,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
657,
1303,
12159,
6624,
17130,
6624,
657,
198,
220,
220,
220,
886,
198,
437,
198,
198,
8818,
44297,
6122,
44,
7,
87,
15,
11,
2124,
16,
11,
43427,
8,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
275,
532,
267,
14269,
11952,
778,
7357,
2436,
33977,
494,
266,
2047,
28643,
198,
220,
220,
220,
269,
532,
479,
756,
2416,
2954,
83,
275,
11,
22782,
83,
266,
479,
83,
10205,
563,
76,
46212,
66,
6592,
277,
17266,
778,
89,
721,
72,
675,
88,
1976,
77,
461,
37628,
129,
120,
266,
22782,
66,
494,
275,
198,
220,
220,
220,
257,
784,
1461,
81,
8863,
18142,
32943,
78,
129,
249,
38325,
22782,
28047,
257,
11,
334,
129,
120,
88,
49484,
466,
266,
88,
677,
89,
5411,
299,
459,
128,
247,
79,
710,
2188,
22782,
28047,
1138,
375,
128,
227,
264,
494,
26691,
3281,
354,
198,
220,
220,
220,
220,
198,
220,
220,
220,
3395,
11329,
275,
786,
74,
66,
7285,
1976,
22782,
83,
10205,
86,
275,
1312,
269,
665,
273,
7357,
22782,
83,
285,
279,
12753,
128,
247,
67,
7357,
299,
25236,
12385,
25370,
249,
14892,
23063,
778,
8863,
89,
544,
41615,
84,
13,
198,
220,
220,
220,
220,
198,
220,
220,
220,
12958,
677,
89,
1092,
474,
395,
269,
72,
128,
227,
70,
2124,
72,
11,
479,
83,
10205,
260,
2188,
267,
14269,
8461,
5002,
15649,
77,
330,
89,
1092,
474,
395,
778,
2736,
89,
2124,
11,
257,
1461,
81,
8863,
8461,
778,
2736,
89,
36470,
13,
198,
220,
220,
220,
220,
198,
220,
220,
220,
2124,
74,
532,
267,
14269,
8461,
22782,
83,
266,
269,
72,
128,
227,
5162,
11,
479,
83,
10205,
563,
17266,
374,
10205,
129,
120,
3281,
1976,
77,
461,
37628,
129,
120,
2124,
13,
198,
220,
220,
220,
220,
198,
220,
220,
220,
32592,
83,
2124,
266,
88,
677,
89,
1092,
474,
395,
43756,
6086,
1138,
375,
6277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
532,
264,
494,
26691,
3281,
354,
198,
220,
220,
220,
220,
220,
220,
220,
532,
275,
786,
74,
66,
7285,
198,
220,
220,
220,
1312,
266,
88,
65,
959,
1092,
474,
395,
3478,
909,
677,
89,
1647,
1976,
1138,
1118,
264,
494,
26691,
3281,
354,
11223,
129,
249,
4528,
443,
129,
120,
88,
279,
12753,
128,
247,
67,
7357,
22782,
11498,
275,
198,
220,
220,
220,
357,
2736,
266,
89,
4743,
128,
247,
67,
10205,
86,
466,
74,
41615,
324,
3919,
129,
249,
979,
322,
88,
354,
1976,
279,
413,
77,
128,
227,
1461,
1831,
74,
128,
227,
8,
257,
22782,
11498,
285,
266,
88,
677,
89,
5177,
1976,
275,
786,
74,
66,
7285,
13,
628,
220,
220,
220,
3852,
129,
120,
43733,
277,
7,
87,
8,
269,
7357,
277,
7,
87,
74,
8,
443,
129,
120,
88,
698,
72,
129,
120,
68,
73,
1976,
8607,
1312,
11223,
129,
249,
4528,
277,
7,
87,
8,
443,
129,
120,
88,
698,
72,
129,
120,
68,
73,
1976,
8607,
198,
220,
220,
220,
266,
1513,
88,
275,
17266,
32943,
78,
129,
249,
38325,
2124,
11,
269,
17266,
32943,
78,
129,
249,
38325,
2124,
74,
11,
266,
778,
89,
721,
72,
675,
4948,
374,
1031,
494,
1976,
321,
7484,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
288,
796,
11013,
45,
198,
220,
220,
220,
277,
67,
796,
11013,
45,
198,
220,
220,
220,
220,
198,
220,
220,
220,
277,
42372,
796,
1257,
7,
87,
15,
8,
198,
220,
220,
220,
277,
87,
796,
1257,
7,
87,
16,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
611,
2124,
15,
6624,
2124,
16,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
277,
87,
198,
220,
220,
220,
886,
198,
220,
220,
220,
220,
198,
220,
220,
220,
611,
360,
5064,
10652,
16284,
7,
21373,
11,
277,
42372,
8,
6624,
3991,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
657,
198,
220,
220,
220,
886,
198,
220,
220,
220,
220,
198,
220,
220,
220,
611,
2352,
7,
21373,
8,
19841,
2352,
7,
21373,
79,
8,
198,
220,
220,
220,
220,
220,
220,
220,
275,
796,
2124,
16,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
269,
796,
2124,
15,
198,
220,
220,
220,
220,
220,
220,
220,
24685,
796,
277,
42372,
198,
220,
220,
220,
220,
220,
220,
220,
277,
65,
796,
277,
87,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
275,
796,
2124,
15,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
269,
796,
2124,
16,
198,
220,
220,
220,
220,
220,
220,
220,
24685,
796,
277,
87,
198,
220,
220,
220,
220,
220,
220,
220,
277,
65,
796,
277,
42372,
198,
220,
220,
220,
886,
198,
220,
220,
220,
220,
198,
220,
220,
220,
2124,
74,
796,
36470,
796,
2124,
15,
198,
220,
220,
220,
277,
87,
74,
796,
277,
42372,
198,
220,
220,
220,
2124,
796,
2124,
16,
198,
220,
220,
220,
11629,
796,
657,
198,
220,
220,
220,
2479,
796,
657,
198,
220,
220,
220,
275,
79,
796,
275,
198,
220,
220,
220,
31396,
796,
269,
198,
220,
220,
220,
2471,
796,
257,
198,
220,
220,
220,
220,
198,
220,
220,
220,
981,
2352,
7,
65,
532,
269,
8,
1875,
362,
9,
36,
862,
198,
220,
220,
220,
220,
220,
220,
220,
11629,
796,
11629,
1343,
352,
198,
220,
220,
220,
220,
220,
220,
220,
2479,
796,
2479,
1343,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2352,
7,
65,
532,
269,
8,
19841,
357,
15,
13,
20,
1343,
362,
1635,
360,
9148,
62,
36,
3705,
4146,
1340,
27493,
7,
8937,
7,
46583,
532,
31396,
8,
1343,
2352,
7,
65,
9,
35,
9148,
62,
36,
3705,
4146,
1340,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2479,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
36470,
796,
2124,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
611,
11629,
6624,
362,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37456,
796,
300,
12543,
7,
65,
11,
257,
11,
277,
65,
11,
24685,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2352,
7,
50033,
532,
275,
8,
1279,
2352,
7,
65,
9,
35,
9148,
62,
36,
3705,
4146,
1340,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
266,
12543,
7,
50033,
11,
275,
11,
269,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
11629,
18189,
513,
11405,
2479,
19841,
513,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
8873,
796,
374,
12543,
7,
65,
11,
257,
11,
288,
11,
277,
65,
11,
24685,
11,
277,
67,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2352,
7,
81,
8873,
532,
275,
8,
1279,
2352,
7,
65,
9,
35,
9148,
62,
36,
3705,
4146,
1340,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
266,
12543,
7,
81,
8873,
11,
275,
11,
269,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
11629,
18189,
18,
11405,
2479,
6624,
604,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
8873,
796,
374,
12543,
7,
65,
11,
257,
11,
288,
11,
277,
65,
11,
24685,
11,
277,
67,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2352,
7,
81,
8873,
532,
275,
8,
1279,
2352,
7,
65,
9,
35,
9148,
62,
36,
3705,
4146,
1340,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
266,
12543,
7,
17,
1635,
374,
8873,
532,
275,
11,
275,
11,
269,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
285,
12543,
7,
65,
11,
269,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
277,
42372,
796,
277,
87,
198,
220,
220,
220,
220,
220,
220,
220,
277,
87,
796,
1257,
7,
87,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
360,
5064,
10652,
16284,
7,
21373,
79,
11,
277,
87,
8,
6624,
2081,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
74,
796,
36470,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
87,
74,
796,
277,
42372,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
275,
79,
796,
275,
198,
220,
220,
220,
220,
220,
220,
220,
277,
46583,
796,
277,
65,
198,
220,
220,
220,
220,
220,
220,
220,
2471,
796,
257,
198,
220,
220,
220,
220,
220,
220,
220,
277,
499,
796,
24685,
198,
220,
220,
220,
220,
220,
220,
220,
31396,
796,
269,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2352,
7,
21373,
8,
19841,
2352,
7,
21373,
74,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
257,
796,
275,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24685,
796,
277,
65,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
796,
2124,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
65,
796,
277,
87,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
796,
2124,
74,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
796,
2124,
74,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
65,
796,
277,
87,
74,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
257,
796,
269,
796,
2124,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24685,
796,
277,
87,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
611,
275,
6624,
2124,
8614,
275,
6624,
275,
79,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
796,
2471,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
67,
796,
277,
499,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
796,
2471,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
67,
796,
277,
26059,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
44872,
7203,
15057,
286,
34820,
25,
33172,
11629,
8,
198,
220,
220,
220,
1441,
275,
198,
437,
198,
198,
35235,
7203,
69,
7,
87,
8,
796,
352,
29006,
87,
12,
18,
13219,
21,
59,
77,
4943,
198,
20274,
796,
44297,
6122,
44,
7,
18,
13,
486,
11,
604,
11,
352,
68,
12,
1065,
8,
198,
35235,
7203,
87,
15,
796,
33172,
1255,
8,
198
] | 1.624325 | 2,779 |
using BenchmarkTools, Random, Statistics, WaveFD
_nthreads = [2^i for i in 0:floor(Int,log2(Sys.CPU_THREADS))]
if Sys.CPU_THREADS ∉ _nthreads
push!(_nthreads, Sys.CPU_THREADS)
end
const SUITE = BenchmarkGroup()
z0,y0,x0,dz,dy,dx,nt,dt = 0.0,0.0,0.0,10.0,10.0,10.0,3000,0.001
n_2D = (z=parse(Int,get(ENV,"2D_NZ","501")), x=parse(Int,get(ENV,"2D_NX","1001")))
n_3D = (z=parse(Int,get(ENV,"3D_NZ","101")), y=parse(Int,get(ENV,"3D_NY","201")), x=parse(Int,get(ENV,"3D_NX","301")))
nb_2D = (z=parse(Int,get(ENV,"2D_NBZ","$(n_2D.z)")), x=parse(Int,get(ENV,"2D_NBX","8")))
nb_3D = (z=parse(Int,get(ENV,"3D_NBZ","$(n_3D.z)")), y=parse(Int,get(ENV,"3D_NBY","8")), x=parse(Int,get(ENV,"3D_NBX","8")))
@info "size 2D: $n_2D, use ENV[\"2D_NZ\"], ENV[\"2D_NX\"] to customize"
@info "size 3D: $n_3D, use ENV[\"3D_NZ\"], ENV[\"3D_NY\"], ENV[\"3D_NX\"] to customize"
@info "cache block size 2D: $nb_2D, use ENV[\"2D_NBZ\"], ENV[\"2D_NBX\"] to customize"
@info "cache block size 3D: $nb_3D, use ENV[\"3D_NBZ\"], ENV[\"3D_NBY\"], ENV[\"3D_NBX\"] to customize"
rz,rx = dz*ones(n_2D.x),dx*[0:n_2D.x-1;]
iz,ix,c = WaveFD.hickscoeffs(dz, dx, z0, x0, n_2D.z, n_2D.x, rz, rx)
blocks = WaveFD.source_blocking(n_2D.z, n_2D.x, 4, 4, iz, ix, c)
field = zeros(n_2D.z, n_2D.x)
data = rand(nt, n_2D.x)
it = 1
SUITE["2D Utils"] = BenchmarkGroup()
SUITE["2D Utils"]["source_blocking"] = @benchmarkable WaveFD.source_blocking($(n_2D.z), $(n_2D.x), $(nb_2D.z), $(nb_2D).x, $iz, $ix, $c);
SUITE["2D Utils"]["injectdata!"] = @benchmarkable WaveFD.injectdata!($field, $blocks, $data, $it)
dtmod = 0.0002
ntmod = nt * round(Int,dt / dtmod)
h = WaveFD.interpfilters(dtmod, dt, 0, WaveFD.LangC(), Sys.CPU_THREADS)
data_mod = rand(ntmod, n_2D.x)
SUITE["2D Utils"]["interpadjoint!"] = @benchmarkable WaveFD.interpadjoint!($h, $data_mod, $data)
SUITE["2D Utils"]["interpforward!"] = @benchmarkable WaveFD.interpforward!($h, $data, $data_mod)
compressor = WaveFD.Compressor(Float32, Float32, UInt32, (n_2D.z,n_2D.x), (32,32), 1e-2, 1024, false)
field2 = rand(Float32,n_2D.z,n_2D.x)
SUITE["2D compression"] = BenchmarkGroup()
SUITE["2D compression"]["write"] = @benchmarkable WaveFD.compressedwrite(io, $compressor, 1, $field2) setup=(open($compressor); io=open(tempname(),"w")) teardown=(close($compressor); close(io))
SUITE["2D compression"]["read"] = @benchmarkable WaveFD.compressedread!(io, $compressor, 1, $field2) setup=(open($compressor); tfile=tempname(); _io=open(tfile,"w"); WaveFD.compressedwrite(_io, $compressor, 1, $field2); close(_io); io=open(tfile)) teardown=(close($compressor); close(io))
rng2 = (10:n_2D.z-10,10:n_2D.x)
_field2 = view(field2, rng2...)
_compressor = WaveFD.Compressor(Float32, Float32, UInt32, size(_field2), (32,32), 1e-2, 1024, true)
SUITE["2D compression, interior"] = BenchmarkGroup()
SUITE["2D compression, interior"]["write"] = @benchmarkable WaveFD.compressedwrite(io, $_compressor, 1, $field2, $rng2) setup=(open($_compressor); io=open(tempname(),"w")) teardown=(close($_compressor); close(io))
SUITE["2D compression, interior"]["read"] = @benchmarkable WaveFD.compressedread!(io, $_compressor, 1, $field2, $rng2) setup=(open($_compressor); tfile=tempname(); _io=open(tfile,"w"); WaveFD.compressedwrite(_io, $_compressor, 1, $field2, rng2); close(_io); io=open(tfile)) teardown=(close($_compressor); close(io))
SUITE["2DAcoIsoDenQ_DEO2_FDTD"] = BenchmarkGroup([Dict("ncells"=>n_2D.z*n_2D.x,"nbz"=>nb_2D.z,"nbx"=>nb_2D.x,"nthreads"=>_nthreads)])
function p2diso(nthreads,nz,nx,nbz,nbx)
p = WaveFD.Prop2DAcoIsoDenQ_DEO2_FDTD(freesurface=false, nz=nz, nx=nx, nbz=nbz, nbx=nbx, dz=10.0, dx=10.0, dt=0.001, nthreads=nthreads)
v,b,pcur,pold = WaveFD.V(p),WaveFD.B(p),WaveFD.PCur(p),WaveFD.POld(p)
v .= 1500
b .= 1
rand!(pcur)
rand!(pold)
p
end
for nthreads in _nthreads
SUITE["2DAcoIsoDenQ_DEO2_FDTD"]["$nthreads threads"] = @benchmarkable WaveFD.propagateforward!(p) setup=(p=p2diso($nthreads,$(n_2D.z),$(n_2D.x),$(nb_2D.z),$(nb_2D.x))) teardown=(free(p))
end
function fields2diso(p::WaveFD.Prop2DAcoIsoDenQ_DEO2_FDTD)
nz,nx=size(p)
δm = Dict("v"=>rand(Float32,nz,nx))
fields = Dict("pspace"=>rand(Float32,nz,nx))
δm,fields
end
SUITE["2DAcoIsoDenQ_DEO2_FDTD"]["imaging condition, standard"] = @benchmarkable WaveFD.adjointBornAccumulation!(p,WaveFD.Prop2DAcoIsoDenQ_DEO2_FDTD_Model_V(),ic,δm,fields) setup=(p=p2diso(Sys.CPU_THREADS,$(n_2D.z),$(n_2D.x),$(nb_2D.z),$(nb_2D.x)); ic=WaveFD.ImagingConditionStandard(); (δm,fields)=fields2diso(p)) teardown=(free(p))
SUITE["2DAcoIsoDenQ_DEO2_FDTD"]["imaging condition, wave field separation FWI"] = @benchmarkable WaveFD.adjointBornAccumulation!(p,WaveFD.Prop2DAcoIsoDenQ_DEO2_FDTD_Model_V(),ic,δm,fields) setup=(p=p2diso(Sys.CPU_THREADS,$(n_2D.z),$(n_2D.x),$(nb_2D.z),$(nb_2D.x)); ic=WaveFD.ImagingConditionWaveFieldSeparationFWI(); (δm,fields)=fields2diso(p)) teardown=(free(p))
SUITE["2DAcoIsoDenQ_DEO2_FDTD"]["imaging condition, wave field separation RTM"] = @benchmarkable WaveFD.adjointBornAccumulation!(p,WaveFD.Prop2DAcoIsoDenQ_DEO2_FDTD_Model_V(),ic,δm,fields) setup=(p=p2diso(Sys.CPU_THREADS,$(n_2D.z),$(n_2D.x),$(nb_2D.z),$(nb_2D.x)); ic=WaveFD.ImagingConditionWaveFieldSeparationRTM(); (δm,fields)=fields2diso(p)) teardown=(free(p))
SUITE["2DAcoVTIDenQ_DEO2_FDTD"] = BenchmarkGroup([Dict("ncells"=>n_2D.z*n_2D.x,"nbz"=>nb_2D.z,"nbx"=>nb_2D.x,"nthreads"=>_nthreads)])
function p2dvti(nthreads,nz,nx,nbz,nbx)
p = WaveFD.Prop2DAcoVTIDenQ_DEO2_FDTD(freesurface=false, nz=nz, nx=nx, nbz=nbz, nbx=nbx, dz=10.0, dx=10.0, dt=0.001, nthreads=nthreads)
v,b,ϵ,η,f,pcur,pold = WaveFD.V(p),WaveFD.B(p),WaveFD.Eps(p),WaveFD.Eta(p),WaveFD.F(p),WaveFD.PCur(p),WaveFD.POld(p)
rand!(pcur)
rand!(pold)
v .= 1500
b .= 1
ϵ .= 0.2
η .= 0.0
f .= 0.85
p
end
for nthreads in _nthreads
SUITE["2DAcoVTIDenQ_DEO2_FDTD"]["$nthreads threads"] = @benchmarkable WaveFD.propagateforward!(p) setup=(p=p2dvti($nthreads,$(n_2D.z),$(n_2D.x),$(nb_2D.z),$(nb_2D.x))) teardown=(free(p))
end
function fields2dvti(p::WaveFD.Prop2DAcoVTIDenQ_DEO2_FDTD)
nz,nx=size(p)
δm = Dict("v"=>rand(Float32,nz,nx))
fields = Dict("pspace"=>rand(Float32,nz,nx),"mspace"=>rand(Float32,nz,nx))
δm,fields
end
SUITE["2DAcoVTIDenQ_DEO2_FDTD"]["imaging condition, standard"] = @benchmarkable WaveFD.adjointBornAccumulation!(p,WaveFD.Prop2DAcoVTIDenQ_DEO2_FDTD_Model_V(),ic,δm,fields) setup=(p=p2dvti(Sys.CPU_THREADS,$(n_2D.z),$(n_2D.x),$(nb_2D.z),$(nb_2D.x)); ic=WaveFD.ImagingConditionStandard(); (δm,fields)=fields2dvti(p)) teardown=(free(p))
SUITE["2DAcoVTIDenQ_DEO2_FDTD"]["imaging condition, wave field separation FWI"] = @benchmarkable WaveFD.adjointBornAccumulation!(p,WaveFD.Prop2DAcoVTIDenQ_DEO2_FDTD_Model_V(),ic,δm,fields) setup=(p=p2dvti(Sys.CPU_THREADS,$(n_2D.z),$(n_2D.x),$(nb_2D.z),$(nb_2D.x)); ic=WaveFD.ImagingConditionWaveFieldSeparationFWI(); (δm,fields)=fields2dvti(p)) teardown=(free(p))
SUITE["2DAcoVTIDenQ_DEO2_FDTD"]["imaging condition, wave field separation RTM"] = @benchmarkable WaveFD.adjointBornAccumulation!(p,WaveFD.Prop2DAcoVTIDenQ_DEO2_FDTD_Model_V(),ic,δm,fields) setup=(p=p2dvti(Sys.CPU_THREADS,$(n_2D.z),$(n_2D.x),$(nb_2D.z),$(nb_2D.x)); ic=WaveFD.ImagingConditionWaveFieldSeparationRTM(); (δm,fields)=fields2dvti(p)) teardown=(free(p))
SUITE["2DAcoTTIDenQ_DEO2_FDTD"] = BenchmarkGroup([Dict("ncells"=>n_2D.z*n_2D.x,"nbz"=>nb_2D.z,"nbx"=>nb_2D.x,"nthreads"=>_nthreads)])
function p2dtti(nthreads,nz,nx,nbz,nbx)
p = WaveFD.Prop2DAcoTTIDenQ_DEO2_FDTD(freesurface=false, nz=nz, nx=nx, nbz=nbz, nbx=nbx, dz=10.0, dx=10.0, dt=0.001, nthreads=nthreads)
v,b,ϵ,η,f,sinθ,cosθ,pcur,pold = WaveFD.V(p),WaveFD.B(p),WaveFD.Eps(p),WaveFD.Eta(p),WaveFD.F(p),WaveFD.SinTheta(p),WaveFD.CosTheta(p),WaveFD.PCur(p),WaveFD.POld(p)
v .= 1500
b .= 1
ϵ .= 0.2
η .= 0.0
f .= 0.85
cosθ .= cos(pi/4)
sinθ .= sin(pi/4)
rand!(pcur)
rand!(pold)
p
end
for nthreads in _nthreads
SUITE["2DAcoTTIDenQ_DEO2_FDTD"]["$nthreads threads"] = @benchmarkable WaveFD.propagateforward!(p) setup=(p=p2dtti($nthreads,$(n_2D.z),$(n_2D.x),$(nb_2D.z),$(nb_2D.x))) teardown=(free(p))
end
function fields2dtti(p::WaveFD.Prop2DAcoTTIDenQ_DEO2_FDTD)
nz,nx = size(p)
δm = Dict("v"=>rand(Float32,nz,nx))
fields = Dict("pspace"=>rand(Float32,nz,nx),"mspace"=>rand(Float32,nz,nx))
δm,fields
end
SUITE["2DAcoTTIDenQ_DEO2_FDTD"]["imaging condition, standard"] = @benchmarkable WaveFD.adjointBornAccumulation!(p,WaveFD.Prop2DAcoTTIDenQ_DEO2_FDTD_Model_V(),ic,δm,fields) setup=(p=p2dtti(Sys.CPU_THREADS,$(n_2D.z),$(n_2D.x),$(nb_2D.z),$(nb_2D.x)); ic=WaveFD.ImagingConditionStandard(); (δm,fields)=fields2dtti(p)) teardown=(free(p))
SUITE["2DAcoTTIDenQ_DEO2_FDTD"]["imaging condition, wave field separation FWI"] = @benchmarkable WaveFD.adjointBornAccumulation!(p,WaveFD.Prop2DAcoTTIDenQ_DEO2_FDTD_Model_V(),ic,δm,fields) setup=(p=p2dtti(Sys.CPU_THREADS,$(n_2D.z),$(n_2D.x),$(nb_2D.z),$(nb_2D.x)); ic=WaveFD.ImagingConditionWaveFieldSeparationFWI(); (δm,fields)=fields2dtti(p)) teardown=(free(p))
SUITE["2DAcoTTIDenQ_DEO2_FDTD"]["imaging condition, wave field separation RTM"] = @benchmarkable WaveFD.adjointBornAccumulation!(p,WaveFD.Prop2DAcoTTIDenQ_DEO2_FDTD_Model_V(),ic,δm,fields) setup=(p=p2dtti(Sys.CPU_THREADS,$(n_2D.z),$(n_2D.x),$(nb_2D.z),$(nb_2D.x)); ic=WaveFD.ImagingConditionWaveFieldSeparationRTM(); (δm,fields)=fields2dtti(p)) teardown=(free(p))
nz,ny,nx = 501,301,1001
rz = [dz for iy = 1:ny, ix = 1:nx][:]
ry = [(iy-1)*dy for iy = 1:ny, ix = 1:nx][:]
rx = [(ix-1)*dx for iy = 1:ny, ix = 1:nx][:]
iz,iy,ix,c = WaveFD.hickscoeffs(dz, dy, dx, z0, y0, x0, nz, ny, nx, rz, ry, rx)
blocks = WaveFD.source_blocking(nz, ny, nx, 4, 4, 4, iz, iy, ix, c)
field = zeros(nz, ny, nx)
data = rand(nt, nx*ny)
it = 1
SUITE["3D Utils"] = BenchmarkGroup()
SUITE["3D Utils"]["source_blocking"] = @benchmarkable WaveFD.source_blocking($nz, $ny, $nx, 256, 8, 8, $iz, $iy, $ix, $c);
SUITE["3D Utils"]["injectdata!"] = @benchmarkable WaveFD.injectdata!($field, $blocks, $data, $it)
compressor = WaveFD.Compressor(Float32, Float32, UInt32, (n_3D.z,n_3D.y,n_3D.x), (32,32,32), 1e-2, 1024, false)
field3 = rand(Float32,n_3D.z,n_3D.y,n_3D.x)
SUITE["3D compression"] = BenchmarkGroup()
SUITE["3D compression"]["write"] = @benchmarkable WaveFD.compressedwrite(io, $compressor, 1, $field3) setup=(open($compressor); io=open(tempname(), "w")) teardown=(close($compressor); close(io))
SUITE["3D compression"]["read"] = @benchmarkable WaveFD.compressedread!(io, $compressor, 1, $field3) setup=(open($compressor); tfile=tempname(); _io=open(tfile,"w"); WaveFD.compressedwrite(_io, $compressor, 1, $field3); close(_io); io=open(tfile)) teardown=(close($compressor); close(io))
rng3 = (10:n_3D.z-10,10:n_3D.y,10:n_3D.x)
_field3 = view(field3, rng3...)
_compressor = WaveFD.Compressor(Float32, Float32, UInt32, size(_field3), (32,32,32), 1e-2, 1024, true)
SUITE["3D compression, interior"] = BenchmarkGroup()
SUITE["3D compression, interior"]["write"] = @benchmarkable WaveFD.compressedwrite(io, $_compressor, 1, $field3, $rng3) setup=(open($_compressor); io=open(tempname(),"w")) teardown=(close($_compressor); close(io))
SUITE["3D compression, interior"]["read"] = @benchmarkable WaveFD.compressedread!(io, $_compressor, 1, $field3, $rng3) setup=(open($_compressor); tfile=tempname(); _io=open(tfile,"w"); WaveFD.compressedwrite(_io, $_compressor, 1, $field3, rng3); close(_io); io=open(tfile)) teardown=(close($_compressor); close(io))
SUITE["3DAcoIsoDenQ_DEO2_FDTD"] = BenchmarkGroup([Dict("ncells"=>n_3D.z*n_3D.y*n_3D.x,"nbz"=>nb_3D.z,"nby"=>nb_3D.y,"nbx"=>nb_3D.x,"nthreads"=>_nthreads)])
function p3diso(nthreads,nz,ny,nx,nbz,nby,nbx)
p = WaveFD.Prop3DAcoIsoDenQ_DEO2_FDTD(freesurface=false, nz=nz, ny=ny, nx=nx, nbz=nbz, nby=nby, nbx=nbx, dz=10.0, dy=10.0, dx=10.0, dt=0.001, nthreads=nthreads)
v,b,pcur,pold = WaveFD.V(p), WaveFD.B(p),WaveFD.PCur(p),WaveFD.POld(p)
v .= 1500
b .= 1
rand!(pcur)
rand!(pold)
p
end
for nthreads in _nthreads
SUITE["3DAcoIsoDenQ_DEO2_FDTD"]["$nthreads threads"] = @benchmarkable WaveFD.propagateforward!(p) setup=(p=p3diso($nthreads,$(n_3D.z),$(n_3D.y),$(n_3D.x),$(nb_3D.z),$(nb_3D.y),$(nb_3D.x))) teardown=(free(p)) seconds=15
end
function fields3diso(p::WaveFD.Prop3DAcoIsoDenQ_DEO2_FDTD)
nz,ny,nx=size(p)
δm = Dict("v"=>rand(Float32,nz,ny,nx))
fields = Dict("pspace"=>rand(Float32,nz,ny,nx))
δm,fields
end
SUITE["3DAcoIsoDenQ_DEO2_FDTD"]["imaging condition, standard"] = @benchmarkable WaveFD.adjointBornAccumulation!(p,WaveFD.Prop3DAcoIsoDenQ_DEO2_FDTD_Model_V(),ic,δm,fields) setup=(p=p3diso(Sys.CPU_THREADS,$(n_3D.z),$(n_3D.y),$(n_3D.x),$(nb_3D.z),$(nb_3D.y),$(nb_3D.x)); ic=WaveFD.ImagingConditionStandard(); (δm,fields)=fields3diso(p)) teardown=(free(p))
SUITE["3DAcoIsoDenQ_DEO2_FDTD"]["imaging condition, wave field separation FWI"] = @benchmarkable WaveFD.adjointBornAccumulation!(p,WaveFD.Prop3DAcoIsoDenQ_DEO2_FDTD_Model_V(),ic,δm,fields) setup=(p=p3diso(Sys.CPU_THREADS,$(n_3D.z),$(n_3D.y),$(n_3D.x),$(nb_3D.z),$(nb_3D.y),$(nb_3D.x)); ic=WaveFD.ImagingConditionWaveFieldSeparationFWI(); x=zeros(Float32,$(n_3D.z),$(n_3D.y),$(n_3D.x)); (δm,fields)=fields3diso(p)) teardown=(free(p))
SUITE["3DAcoIsoDenQ_DEO2_FDTD"]["imaging condition, wave field separation RTM"] = @benchmarkable WaveFD.adjointBornAccumulation!(p,WaveFD.Prop3DAcoIsoDenQ_DEO2_FDTD_Model_V(),ic,δm,fields) setup=(p=p3diso(Sys.CPU_THREADS,$(n_3D.z),$(n_3D.y),$(n_3D.x),$(nb_3D.z),$(nb_3D.y),$(nb_3D.x)); ic=WaveFD.ImagingConditionWaveFieldSeparationRTM(); x=zeros(Float32,$(n_3D.z),$(n_3D.y),$(n_3D.x)); (δm,fields)=fields3diso(p)) teardown=(free(p))
SUITE["3DAcoVTIDenQ_DEO2_FDTD"] = BenchmarkGroup([Dict("ncells"=>n_3D.z*n_3D.y*n_3D.x,"nbz"=>nb_3D.z,"nby"=>nb_3D.y,"nbx"=>nb_3D.x,"nthreads"=>_nthreads)])
function p3dvti(nthreads,nz,ny,nx,nbz,nby,nbx)
p = WaveFD.Prop3DAcoVTIDenQ_DEO2_FDTD(freesurface=false, nz=nz, ny=ny, nx=nx, nbz=nbz, nby=nby, nbx=nbx, dz=10.0, dy=10.0, dx=10.0, dt=0.001, nthreads=nthreads)
v,b,ϵ,η,f,pcur,pold = WaveFD.V(p),WaveFD.B(p),WaveFD.Eps(p),WaveFD.Eta(p),WaveFD.F(p),WaveFD.PCur(p),WaveFD.POld(p)
rand!(pcur)
rand!(pold)
v .= 1500
b .= 1
ϵ .= 0.2
η .= 0.0
f .= 0.85
p
end
for nthreads in _nthreads
SUITE["3DAcoVTIDenQ_DEO2_FDTD"]["$nthreads threads"] = @benchmarkable WaveFD.propagateforward!(p) setup=(p=p3dvti($nthreads,$(n_3D.z),$(n_3D.y),$(n_3D.x),$(nb_3D.z),$(nb_3D.y),$(nb_3D.x))) teardown=(free(p)) seconds=15
end
function fields3dvti(p::WaveFD.Prop3DAcoVTIDenQ_DEO2_FDTD)
nz,ny,nx=size(p)
δm = Dict("v"=>rand(Float32,nz,ny,nx))
fields = Dict("pspace"=>rand(Float32,nz,ny,nx),"mspace"=>rand(Float32,nz,ny,nx))
δm,fields
end
SUITE["3DAcoVTIDenQ_DEO2_FDTD"]["imaging condition, standard"] = @benchmarkable WaveFD.adjointBornAccumulation!(p,WaveFD.Prop3DAcoVTIDenQ_DEO2_FDTD_Model_V(),ic,δm,fields) setup=(p=p3dvti(Sys.CPU_THREADS,$(n_3D.z),$(n_3D.y),$(n_3D.x),$(nb_3D.z),$(nb_3D.y),$(nb_3D.x)); ic=WaveFD.ImagingConditionStandard(); (δm,fields)=fields3dvti(p)) teardown=(free(p))
SUITE["3DAcoVTIDenQ_DEO2_FDTD"]["imaging condition, wave field separation FWI"] = @benchmarkable WaveFD.adjointBornAccumulation!(p,WaveFD.Prop3DAcoVTIDenQ_DEO2_FDTD_Model_V(),ic,δm,fields) setup=(p=p3dvti(Sys.CPU_THREADS,$(n_3D.z),$(n_3D.y),$(n_3D.x),$(nb_3D.z),$(nb_3D.y),$(nb_3D.x)); ic=WaveFD.ImagingConditionWaveFieldSeparationFWI(); (δm,fields)=fields3dvti(p)) teardown=(free(p))
SUITE["3DAcoVTIDenQ_DEO2_FDTD"]["imaging condition, wave field separation RTM"] = @benchmarkable WaveFD.adjointBornAccumulation!(p,WaveFD.Prop3DAcoVTIDenQ_DEO2_FDTD_Model_V(),ic,δm,fields) setup=(p=p3dvti(Sys.CPU_THREADS,$(n_3D.z),$(n_3D.y),$(n_3D.x),$(nb_3D.z),$(nb_3D.y),$(nb_3D.x)); ic=WaveFD.ImagingConditionWaveFieldSeparationRTM(); (δm,fields)=fields3dvti(p)) teardown=(free(p))
SUITE["3DAcoTTIDenQ_DEO2_FDTD"] = BenchmarkGroup([Dict("ncells"=>n_3D.z*n_3D.y*n_3D.x,"nbz"=>nb_3D.z,"nby"=>nb_3D.y,"nbx"=>nb_3D.x,"nthreads"=>_nthreads)])
function p3dtti(nthreads,nz,ny,nx,nbz,nby,nbx)
p = WaveFD.Prop3DAcoTTIDenQ_DEO2_FDTD(freesurface=false, nz=nz, ny=ny, nx=nx, nbz=nbz, nby=nby, nbx=nbx, dz=10.0, dx=10.0, dt=0.001, nthreads=nthreads)
v,b,ϵ,η,f,sinθ,cosθ,sinϕ,cosϕ,pcur,pold = WaveFD.V(p),WaveFD.B(p),WaveFD.Eps(p),WaveFD.Eta(p),WaveFD.F(p),WaveFD.SinTheta(p),WaveFD.CosTheta(p),WaveFD.SinPhi(p),WaveFD.CosPhi(p),WaveFD.PCur(p),WaveFD.POld(p)
v .= 1500
b .= 1
ϵ .= 0.2
η .= 0.0
f .= 0.85
cosθ .= cos(pi/4)
sinθ .= sin(pi/4)
cosϕ .= cos(pi/8)
sinϕ .= sin(pi/8)
rand!(pcur)
rand!(pold)
p
end
for nthreads in _nthreads
SUITE["3DAcoTTIDenQ_DEO2_FDTD"]["$nthreads threads"] = @benchmarkable WaveFD.propagateforward!(p) setup=(p=p3dtti($nthreads,$(n_3D.z),$(n_3D.y),$(n_3D.x),$(nb_3D.z),$(nb_3D.y),$(nb_3D.x))) teardown=(free(p)) seconds=15
end
function fields3dtti(p::WaveFD.Prop3DAcoTTIDenQ_DEO2_FDTD)
nz,ny,nx = size(p)
δm = Dict("v"=>rand(Float32,nz,ny,nx))
fields = Dict("pspace"=>rand(Float32,nz,ny,nx),"mspace"=>rand(Float32,nz,ny,nx))
δm,fields
end
SUITE["3DAcoTTIDenQ_DEO2_FDTD"]["imaging condition, standard"] = @benchmarkable WaveFD.adjointBornAccumulation!(p,WaveFD.Prop3DAcoTTIDenQ_DEO2_FDTD_Model_V(),ic,δm,fields) setup=(p=p3dtti(Sys.CPU_THREADS,$(n_3D.z),$(n_3D.y),$(n_3D.x),$(nb_3D.z),$(nb_3D.y),$(nb_3D.x)); ic=WaveFD.ImagingConditionStandard(); (δm,fields)=fields3dtti(p)) teardown=(free(p))
SUITE["3DAcoTTIDenQ_DEO2_FDTD"]["imaging condition, wave field separation FWI"] = @benchmarkable WaveFD.adjointBornAccumulation!(p,WaveFD.Prop3DAcoTTIDenQ_DEO2_FDTD_Model_V(),ic,δm,fields) setup=(p=p3dtti(Sys.CPU_THREADS,$(n_3D.z),$(n_3D.y),$(n_3D.x),$(nb_3D.z),$(nb_3D.y),$(nb_3D.x)); ic=WaveFD.ImagingConditionWaveFieldSeparationFWI(); (δm,fields)=fields3dtti(p)) teardown=(free(p))
SUITE["3DAcoTTIDenQ_DEO2_FDTD"]["imaging condition, wave field separation RTM"] = @benchmarkable WaveFD.adjointBornAccumulation!(p,WaveFD.Prop3DAcoTTIDenQ_DEO2_FDTD_Model_V(),ic,δm,fields) setup=(p=p3dtti(Sys.CPU_THREADS,$(n_3D.z),$(n_3D.y),$(n_3D.x),$(nb_3D.z),$(nb_3D.y),$(nb_3D.x)); ic=WaveFD.ImagingConditionWaveFieldSeparationRTM(); (δm,fields)=fields3dtti(p)) teardown=(free(p))
include(joinpath(pkgdir(WaveFD), "benchmark", "mcells_per_second.jl"))
SUITE | [
3500,
25187,
4102,
33637,
11,
14534,
11,
14370,
11,
17084,
26009,
198,
198,
62,
77,
16663,
82,
796,
685,
17,
61,
72,
329,
1312,
287,
657,
25,
28300,
7,
5317,
11,
6404,
17,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
4008,
60,
198,
361,
311,
893,
13,
36037,
62,
4221,
15675,
50,
18872,
231,
4808,
77,
16663,
82,
198,
220,
220,
220,
4574,
0,
28264,
77,
16663,
82,
11,
311,
893,
13,
36037,
62,
4221,
15675,
50,
8,
198,
437,
198,
198,
9979,
13558,
12709,
796,
25187,
4102,
13247,
3419,
198,
198,
89,
15,
11,
88,
15,
11,
87,
15,
11,
67,
89,
11,
9892,
11,
34350,
11,
429,
11,
28664,
796,
657,
13,
15,
11,
15,
13,
15,
11,
15,
13,
15,
11,
940,
13,
15,
11,
940,
13,
15,
11,
940,
13,
15,
11,
23924,
11,
15,
13,
8298,
198,
198,
77,
62,
17,
35,
796,
357,
89,
28,
29572,
7,
5317,
11,
1136,
7,
1677,
53,
553,
17,
35,
62,
37371,
2430,
33548,
4943,
828,
2124,
28,
29572,
7,
5317,
11,
1136,
7,
1677,
53,
553,
17,
35,
62,
45,
55,
2430,
47705,
1,
22305,
198,
77,
62,
18,
35,
796,
357,
89,
28,
29572,
7,
5317,
11,
1136,
7,
1677,
53,
553,
18,
35,
62,
37371,
2430,
8784,
4943,
828,
331,
28,
29572,
7,
5317,
11,
1136,
7,
1677,
53,
553,
18,
35,
62,
12805,
2430,
1264,
4943,
828,
2124,
28,
29572,
7,
5317,
11,
1136,
7,
1677,
53,
553,
18,
35,
62,
45,
55,
2430,
18938,
1,
22305,
198,
198,
46803,
62,
17,
35,
796,
357,
89,
28,
29572,
7,
5317,
11,
1136,
7,
1677,
53,
553,
17,
35,
62,
32819,
57,
2430,
3,
7,
77,
62,
17,
35,
13,
89,
8,
4943,
828,
2124,
28,
29572,
7,
5317,
11,
1136,
7,
1677,
53,
553,
17,
35,
62,
32819,
55,
2430,
23,
1,
22305,
198,
46803,
62,
18,
35,
796,
357,
89,
28,
29572,
7,
5317,
11,
1136,
7,
1677,
53,
553,
18,
35,
62,
32819,
57,
2430,
3,
7,
77,
62,
18,
35,
13,
89,
8,
4943,
828,
331,
28,
29572,
7,
5317,
11,
1136,
7,
1677,
53,
553,
18,
35,
62,
45,
17513,
2430,
23,
4943,
828,
2124,
28,
29572,
7,
5317,
11,
1136,
7,
1677,
53,
553,
18,
35,
62,
32819,
55,
2430,
23,
1,
22305,
198,
198,
31,
10951,
366,
7857,
362,
35,
25,
720,
77,
62,
17,
35,
11,
779,
12964,
53,
58,
7879,
17,
35,
62,
37371,
7879,
4357,
12964,
53,
58,
7879,
17,
35,
62,
45,
55,
7879,
60,
284,
24184,
1,
198,
31,
10951,
366,
7857,
513,
35,
25,
720,
77,
62,
18,
35,
11,
779,
12964,
53,
58,
7879,
18,
35,
62,
37371,
7879,
4357,
12964,
53,
58,
7879,
18,
35,
62,
12805,
7879,
4357,
12964,
53,
58,
7879,
18,
35,
62,
45,
55,
7879,
60,
284,
24184,
1,
198,
31,
10951,
366,
23870,
2512,
2546,
362,
35,
25,
720,
46803,
62,
17,
35,
11,
779,
12964,
53,
58,
7879,
17,
35,
62,
32819,
57,
7879,
4357,
12964,
53,
58,
7879,
17,
35,
62,
32819,
55,
7879,
60,
284,
24184,
1,
198,
31,
10951,
366,
23870,
2512,
2546,
513,
35,
25,
720,
46803,
62,
18,
35,
11,
779,
12964,
53,
58,
7879,
18,
35,
62,
32819,
57,
7879,
4357,
12964,
53,
58,
7879,
18,
35,
62,
45,
17513,
7879,
4357,
12964,
53,
58,
7879,
18,
35,
62,
32819,
55,
7879,
60,
284,
24184,
1,
198,
198,
81,
89,
11,
40914,
796,
288,
89,
9,
1952,
7,
77,
62,
17,
35,
13,
87,
828,
34350,
9,
58,
15,
25,
77,
62,
17,
35,
13,
87,
12,
16,
26,
60,
198,
198,
528,
11,
844,
11,
66,
796,
17084,
26009,
13,
71,
3378,
1073,
14822,
82,
7,
67,
89,
11,
44332,
11,
1976,
15,
11,
2124,
15,
11,
299,
62,
17,
35,
13,
89,
11,
299,
62,
17,
35,
13,
87,
11,
374,
89,
11,
374,
87,
8,
198,
27372,
796,
17084,
26009,
13,
10459,
62,
41938,
7,
77,
62,
17,
35,
13,
89,
11,
299,
62,
17,
35,
13,
87,
11,
604,
11,
604,
11,
220,
528,
11,
220,
844,
11,
269,
8,
198,
3245,
796,
1976,
27498,
7,
77,
62,
17,
35,
13,
89,
11,
299,
62,
17,
35,
13,
87,
8,
198,
7890,
796,
43720,
7,
429,
11,
299,
62,
17,
35,
13,
87,
8,
198,
270,
796,
352,
198,
198,
12564,
12709,
14692,
17,
35,
7273,
4487,
8973,
796,
25187,
4102,
13247,
3419,
198,
12564,
12709,
14692,
17,
35,
7273,
4487,
1,
7131,
1,
10459,
62,
41938,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
10459,
62,
41938,
16763,
7,
77,
62,
17,
35,
13,
89,
828,
29568,
77,
62,
17,
35,
13,
87,
828,
29568,
46803,
62,
17,
35,
13,
89,
828,
29568,
46803,
62,
17,
35,
737,
87,
11,
720,
528,
11,
720,
844,
11,
720,
66,
1776,
198,
12564,
12709,
14692,
17,
35,
7273,
4487,
1,
7131,
1,
259,
752,
7890,
2474,
60,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
259,
752,
7890,
0,
16763,
3245,
11,
720,
27372,
11,
720,
7890,
11,
720,
270,
8,
198,
198,
28664,
4666,
796,
657,
13,
34215,
198,
429,
4666,
796,
299,
83,
1635,
2835,
7,
5317,
11,
28664,
1220,
288,
83,
4666,
8,
198,
71,
796,
17084,
26009,
13,
3849,
79,
10379,
1010,
7,
28664,
4666,
11,
288,
83,
11,
657,
11,
17084,
26009,
13,
43,
648,
34,
22784,
311,
893,
13,
36037,
62,
4221,
15675,
50,
8,
198,
7890,
62,
4666,
796,
43720,
7,
429,
4666,
11,
299,
62,
17,
35,
13,
87,
8,
198,
12564,
12709,
14692,
17,
35,
7273,
4487,
1,
7131,
1,
3849,
15636,
73,
1563,
2474,
60,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
3849,
15636,
73,
1563,
0,
16763,
71,
11,
720,
7890,
62,
4666,
11,
720,
7890,
8,
198,
12564,
12709,
14692,
17,
35,
7273,
4487,
1,
7131,
1,
3849,
79,
11813,
2474,
60,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
3849,
79,
11813,
0,
16763,
71,
11,
720,
7890,
11,
720,
7890,
62,
4666,
8,
198,
198,
5589,
44292,
796,
17084,
26009,
13,
7293,
44292,
7,
43879,
2624,
11,
48436,
2624,
11,
471,
5317,
2624,
11,
357,
77,
62,
17,
35,
13,
89,
11,
77,
62,
17,
35,
13,
87,
828,
357,
2624,
11,
2624,
828,
352,
68,
12,
17,
11,
28119,
11,
3991,
8,
198,
3245,
17,
796,
43720,
7,
43879,
2624,
11,
77,
62,
17,
35,
13,
89,
11,
77,
62,
17,
35,
13,
87,
8,
198,
12564,
12709,
14692,
17,
35,
19794,
8973,
796,
25187,
4102,
13247,
3419,
198,
12564,
12709,
14692,
17,
35,
19794,
1,
7131,
1,
13564,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
5589,
2790,
13564,
7,
952,
11,
720,
5589,
44292,
11,
352,
11,
720,
3245,
17,
8,
9058,
16193,
9654,
16763,
5589,
44292,
1776,
33245,
28,
9654,
7,
29510,
3672,
3419,
553,
86,
48774,
573,
446,
593,
16193,
19836,
16763,
5589,
44292,
1776,
1969,
7,
952,
4008,
198,
12564,
12709,
14692,
17,
35,
19794,
1,
7131,
1,
961,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
5589,
2790,
961,
0,
7,
952,
11,
720,
5589,
44292,
11,
352,
11,
720,
3245,
17,
8,
9058,
16193,
9654,
16763,
5589,
44292,
1776,
256,
7753,
28,
29510,
3672,
9783,
4808,
952,
28,
9654,
7,
83,
7753,
553,
86,
15341,
17084,
26009,
13,
5589,
2790,
13564,
28264,
952,
11,
720,
5589,
44292,
11,
352,
11,
720,
3245,
17,
1776,
1969,
28264,
952,
1776,
33245,
28,
9654,
7,
83,
7753,
4008,
573,
446,
593,
16193,
19836,
16763,
5589,
44292,
1776,
1969,
7,
952,
4008,
198,
198,
81,
782,
17,
796,
357,
940,
25,
77,
62,
17,
35,
13,
89,
12,
940,
11,
940,
25,
77,
62,
17,
35,
13,
87,
8,
198,
62,
3245,
17,
796,
1570,
7,
3245,
17,
11,
374,
782,
17,
23029,
198,
62,
5589,
44292,
796,
17084,
26009,
13,
7293,
44292,
7,
43879,
2624,
11,
48436,
2624,
11,
471,
5317,
2624,
11,
2546,
28264,
3245,
17,
828,
357,
2624,
11,
2624,
828,
352,
68,
12,
17,
11,
28119,
11,
2081,
8,
198,
12564,
12709,
14692,
17,
35,
19794,
11,
11087,
8973,
796,
25187,
4102,
13247,
3419,
198,
12564,
12709,
14692,
17,
35,
19794,
11,
11087,
1,
7131,
1,
13564,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
5589,
2790,
13564,
7,
952,
11,
40111,
5589,
44292,
11,
352,
11,
720,
3245,
17,
11,
720,
81,
782,
17,
8,
9058,
16193,
9654,
16763,
62,
5589,
44292,
1776,
33245,
28,
9654,
7,
29510,
3672,
3419,
553,
86,
48774,
573,
446,
593,
16193,
19836,
16763,
62,
5589,
44292,
1776,
1969,
7,
952,
4008,
198,
12564,
12709,
14692,
17,
35,
19794,
11,
11087,
1,
7131,
1,
961,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
5589,
2790,
961,
0,
7,
952,
11,
40111,
5589,
44292,
11,
352,
11,
720,
3245,
17,
11,
720,
81,
782,
17,
8,
9058,
16193,
9654,
16763,
62,
5589,
44292,
1776,
256,
7753,
28,
29510,
3672,
9783,
4808,
952,
28,
9654,
7,
83,
7753,
553,
86,
15341,
17084,
26009,
13,
5589,
2790,
13564,
28264,
952,
11,
40111,
5589,
44292,
11,
352,
11,
720,
3245,
17,
11,
374,
782,
17,
1776,
1969,
28264,
952,
1776,
33245,
28,
9654,
7,
83,
7753,
4008,
573,
446,
593,
16193,
19836,
16763,
62,
5589,
44292,
1776,
1969,
7,
952,
4008,
198,
198,
12564,
12709,
14692,
17,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
8973,
796,
25187,
4102,
13247,
26933,
35,
713,
7203,
1198,
297,
82,
1,
14804,
77,
62,
17,
35,
13,
89,
9,
77,
62,
17,
35,
13,
87,
553,
46803,
89,
1,
14804,
46803,
62,
17,
35,
13,
89,
553,
46803,
87,
1,
14804,
46803,
62,
17,
35,
13,
87,
553,
77,
16663,
82,
1,
14804,
62,
77,
16663,
82,
8,
12962,
198,
8818,
279,
17,
6381,
78,
7,
77,
16663,
82,
11,
27305,
11,
77,
87,
11,
46803,
89,
11,
46803,
87,
8,
198,
220,
220,
220,
279,
796,
17084,
26009,
13,
24331,
17,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
7,
69,
6037,
333,
2550,
28,
9562,
11,
299,
89,
28,
27305,
11,
299,
87,
28,
77,
87,
11,
299,
65,
89,
28,
46803,
89,
11,
299,
65,
87,
28,
46803,
87,
11,
288,
89,
28,
940,
13,
15,
11,
44332,
28,
940,
13,
15,
11,
288,
83,
28,
15,
13,
8298,
11,
299,
16663,
82,
28,
77,
16663,
82,
8,
198,
220,
220,
220,
410,
11,
65,
11,
14751,
333,
11,
79,
727,
796,
17084,
26009,
13,
53,
7,
79,
828,
39709,
26009,
13,
33,
7,
79,
828,
39709,
26009,
13,
5662,
333,
7,
79,
828,
39709,
26009,
13,
16402,
335,
7,
79,
8,
198,
220,
220,
220,
410,
764,
28,
20007,
198,
220,
220,
220,
275,
764,
28,
352,
198,
220,
220,
220,
43720,
0,
7,
14751,
333,
8,
198,
220,
220,
220,
43720,
0,
7,
79,
727,
8,
198,
220,
220,
220,
279,
198,
437,
198,
1640,
299,
16663,
82,
287,
4808,
77,
16663,
82,
198,
220,
220,
220,
13558,
12709,
14692,
17,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
3,
77,
16663,
82,
14390,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
22930,
37861,
11813,
0,
7,
79,
8,
9058,
16193,
79,
28,
79,
17,
6381,
78,
16763,
77,
16663,
82,
11,
3,
7,
77,
62,
17,
35,
13,
89,
828,
3,
7,
77,
62,
17,
35,
13,
87,
828,
3,
7,
46803,
62,
17,
35,
13,
89,
828,
3,
7,
46803,
62,
17,
35,
13,
87,
22305,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
437,
198,
198,
8818,
7032,
17,
6381,
78,
7,
79,
3712,
39709,
26009,
13,
24331,
17,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
8,
198,
220,
220,
220,
299,
89,
11,
77,
87,
28,
7857,
7,
79,
8,
198,
220,
220,
220,
7377,
112,
76,
796,
360,
713,
7203,
85,
1,
14804,
25192,
7,
43879,
2624,
11,
27305,
11,
77,
87,
4008,
198,
220,
220,
220,
7032,
796,
360,
713,
7203,
862,
10223,
1,
14804,
25192,
7,
43879,
2624,
11,
27305,
11,
77,
87,
4008,
198,
220,
220,
220,
7377,
112,
76,
11,
25747,
198,
437,
198,
12564,
12709,
14692,
17,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
320,
3039,
4006,
11,
3210,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
41255,
1563,
28524,
17320,
388,
1741,
0,
7,
79,
11,
39709,
26009,
13,
24331,
17,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
62,
17633,
62,
53,
22784,
291,
11,
138,
112,
76,
11,
25747,
8,
9058,
16193,
79,
28,
79,
17,
6381,
78,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
11,
3,
7,
77,
62,
17,
35,
13,
89,
828,
3,
7,
77,
62,
17,
35,
13,
87,
828,
3,
7,
46803,
62,
17,
35,
13,
89,
828,
3,
7,
46803,
62,
17,
35,
13,
87,
18125,
14158,
28,
39709,
26009,
13,
3546,
3039,
48362,
23615,
9783,
357,
138,
112,
76,
11,
25747,
47505,
25747,
17,
6381,
78,
7,
79,
4008,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
12564,
12709,
14692,
17,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
320,
3039,
4006,
11,
6769,
2214,
14139,
376,
36326,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
41255,
1563,
28524,
17320,
388,
1741,
0,
7,
79,
11,
39709,
26009,
13,
24331,
17,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
62,
17633,
62,
53,
22784,
291,
11,
138,
112,
76,
11,
25747,
8,
9058,
16193,
79,
28,
79,
17,
6381,
78,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
11,
3,
7,
77,
62,
17,
35,
13,
89,
828,
3,
7,
77,
62,
17,
35,
13,
87,
828,
3,
7,
46803,
62,
17,
35,
13,
89,
828,
3,
7,
46803,
62,
17,
35,
13,
87,
18125,
14158,
28,
39709,
26009,
13,
3546,
3039,
48362,
39709,
15878,
19117,
10186,
24160,
40,
9783,
357,
138,
112,
76,
11,
25747,
47505,
25747,
17,
6381,
78,
7,
79,
4008,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
12564,
12709,
14692,
17,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
320,
3039,
4006,
11,
6769,
2214,
14139,
11923,
44,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
41255,
1563,
28524,
17320,
388,
1741,
0,
7,
79,
11,
39709,
26009,
13,
24331,
17,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
62,
17633,
62,
53,
22784,
291,
11,
138,
112,
76,
11,
25747,
8,
9058,
16193,
79,
28,
79,
17,
6381,
78,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
11,
3,
7,
77,
62,
17,
35,
13,
89,
828,
3,
7,
77,
62,
17,
35,
13,
87,
828,
3,
7,
46803,
62,
17,
35,
13,
89,
828,
3,
7,
46803,
62,
17,
35,
13,
87,
18125,
220,
14158,
28,
39709,
26009,
13,
3546,
3039,
48362,
39709,
15878,
19117,
10186,
14181,
44,
9783,
357,
138,
112,
76,
11,
25747,
47505,
25747,
17,
6381,
78,
7,
79,
4008,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
198,
12564,
12709,
14692,
17,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
8973,
796,
25187,
4102,
13247,
26933,
35,
713,
7203,
1198,
297,
82,
1,
14804,
77,
62,
17,
35,
13,
89,
9,
77,
62,
17,
35,
13,
87,
553,
46803,
89,
1,
14804,
46803,
62,
17,
35,
13,
89,
553,
46803,
87,
1,
14804,
46803,
62,
17,
35,
13,
87,
553,
77,
16663,
82,
1,
14804,
62,
77,
16663,
82,
8,
12962,
198,
8818,
279,
17,
67,
85,
20259,
7,
77,
16663,
82,
11,
27305,
11,
77,
87,
11,
46803,
89,
11,
46803,
87,
8,
198,
220,
220,
220,
279,
796,
17084,
26009,
13,
24331,
17,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
7,
69,
6037,
333,
2550,
28,
9562,
11,
299,
89,
28,
27305,
11,
299,
87,
28,
77,
87,
11,
299,
65,
89,
28,
46803,
89,
11,
299,
65,
87,
28,
46803,
87,
11,
288,
89,
28,
940,
13,
15,
11,
44332,
28,
940,
13,
15,
11,
288,
83,
28,
15,
13,
8298,
11,
299,
16663,
82,
28,
77,
16663,
82,
8,
198,
220,
220,
220,
410,
11,
65,
11,
139,
113,
11,
138,
115,
11,
69,
11,
14751,
333,
11,
79,
727,
796,
17084,
26009,
13,
53,
7,
79,
828,
39709,
26009,
13,
33,
7,
79,
828,
39709,
26009,
13,
36,
862,
7,
79,
828,
39709,
26009,
13,
36,
8326,
7,
79,
828,
39709,
26009,
13,
37,
7,
79,
828,
39709,
26009,
13,
5662,
333,
7,
79,
828,
39709,
26009,
13,
16402,
335,
7,
79,
8,
198,
220,
220,
220,
43720,
0,
7,
14751,
333,
8,
198,
220,
220,
220,
43720,
0,
7,
79,
727,
8,
198,
220,
220,
220,
410,
764,
28,
20007,
198,
220,
220,
220,
275,
764,
28,
352,
198,
220,
220,
220,
18074,
113,
764,
28,
657,
13,
17,
198,
220,
220,
220,
7377,
115,
764,
28,
657,
13,
15,
198,
220,
220,
220,
277,
764,
28,
657,
13,
5332,
198,
220,
220,
220,
279,
198,
437,
198,
1640,
299,
16663,
82,
287,
4808,
77,
16663,
82,
198,
220,
220,
220,
13558,
12709,
14692,
17,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
3,
77,
16663,
82,
14390,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
22930,
37861,
11813,
0,
7,
79,
8,
9058,
16193,
79,
28,
79,
17,
67,
85,
20259,
16763,
77,
16663,
82,
11,
3,
7,
77,
62,
17,
35,
13,
89,
828,
3,
7,
77,
62,
17,
35,
13,
87,
828,
3,
7,
46803,
62,
17,
35,
13,
89,
828,
3,
7,
46803,
62,
17,
35,
13,
87,
22305,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
437,
198,
198,
8818,
7032,
17,
67,
85,
20259,
7,
79,
3712,
39709,
26009,
13,
24331,
17,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
8,
198,
220,
220,
220,
299,
89,
11,
77,
87,
28,
7857,
7,
79,
8,
198,
220,
220,
220,
7377,
112,
76,
796,
360,
713,
7203,
85,
1,
14804,
25192,
7,
43879,
2624,
11,
27305,
11,
77,
87,
4008,
198,
220,
220,
220,
7032,
796,
360,
713,
7203,
862,
10223,
1,
14804,
25192,
7,
43879,
2624,
11,
27305,
11,
77,
87,
27267,
907,
10223,
1,
14804,
25192,
7,
43879,
2624,
11,
27305,
11,
77,
87,
4008,
198,
220,
220,
220,
7377,
112,
76,
11,
25747,
198,
437,
198,
12564,
12709,
14692,
17,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
320,
3039,
4006,
11,
3210,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
41255,
1563,
28524,
17320,
388,
1741,
0,
7,
79,
11,
39709,
26009,
13,
24331,
17,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
62,
17633,
62,
53,
22784,
291,
11,
138,
112,
76,
11,
25747,
8,
9058,
16193,
79,
28,
79,
17,
67,
85,
20259,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
11,
3,
7,
77,
62,
17,
35,
13,
89,
828,
3,
7,
77,
62,
17,
35,
13,
87,
828,
3,
7,
46803,
62,
17,
35,
13,
89,
828,
3,
7,
46803,
62,
17,
35,
13,
87,
18125,
14158,
28,
39709,
26009,
13,
3546,
3039,
48362,
23615,
9783,
357,
138,
112,
76,
11,
25747,
47505,
25747,
17,
67,
85,
20259,
7,
79,
4008,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
12564,
12709,
14692,
17,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
320,
3039,
4006,
11,
6769,
2214,
14139,
376,
36326,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
41255,
1563,
28524,
17320,
388,
1741,
0,
7,
79,
11,
39709,
26009,
13,
24331,
17,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
62,
17633,
62,
53,
22784,
291,
11,
138,
112,
76,
11,
25747,
8,
9058,
16193,
79,
28,
79,
17,
67,
85,
20259,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
11,
3,
7,
77,
62,
17,
35,
13,
89,
828,
3,
7,
77,
62,
17,
35,
13,
87,
828,
3,
7,
46803,
62,
17,
35,
13,
89,
828,
3,
7,
46803,
62,
17,
35,
13,
87,
18125,
14158,
28,
39709,
26009,
13,
3546,
3039,
48362,
39709,
15878,
19117,
10186,
24160,
40,
9783,
357,
138,
112,
76,
11,
25747,
47505,
25747,
17,
67,
85,
20259,
7,
79,
4008,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
12564,
12709,
14692,
17,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
320,
3039,
4006,
11,
6769,
2214,
14139,
11923,
44,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
41255,
1563,
28524,
17320,
388,
1741,
0,
7,
79,
11,
39709,
26009,
13,
24331,
17,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
62,
17633,
62,
53,
22784,
291,
11,
138,
112,
76,
11,
25747,
8,
9058,
16193,
79,
28,
79,
17,
67,
85,
20259,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
11,
3,
7,
77,
62,
17,
35,
13,
89,
828,
3,
7,
77,
62,
17,
35,
13,
87,
828,
3,
7,
46803,
62,
17,
35,
13,
89,
828,
3,
7,
46803,
62,
17,
35,
13,
87,
18125,
14158,
28,
39709,
26009,
13,
3546,
3039,
48362,
39709,
15878,
19117,
10186,
14181,
44,
9783,
357,
138,
112,
76,
11,
25747,
47505,
25747,
17,
67,
85,
20259,
7,
79,
4008,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
198,
12564,
12709,
14692,
17,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
8973,
796,
25187,
4102,
13247,
26933,
35,
713,
7203,
1198,
297,
82,
1,
14804,
77,
62,
17,
35,
13,
89,
9,
77,
62,
17,
35,
13,
87,
553,
46803,
89,
1,
14804,
46803,
62,
17,
35,
13,
89,
553,
46803,
87,
1,
14804,
46803,
62,
17,
35,
13,
87,
553,
77,
16663,
82,
1,
14804,
62,
77,
16663,
82,
8,
12962,
198,
8818,
279,
17,
67,
35671,
7,
77,
16663,
82,
11,
27305,
11,
77,
87,
11,
46803,
89,
11,
46803,
87,
8,
198,
220,
220,
220,
279,
796,
17084,
26009,
13,
24331,
17,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
7,
69,
6037,
333,
2550,
28,
9562,
11,
299,
89,
28,
27305,
11,
299,
87,
28,
77,
87,
11,
299,
65,
89,
28,
46803,
89,
11,
299,
65,
87,
28,
46803,
87,
11,
288,
89,
28,
940,
13,
15,
11,
44332,
28,
940,
13,
15,
11,
288,
83,
28,
15,
13,
8298,
11,
299,
16663,
82,
28,
77,
16663,
82,
8,
198,
220,
220,
220,
410,
11,
65,
11,
139,
113,
11,
138,
115,
11,
69,
11,
31369,
138,
116,
11,
6966,
138,
116,
11,
14751,
333,
11,
79,
727,
796,
17084,
26009,
13,
53,
7,
79,
828,
39709,
26009,
13,
33,
7,
79,
828,
39709,
26009,
13,
36,
862,
7,
79,
828,
39709,
26009,
13,
36,
8326,
7,
79,
828,
39709,
26009,
13,
37,
7,
79,
828,
39709,
26009,
13,
46200,
464,
8326,
7,
79,
828,
39709,
26009,
13,
36734,
464,
8326,
7,
79,
828,
39709,
26009,
13,
5662,
333,
7,
79,
828,
39709,
26009,
13,
16402,
335,
7,
79,
8,
198,
220,
220,
220,
410,
764,
28,
20007,
198,
220,
220,
220,
275,
764,
28,
352,
198,
220,
220,
220,
18074,
113,
764,
28,
657,
13,
17,
198,
220,
220,
220,
7377,
115,
764,
28,
657,
13,
15,
198,
220,
220,
220,
277,
764,
28,
657,
13,
5332,
198,
220,
220,
220,
8615,
138,
116,
764,
28,
8615,
7,
14415,
14,
19,
8,
198,
220,
220,
220,
7813,
138,
116,
764,
28,
7813,
7,
14415,
14,
19,
8,
198,
220,
220,
220,
43720,
0,
7,
14751,
333,
8,
198,
220,
220,
220,
43720,
0,
7,
79,
727,
8,
198,
220,
220,
220,
279,
198,
437,
198,
1640,
299,
16663,
82,
287,
4808,
77,
16663,
82,
198,
220,
220,
220,
13558,
12709,
14692,
17,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
3,
77,
16663,
82,
14390,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
22930,
37861,
11813,
0,
7,
79,
8,
9058,
16193,
79,
28,
79,
17,
67,
35671,
16763,
77,
16663,
82,
11,
3,
7,
77,
62,
17,
35,
13,
89,
828,
3,
7,
77,
62,
17,
35,
13,
87,
828,
3,
7,
46803,
62,
17,
35,
13,
89,
828,
3,
7,
46803,
62,
17,
35,
13,
87,
22305,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
437,
198,
198,
8818,
7032,
17,
67,
35671,
7,
79,
3712,
39709,
26009,
13,
24331,
17,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
8,
198,
220,
220,
220,
299,
89,
11,
77,
87,
796,
2546,
7,
79,
8,
198,
220,
220,
220,
7377,
112,
76,
796,
360,
713,
7203,
85,
1,
14804,
25192,
7,
43879,
2624,
11,
27305,
11,
77,
87,
4008,
198,
220,
220,
220,
7032,
796,
360,
713,
7203,
862,
10223,
1,
14804,
25192,
7,
43879,
2624,
11,
27305,
11,
77,
87,
27267,
907,
10223,
1,
14804,
25192,
7,
43879,
2624,
11,
27305,
11,
77,
87,
4008,
198,
220,
220,
220,
7377,
112,
76,
11,
25747,
198,
437,
198,
12564,
12709,
14692,
17,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
320,
3039,
4006,
11,
3210,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
41255,
1563,
28524,
17320,
388,
1741,
0,
7,
79,
11,
39709,
26009,
13,
24331,
17,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
62,
17633,
62,
53,
22784,
291,
11,
138,
112,
76,
11,
25747,
8,
9058,
16193,
79,
28,
79,
17,
67,
35671,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
11,
3,
7,
77,
62,
17,
35,
13,
89,
828,
3,
7,
77,
62,
17,
35,
13,
87,
828,
3,
7,
46803,
62,
17,
35,
13,
89,
828,
3,
7,
46803,
62,
17,
35,
13,
87,
18125,
14158,
28,
39709,
26009,
13,
3546,
3039,
48362,
23615,
9783,
357,
138,
112,
76,
11,
25747,
47505,
25747,
17,
67,
35671,
7,
79,
4008,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
12564,
12709,
14692,
17,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
320,
3039,
4006,
11,
6769,
2214,
14139,
376,
36326,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
41255,
1563,
28524,
17320,
388,
1741,
0,
7,
79,
11,
39709,
26009,
13,
24331,
17,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
62,
17633,
62,
53,
22784,
291,
11,
138,
112,
76,
11,
25747,
8,
9058,
16193,
79,
28,
79,
17,
67,
35671,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
11,
3,
7,
77,
62,
17,
35,
13,
89,
828,
3,
7,
77,
62,
17,
35,
13,
87,
828,
3,
7,
46803,
62,
17,
35,
13,
89,
828,
3,
7,
46803,
62,
17,
35,
13,
87,
18125,
14158,
28,
39709,
26009,
13,
3546,
3039,
48362,
39709,
15878,
19117,
10186,
24160,
40,
9783,
357,
138,
112,
76,
11,
25747,
47505,
25747,
17,
67,
35671,
7,
79,
4008,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
12564,
12709,
14692,
17,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
320,
3039,
4006,
11,
6769,
2214,
14139,
11923,
44,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
41255,
1563,
28524,
17320,
388,
1741,
0,
7,
79,
11,
39709,
26009,
13,
24331,
17,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
62,
17633,
62,
53,
22784,
291,
11,
138,
112,
76,
11,
25747,
8,
9058,
16193,
79,
28,
79,
17,
67,
35671,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
11,
3,
7,
77,
62,
17,
35,
13,
89,
828,
3,
7,
77,
62,
17,
35,
13,
87,
828,
3,
7,
46803,
62,
17,
35,
13,
89,
828,
3,
7,
46803,
62,
17,
35,
13,
87,
18125,
14158,
28,
39709,
26009,
13,
3546,
3039,
48362,
39709,
15878,
19117,
10186,
14181,
44,
9783,
357,
138,
112,
76,
11,
25747,
47505,
25747,
17,
67,
35671,
7,
79,
4008,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
198,
27305,
11,
3281,
11,
77,
87,
796,
24555,
11,
18938,
11,
47705,
198,
198,
81,
89,
796,
685,
67,
89,
329,
1312,
88,
796,
352,
25,
3281,
11,
220,
844,
796,
352,
25,
77,
87,
7131,
47715,
198,
563,
796,
47527,
7745,
12,
16,
27493,
9892,
329,
1312,
88,
796,
352,
25,
3281,
11,
220,
844,
796,
352,
25,
77,
87,
7131,
47715,
198,
40914,
796,
47527,
844,
12,
16,
27493,
34350,
329,
1312,
88,
796,
352,
25,
3281,
11,
220,
844,
796,
352,
25,
77,
87,
7131,
47715,
198,
198,
528,
11,
7745,
11,
844,
11,
66,
796,
17084,
26009,
13,
71,
3378,
1073,
14822,
82,
7,
67,
89,
11,
20268,
11,
44332,
11,
1976,
15,
11,
331,
15,
11,
2124,
15,
11,
299,
89,
11,
299,
88,
11,
299,
87,
11,
374,
89,
11,
374,
88,
11,
374,
87,
8,
198,
27372,
796,
17084,
26009,
13,
10459,
62,
41938,
7,
27305,
11,
299,
88,
11,
299,
87,
11,
604,
11,
604,
11,
604,
11,
220,
528,
11,
1312,
88,
11,
220,
844,
11,
269,
8,
198,
3245,
796,
1976,
27498,
7,
27305,
11,
299,
88,
11,
299,
87,
8,
198,
7890,
796,
43720,
7,
429,
11,
299,
87,
9,
3281,
8,
198,
270,
796,
352,
198,
198,
12564,
12709,
14692,
18,
35,
7273,
4487,
8973,
796,
25187,
4102,
13247,
3419,
198,
12564,
12709,
14692,
18,
35,
7273,
4487,
1,
7131,
1,
10459,
62,
41938,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
10459,
62,
41938,
16763,
27305,
11,
720,
3281,
11,
720,
77,
87,
11,
17759,
11,
807,
11,
807,
11,
720,
528,
11,
720,
7745,
11,
720,
844,
11,
720,
66,
1776,
198,
12564,
12709,
14692,
18,
35,
7273,
4487,
1,
7131,
1,
259,
752,
7890,
2474,
60,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
259,
752,
7890,
0,
16763,
3245,
11,
720,
27372,
11,
720,
7890,
11,
720,
270,
8,
198,
198,
5589,
44292,
796,
17084,
26009,
13,
7293,
44292,
7,
43879,
2624,
11,
48436,
2624,
11,
471,
5317,
2624,
11,
357,
77,
62,
18,
35,
13,
89,
11,
77,
62,
18,
35,
13,
88,
11,
77,
62,
18,
35,
13,
87,
828,
357,
2624,
11,
2624,
11,
2624,
828,
352,
68,
12,
17,
11,
28119,
11,
3991,
8,
198,
3245,
18,
796,
43720,
7,
43879,
2624,
11,
77,
62,
18,
35,
13,
89,
11,
77,
62,
18,
35,
13,
88,
11,
77,
62,
18,
35,
13,
87,
8,
198,
12564,
12709,
14692,
18,
35,
19794,
8973,
796,
25187,
4102,
13247,
3419,
198,
12564,
12709,
14692,
18,
35,
19794,
1,
7131,
1,
13564,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
5589,
2790,
13564,
7,
952,
11,
720,
5589,
44292,
11,
352,
11,
720,
3245,
18,
8,
9058,
16193,
9654,
16763,
5589,
44292,
1776,
33245,
28,
9654,
7,
29510,
3672,
22784,
366,
86,
48774,
573,
446,
593,
16193,
19836,
16763,
5589,
44292,
1776,
1969,
7,
952,
4008,
198,
12564,
12709,
14692,
18,
35,
19794,
1,
7131,
1,
961,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
5589,
2790,
961,
0,
7,
952,
11,
720,
5589,
44292,
11,
352,
11,
720,
3245,
18,
8,
9058,
16193,
9654,
16763,
5589,
44292,
1776,
256,
7753,
28,
29510,
3672,
9783,
4808,
952,
28,
9654,
7,
83,
7753,
553,
86,
15341,
17084,
26009,
13,
5589,
2790,
13564,
28264,
952,
11,
720,
5589,
44292,
11,
352,
11,
720,
3245,
18,
1776,
1969,
28264,
952,
1776,
33245,
28,
9654,
7,
83,
7753,
4008,
573,
446,
593,
16193,
19836,
16763,
5589,
44292,
1776,
1969,
7,
952,
4008,
198,
198,
81,
782,
18,
796,
357,
940,
25,
77,
62,
18,
35,
13,
89,
12,
940,
11,
940,
25,
77,
62,
18,
35,
13,
88,
11,
940,
25,
77,
62,
18,
35,
13,
87,
8,
198,
62,
3245,
18,
796,
1570,
7,
3245,
18,
11,
374,
782,
18,
23029,
198,
62,
5589,
44292,
796,
17084,
26009,
13,
7293,
44292,
7,
43879,
2624,
11,
48436,
2624,
11,
471,
5317,
2624,
11,
2546,
28264,
3245,
18,
828,
357,
2624,
11,
2624,
11,
2624,
828,
352,
68,
12,
17,
11,
28119,
11,
2081,
8,
198,
12564,
12709,
14692,
18,
35,
19794,
11,
11087,
8973,
796,
25187,
4102,
13247,
3419,
198,
12564,
12709,
14692,
18,
35,
19794,
11,
11087,
1,
7131,
1,
13564,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
5589,
2790,
13564,
7,
952,
11,
40111,
5589,
44292,
11,
352,
11,
720,
3245,
18,
11,
720,
81,
782,
18,
8,
9058,
16193,
9654,
16763,
62,
5589,
44292,
1776,
33245,
28,
9654,
7,
29510,
3672,
3419,
553,
86,
48774,
573,
446,
593,
16193,
19836,
16763,
62,
5589,
44292,
1776,
1969,
7,
952,
4008,
198,
12564,
12709,
14692,
18,
35,
19794,
11,
11087,
1,
7131,
1,
961,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
5589,
2790,
961,
0,
7,
952,
11,
40111,
5589,
44292,
11,
352,
11,
720,
3245,
18,
11,
720,
81,
782,
18,
8,
9058,
16193,
9654,
16763,
62,
5589,
44292,
1776,
256,
7753,
28,
29510,
3672,
9783,
4808,
952,
28,
9654,
7,
83,
7753,
553,
86,
15341,
17084,
26009,
13,
5589,
2790,
13564,
28264,
952,
11,
40111,
5589,
44292,
11,
352,
11,
720,
3245,
18,
11,
374,
782,
18,
1776,
1969,
28264,
952,
1776,
33245,
28,
9654,
7,
83,
7753,
4008,
573,
446,
593,
16193,
19836,
16763,
62,
5589,
44292,
1776,
1969,
7,
952,
4008,
198,
198,
12564,
12709,
14692,
18,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
8973,
796,
25187,
4102,
13247,
26933,
35,
713,
7203,
1198,
297,
82,
1,
14804,
77,
62,
18,
35,
13,
89,
9,
77,
62,
18,
35,
13,
88,
9,
77,
62,
18,
35,
13,
87,
553,
46803,
89,
1,
14804,
46803,
62,
18,
35,
13,
89,
553,
77,
1525,
1,
14804,
46803,
62,
18,
35,
13,
88,
553,
46803,
87,
1,
14804,
46803,
62,
18,
35,
13,
87,
553,
77,
16663,
82,
1,
14804,
62,
77,
16663,
82,
8,
12962,
198,
8818,
279,
18,
6381,
78,
7,
77,
16663,
82,
11,
27305,
11,
3281,
11,
77,
87,
11,
46803,
89,
11,
77,
1525,
11,
46803,
87,
8,
198,
220,
220,
220,
279,
796,
17084,
26009,
13,
24331,
18,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
7,
69,
6037,
333,
2550,
28,
9562,
11,
299,
89,
28,
27305,
11,
299,
88,
28,
3281,
11,
299,
87,
28,
77,
87,
11,
299,
65,
89,
28,
46803,
89,
11,
299,
1525,
28,
77,
1525,
11,
299,
65,
87,
28,
46803,
87,
11,
288,
89,
28,
940,
13,
15,
11,
20268,
28,
940,
13,
15,
11,
44332,
28,
940,
13,
15,
11,
288,
83,
28,
15,
13,
8298,
11,
299,
16663,
82,
28,
77,
16663,
82,
8,
198,
220,
220,
220,
410,
11,
65,
11,
14751,
333,
11,
79,
727,
796,
17084,
26009,
13,
53,
7,
79,
828,
17084,
26009,
13,
33,
7,
79,
828,
39709,
26009,
13,
5662,
333,
7,
79,
828,
39709,
26009,
13,
16402,
335,
7,
79,
8,
198,
220,
220,
220,
410,
764,
28,
20007,
198,
220,
220,
220,
275,
764,
28,
352,
198,
220,
220,
220,
43720,
0,
7,
14751,
333,
8,
198,
220,
220,
220,
43720,
0,
7,
79,
727,
8,
198,
220,
220,
220,
279,
198,
437,
198,
1640,
299,
16663,
82,
287,
4808,
77,
16663,
82,
198,
220,
220,
220,
13558,
12709,
14692,
18,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
3,
77,
16663,
82,
14390,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
22930,
37861,
11813,
0,
7,
79,
8,
9058,
16193,
79,
28,
79,
18,
6381,
78,
16763,
77,
16663,
82,
11,
3,
7,
77,
62,
18,
35,
13,
89,
828,
3,
7,
77,
62,
18,
35,
13,
88,
828,
3,
7,
77,
62,
18,
35,
13,
87,
828,
3,
7,
46803,
62,
18,
35,
13,
89,
828,
3,
7,
46803,
62,
18,
35,
13,
88,
828,
3,
7,
46803,
62,
18,
35,
13,
87,
22305,
573,
446,
593,
16193,
5787,
7,
79,
4008,
4201,
28,
1314,
198,
437,
198,
198,
8818,
7032,
18,
6381,
78,
7,
79,
3712,
39709,
26009,
13,
24331,
18,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
8,
198,
220,
220,
220,
299,
89,
11,
3281,
11,
77,
87,
28,
7857,
7,
79,
8,
198,
220,
220,
220,
7377,
112,
76,
796,
360,
713,
7203,
85,
1,
14804,
25192,
7,
43879,
2624,
11,
27305,
11,
3281,
11,
77,
87,
4008,
198,
220,
220,
220,
7032,
796,
360,
713,
7203,
862,
10223,
1,
14804,
25192,
7,
43879,
2624,
11,
27305,
11,
3281,
11,
77,
87,
4008,
198,
220,
220,
220,
7377,
112,
76,
11,
25747,
198,
437,
198,
12564,
12709,
14692,
18,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
320,
3039,
4006,
11,
3210,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
41255,
1563,
28524,
17320,
388,
1741,
0,
7,
79,
11,
39709,
26009,
13,
24331,
18,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
62,
17633,
62,
53,
22784,
291,
11,
138,
112,
76,
11,
25747,
8,
9058,
16193,
79,
28,
79,
18,
6381,
78,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
11,
3,
7,
77,
62,
18,
35,
13,
89,
828,
3,
7,
77,
62,
18,
35,
13,
88,
828,
3,
7,
77,
62,
18,
35,
13,
87,
828,
3,
7,
46803,
62,
18,
35,
13,
89,
828,
3,
7,
46803,
62,
18,
35,
13,
88,
828,
3,
7,
46803,
62,
18,
35,
13,
87,
18125,
14158,
28,
39709,
26009,
13,
3546,
3039,
48362,
23615,
9783,
357,
138,
112,
76,
11,
25747,
47505,
25747,
18,
6381,
78,
7,
79,
4008,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
12564,
12709,
14692,
18,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
320,
3039,
4006,
11,
6769,
2214,
14139,
376,
36326,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
41255,
1563,
28524,
17320,
388,
1741,
0,
7,
79,
11,
39709,
26009,
13,
24331,
18,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
62,
17633,
62,
53,
22784,
291,
11,
138,
112,
76,
11,
25747,
8,
9058,
16193,
79,
28,
79,
18,
6381,
78,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
11,
3,
7,
77,
62,
18,
35,
13,
89,
828,
3,
7,
77,
62,
18,
35,
13,
88,
828,
3,
7,
77,
62,
18,
35,
13,
87,
828,
3,
7,
46803,
62,
18,
35,
13,
89,
828,
3,
7,
46803,
62,
18,
35,
13,
88,
828,
3,
7,
46803,
62,
18,
35,
13,
87,
18125,
14158,
28,
39709,
26009,
13,
3546,
3039,
48362,
39709,
15878,
19117,
10186,
24160,
40,
9783,
2124,
28,
9107,
418,
7,
43879,
2624,
11,
3,
7,
77,
62,
18,
35,
13,
89,
828,
3,
7,
77,
62,
18,
35,
13,
88,
828,
3,
7,
77,
62,
18,
35,
13,
87,
18125,
357,
138,
112,
76,
11,
25747,
47505,
25747,
18,
6381,
78,
7,
79,
4008,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
12564,
12709,
14692,
18,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
320,
3039,
4006,
11,
6769,
2214,
14139,
11923,
44,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
41255,
1563,
28524,
17320,
388,
1741,
0,
7,
79,
11,
39709,
26009,
13,
24331,
18,
5631,
1073,
40,
568,
21306,
48,
62,
35,
4720,
17,
62,
26009,
21016,
62,
17633,
62,
53,
22784,
291,
11,
138,
112,
76,
11,
25747,
8,
9058,
16193,
79,
28,
79,
18,
6381,
78,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
11,
3,
7,
77,
62,
18,
35,
13,
89,
828,
3,
7,
77,
62,
18,
35,
13,
88,
828,
3,
7,
77,
62,
18,
35,
13,
87,
828,
3,
7,
46803,
62,
18,
35,
13,
89,
828,
3,
7,
46803,
62,
18,
35,
13,
88,
828,
3,
7,
46803,
62,
18,
35,
13,
87,
18125,
14158,
28,
39709,
26009,
13,
3546,
3039,
48362,
39709,
15878,
19117,
10186,
14181,
44,
9783,
2124,
28,
9107,
418,
7,
43879,
2624,
11,
3,
7,
77,
62,
18,
35,
13,
89,
828,
3,
7,
77,
62,
18,
35,
13,
88,
828,
3,
7,
77,
62,
18,
35,
13,
87,
18125,
357,
138,
112,
76,
11,
25747,
47505,
25747,
18,
6381,
78,
7,
79,
4008,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
198,
12564,
12709,
14692,
18,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
8973,
796,
25187,
4102,
13247,
26933,
35,
713,
7203,
1198,
297,
82,
1,
14804,
77,
62,
18,
35,
13,
89,
9,
77,
62,
18,
35,
13,
88,
9,
77,
62,
18,
35,
13,
87,
553,
46803,
89,
1,
14804,
46803,
62,
18,
35,
13,
89,
553,
77,
1525,
1,
14804,
46803,
62,
18,
35,
13,
88,
553,
46803,
87,
1,
14804,
46803,
62,
18,
35,
13,
87,
553,
77,
16663,
82,
1,
14804,
62,
77,
16663,
82,
8,
12962,
198,
8818,
279,
18,
67,
85,
20259,
7,
77,
16663,
82,
11,
27305,
11,
3281,
11,
77,
87,
11,
46803,
89,
11,
77,
1525,
11,
46803,
87,
8,
198,
220,
220,
220,
279,
796,
17084,
26009,
13,
24331,
18,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
7,
69,
6037,
333,
2550,
28,
9562,
11,
299,
89,
28,
27305,
11,
299,
88,
28,
3281,
11,
299,
87,
28,
77,
87,
11,
299,
65,
89,
28,
46803,
89,
11,
299,
1525,
28,
77,
1525,
11,
299,
65,
87,
28,
46803,
87,
11,
288,
89,
28,
940,
13,
15,
11,
20268,
28,
940,
13,
15,
11,
44332,
28,
940,
13,
15,
11,
288,
83,
28,
15,
13,
8298,
11,
299,
16663,
82,
28,
77,
16663,
82,
8,
198,
220,
220,
220,
410,
11,
65,
11,
139,
113,
11,
138,
115,
11,
69,
11,
14751,
333,
11,
79,
727,
796,
17084,
26009,
13,
53,
7,
79,
828,
39709,
26009,
13,
33,
7,
79,
828,
39709,
26009,
13,
36,
862,
7,
79,
828,
39709,
26009,
13,
36,
8326,
7,
79,
828,
39709,
26009,
13,
37,
7,
79,
828,
39709,
26009,
13,
5662,
333,
7,
79,
828,
39709,
26009,
13,
16402,
335,
7,
79,
8,
198,
220,
220,
220,
43720,
0,
7,
14751,
333,
8,
198,
220,
220,
220,
43720,
0,
7,
79,
727,
8,
198,
220,
220,
220,
410,
764,
28,
20007,
198,
220,
220,
220,
275,
764,
28,
352,
198,
220,
220,
220,
18074,
113,
764,
28,
657,
13,
17,
198,
220,
220,
220,
7377,
115,
764,
28,
657,
13,
15,
198,
220,
220,
220,
277,
764,
28,
657,
13,
5332,
198,
220,
220,
220,
279,
198,
437,
198,
1640,
299,
16663,
82,
287,
4808,
77,
16663,
82,
198,
220,
220,
220,
13558,
12709,
14692,
18,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
3,
77,
16663,
82,
14390,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
22930,
37861,
11813,
0,
7,
79,
8,
9058,
16193,
79,
28,
79,
18,
67,
85,
20259,
16763,
77,
16663,
82,
11,
3,
7,
77,
62,
18,
35,
13,
89,
828,
3,
7,
77,
62,
18,
35,
13,
88,
828,
3,
7,
77,
62,
18,
35,
13,
87,
828,
3,
7,
46803,
62,
18,
35,
13,
89,
828,
3,
7,
46803,
62,
18,
35,
13,
88,
828,
3,
7,
46803,
62,
18,
35,
13,
87,
22305,
573,
446,
593,
16193,
5787,
7,
79,
4008,
4201,
28,
1314,
198,
437,
198,
198,
8818,
7032,
18,
67,
85,
20259,
7,
79,
3712,
39709,
26009,
13,
24331,
18,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
8,
198,
220,
220,
220,
299,
89,
11,
3281,
11,
77,
87,
28,
7857,
7,
79,
8,
198,
220,
220,
220,
7377,
112,
76,
796,
360,
713,
7203,
85,
1,
14804,
25192,
7,
43879,
2624,
11,
27305,
11,
3281,
11,
77,
87,
4008,
198,
220,
220,
220,
7032,
796,
360,
713,
7203,
862,
10223,
1,
14804,
25192,
7,
43879,
2624,
11,
27305,
11,
3281,
11,
77,
87,
27267,
907,
10223,
1,
14804,
25192,
7,
43879,
2624,
11,
27305,
11,
3281,
11,
77,
87,
4008,
198,
220,
220,
220,
7377,
112,
76,
11,
25747,
198,
437,
198,
12564,
12709,
14692,
18,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
320,
3039,
4006,
11,
3210,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
41255,
1563,
28524,
17320,
388,
1741,
0,
7,
79,
11,
39709,
26009,
13,
24331,
18,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
62,
17633,
62,
53,
22784,
291,
11,
138,
112,
76,
11,
25747,
8,
9058,
16193,
79,
28,
79,
18,
67,
85,
20259,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
11,
3,
7,
77,
62,
18,
35,
13,
89,
828,
3,
7,
77,
62,
18,
35,
13,
88,
828,
3,
7,
77,
62,
18,
35,
13,
87,
828,
3,
7,
46803,
62,
18,
35,
13,
89,
828,
3,
7,
46803,
62,
18,
35,
13,
88,
828,
3,
7,
46803,
62,
18,
35,
13,
87,
18125,
14158,
28,
39709,
26009,
13,
3546,
3039,
48362,
23615,
9783,
357,
138,
112,
76,
11,
25747,
47505,
25747,
18,
67,
85,
20259,
7,
79,
4008,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
12564,
12709,
14692,
18,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
320,
3039,
4006,
11,
6769,
2214,
14139,
376,
36326,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
41255,
1563,
28524,
17320,
388,
1741,
0,
7,
79,
11,
39709,
26009,
13,
24331,
18,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
62,
17633,
62,
53,
22784,
291,
11,
138,
112,
76,
11,
25747,
8,
9058,
16193,
79,
28,
79,
18,
67,
85,
20259,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
11,
3,
7,
77,
62,
18,
35,
13,
89,
828,
3,
7,
77,
62,
18,
35,
13,
88,
828,
3,
7,
77,
62,
18,
35,
13,
87,
828,
3,
7,
46803,
62,
18,
35,
13,
89,
828,
3,
7,
46803,
62,
18,
35,
13,
88,
828,
3,
7,
46803,
62,
18,
35,
13,
87,
18125,
14158,
28,
39709,
26009,
13,
3546,
3039,
48362,
39709,
15878,
19117,
10186,
24160,
40,
9783,
357,
138,
112,
76,
11,
25747,
47505,
25747,
18,
67,
85,
20259,
7,
79,
4008,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
12564,
12709,
14692,
18,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
320,
3039,
4006,
11,
6769,
2214,
14139,
11923,
44,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
41255,
1563,
28524,
17320,
388,
1741,
0,
7,
79,
11,
39709,
26009,
13,
24331,
18,
5631,
1073,
36392,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
62,
17633,
62,
53,
22784,
291,
11,
138,
112,
76,
11,
25747,
8,
9058,
16193,
79,
28,
79,
18,
67,
85,
20259,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
11,
3,
7,
77,
62,
18,
35,
13,
89,
828,
3,
7,
77,
62,
18,
35,
13,
88,
828,
3,
7,
77,
62,
18,
35,
13,
87,
828,
3,
7,
46803,
62,
18,
35,
13,
89,
828,
3,
7,
46803,
62,
18,
35,
13,
88,
828,
3,
7,
46803,
62,
18,
35,
13,
87,
18125,
14158,
28,
39709,
26009,
13,
3546,
3039,
48362,
39709,
15878,
19117,
10186,
14181,
44,
9783,
357,
138,
112,
76,
11,
25747,
47505,
25747,
18,
67,
85,
20259,
7,
79,
4008,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
198,
12564,
12709,
14692,
18,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
8973,
796,
25187,
4102,
13247,
26933,
35,
713,
7203,
1198,
297,
82,
1,
14804,
77,
62,
18,
35,
13,
89,
9,
77,
62,
18,
35,
13,
88,
9,
77,
62,
18,
35,
13,
87,
553,
46803,
89,
1,
14804,
46803,
62,
18,
35,
13,
89,
553,
77,
1525,
1,
14804,
46803,
62,
18,
35,
13,
88,
553,
46803,
87,
1,
14804,
46803,
62,
18,
35,
13,
87,
553,
77,
16663,
82,
1,
14804,
62,
77,
16663,
82,
8,
12962,
198,
8818,
279,
18,
67,
35671,
7,
77,
16663,
82,
11,
27305,
11,
3281,
11,
77,
87,
11,
46803,
89,
11,
77,
1525,
11,
46803,
87,
8,
198,
220,
220,
220,
279,
796,
17084,
26009,
13,
24331,
18,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
7,
69,
6037,
333,
2550,
28,
9562,
11,
299,
89,
28,
27305,
11,
299,
88,
28,
3281,
11,
299,
87,
28,
77,
87,
11,
299,
65,
89,
28,
46803,
89,
11,
299,
1525,
28,
77,
1525,
11,
299,
65,
87,
28,
46803,
87,
11,
288,
89,
28,
940,
13,
15,
11,
44332,
28,
940,
13,
15,
11,
288,
83,
28,
15,
13,
8298,
11,
299,
16663,
82,
28,
77,
16663,
82,
8,
198,
220,
220,
220,
410,
11,
65,
11,
139,
113,
11,
138,
115,
11,
69,
11,
31369,
138,
116,
11,
6966,
138,
116,
11,
31369,
139,
243,
11,
6966,
139,
243,
11,
14751,
333,
11,
79,
727,
796,
17084,
26009,
13,
53,
7,
79,
828,
39709,
26009,
13,
33,
7,
79,
828,
39709,
26009,
13,
36,
862,
7,
79,
828,
39709,
26009,
13,
36,
8326,
7,
79,
828,
39709,
26009,
13,
37,
7,
79,
828,
39709,
26009,
13,
46200,
464,
8326,
7,
79,
828,
39709,
26009,
13,
36734,
464,
8326,
7,
79,
828,
39709,
26009,
13,
46200,
2725,
72,
7,
79,
828,
39709,
26009,
13,
36734,
2725,
72,
7,
79,
828,
39709,
26009,
13,
5662,
333,
7,
79,
828,
39709,
26009,
13,
16402,
335,
7,
79,
8,
198,
220,
220,
220,
410,
764,
28,
20007,
198,
220,
220,
220,
275,
764,
28,
352,
198,
220,
220,
220,
18074,
113,
764,
28,
657,
13,
17,
198,
220,
220,
220,
7377,
115,
764,
28,
657,
13,
15,
198,
220,
220,
220,
277,
764,
28,
657,
13,
5332,
198,
220,
220,
220,
8615,
138,
116,
764,
28,
8615,
7,
14415,
14,
19,
8,
198,
220,
220,
220,
7813,
138,
116,
764,
28,
7813,
7,
14415,
14,
19,
8,
198,
220,
220,
220,
8615,
139,
243,
764,
28,
8615,
7,
14415,
14,
23,
8,
198,
220,
220,
220,
7813,
139,
243,
764,
28,
7813,
7,
14415,
14,
23,
8,
198,
220,
220,
220,
43720,
0,
7,
14751,
333,
8,
198,
220,
220,
220,
43720,
0,
7,
79,
727,
8,
198,
220,
220,
220,
279,
198,
437,
198,
1640,
299,
16663,
82,
287,
4808,
77,
16663,
82,
198,
220,
220,
220,
13558,
12709,
14692,
18,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
3,
77,
16663,
82,
14390,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
22930,
37861,
11813,
0,
7,
79,
8,
9058,
16193,
79,
28,
79,
18,
67,
35671,
16763,
77,
16663,
82,
11,
3,
7,
77,
62,
18,
35,
13,
89,
828,
3,
7,
77,
62,
18,
35,
13,
88,
828,
3,
7,
77,
62,
18,
35,
13,
87,
828,
3,
7,
46803,
62,
18,
35,
13,
89,
828,
3,
7,
46803,
62,
18,
35,
13,
88,
828,
3,
7,
46803,
62,
18,
35,
13,
87,
22305,
573,
446,
593,
16193,
5787,
7,
79,
4008,
4201,
28,
1314,
198,
437,
198,
198,
8818,
7032,
18,
67,
35671,
7,
79,
3712,
39709,
26009,
13,
24331,
18,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
8,
198,
220,
220,
220,
299,
89,
11,
3281,
11,
77,
87,
796,
2546,
7,
79,
8,
198,
220,
220,
220,
7377,
112,
76,
796,
360,
713,
7203,
85,
1,
14804,
25192,
7,
43879,
2624,
11,
27305,
11,
3281,
11,
77,
87,
4008,
198,
220,
220,
220,
7032,
796,
360,
713,
7203,
862,
10223,
1,
14804,
25192,
7,
43879,
2624,
11,
27305,
11,
3281,
11,
77,
87,
27267,
907,
10223,
1,
14804,
25192,
7,
43879,
2624,
11,
27305,
11,
3281,
11,
77,
87,
4008,
198,
220,
220,
220,
7377,
112,
76,
11,
25747,
198,
437,
198,
12564,
12709,
14692,
18,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
320,
3039,
4006,
11,
3210,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
41255,
1563,
28524,
17320,
388,
1741,
0,
7,
79,
11,
39709,
26009,
13,
24331,
18,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
62,
17633,
62,
53,
22784,
291,
11,
138,
112,
76,
11,
25747,
8,
9058,
16193,
79,
28,
79,
18,
67,
35671,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
11,
3,
7,
77,
62,
18,
35,
13,
89,
828,
3,
7,
77,
62,
18,
35,
13,
88,
828,
3,
7,
77,
62,
18,
35,
13,
87,
828,
3,
7,
46803,
62,
18,
35,
13,
89,
828,
3,
7,
46803,
62,
18,
35,
13,
88,
828,
3,
7,
46803,
62,
18,
35,
13,
87,
18125,
14158,
28,
39709,
26009,
13,
3546,
3039,
48362,
23615,
9783,
357,
138,
112,
76,
11,
25747,
47505,
25747,
18,
67,
35671,
7,
79,
4008,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
12564,
12709,
14692,
18,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
320,
3039,
4006,
11,
6769,
2214,
14139,
376,
36326,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
41255,
1563,
28524,
17320,
388,
1741,
0,
7,
79,
11,
39709,
26009,
13,
24331,
18,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
62,
17633,
62,
53,
22784,
291,
11,
138,
112,
76,
11,
25747,
8,
9058,
16193,
79,
28,
79,
18,
67,
35671,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
11,
3,
7,
77,
62,
18,
35,
13,
89,
828,
3,
7,
77,
62,
18,
35,
13,
88,
828,
3,
7,
77,
62,
18,
35,
13,
87,
828,
3,
7,
46803,
62,
18,
35,
13,
89,
828,
3,
7,
46803,
62,
18,
35,
13,
88,
828,
3,
7,
46803,
62,
18,
35,
13,
87,
18125,
14158,
28,
39709,
26009,
13,
3546,
3039,
48362,
39709,
15878,
19117,
10186,
24160,
40,
9783,
357,
138,
112,
76,
11,
25747,
47505,
25747,
18,
67,
35671,
7,
79,
4008,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
12564,
12709,
14692,
18,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
1,
7131,
1,
320,
3039,
4006,
11,
6769,
2214,
14139,
11923,
44,
8973,
796,
2488,
26968,
4102,
540,
17084,
26009,
13,
41255,
1563,
28524,
17320,
388,
1741,
0,
7,
79,
11,
39709,
26009,
13,
24331,
18,
5631,
1073,
15751,
2389,
268,
48,
62,
35,
4720,
17,
62,
26009,
21016,
62,
17633,
62,
53,
22784,
291,
11,
138,
112,
76,
11,
25747,
8,
9058,
16193,
79,
28,
79,
18,
67,
35671,
7,
44387,
13,
36037,
62,
4221,
15675,
50,
11,
3,
7,
77,
62,
18,
35,
13,
89,
828,
3,
7,
77,
62,
18,
35,
13,
88,
828,
3,
7,
77,
62,
18,
35,
13,
87,
828,
3,
7,
46803,
62,
18,
35,
13,
89,
828,
3,
7,
46803,
62,
18,
35,
13,
88,
828,
3,
7,
46803,
62,
18,
35,
13,
87,
18125,
14158,
28,
39709,
26009,
13,
3546,
3039,
48362,
39709,
15878,
19117,
10186,
14181,
44,
9783,
357,
138,
112,
76,
11,
25747,
47505,
25747,
18,
67,
35671,
7,
79,
4008,
573,
446,
593,
16193,
5787,
7,
79,
4008,
198,
198,
17256,
7,
22179,
6978,
7,
35339,
15908,
7,
39709,
26009,
828,
366,
26968,
4102,
1600,
366,
76,
46342,
62,
525,
62,
12227,
13,
20362,
48774,
198,
198,
12564,
12709
] | 1.962705 | 9,331 |
const Theme = Attributes
Base.broadcastable(x::AbstractScene) = Ref(x)
Base.broadcastable(x::AbstractPlot) = Ref(x)
Base.broadcastable(x::Attributes) = Ref(x)
# The rules that we use to convert values to a Observable in Attributes
value_convert(x::Observables.AbstractObservable) = Observables.observe(x)
value_convert(@nospecialize(x)) = x
# We transform a tuple of observables into a Observable(tuple(values...))
function value_convert(x::NTuple{N, Union{Any, Observables.AbstractObservable}}) where N
result = Observable(to_value.(x))
onany((args...)-> args, x...)
return result
end
value_convert(x::NamedTuple) = Attributes(x)
# Version of `convert(Observable{Any}, obj)` that doesn't require runtime dispatch
node_any(@nospecialize(obj)) = isa(obj, Observable{Any}) ? obj :
isa(obj, Observable) ? convert(Observable{Any}, obj) : Observable{Any}(obj)
node_pairs(pair::Union{Pair, Tuple{Any, Any}}) = (pair[1] => node_any(value_convert(pair[2])))
node_pairs(pairs) = (node_pairs(pair) for pair in pairs)
Attributes(; kw_args...) = Attributes(Dict{Symbol, Observable}(node_pairs(kw_args)))
Attributes(pairs::Pair...) = Attributes(Dict{Symbol, Observable}(node_pairs(pairs)))
Attributes(pairs::AbstractVector) = Attributes(Dict{Symbol, Observable}(node_pairs.(pairs)))
Attributes(pairs::Iterators.Pairs) = Attributes(collect(pairs))
Attributes(nt::NamedTuple) = Attributes(; nt...)
attributes(x::Attributes) = getfield(x, :attributes)
Base.keys(x::Attributes) = keys(x.attributes)
Base.values(x::Attributes) = values(x.attributes)
function Base.iterate(x::Attributes, state...)
s = iterate(keys(x), state...)
s === nothing && return nothing
return (s[1] => x[s[1]], s[2])
end
function Base.copy(attributes::Attributes)
result = Attributes()
for (k, v) in attributes
# We need to create a new Signal to have a real copy
result[k] = copy(v)
end
return result
end
function Base.deepcopy(obs::Observable)
return Observable{Any}(to_value(obs))
end
function Base.deepcopy(attributes::Attributes)
result = Attributes()
for (k, v) in attributes
# We need to create a new Signal to have a real copy
result[k] = deepcopy(v)
end
return result
end
Base.filter(f, x::Attributes) = Attributes(filter(f, attributes(x)))
Base.empty!(x::Attributes) = (empty!(attributes(x)); x)
Base.length(x::Attributes) = length(attributes(x))
function Base.merge!(target::Attributes, args::Attributes...)
for elem in args
merge_attributes!(target, elem)
end
return target
end
Base.merge(target::Attributes, args::Attributes...) = merge!(copy(target), args...)
@generated hasfield(x::T, ::Val{key}) where {T, key} = :($(key in fieldnames(T)))
@inline function Base.getproperty(x::T, key::Symbol) where T <: Union{Attributes, Transformable}
if hasfield(x, Val(key))
getfield(x, key)
else
getindex(x, key)
end
end
@inline function Base.setproperty!(x::T, key::Symbol, value) where T <: Union{Attributes, Transformable}
if hasfield(x, Val(key))
setfield!(x, key, value)
else
setindex!(x, value, key)
end
end
function Base.getindex(x::Attributes, key::Symbol)
x = attributes(x)[key]
# We unpack Attributes, even though, for consistency, we store them as nodes
# this makes it easier to create nested attributes
return x[] isa Attributes ? x[] : x
end
function Base.setindex!(x::Attributes, value, key::Symbol)
if haskey(x, key)
x.attributes[key][] = value
else
x.attributes[key] = node_any(value)
end
end
function Base.setindex!(x::Attributes, value::Observable, key::Symbol)
if haskey(x, key)
# error("You're trying to update an attribute Observable with a new Observable. This is not supported right now.
# You can do this manually like this:
# lift(val-> attributes[$key] = val, Observable::$(typeof(value)))
# ")
return x.attributes[key] = node_any(value)
else
#TODO make this error. Attributes should be sort of immutable
return x.attributes[key] = node_any(value)
end
return x
end
_indent_attrs(s, n) = join(split(s, '\n'), "\n" * " "^n)
function Base.show(io::IO,::MIME"text/plain", attr::Attributes)
io = IOContext(io, :compact => true)
d = Dict()
print(io, """Attributes with $(length(attr)) $(length(attr) != 1 ? "entries" : "entry")""")
if length(attr) < 1
return
end
print(io, ":")
ks = sort(collect(keys(attr)), by = lowercase ∘ String)
maxlength = maximum(length ∘ String, ks)
for k in ks
print(io, "\n ")
print(io, k)
print(io, " => ")
v = to_value(attr[k])
if v isa Attributes
print(io, _indent_attrs(repr(v), 2))
else
print(io, to_value(attr[k]))
end
end
end
Base.show(io::IO, attr::Attributes) = show(io, MIME"text/plain"(), attr)
theme(x::AbstractPlot) = x.attributes
isvisible(x) = haskey(x, :visible) && to_value(x[:visible])
#dict interface
const AttributeOrPlot = Union{AbstractPlot, Attributes}
Base.pop!(x::AttributeOrPlot, args...) = pop!(x.attributes, args...)
Base.haskey(x::AttributeOrPlot, key) = haskey(x.attributes, key)
Base.delete!(x::AttributeOrPlot, key) = delete!(x.attributes, key)
function Base.get!(f::Function, x::AttributeOrPlot, key::Symbol)
if haskey(x, key)
return x[key]
else
val = f()
x[key] = val
return x[key]
end
end
Base.get!(x::AttributeOrPlot, key::Symbol, default) = get!(()-> default, x, key)
Base.get(f::Function, x::AttributeOrPlot, key::Symbol) = haskey(x, key) ? x[key] : f()
Base.get(x::AttributeOrPlot, key::Symbol, default) = get(()-> default, x, key)
# This is a bit confusing, since for a plot it returns the attribute from the arguments
# and not a plot for integer indexing. But, we want to treat plots as "atomic"
# so from an interface point of view, one should assume that a plot doesn't contain subplots
# Combined plots break this assumption in some way, but the way to look at it is,
# that the plots contained in a Combined plot are not subplots, but _are_ actually
# the plot itself.
Base.getindex(plot::AbstractPlot, idx::Integer) = plot.converted[idx]
Base.getindex(plot::AbstractPlot, idx::UnitRange{<:Integer}) = plot.converted[idx]
Base.setindex!(plot::AbstractPlot, value, idx::Integer) = (plot.input_args[idx][] = value)
Base.length(plot::AbstractPlot) = length(plot.converted)
function Base.getindex(x::AbstractPlot, key::Symbol)
argnames = argument_names(typeof(x), length(x.converted))
idx = findfirst(isequal(key), argnames)
if idx === nothing
return x.attributes[key]
else
x.converted[idx]
end
end
function Base.getindex(x::AttributeOrPlot, key::Symbol, key2::Symbol, rest::Symbol...)
dict = to_value(x[key])
dict isa Attributes || error("Trying to access $(typeof(dict)) with multiple keys: $key, $key2, $(rest)")
dict[key2, rest...]
end
function Base.setindex!(x::AttributeOrPlot, value, key::Symbol, key2::Symbol, rest::Symbol...)
dict = to_value(x[key])
dict isa Attributes || error("Trying to access $(typeof(dict)) with multiple keys: $key, $key2, $(rest)")
dict[key2, rest...] = value
end
function Base.setindex!(x::AbstractPlot, value, key::Symbol)
argnames = argument_names(typeof(x), length(x.converted))
idx = findfirst(isequal(key), argnames)
if idx === nothing && haskey(x.attributes, key)
return x.attributes[key][] = value
elseif !haskey(x.attributes, key)
x.attributes[key] = convert(Observable, value)
else
return setindex!(x.converted[idx], value)
end
end
function Base.setindex!(x::AbstractPlot, value::Observable, key::Symbol)
argnames = argument_names(typeof(x), length(x.converted))
idx = findfirst(isequal(key), argnames)
if idx === nothing
if haskey(x, key)
# error("You're trying to update an attribute Observable with a new Observable. This is not supported right now.
# You can do this manually like this:
# lift(val-> attributes[$key] = val, Observable::$(typeof(value)))
# ")
return x.attributes[key] = value
else
return x.attributes[key] = value
end
else
return setindex!(x.converted[idx], value)
end
end
# a few shortcut functions to make attribute conversion easier
function get_attribute(dict, key)
convert_attribute(to_value(dict[key]), Key{key}())
end
function merge_attributes!(input::Attributes, theme::Attributes)
for (key, value) in theme
if !haskey(input, key)
input[key] = copy(value)
else
current_value = input[key]
if value isa Attributes && current_value isa Attributes
# if nested attribute, we merge recursively
merge_attributes!(current_value, value)
elseif value isa Attributes || current_value isa Attributes
error("""
Type missmatch while merging plot attributes with theme for key: $(key).
Found $(value) in theme, while attributes contains: $(current_value)
""")
else
# we're good! input already has a value, can ignore theme
end
end
end
return input
end
| [
198,
9979,
26729,
796,
49213,
198,
198,
14881,
13,
36654,
2701,
540,
7,
87,
3712,
23839,
36542,
8,
796,
6524,
7,
87,
8,
198,
14881,
13,
36654,
2701,
540,
7,
87,
3712,
23839,
43328,
8,
796,
6524,
7,
87,
8,
198,
14881,
13,
36654,
2701,
540,
7,
87,
3712,
29021,
8,
796,
6524,
7,
87,
8,
198,
198,
2,
383,
3173,
326,
356,
779,
284,
10385,
3815,
284,
257,
19243,
540,
287,
49213,
198,
8367,
62,
1102,
1851,
7,
87,
3712,
31310,
712,
2977,
13,
23839,
31310,
712,
540,
8,
796,
19243,
2977,
13,
672,
2655,
303,
7,
87,
8,
198,
8367,
62,
1102,
1851,
7,
31,
39369,
431,
2413,
1096,
7,
87,
4008,
796,
2124,
198,
198,
2,
775,
6121,
257,
46545,
286,
3799,
2977,
656,
257,
19243,
540,
7,
83,
29291,
7,
27160,
986,
4008,
198,
8818,
1988,
62,
1102,
1851,
7,
87,
3712,
11251,
29291,
90,
45,
11,
4479,
90,
7149,
11,
19243,
2977,
13,
23839,
31310,
712,
540,
11709,
8,
810,
399,
198,
220,
220,
220,
1255,
796,
19243,
540,
7,
1462,
62,
8367,
12195,
87,
4008,
198,
220,
220,
220,
319,
1092,
19510,
22046,
23029,
3784,
26498,
11,
2124,
23029,
198,
220,
220,
220,
1441,
1255,
198,
437,
198,
198,
8367,
62,
1102,
1851,
7,
87,
3712,
45,
2434,
51,
29291,
8,
796,
49213,
7,
87,
8,
198,
198,
2,
10628,
286,
4600,
1102,
1851,
7,
31310,
712,
540,
90,
7149,
5512,
26181,
8,
63,
326,
1595,
470,
2421,
19124,
27965,
198,
17440,
62,
1092,
7,
31,
39369,
431,
2413,
1096,
7,
26801,
4008,
796,
318,
64,
7,
26801,
11,
19243,
540,
90,
7149,
30072,
5633,
26181,
1058,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
64,
7,
26801,
11,
19243,
540,
8,
5633,
10385,
7,
31310,
712,
540,
90,
7149,
5512,
26181,
8,
1058,
19243,
540,
90,
7149,
92,
7,
26801,
8,
198,
198,
17440,
62,
79,
3468,
7,
24874,
3712,
38176,
90,
47,
958,
11,
309,
29291,
90,
7149,
11,
4377,
11709,
8,
796,
357,
24874,
58,
16,
60,
5218,
10139,
62,
1092,
7,
8367,
62,
1102,
1851,
7,
24874,
58,
17,
60,
22305,
198,
17440,
62,
79,
3468,
7,
79,
3468,
8,
796,
357,
17440,
62,
79,
3468,
7,
24874,
8,
329,
5166,
287,
14729,
8,
198,
198,
29021,
7,
26,
479,
86,
62,
22046,
23029,
796,
49213,
7,
35,
713,
90,
13940,
23650,
11,
19243,
540,
92,
7,
17440,
62,
79,
3468,
7,
46265,
62,
22046,
22305,
198,
29021,
7,
79,
3468,
3712,
47,
958,
23029,
796,
49213,
7,
35,
713,
90,
13940,
23650,
11,
19243,
540,
92,
7,
17440,
62,
79,
3468,
7,
79,
3468,
22305,
198,
29021,
7,
79,
3468,
3712,
23839,
38469,
8,
796,
49213,
7,
35,
713,
90,
13940,
23650,
11,
19243,
540,
92,
7,
17440,
62,
79,
3468,
12195,
79,
3468,
22305,
198,
29021,
7,
79,
3468,
3712,
29993,
2024,
13,
47,
3468,
8,
796,
49213,
7,
33327,
7,
79,
3468,
4008,
198,
29021,
7,
429,
3712,
45,
2434,
51,
29291,
8,
796,
49213,
7,
26,
299,
83,
23029,
198,
1078,
7657,
7,
87,
3712,
29021,
8,
796,
651,
3245,
7,
87,
11,
1058,
1078,
7657,
8,
198,
14881,
13,
13083,
7,
87,
3712,
29021,
8,
796,
8251,
7,
87,
13,
1078,
7657,
8,
198,
14881,
13,
27160,
7,
87,
3712,
29021,
8,
796,
3815,
7,
87,
13,
1078,
7657,
8,
198,
8818,
7308,
13,
2676,
378,
7,
87,
3712,
29021,
11,
1181,
23029,
198,
220,
220,
220,
264,
796,
11629,
378,
7,
13083,
7,
87,
828,
1181,
23029,
198,
220,
220,
220,
264,
24844,
2147,
11405,
1441,
2147,
198,
220,
220,
220,
1441,
357,
82,
58,
16,
60,
5218,
2124,
58,
82,
58,
16,
60,
4357,
264,
58,
17,
12962,
198,
437,
198,
198,
8818,
7308,
13,
30073,
7,
1078,
7657,
3712,
29021,
8,
198,
220,
220,
220,
1255,
796,
49213,
3419,
198,
220,
220,
220,
329,
357,
74,
11,
410,
8,
287,
12608,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
775,
761,
284,
2251,
257,
649,
26484,
284,
423,
257,
1103,
4866,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
58,
74,
60,
796,
4866,
7,
85,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
1255,
198,
437,
198,
198,
8818,
7308,
13,
22089,
30073,
7,
8158,
3712,
31310,
712,
540,
8,
198,
220,
220,
220,
1441,
19243,
540,
90,
7149,
92,
7,
1462,
62,
8367,
7,
8158,
4008,
198,
437,
198,
198,
8818,
7308,
13,
22089,
30073,
7,
1078,
7657,
3712,
29021,
8,
198,
220,
220,
220,
1255,
796,
49213,
3419,
198,
220,
220,
220,
329,
357,
74,
11,
410,
8,
287,
12608,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
775,
761,
284,
2251,
257,
649,
26484,
284,
423,
257,
1103,
4866,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
58,
74,
60,
796,
2769,
30073,
7,
85,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
1255,
198,
437,
198,
198,
14881,
13,
24455,
7,
69,
11,
2124,
3712,
29021,
8,
796,
49213,
7,
24455,
7,
69,
11,
12608,
7,
87,
22305,
198,
14881,
13,
28920,
0,
7,
87,
3712,
29021,
8,
796,
357,
28920,
0,
7,
1078,
7657,
7,
87,
18125,
2124,
8,
198,
14881,
13,
13664,
7,
87,
3712,
29021,
8,
796,
4129,
7,
1078,
7657,
7,
87,
4008,
198,
198,
8818,
7308,
13,
647,
469,
0,
7,
16793,
3712,
29021,
11,
26498,
3712,
29021,
23029,
198,
220,
220,
220,
329,
9766,
76,
287,
26498,
198,
220,
220,
220,
220,
220,
220,
220,
20121,
62,
1078,
7657,
0,
7,
16793,
11,
9766,
76,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
2496,
198,
437,
198,
198,
14881,
13,
647,
469,
7,
16793,
3712,
29021,
11,
26498,
3712,
29021,
23029,
796,
20121,
0,
7,
30073,
7,
16793,
828,
26498,
23029,
198,
198,
31,
27568,
468,
3245,
7,
87,
3712,
51,
11,
7904,
7762,
90,
2539,
30072,
810,
1391,
51,
11,
1994,
92,
796,
1058,
16763,
7,
2539,
287,
2214,
14933,
7,
51,
22305,
198,
198,
31,
45145,
2163,
7308,
13,
1136,
26745,
7,
87,
3712,
51,
11,
1994,
3712,
13940,
23650,
8,
810,
309,
1279,
25,
4479,
90,
29021,
11,
26981,
540,
92,
198,
220,
220,
220,
611,
468,
3245,
7,
87,
11,
3254,
7,
2539,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
651,
3245,
7,
87,
11,
1994,
8,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
651,
9630,
7,
87,
11,
1994,
8,
198,
220,
220,
220,
886,
198,
437,
198,
198,
31,
45145,
2163,
7308,
13,
2617,
26745,
0,
7,
87,
3712,
51,
11,
1994,
3712,
13940,
23650,
11,
1988,
8,
810,
309,
1279,
25,
4479,
90,
29021,
11,
26981,
540,
92,
198,
220,
220,
220,
611,
468,
3245,
7,
87,
11,
3254,
7,
2539,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
900,
3245,
0,
7,
87,
11,
1994,
11,
1988,
8,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
900,
9630,
0,
7,
87,
11,
1988,
11,
1994,
8,
198,
220,
220,
220,
886,
198,
437,
198,
198,
8818,
7308,
13,
1136,
9630,
7,
87,
3712,
29021,
11,
1994,
3712,
13940,
23650,
8,
198,
220,
220,
220,
2124,
796,
12608,
7,
87,
38381,
2539,
60,
198,
220,
220,
220,
1303,
775,
555,
8002,
49213,
11,
772,
996,
11,
329,
15794,
11,
356,
3650,
606,
355,
13760,
198,
220,
220,
220,
1303,
428,
1838,
340,
4577,
284,
2251,
28376,
12608,
198,
220,
220,
220,
1441,
2124,
21737,
318,
64,
49213,
5633,
2124,
21737,
1058,
2124,
198,
437,
198,
198,
8818,
7308,
13,
2617,
9630,
0,
7,
87,
3712,
29021,
11,
1988,
11,
1994,
3712,
13940,
23650,
8,
198,
220,
220,
220,
611,
468,
2539,
7,
87,
11,
1994,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
13,
1078,
7657,
58,
2539,
7131,
60,
796,
1988,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
13,
1078,
7657,
58,
2539,
60,
796,
10139,
62,
1092,
7,
8367,
8,
198,
220,
220,
220,
886,
198,
437,
198,
198,
8818,
7308,
13,
2617,
9630,
0,
7,
87,
3712,
29021,
11,
1988,
3712,
31310,
712,
540,
11,
1994,
3712,
13940,
23650,
8,
198,
220,
220,
220,
611,
468,
2539,
7,
87,
11,
1994,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4049,
7203,
1639,
821,
2111,
284,
4296,
281,
11688,
19243,
540,
351,
257,
649,
19243,
540,
13,
770,
318,
407,
4855,
826,
783,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
921,
460,
466,
428,
14500,
588,
428,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
10303,
7,
2100,
3784,
12608,
58,
3,
2539,
60,
796,
1188,
11,
19243,
540,
3712,
3,
7,
4906,
1659,
7,
8367,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
13,
1078,
7657,
58,
2539,
60,
796,
10139,
62,
1092,
7,
8367,
8,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
51,
3727,
46,
787,
428,
4049,
13,
49213,
815,
307,
3297,
286,
40139,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
13,
1078,
7657,
58,
2539,
60,
796,
10139,
62,
1092,
7,
8367,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
2124,
198,
437,
198,
198,
62,
521,
298,
62,
1078,
3808,
7,
82,
11,
299,
8,
796,
4654,
7,
35312,
7,
82,
11,
705,
59,
77,
33809,
37082,
77,
1,
1635,
366,
366,
61,
77,
8,
198,
198,
8818,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
3712,
44,
12789,
1,
5239,
14,
25638,
1600,
708,
81,
3712,
29021,
8,
628,
220,
220,
220,
33245,
796,
24418,
21947,
7,
952,
11,
1058,
5589,
529,
5218,
2081,
8,
628,
220,
220,
220,
288,
796,
360,
713,
3419,
198,
220,
220,
220,
3601,
7,
952,
11,
37227,
29021,
351,
29568,
13664,
7,
35226,
4008,
29568,
13664,
7,
35226,
8,
14512,
352,
5633,
366,
298,
1678,
1,
1058,
366,
13000,
4943,
15931,
4943,
628,
220,
220,
220,
611,
4129,
7,
35226,
8,
1279,
352,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
198,
220,
220,
220,
886,
628,
220,
220,
220,
3601,
7,
952,
11,
366,
25,
4943,
628,
220,
220,
220,
479,
82,
796,
3297,
7,
33327,
7,
13083,
7,
35226,
36911,
416,
796,
2793,
7442,
18872,
246,
10903,
8,
198,
220,
220,
220,
3509,
13664,
796,
5415,
7,
13664,
18872,
246,
10903,
11,
479,
82,
8,
628,
220,
220,
220,
329,
479,
287,
479,
82,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
952,
11,
37082,
77,
220,
366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
952,
11,
479,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
952,
11,
366,
5218,
366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
410,
796,
284,
62,
8367,
7,
35226,
58,
74,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
611,
410,
318,
64,
49213,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
952,
11,
4808,
521,
298,
62,
1078,
3808,
7,
260,
1050,
7,
85,
828,
362,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
952,
11,
284,
62,
8367,
7,
35226,
58,
74,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
437,
198,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
708,
81,
3712,
29021,
8,
796,
905,
7,
952,
11,
337,
12789,
1,
5239,
14,
25638,
18109,
828,
708,
81,
8,
198,
43810,
7,
87,
3712,
23839,
43328,
8,
796,
2124,
13,
1078,
7657,
198,
271,
23504,
7,
87,
8,
796,
468,
2539,
7,
87,
11,
1058,
23504,
8,
11405,
284,
62,
8367,
7,
87,
58,
25,
23504,
12962,
198,
198,
2,
11600,
7071,
198,
9979,
3460,
4163,
5574,
43328,
796,
4479,
90,
23839,
43328,
11,
49213,
92,
198,
14881,
13,
12924,
0,
7,
87,
3712,
33682,
5574,
43328,
11,
26498,
23029,
796,
1461,
0,
7,
87,
13,
1078,
7657,
11,
26498,
23029,
198,
14881,
13,
10134,
2539,
7,
87,
3712,
33682,
5574,
43328,
11,
1994,
8,
796,
468,
2539,
7,
87,
13,
1078,
7657,
11,
1994,
8,
198,
14881,
13,
33678,
0,
7,
87,
3712,
33682,
5574,
43328,
11,
1994,
8,
796,
12233,
0,
7,
87,
13,
1078,
7657,
11,
1994,
8,
198,
8818,
7308,
13,
1136,
0,
7,
69,
3712,
22203,
11,
2124,
3712,
33682,
5574,
43328,
11,
1994,
3712,
13940,
23650,
8,
198,
220,
220,
220,
611,
468,
2539,
7,
87,
11,
1994,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
58,
2539,
60,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1188,
796,
277,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
58,
2539,
60,
796,
1188,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
58,
2539,
60,
198,
220,
220,
220,
886,
198,
437,
198,
14881,
13,
1136,
0,
7,
87,
3712,
33682,
5574,
43328,
11,
1994,
3712,
13940,
23650,
11,
4277,
8,
796,
651,
0,
7,
3419,
3784,
4277,
11,
2124,
11,
1994,
8,
198,
14881,
13,
1136,
7,
69,
3712,
22203,
11,
2124,
3712,
33682,
5574,
43328,
11,
1994,
3712,
13940,
23650,
8,
796,
468,
2539,
7,
87,
11,
1994,
8,
5633,
2124,
58,
2539,
60,
1058,
277,
3419,
198,
14881,
13,
1136,
7,
87,
3712,
33682,
5574,
43328,
11,
1994,
3712,
13940,
23650,
11,
4277,
8,
796,
651,
7,
3419,
3784,
4277,
11,
2124,
11,
1994,
8,
198,
198,
2,
770,
318,
257,
1643,
15337,
11,
1201,
329,
257,
7110,
340,
5860,
262,
11688,
422,
262,
7159,
198,
2,
290,
407,
257,
7110,
329,
18253,
6376,
278,
13,
887,
11,
356,
765,
284,
2190,
21528,
355,
366,
47116,
1,
198,
2,
523,
422,
281,
7071,
966,
286,
1570,
11,
530,
815,
7048,
326,
257,
7110,
1595,
470,
3994,
850,
489,
1747,
198,
2,
32028,
21528,
2270,
428,
13196,
287,
617,
835,
11,
475,
262,
835,
284,
804,
379,
340,
318,
11,
198,
2,
326,
262,
21528,
7763,
287,
257,
32028,
7110,
389,
407,
850,
489,
1747,
11,
475,
4808,
533,
62,
1682,
198,
2,
262,
7110,
2346,
13,
198,
14881,
13,
1136,
9630,
7,
29487,
3712,
23839,
43328,
11,
4686,
87,
3712,
46541,
8,
796,
7110,
13,
1102,
13658,
58,
312,
87,
60,
198,
14881,
13,
1136,
9630,
7,
29487,
3712,
23839,
43328,
11,
4686,
87,
3712,
26453,
17257,
90,
27,
25,
46541,
30072,
796,
7110,
13,
1102,
13658,
58,
312,
87,
60,
198,
14881,
13,
2617,
9630,
0,
7,
29487,
3712,
23839,
43328,
11,
1988,
11,
4686,
87,
3712,
46541,
8,
796,
357,
29487,
13,
15414,
62,
22046,
58,
312,
87,
7131,
60,
796,
1988,
8,
198,
14881,
13,
13664,
7,
29487,
3712,
23839,
43328,
8,
796,
4129,
7,
29487,
13,
1102,
13658,
8,
198,
198,
8818,
7308,
13,
1136,
9630,
7,
87,
3712,
23839,
43328,
11,
1994,
3712,
13940,
23650,
8,
198,
220,
220,
220,
1822,
14933,
796,
4578,
62,
14933,
7,
4906,
1659,
7,
87,
828,
4129,
7,
87,
13,
1102,
13658,
4008,
198,
220,
220,
220,
4686,
87,
796,
1064,
11085,
7,
786,
13255,
7,
2539,
828,
1822,
14933,
8,
198,
220,
220,
220,
611,
4686,
87,
24844,
2147,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
13,
1078,
7657,
58,
2539,
60,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
13,
1102,
13658,
58,
312,
87,
60,
198,
220,
220,
220,
886,
198,
437,
198,
198,
8818,
7308,
13,
1136,
9630,
7,
87,
3712,
33682,
5574,
43328,
11,
1994,
3712,
13940,
23650,
11,
1994,
17,
3712,
13940,
23650,
11,
1334,
3712,
13940,
23650,
23029,
198,
220,
220,
220,
8633,
796,
284,
62,
8367,
7,
87,
58,
2539,
12962,
198,
220,
220,
220,
8633,
318,
64,
49213,
8614,
4049,
7203,
51,
14992,
284,
1895,
29568,
4906,
1659,
7,
11600,
4008,
351,
3294,
8251,
25,
720,
2539,
11,
720,
2539,
17,
11,
29568,
2118,
8,
4943,
198,
220,
220,
220,
8633,
58,
2539,
17,
11,
1334,
22345,
198,
437,
198,
198,
8818,
7308,
13,
2617,
9630,
0,
7,
87,
3712,
33682,
5574,
43328,
11,
1988,
11,
1994,
3712,
13940,
23650,
11,
1994,
17,
3712,
13940,
23650,
11,
1334,
3712,
13940,
23650,
23029,
198,
220,
220,
220,
8633,
796,
284,
62,
8367,
7,
87,
58,
2539,
12962,
198,
220,
220,
220,
8633,
318,
64,
49213,
8614,
4049,
7203,
51,
14992,
284,
1895,
29568,
4906,
1659,
7,
11600,
4008,
351,
3294,
8251,
25,
720,
2539,
11,
720,
2539,
17,
11,
29568,
2118,
8,
4943,
198,
220,
220,
220,
8633,
58,
2539,
17,
11,
1334,
22345,
796,
1988,
198,
437,
198,
198,
8818,
7308,
13,
2617,
9630,
0,
7,
87,
3712,
23839,
43328,
11,
1988,
11,
1994,
3712,
13940,
23650,
8,
198,
220,
220,
220,
1822,
14933,
796,
4578,
62,
14933,
7,
4906,
1659,
7,
87,
828,
4129,
7,
87,
13,
1102,
13658,
4008,
198,
220,
220,
220,
4686,
87,
796,
1064,
11085,
7,
786,
13255,
7,
2539,
828,
1822,
14933,
8,
198,
220,
220,
220,
611,
4686,
87,
24844,
2147,
11405,
468,
2539,
7,
87,
13,
1078,
7657,
11,
1994,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
13,
1078,
7657,
58,
2539,
7131,
60,
796,
1988,
198,
220,
220,
220,
2073,
361,
5145,
10134,
2539,
7,
87,
13,
1078,
7657,
11,
1994,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
13,
1078,
7657,
58,
2539,
60,
796,
10385,
7,
31310,
712,
540,
11,
1988,
8,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
900,
9630,
0,
7,
87,
13,
1102,
13658,
58,
312,
87,
4357,
1988,
8,
198,
220,
220,
220,
886,
198,
437,
198,
198,
8818,
7308,
13,
2617,
9630,
0,
7,
87,
3712,
23839,
43328,
11,
1988,
3712,
31310,
712,
540,
11,
1994,
3712,
13940,
23650,
8,
198,
220,
220,
220,
1822,
14933,
796,
4578,
62,
14933,
7,
4906,
1659,
7,
87,
828,
4129,
7,
87,
13,
1102,
13658,
4008,
198,
220,
220,
220,
4686,
87,
796,
1064,
11085,
7,
786,
13255,
7,
2539,
828,
1822,
14933,
8,
198,
220,
220,
220,
611,
4686,
87,
24844,
2147,
198,
220,
220,
220,
220,
220,
220,
220,
611,
468,
2539,
7,
87,
11,
1994,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4049,
7203,
1639,
821,
2111,
284,
4296,
281,
11688,
19243,
540,
351,
257,
649,
19243,
540,
13,
770,
318,
407,
4855,
826,
783,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
921,
460,
466,
428,
14500,
588,
428,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
10303,
7,
2100,
3784,
12608,
58,
3,
2539,
60,
796,
1188,
11,
19243,
540,
3712,
3,
7,
4906,
1659,
7,
8367,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
13,
1078,
7657,
58,
2539,
60,
796,
1988,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
13,
1078,
7657,
58,
2539,
60,
796,
1988,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
900,
9630,
0,
7,
87,
13,
1102,
13658,
58,
312,
87,
4357,
1988,
8,
198,
220,
220,
220,
886,
198,
437,
198,
198,
2,
257,
1178,
29401,
5499,
284,
787,
11688,
11315,
4577,
198,
8818,
651,
62,
42348,
7,
11600,
11,
1994,
8,
198,
220,
220,
220,
10385,
62,
42348,
7,
1462,
62,
8367,
7,
11600,
58,
2539,
46570,
7383,
90,
2539,
92,
28955,
198,
437,
198,
198,
8818,
20121,
62,
1078,
7657,
0,
7,
15414,
3712,
29021,
11,
7505,
3712,
29021,
8,
198,
220,
220,
220,
329,
357,
2539,
11,
1988,
8,
287,
7505,
198,
220,
220,
220,
220,
220,
220,
220,
611,
5145,
10134,
2539,
7,
15414,
11,
1994,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5128,
58,
2539,
60,
796,
4866,
7,
8367,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1459,
62,
8367,
796,
5128,
58,
2539,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1988,
318,
64,
49213,
11405,
1459,
62,
8367,
318,
64,
49213,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
611,
28376,
11688,
11,
356,
20121,
664,
1834,
2280,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20121,
62,
1078,
7657,
0,
7,
14421,
62,
8367,
11,
1988,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
1988,
318,
64,
49213,
8614,
1459,
62,
8367,
318,
64,
49213,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5994,
2051,
15699,
981,
35981,
7110,
12608,
351,
7505,
329,
1994,
25,
29568,
2539,
737,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4062,
29568,
8367,
8,
287,
7505,
11,
981,
12608,
4909,
25,
29568,
14421,
62,
8367,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
356,
821,
922,
0,
5128,
1541,
468,
257,
1988,
11,
460,
8856,
7505,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
5128,
198,
437,
198
] | 2.542419 | 3,713 |
using NNLS
using Test
# import NonNegLeastSquares
using PyCall
using ECOS
using JuMP
using Random
using LinearAlgebra
import Libdl
const pyopt = pyimport_conda("scipy.optimize", "scipy")
macro wrappedallocs(expr)
argnames = [gensym() for a in expr.args]
quote
function g($(argnames...))
@allocated $(Expr(expr.head, argnames...))
end
$(Expr(:call, :g, [esc(a) for a in expr.args]...))
end
end
include("nnls.jl")
include("qp.jl") | [
3500,
399,
45,
6561,
198,
3500,
6208,
198,
2,
1330,
8504,
32863,
3123,
459,
22266,
3565,
198,
3500,
9485,
14134,
198,
3500,
13182,
2640,
198,
3500,
12585,
7378,
198,
3500,
14534,
198,
3500,
44800,
2348,
29230,
198,
198,
11748,
7980,
25404,
628,
198,
9979,
12972,
8738,
796,
12972,
11748,
62,
66,
13533,
7203,
1416,
541,
88,
13,
40085,
1096,
1600,
366,
1416,
541,
88,
4943,
198,
198,
20285,
305,
12908,
32332,
82,
7,
31937,
8,
198,
220,
220,
220,
1822,
14933,
796,
685,
70,
641,
4948,
3419,
329,
257,
287,
44052,
13,
22046,
60,
198,
220,
220,
220,
9577,
198,
220,
220,
220,
220,
220,
220,
220,
2163,
308,
16763,
7,
853,
14933,
986,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
439,
10533,
29568,
3109,
1050,
7,
31937,
13,
2256,
11,
1822,
14933,
986,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
29568,
3109,
1050,
7,
25,
13345,
11,
1058,
70,
11,
685,
3798,
7,
64,
8,
329,
257,
287,
44052,
13,
22046,
60,
986,
4008,
198,
220,
220,
220,
886,
198,
437,
198,
198,
17256,
7203,
20471,
7278,
13,
20362,
4943,
198,
17256,
7203,
80,
79,
13,
20362,
4943
] | 2.323671 | 207 |
# This file was generated by the Julia Swagger Code Generator
# Do not modify this file directly. Modify the swagger specification instead.
mutable struct DeploymentExtendedFilter <: SwaggerModel
provisioningState::Any # spec type: Union{ Nothing, String } # spec name: provisioningState
function DeploymentExtendedFilter(;provisioningState=nothing)
o = new()
validate_property(DeploymentExtendedFilter, Symbol("provisioningState"), provisioningState)
setfield!(o, Symbol("provisioningState"), provisioningState)
o
end
end # type DeploymentExtendedFilter
const _property_map_DeploymentExtendedFilter = Dict{Symbol,Symbol}(Symbol("provisioningState")=>Symbol("provisioningState"))
const _property_types_DeploymentExtendedFilter = Dict{Symbol,String}(Symbol("provisioningState")=>"String")
Base.propertynames(::Type{ DeploymentExtendedFilter }) = collect(keys(_property_map_DeploymentExtendedFilter))
Swagger.property_type(::Type{ DeploymentExtendedFilter }, name::Symbol) = Union{Nothing,eval(Meta.parse(_property_types_DeploymentExtendedFilter[name]))}
Swagger.field_name(::Type{ DeploymentExtendedFilter }, property_name::Symbol) = _property_map_DeploymentExtendedFilter[property_name]
function check_required(o::DeploymentExtendedFilter)
true
end
function validate_property(::Type{ DeploymentExtendedFilter }, name::Symbol, val)
end
| [
2,
770,
2393,
373,
7560,
416,
262,
22300,
2451,
7928,
6127,
35986,
198,
2,
2141,
407,
13096,
428,
2393,
3264,
13,
3401,
1958,
262,
1509,
7928,
20855,
2427,
13,
628,
198,
198,
76,
18187,
2878,
34706,
434,
11627,
1631,
22417,
1279,
25,
2451,
7928,
17633,
198,
220,
220,
220,
8287,
278,
9012,
3712,
7149,
1303,
1020,
2099,
25,
4479,
90,
10528,
11,
10903,
1782,
1303,
1020,
1438,
25,
8287,
278,
9012,
628,
220,
220,
220,
2163,
34706,
434,
11627,
1631,
22417,
7,
26,
1676,
10178,
278,
9012,
28,
22366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
267,
796,
649,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
26571,
62,
26745,
7,
49322,
434,
11627,
1631,
22417,
11,
38357,
7203,
1676,
10178,
278,
9012,
12340,
8287,
278,
9012,
8,
198,
220,
220,
220,
220,
220,
220,
220,
900,
3245,
0,
7,
78,
11,
38357,
7203,
1676,
10178,
278,
9012,
12340,
8287,
278,
9012,
8,
198,
220,
220,
220,
220,
220,
220,
220,
267,
198,
220,
220,
220,
886,
198,
437,
1303,
2099,
34706,
434,
11627,
1631,
22417,
198,
198,
9979,
4808,
26745,
62,
8899,
62,
49322,
434,
11627,
1631,
22417,
796,
360,
713,
90,
13940,
23650,
11,
13940,
23650,
92,
7,
13940,
23650,
7203,
1676,
10178,
278,
9012,
4943,
14804,
13940,
23650,
7203,
1676,
10178,
278,
9012,
48774,
198,
9979,
4808,
26745,
62,
19199,
62,
49322,
434,
11627,
1631,
22417,
796,
360,
713,
90,
13940,
23650,
11,
10100,
92,
7,
13940,
23650,
7203,
1676,
10178,
278,
9012,
4943,
14804,
1,
10100,
4943,
198,
14881,
13,
26745,
14933,
7,
3712,
6030,
90,
34706,
434,
11627,
1631,
22417,
32092,
796,
2824,
7,
13083,
28264,
26745,
62,
8899,
62,
49322,
434,
11627,
1631,
22417,
4008,
198,
10462,
7928,
13,
26745,
62,
4906,
7,
3712,
6030,
90,
34706,
434,
11627,
1631,
22417,
8964,
1438,
3712,
13940,
23650,
8,
796,
4479,
90,
18465,
11,
18206,
7,
48526,
13,
29572,
28264,
26745,
62,
19199,
62,
49322,
434,
11627,
1631,
22417,
58,
3672,
60,
4008,
92,
198,
10462,
7928,
13,
3245,
62,
3672,
7,
3712,
6030,
90,
34706,
434,
11627,
1631,
22417,
8964,
3119,
62,
3672,
3712,
13940,
23650,
8,
796,
220,
4808,
26745,
62,
8899,
62,
49322,
434,
11627,
1631,
22417,
58,
26745,
62,
3672,
60,
198,
198,
8818,
2198,
62,
35827,
7,
78,
3712,
49322,
434,
11627,
1631,
22417,
8,
198,
220,
220,
220,
2081,
198,
437,
198,
198,
8818,
26571,
62,
26745,
7,
3712,
6030,
90,
34706,
434,
11627,
1631,
22417,
8964,
1438,
3712,
13940,
23650,
11,
1188,
8,
198,
437,
198
] | 3.311905 | 420 |
import Base: readline, readuntil
export readline, readuntil
#==
Timeout versions of tbe base functions
==#
"""
readline(s::IO, timeout::T; keep::Bool=false) where {T<:Real}
Like Base.readline, except times-out after `timeout` seconds.
"""
function readline(s::IO, timeout::T; keep::Bool=false) where {T<:Real}
line = readuntil(s, 0x0a, timeout, keep=true)
i = length(line)
if keep || i == 0 || line[i] != 0x0a
return String(line)
elseif i < 2 || line[i-1] != 0x0d
return String(resize!(line,i-1))
else
return String(resize!(line,i-2))
end
end
"""
readuntil(s::IO, delim::AbstractChar, timeout::T; keep::Bool=false) where {T<:Real}
readuntil(s::IO, delim::T, timeout::U; keep::Bool=false) where {T, U<:Real}
Like Base.readuntil, except times-out after `timeout` seconds.
"""
function readuntil(s::IO, delim::AbstractChar, timeout::T; keep::Bool=false) where {T<:Real}
if delim ≤ '\x7f'
return Base.readuntil_string(s, delim % UInt8, keep)
end
out = IOBuffer()
t = Timer(timeout)
while !eof(s) && isopen(t)
bytesavailable(s) == 0 && continue
c = read(s, Char)
if c == delim
keep && write(out, c)
break
elseif c != 0x00
write(out, c)
end
yield()
end
return String(take!(out))
end
function readuntil(s::IO, delim::T, timeout::U; keep::Bool=false) where {T, U<:Real}
out = (T === UInt8 ? Base.StringVector(0) : Vector{T}())
t = Timer(timeout)
while !eof(s) && isopen(t)
bytesavailable(s) == 0 && continue
c = read(s, T)
if c == delim
keep && push!(out, c)
break
elseif c != 0x00
push!(out, c)
end
yield()
end
return out
end
| [
11748,
7308,
25,
1100,
1370,
11,
1100,
28446,
198,
39344,
1100,
1370,
11,
1100,
28446,
198,
198,
2,
855,
198,
48031,
6300,
286,
256,
1350,
2779,
5499,
198,
855,
2,
198,
198,
37811,
198,
220,
220,
220,
1100,
1370,
7,
82,
3712,
9399,
11,
26827,
3712,
51,
26,
1394,
3712,
33,
970,
28,
9562,
8,
810,
1391,
51,
27,
25,
15633,
92,
198,
198,
7594,
7308,
13,
961,
1370,
11,
2845,
1661,
12,
448,
706,
4600,
48678,
63,
4201,
13,
198,
37811,
198,
8818,
1100,
1370,
7,
82,
3712,
9399,
11,
26827,
3712,
51,
26,
1394,
3712,
33,
970,
28,
9562,
8,
810,
1391,
51,
27,
25,
15633,
92,
198,
220,
220,
220,
1627,
796,
1100,
28446,
7,
82,
11,
657,
87,
15,
64,
11,
26827,
11,
1394,
28,
7942,
8,
198,
220,
220,
220,
1312,
796,
4129,
7,
1370,
8,
198,
220,
220,
220,
611,
1394,
8614,
1312,
6624,
657,
8614,
1627,
58,
72,
60,
14512,
657,
87,
15,
64,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
10903,
7,
1370,
8,
198,
220,
220,
220,
2073,
361,
1312,
1279,
362,
8614,
1627,
58,
72,
12,
16,
60,
14512,
657,
87,
15,
67,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
10903,
7,
411,
1096,
0,
7,
1370,
11,
72,
12,
16,
4008,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
10903,
7,
411,
1096,
0,
7,
1370,
11,
72,
12,
17,
4008,
198,
220,
220,
220,
886,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
1100,
28446,
7,
82,
3712,
9399,
11,
46728,
3712,
23839,
12441,
11,
26827,
3712,
51,
26,
1394,
3712,
33,
970,
28,
9562,
8,
810,
1391,
51,
27,
25,
15633,
92,
198,
220,
220,
220,
1100,
28446,
7,
82,
3712,
9399,
11,
46728,
3712,
51,
11,
26827,
3712,
52,
26,
1394,
3712,
33,
970,
28,
9562,
8,
810,
1391,
51,
11,
471,
27,
25,
15633,
92,
198,
198,
7594,
7308,
13,
961,
28446,
11,
2845,
1661,
12,
448,
706,
4600,
48678,
63,
4201,
13,
198,
37811,
198,
8818,
1100,
28446,
7,
82,
3712,
9399,
11,
46728,
3712,
23839,
12441,
11,
26827,
3712,
51,
26,
1394,
3712,
33,
970,
28,
9562,
8,
810,
1391,
51,
27,
25,
15633,
92,
198,
220,
220,
220,
611,
46728,
41305,
705,
59,
87,
22,
69,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
7308,
13,
961,
28446,
62,
8841,
7,
82,
11,
46728,
4064,
471,
5317,
23,
11,
1394,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
503,
796,
314,
9864,
13712,
3419,
198,
220,
220,
220,
256,
796,
5045,
263,
7,
48678,
8,
198,
220,
220,
220,
981,
5145,
68,
1659,
7,
82,
8,
11405,
318,
9654,
7,
83,
8,
198,
220,
220,
220,
220,
220,
220,
220,
9881,
15182,
7,
82,
8,
6624,
657,
11405,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
269,
796,
1100,
7,
82,
11,
3178,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
269,
6624,
46728,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1394,
11405,
3551,
7,
448,
11,
269,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
269,
14512,
657,
87,
405,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
448,
11,
269,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
7800,
3419,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
10903,
7,
20657,
0,
7,
448,
4008,
198,
437,
198,
8818,
1100,
28446,
7,
82,
3712,
9399,
11,
46728,
3712,
51,
11,
26827,
3712,
52,
26,
1394,
3712,
33,
970,
28,
9562,
8,
810,
1391,
51,
11,
471,
27,
25,
15633,
92,
198,
220,
220,
220,
503,
796,
357,
51,
24844,
471,
5317,
23,
5633,
7308,
13,
10100,
38469,
7,
15,
8,
1058,
20650,
90,
51,
92,
28955,
198,
220,
220,
220,
256,
796,
5045,
263,
7,
48678,
8,
198,
220,
220,
220,
981,
5145,
68,
1659,
7,
82,
8,
11405,
318,
9654,
7,
83,
8,
198,
220,
220,
220,
220,
220,
220,
220,
9881,
15182,
7,
82,
8,
6624,
657,
11405,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
269,
796,
1100,
7,
82,
11,
309,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
269,
6624,
46728,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1394,
11405,
4574,
0,
7,
448,
11,
269,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
269,
14512,
657,
87,
405,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
448,
11,
269,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
7800,
3419,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
503,
198,
437,
198
] | 2.160096 | 837 |
# *********************************************************************************
# REopt, Copyright (c) 2019-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# Redistributions of source code must retain the above copyright notice, this list
# of conditions and the following disclaimer.
#
# Redistributions in binary form must reproduce the above copyright notice, this
# list of conditions and the following disclaimer in the documentation and/or other
# materials provided with the distribution.
#
# Neither the name of the copyright holder nor the names of its contributors may be
# used to endorse or promote products derived from this software without specific
# prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
# OF THE POSSIBILITY OF SUCH DAMAGE.
# *********************************************************************************
function add_chp_fuel_burn_constraints(m, p; _n="")
# Fuel burn slope and intercept
fuel_burn_full_load = 1.0 / p.s.chp.elec_effic_full_load # [kWt/kWe]
fuel_burn_half_load = 0.5 / p.s.chp.elec_effic_half_load # [kWt/kWe]
fuel_burn_slope = (fuel_burn_full_load - fuel_burn_half_load) / (1.0 - 0.5) # [kWt/kWe]
fuel_burn_intercept = fuel_burn_full_load - fuel_burn_slope * 1.0 # [kWt/kWe_rated]
# Fuel cost
fuel_cost_per_kwh = p.s.chp.fuel_cost_per_mmbtu / MMBTU_TO_KWH
fuel_cost_series = per_hour_value_to_time_series(fuel_cost_per_kwh, p.s.settings.time_steps_per_hour,
"CHP.fuel_cost_per_mmbtu")
m[:TotalCHPFuelCosts] = @expression(m, p.pwf_fuel["CHP"] *
sum(m[:dvFuelUsage]["CHP", ts] * fuel_cost_series[ts] for ts in p.time_steps)
)
# Conditionally add dvFuelBurnYIntercept if coefficient p.FuelBurnYIntRate is greater than ~zero
if fuel_burn_intercept > 1.0E-7
dv = "dvFuelBurnYIntercept"*_n
m[Symbol(dv)] = @variable(m, [p.techs.chp, p.time_steps], base_name=dv, lower_bound=0)
#Constraint (1c1): Total Fuel burn for CHP **with** y-intercept fuel burn and supplementary firing
@constraint(m, CHPFuelBurnCon[t in p.techs.chp, ts in p.time_steps],
m[Symbol("dvFuelUsage"*_n)][t,ts] == p.hours_per_timestep * (
m[Symbol("dvFuelBurnYIntercept"*_n)][t,ts] +
p.production_factor[t,ts] * fuel_burn_slope * m[Symbol("dvRatedProduction"*_n)][t,ts] +
m[Symbol("dvSupplementaryThermalProduction"*_n)][t,ts] / p.s.chp.supplementary_firing_efficiency
)
)
#Constraint (1d): Y-intercept fuel burn for CHP
@constraint(m, CHPFuelBurnYIntCon[t in p.techs.chp, ts in p.time_steps],
fuel_burn_intercept * m[Symbol("dvSize"*_n)][t] - p.s.chp.max_kw *
(1-m[Symbol("binCHPIsOnInTS"*_n)][t,ts]) <= m[Symbol("dvFuelBurnYIntercept"*_n)][t,ts]
)
else
#Constraint (1c2): Total Fuel burn for CHP **without** y-intercept fuel burn
@constraint(m, CHPFuelBurnConLinear[t in p.techs.chp, ts in p.time_steps],
m[Symbol("dvFuelUsage"*_n)][t,ts] == p.hours_per_timestep * (
p.production_factor[t,ts] * fuel_burn_slope * m[Symbol("dvRatedProduction"*_n)][t,ts] +
m[Symbol("dvSupplementaryThermalProduction"*_n)][t,ts] / p.s.chp.supplementary_firing_efficiency
)
)
end
end
function add_chp_thermal_production_constraints(m, p; _n="")
# Thermal production slope and intercept
thermal_prod_full_load = 1.0 / p.s.chp.elec_effic_full_load * p.s.chp.thermal_effic_full_load # [kWt/kWe]
thermal_prod_half_load = 0.5 / p.s.chp.elec_effic_half_load * p.s.chp.thermal_effic_half_load # [kWt/kWe]
thermal_prod_slope = (thermal_prod_full_load - thermal_prod_half_load) / (1.0 - 0.5) # [kWt/kWe]
thermal_prod_intercept = thermal_prod_full_load - thermal_prod_slope * 1.0 # [kWt/kWe_rated
dv = "dvProductionToWaste"*_n
m[Symbol(dv)] = @variable(m, [p.techs.chp, p.time_steps], base_name=dv, lower_bound=0)
# Conditionally add dvThermalProductionYIntercept if coefficient p.s.chpThermalProdIntercept is greater than ~zero
if thermal_prod_intercept > 1.0E-7
dv = "dvThermalProductionYIntercept"*_n
m[Symbol(dv)] = @variable(m, [p.techs.chp, p.time_steps], base_name=dv, lower_bound=0)
#Constraint (2a-1): Upper Bounds on Thermal Production Y-Intercept
@constraint(m, CHPYInt2a1Con[t in p.techs.chp, ts in p.time_steps],
m[Symbol("dvThermalProductionYIntercept"*_n)][t,ts] <= thermal_prod_intercept * m[Symbol("dvSize"*_n)][t]
)
# Constraint (2a-2): Upper Bounds on Thermal Production Y-Intercept
@constraint(m, CHPYInt2a2Con[t in p.techs.chp, ts in p.time_steps],
m[Symbol("dvThermalProductionYIntercept"*_n)][t,ts] <= thermal_prod_intercept * p.s.chp.max_kw
* m[Symbol("binCHPIsOnInTS"*_n)][t,ts]
)
#Constraint (2b): Lower Bounds on Thermal Production Y-Intercept
@constraint(m, CHPYInt2bCon[t in p.techs.chp, ts in p.time_steps],
m[Symbol("dvThermalProductionYIntercept"*_n)][t,ts] >= thermal_prod_intercept * m[Symbol("dvSize"*_n)][t]
- thermal_prod_intercept * p.s.chp.max_kw * (1 - m[Symbol("binCHPIsOnInTS"*_n)][t,ts])
)
# Constraint (2c): Thermal Production of CHP
# Note: p.HotWaterAmbientFactor[t,ts] * p.HotWaterThermalFactor[t,ts] removed from this but present in math
@constraint(m, CHPThermalProductionCon[t in p.techs.chp, ts in p.time_steps],
m[Symbol("dvThermalProduction"*_n)][t,ts] ==
thermal_prod_slope * p.production_factor[t,ts] * m[Symbol("dvRatedProduction"*_n)][t,ts]
+ m[Symbol("dvThermalProductionYIntercept"*_n)][t,ts] +
m[Symbol("dvSupplementaryThermalProduction"*_n)][t,ts]
)
else
@constraint(m, CHPThermalProductionConLinear[t in p.techs.chp, ts in p.time_steps],
m[Symbol("dvThermalProduction"*_n)][t,ts] ==
thermal_prod_slope * p.production_factor[t,ts] * m[Symbol("dvRatedProduction"*_n)][t,ts] +
m[Symbol("dvSupplementaryThermalProduction"*_n)][t,ts]
)
end
end
"""
add_chp_supplementary_firing_constraints(m, p; _n="")
Used by add_chp_constraints to add supplementary firing constraints if
p.s.chp.supplementary_firing_max_steam_ratio > 1.0 to add CHP supplementary firing operating constraints.
Else, the supplementary firing dispatch and size decision variables are set to zero.
"""
function add_chp_supplementary_firing_constraints(m, p; _n="")
thermal_prod_full_load = 1.0 / p.s.chp.elec_effic_full_load * p.s.chp.thermal_effic_full_load # [kWt/kWe]
thermal_prod_half_load = 0.5 / p.s.chp.elec_effic_half_load * p.s.chp.thermal_effic_half_load # [kWt/kWe]
thermal_prod_slope = (thermal_prod_full_load - thermal_prod_half_load) / (1.0 - 0.5) # [kWt/kWe]
# Constrain upper limit of dvSupplementaryThermalProduction, using auxiliary variable for (size * useSupplementaryFiring)
@constraint(m, CHPSupplementaryFireCon[t in p.techs.chp, ts in p.time_steps],
m[Symbol("dvSupplementaryThermalProduction"*_n)][t,ts] <=
(p.s.chp.supplementary_firing_max_steam_ratio - 1.0) * p.production_factor[t,ts] * (thermal_prod_slope * m[Symbol("dvSupplementaryFiringSize"*_n)][t] + m[Symbol("dvThermalProductionYIntercept"*_n)][t,ts])
)
# Constrain lower limit of 0 if CHP tech is off
@constraint(m, NoCHPSupplementaryFireOffCon[t in p.techs.chp, ts in p.time_steps],
!m[Symbol("binCHPIsOnInTS"*_n)][t,ts] => {m[Symbol("dvSupplementaryThermalProduction"*_n)][t,ts] <= 0.0}
)
end
function add_binCHPIsOnInTS_constraints(m, p; _n="")
# Note, min_turn_down_pct for CHP is only enforced in p.time_steps_with_grid
@constraint(m, [t in p.techs.chp, ts in p.time_steps_with_grid],
m[Symbol("dvRatedProduction"*_n)][t, ts] <= p.s.chp.max_kw * m[Symbol("binCHPIsOnInTS"*_n)][t, ts]
)
@constraint(m, [t in p.techs.chp, ts in p.time_steps_with_grid],
p.s.chp.min_turn_down_pct * m[Symbol("dvSize"*_n)][t] - m[Symbol("dvRatedProduction"*_n)][t, ts] <=
p.s.chp.max_kw * (1 - m[Symbol("binCHPIsOnInTS"*_n)][t, ts])
)
end
function add_chp_rated_prod_constraint(m, p; _n="")
@constraint(m, [t in p.techs.chp, ts in p.time_steps],
m[Symbol("dvSize"*_n)][t] >= m[Symbol("dvRatedProduction"*_n)][t, ts]
)
end
"""
add_chp_hourly_om_charges(m, p; _n="")
- add decision variable "dvOMByHourBySizeCHP"*_n for the hourly CHP operations and maintenance costs
- add the cost to TotalPerUnitHourOMCosts
"""
function add_chp_hourly_om_charges(m, p; _n="")
dv = "dvOMByHourBySizeCHP"*_n
m[Symbol(dv)] = @variable(m, [p.techs.chp, p.time_steps], base_name=dv, lower_bound=0)
#Constraint CHP-hourly-om-a: om per hour, per time step >= per_unit_size_cost * size for when on, >= zero when off
@constraint(m, CHPHourlyOMBySizeA[t in p.techs.chp, ts in p.time_steps],
p.s.chp.om_cost_per_hr_per_kw_rated * m[Symbol("dvSize"*_n)][t] -
p.max_size[t] * p.s.chp.om_cost_per_hr_per_kw_rated * (1-m[Symbol("binCHPIsOnInTS"*_n)][t,ts])
<= m[Symbol("dvOMByHourBySizeCHP"*_n)][t, ts]
)
#Constraint CHP-hourly-om-b: om per hour, per time step <= per_unit_size_cost * size for each hour
@constraint(m, CHPHourlyOMBySizeB[t in p.techs.chp, ts in p.time_steps],
p.s.chp.om_cost_per_hr_per_kw_rated * m[Symbol("dvSize"*_n)][t]
>= m[Symbol("dvOMByHourBySizeCHP"*_n)][t, ts]
)
#Constraint CHP-hourly-om-c: om per hour, per time step <= zero when off, <= per_unit_size_cost*max_size
@constraint(m, CHPHourlyOMBySizeC[t in p.techs.chp, ts in p.time_steps],
p.max_size[t] * p.s.chp.om_cost_per_hr_per_kw_rated * m[Symbol("binCHPIsOnInTS"*_n)][t,ts]
>= m[Symbol("dvOMByHourBySizeCHP"*_n)][t, ts]
)
m[:TotalHourlyCHPOMCosts] = @expression(m, p.third_party_factor * p.pwf_om *
sum(m[Symbol(dv)][t, ts] * p.hours_per_timestep for t in p.techs.chp, ts in p.time_steps))
nothing
end
"""
add_chp_constraints(m, p; _n="")
Used in src/reopt.jl to add_chp_constraints if !isempty(p.techs.chp) to add CHP operating constraints and
cost expressions.
"""
function add_chp_constraints(m, p; _n="")
# TODO if chp.min_turn_down_pct is 0.0, and there is no fuel burn or thermal y-intercept, we don't need the binary below
@warn """Adding binary variable to model CHP.
Some solvers are very slow with integer variables"""
@variables m begin
binCHPIsOnInTS[p.techs.chp, p.time_steps], Bin # 1 If technology t is operating in time step; 0 otherwise
end
m[:TotalHourlyCHPOMCosts] = 0
m[:TotalCHPFuelCosts] = 0
m[:TotalCHPPerUnitProdOMCosts] = @expression(m, p.third_party_factor * p.pwf_om *
sum(p.s.chp.om_cost_per_kwh * p.hours_per_timestep *
m[:dvRatedProduction][t, ts] for t in p.techs.chp, ts in p.time_steps)
)
if p.s.chp.om_cost_per_hr_per_kw_rated > 1.0E-7
add_chp_hourly_om_charges(m, p)
end
add_chp_fuel_burn_constraints(m, p; _n=_n)
add_chp_thermal_production_constraints(m, p; _n=_n)
add_binCHPIsOnInTS_constraints(m, p; _n=_n)
add_chp_rated_prod_constraint(m, p; _n=_n)
if p.s.chp.supplementary_firing_max_steam_ratio > 1.0
add_chp_supplementary_firing_constraints(m,p; _n=_n)
else
for t in p.techs.chp
fix(m[Symbol("dvSupplementaryFiringSize"*_n)][t], 0.0, force=true)
for ts in p.time_steps
fix(m[Symbol("dvSupplementaryThermalProduction"*_n)][t,ts], 0.0, force=true)
end
end
end
end
| [
2,
41906,
17174,
8412,
9,
198,
2,
4526,
8738,
11,
15069,
357,
66,
8,
13130,
12,
42334,
11,
10302,
329,
45276,
6682,
11,
11419,
13,
198,
2,
1439,
2489,
10395,
13,
198,
2,
198,
2,
2297,
396,
3890,
290,
779,
287,
2723,
290,
13934,
5107,
11,
351,
393,
1231,
17613,
11,
198,
2,
389,
10431,
2810,
326,
262,
1708,
3403,
389,
1138,
25,
198,
2,
198,
2,
2297,
396,
2455,
507,
286,
2723,
2438,
1276,
12377,
262,
2029,
6634,
4003,
11,
428,
1351,
198,
2,
286,
3403,
290,
262,
1708,
37592,
13,
198,
2,
198,
2,
2297,
396,
2455,
507,
287,
13934,
1296,
1276,
22919,
262,
2029,
6634,
4003,
11,
428,
198,
2,
1351,
286,
3403,
290,
262,
1708,
37592,
287,
262,
10314,
290,
14,
273,
584,
198,
2,
5696,
2810,
351,
262,
6082,
13,
198,
2,
198,
2,
16126,
262,
1438,
286,
262,
6634,
15762,
4249,
262,
3891,
286,
663,
20420,
743,
307,
198,
2,
973,
284,
11438,
393,
7719,
3186,
10944,
422,
428,
3788,
1231,
2176,
198,
2,
3161,
3194,
7170,
13,
198,
2,
198,
2,
12680,
47466,
3180,
36592,
2389,
1961,
11050,
3336,
27975,
38162,
9947,
367,
15173,
4877,
5357,
27342,
9865,
3843,
20673,
366,
1921,
3180,
1,
5357,
198,
2,
15529,
7788,
32761,
6375,
8959,
49094,
34764,
11015,
11,
47783,
2751,
11,
21728,
5626,
40880,
5390,
11,
3336,
8959,
49094,
198,
2,
34764,
11015,
3963,
34482,
3398,
1565,
5603,
25382,
5357,
376,
46144,
7473,
317,
16652,
2149,
37232,
33079,
48933,
15986,
13954,
48778,
1961,
13,
198,
2,
3268,
8005,
49261,
50163,
3336,
27975,
38162,
9947,
49707,
14418,
6375,
27342,
9865,
3843,
20673,
9348,
43031,
19146,
7473,
15529,
42242,
11,
198,
2,
3268,
17931,
23988,
11,
19387,
25256,
1847,
11,
38846,
11,
7788,
3620,
6489,
13153,
11,
6375,
7102,
5188,
10917,
3525,
12576,
29506,
25552,
357,
1268,
39149,
2751,
11,
198,
2,
21728,
5626,
40880,
5390,
11,
41755,
11335,
10979,
3963,
28932,
2257,
2043,
37780,
21090,
50,
6375,
49254,
26,
406,
18420,
3963,
23210,
11,
198,
2,
42865,
11,
6375,
4810,
19238,
29722,
26,
6375,
43949,
44180,
23255,
49,
8577,
24131,
8,
29630,
36,
5959,
7257,
2937,
1961,
5357,
6177,
15529,
3336,
15513,
3963,
198,
2,
43031,
25382,
11,
7655,
2767,
16879,
3268,
27342,
10659,
11,
19269,
18379,
43031,
25382,
11,
6375,
309,
9863,
357,
1268,
39149,
2751,
399,
7156,
43,
3528,
18310,
198,
2,
6375,
25401,
54,
24352,
8,
5923,
1797,
2751,
3268,
15529,
34882,
16289,
3963,
3336,
23210,
3963,
12680,
47466,
11,
45886,
16876,
5984,
29817,
1961,
198,
2,
3963,
3336,
28069,
11584,
25382,
3963,
13558,
3398,
29506,
11879,
13,
198,
2,
41906,
17174,
8412,
9,
198,
8818,
751,
62,
354,
79,
62,
25802,
62,
10899,
62,
1102,
2536,
6003,
7,
76,
11,
279,
26,
4808,
77,
2625,
4943,
198,
220,
220,
220,
1303,
25483,
4245,
22638,
290,
15788,
198,
220,
220,
220,
5252,
62,
10899,
62,
12853,
62,
2220,
796,
352,
13,
15,
1220,
279,
13,
82,
13,
354,
79,
13,
11129,
66,
62,
24531,
62,
12853,
62,
2220,
220,
1303,
685,
74,
54,
83,
14,
74,
1135,
60,
198,
220,
220,
220,
5252,
62,
10899,
62,
13959,
62,
2220,
796,
657,
13,
20,
1220,
279,
13,
82,
13,
354,
79,
13,
11129,
66,
62,
24531,
62,
13959,
62,
2220,
220,
1303,
685,
74,
54,
83,
14,
74,
1135,
60,
198,
220,
220,
220,
5252,
62,
10899,
62,
6649,
3008,
796,
357,
25802,
62,
10899,
62,
12853,
62,
2220,
532,
5252,
62,
10899,
62,
13959,
62,
2220,
8,
1220,
357,
16,
13,
15,
532,
657,
13,
20,
8,
220,
1303,
685,
74,
54,
83,
14,
74,
1135,
60,
198,
220,
220,
220,
5252,
62,
10899,
62,
3849,
984,
796,
5252,
62,
10899,
62,
12853,
62,
2220,
532,
5252,
62,
10899,
62,
6649,
3008,
1635,
352,
13,
15,
220,
1303,
685,
74,
54,
83,
14,
74,
1135,
62,
4111,
60,
628,
220,
220,
220,
1303,
25483,
1575,
198,
220,
220,
220,
5252,
62,
15805,
62,
525,
62,
74,
1929,
796,
279,
13,
82,
13,
354,
79,
13,
25802,
62,
15805,
62,
525,
62,
76,
2022,
28047,
1220,
337,
10744,
51,
52,
62,
10468,
62,
42,
12418,
198,
220,
220,
220,
5252,
62,
15805,
62,
25076,
796,
583,
62,
9769,
62,
8367,
62,
1462,
62,
2435,
62,
25076,
7,
25802,
62,
15805,
62,
525,
62,
74,
1929,
11,
279,
13,
82,
13,
33692,
13,
2435,
62,
20214,
62,
525,
62,
9769,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
3398,
47,
13,
25802,
62,
15805,
62,
525,
62,
76,
2022,
28047,
4943,
198,
220,
220,
220,
285,
58,
25,
14957,
3398,
47,
42663,
13729,
82,
60,
796,
2488,
38011,
7,
76,
11,
279,
13,
79,
86,
69,
62,
25802,
14692,
3398,
47,
8973,
1635,
198,
220,
220,
220,
220,
220,
220,
220,
2160,
7,
76,
58,
25,
67,
85,
42663,
28350,
7131,
1,
3398,
47,
1600,
40379,
60,
1635,
5252,
62,
15805,
62,
25076,
58,
912,
60,
329,
40379,
287,
279,
13,
2435,
62,
20214,
8,
198,
220,
220,
220,
1267,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
9724,
8736,
751,
288,
85,
42663,
29053,
56,
9492,
984,
611,
35381,
279,
13,
42663,
29053,
56,
5317,
32184,
318,
3744,
621,
5299,
22570,
198,
220,
220,
220,
611,
5252,
62,
10899,
62,
3849,
984,
1875,
352,
13,
15,
36,
12,
22,
198,
220,
220,
220,
220,
220,
220,
220,
288,
85,
796,
366,
67,
85,
42663,
29053,
56,
9492,
984,
1,
9,
62,
77,
198,
220,
220,
220,
220,
220,
220,
220,
285,
58,
13940,
23650,
7,
67,
85,
15437,
796,
2488,
45286,
7,
76,
11,
685,
79,
13,
13670,
82,
13,
354,
79,
11,
279,
13,
2435,
62,
20214,
4357,
2779,
62,
3672,
28,
67,
85,
11,
2793,
62,
7784,
28,
15,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
3103,
2536,
2913,
357,
16,
66,
16,
2599,
7472,
25483,
4245,
329,
5870,
47,
12429,
4480,
1174,
331,
12,
3849,
984,
5252,
4245,
290,
43871,
9645,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
1102,
2536,
2913,
7,
76,
11,
5870,
47,
42663,
29053,
3103,
58,
83,
287,
279,
13,
13670,
82,
13,
354,
79,
11,
40379,
287,
279,
13,
2435,
62,
20214,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
58,
13940,
23650,
7203,
67,
85,
42663,
28350,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
220,
6624,
279,
13,
24425,
62,
525,
62,
16514,
395,
538,
1635,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
58,
13940,
23650,
7203,
67,
85,
42663,
29053,
56,
9492,
984,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
13,
25493,
62,
31412,
58,
83,
11,
912,
60,
1635,
5252,
62,
10899,
62,
6649,
3008,
1635,
285,
58,
13940,
23650,
7203,
67,
85,
15322,
35027,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
58,
13940,
23650,
7203,
67,
85,
42615,
560,
35048,
7617,
35027,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
1220,
279,
13,
82,
13,
354,
79,
13,
18608,
1732,
560,
62,
69,
3428,
62,
45888,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3103,
2536,
2913,
357,
16,
67,
2599,
575,
12,
3849,
984,
5252,
4245,
329,
5870,
47,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
1102,
2536,
2913,
7,
76,
11,
5870,
47,
42663,
29053,
56,
5317,
3103,
58,
83,
287,
279,
13,
13670,
82,
13,
354,
79,
11,
40379,
287,
279,
13,
2435,
62,
20214,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5252,
62,
10899,
62,
3849,
984,
1635,
285,
58,
13940,
23650,
7203,
67,
85,
10699,
1,
9,
62,
77,
8,
7131,
83,
60,
532,
279,
13,
82,
13,
354,
79,
13,
9806,
62,
46265,
1635,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
16,
12,
76,
58,
13940,
23650,
7203,
8800,
3398,
47,
3792,
2202,
818,
4694,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
12962,
220,
19841,
285,
58,
13940,
23650,
7203,
67,
85,
42663,
29053,
56,
9492,
984,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3103,
2536,
2913,
357,
16,
66,
17,
2599,
7472,
25483,
4245,
329,
5870,
47,
12429,
19419,
1174,
331,
12,
3849,
984,
5252,
4245,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
1102,
2536,
2913,
7,
76,
11,
5870,
47,
42663,
29053,
3103,
14993,
451,
58,
83,
287,
279,
13,
13670,
82,
13,
354,
79,
11,
40379,
287,
279,
13,
2435,
62,
20214,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
58,
13940,
23650,
7203,
67,
85,
42663,
28350,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
220,
6624,
279,
13,
24425,
62,
525,
62,
16514,
395,
538,
1635,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
13,
25493,
62,
31412,
58,
83,
11,
912,
60,
1635,
5252,
62,
10899,
62,
6649,
3008,
1635,
285,
58,
13940,
23650,
7203,
67,
85,
15322,
35027,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
58,
13940,
23650,
7203,
67,
85,
42615,
560,
35048,
7617,
35027,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
1220,
279,
13,
82,
13,
354,
79,
13,
18608,
1732,
560,
62,
69,
3428,
62,
45888,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
886,
220,
198,
437,
198,
198,
8818,
751,
62,
354,
79,
62,
490,
7617,
62,
25493,
62,
1102,
2536,
6003,
7,
76,
11,
279,
26,
4808,
77,
2625,
4943,
198,
220,
220,
220,
1303,
41590,
3227,
22638,
290,
15788,
198,
220,
220,
220,
18411,
62,
1676,
67,
62,
12853,
62,
2220,
796,
352,
13,
15,
1220,
279,
13,
82,
13,
354,
79,
13,
11129,
66,
62,
24531,
62,
12853,
62,
2220,
1635,
279,
13,
82,
13,
354,
79,
13,
490,
7617,
62,
24531,
62,
12853,
62,
2220,
220,
1303,
685,
74,
54,
83,
14,
74,
1135,
60,
198,
220,
220,
220,
18411,
62,
1676,
67,
62,
13959,
62,
2220,
796,
657,
13,
20,
1220,
279,
13,
82,
13,
354,
79,
13,
11129,
66,
62,
24531,
62,
13959,
62,
2220,
1635,
279,
13,
82,
13,
354,
79,
13,
490,
7617,
62,
24531,
62,
13959,
62,
2220,
220,
220,
1303,
685,
74,
54,
83,
14,
74,
1135,
60,
198,
220,
220,
220,
18411,
62,
1676,
67,
62,
6649,
3008,
796,
357,
490,
7617,
62,
1676,
67,
62,
12853,
62,
2220,
532,
18411,
62,
1676,
67,
62,
13959,
62,
2220,
8,
1220,
357,
16,
13,
15,
532,
657,
13,
20,
8,
220,
1303,
685,
74,
54,
83,
14,
74,
1135,
60,
198,
220,
220,
220,
18411,
62,
1676,
67,
62,
3849,
984,
796,
18411,
62,
1676,
67,
62,
12853,
62,
2220,
532,
18411,
62,
1676,
67,
62,
6649,
3008,
1635,
352,
13,
15,
220,
1303,
685,
74,
54,
83,
14,
74,
1135,
62,
4111,
198,
220,
220,
220,
220,
198,
220,
220,
220,
288,
85,
796,
366,
67,
85,
35027,
2514,
54,
4594,
1,
9,
62,
77,
198,
220,
220,
220,
285,
58,
13940,
23650,
7,
67,
85,
15437,
796,
2488,
45286,
7,
76,
11,
685,
79,
13,
13670,
82,
13,
354,
79,
11,
279,
13,
2435,
62,
20214,
4357,
2779,
62,
3672,
28,
67,
85,
11,
2793,
62,
7784,
28,
15,
8,
628,
220,
220,
220,
1303,
9724,
8736,
751,
288,
85,
35048,
7617,
35027,
56,
9492,
984,
611,
35381,
279,
13,
82,
13,
354,
79,
35048,
7617,
2964,
67,
9492,
984,
318,
3744,
621,
5299,
22570,
198,
220,
220,
220,
611,
18411,
62,
1676,
67,
62,
3849,
984,
1875,
352,
13,
15,
36,
12,
22,
198,
220,
220,
220,
220,
220,
220,
220,
288,
85,
796,
366,
67,
85,
35048,
7617,
35027,
56,
9492,
984,
1,
9,
62,
77,
198,
220,
220,
220,
220,
220,
220,
220,
285,
58,
13940,
23650,
7,
67,
85,
15437,
796,
2488,
45286,
7,
76,
11,
685,
79,
13,
13670,
82,
13,
354,
79,
11,
279,
13,
2435,
62,
20214,
4357,
2779,
62,
3672,
28,
67,
85,
11,
2793,
62,
7784,
28,
15,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
3103,
2536,
2913,
357,
17,
64,
12,
16,
2599,
20390,
347,
3733,
319,
41590,
19174,
575,
12,
9492,
984,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
1102,
2536,
2913,
7,
76,
11,
5870,
47,
56,
5317,
17,
64,
16,
3103,
58,
83,
287,
279,
13,
13670,
82,
13,
354,
79,
11,
40379,
287,
279,
13,
2435,
62,
20214,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
58,
13940,
23650,
7203,
67,
85,
35048,
7617,
35027,
56,
9492,
984,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
19841,
18411,
62,
1676,
67,
62,
3849,
984,
1635,
285,
58,
13940,
23650,
7203,
67,
85,
10699,
1,
9,
62,
77,
8,
7131,
83,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1482,
2536,
2913,
357,
17,
64,
12,
17,
2599,
20390,
347,
3733,
319,
41590,
19174,
575,
12,
9492,
984,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
1102,
2536,
2913,
7,
76,
11,
5870,
47,
56,
5317,
17,
64,
17,
3103,
58,
83,
287,
279,
13,
13670,
82,
13,
354,
79,
11,
40379,
287,
279,
13,
2435,
62,
20214,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
58,
13940,
23650,
7203,
67,
85,
35048,
7617,
35027,
56,
9492,
984,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
19841,
18411,
62,
1676,
67,
62,
3849,
984,
1635,
279,
13,
82,
13,
354,
79,
13,
9806,
62,
46265,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
285,
58,
13940,
23650,
7203,
8800,
3398,
47,
3792,
2202,
818,
4694,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3103,
2536,
2913,
357,
17,
65,
2599,
16048,
347,
3733,
319,
41590,
19174,
575,
12,
9492,
984,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
1102,
2536,
2913,
7,
76,
11,
5870,
47,
56,
5317,
17,
65,
3103,
58,
83,
287,
279,
13,
13670,
82,
13,
354,
79,
11,
40379,
287,
279,
13,
2435,
62,
20214,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
58,
13940,
23650,
7203,
67,
85,
35048,
7617,
35027,
56,
9492,
984,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
18189,
18411,
62,
1676,
67,
62,
3849,
984,
1635,
285,
58,
13940,
23650,
7203,
67,
85,
10699,
1,
9,
62,
77,
8,
7131,
83,
60,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
532,
18411,
62,
1676,
67,
62,
3849,
984,
1635,
279,
13,
82,
13,
354,
79,
13,
9806,
62,
46265,
1635,
357,
16,
532,
285,
58,
13940,
23650,
7203,
8800,
3398,
47,
3792,
2202,
818,
4694,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1482,
2536,
2913,
357,
17,
66,
2599,
41590,
19174,
286,
5870,
47,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
5740,
25,
279,
13,
21352,
19184,
35649,
1153,
41384,
58,
83,
11,
912,
60,
1635,
279,
13,
21352,
19184,
35048,
7617,
41384,
58,
83,
11,
912,
60,
4615,
422,
428,
475,
1944,
287,
10688,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
1102,
2536,
2913,
7,
76,
11,
5870,
11571,
372,
7617,
35027,
3103,
58,
83,
287,
279,
13,
13670,
82,
13,
354,
79,
11,
40379,
287,
279,
13,
2435,
62,
20214,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
58,
13940,
23650,
7203,
67,
85,
35048,
7617,
35027,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
6624,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18411,
62,
1676,
67,
62,
6649,
3008,
1635,
279,
13,
25493,
62,
31412,
58,
83,
11,
912,
60,
1635,
285,
58,
13940,
23650,
7203,
67,
85,
15322,
35027,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1343,
285,
58,
13940,
23650,
7203,
67,
85,
35048,
7617,
35027,
56,
9492,
984,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
58,
13940,
23650,
7203,
67,
85,
42615,
560,
35048,
7617,
35027,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
1102,
2536,
2913,
7,
76,
11,
5870,
11571,
372,
7617,
35027,
3103,
14993,
451,
58,
83,
287,
279,
13,
13670,
82,
13,
354,
79,
11,
40379,
287,
279,
13,
2435,
62,
20214,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
58,
13940,
23650,
7203,
67,
85,
35048,
7617,
35027,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
6624,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18411,
62,
1676,
67,
62,
6649,
3008,
1635,
279,
13,
25493,
62,
31412,
58,
83,
11,
912,
60,
1635,
285,
58,
13940,
23650,
7203,
67,
85,
15322,
35027,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
58,
13940,
23650,
7203,
67,
85,
42615,
560,
35048,
7617,
35027,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
886,
198,
220,
220,
220,
220,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
751,
62,
354,
79,
62,
18608,
1732,
560,
62,
69,
3428,
62,
1102,
2536,
6003,
7,
76,
11,
279,
26,
4808,
77,
2625,
4943,
198,
198,
38052,
416,
751,
62,
354,
79,
62,
1102,
2536,
6003,
284,
751,
43871,
9645,
17778,
611,
220,
198,
220,
220,
220,
279,
13,
82,
13,
354,
79,
13,
18608,
1732,
560,
62,
69,
3428,
62,
9806,
62,
21465,
62,
10366,
952,
1875,
352,
13,
15,
284,
751,
5870,
47,
43871,
9645,
5361,
17778,
13,
220,
220,
198,
220,
220,
220,
25974,
11,
262,
43871,
9645,
27965,
290,
2546,
2551,
9633,
389,
900,
284,
6632,
13,
198,
37811,
198,
8818,
751,
62,
354,
79,
62,
18608,
1732,
560,
62,
69,
3428,
62,
1102,
2536,
6003,
7,
76,
11,
279,
26,
4808,
77,
2625,
4943,
198,
220,
220,
220,
18411,
62,
1676,
67,
62,
12853,
62,
2220,
796,
352,
13,
15,
1220,
279,
13,
82,
13,
354,
79,
13,
11129,
66,
62,
24531,
62,
12853,
62,
2220,
1635,
279,
13,
82,
13,
354,
79,
13,
490,
7617,
62,
24531,
62,
12853,
62,
2220,
220,
1303,
685,
74,
54,
83,
14,
74,
1135,
60,
198,
220,
220,
220,
18411,
62,
1676,
67,
62,
13959,
62,
2220,
796,
657,
13,
20,
1220,
279,
13,
82,
13,
354,
79,
13,
11129,
66,
62,
24531,
62,
13959,
62,
2220,
1635,
279,
13,
82,
13,
354,
79,
13,
490,
7617,
62,
24531,
62,
13959,
62,
2220,
220,
220,
1303,
685,
74,
54,
83,
14,
74,
1135,
60,
198,
220,
220,
220,
18411,
62,
1676,
67,
62,
6649,
3008,
796,
357,
490,
7617,
62,
1676,
67,
62,
12853,
62,
2220,
532,
18411,
62,
1676,
67,
62,
13959,
62,
2220,
8,
1220,
357,
16,
13,
15,
532,
657,
13,
20,
8,
220,
1303,
685,
74,
54,
83,
14,
74,
1135,
60,
628,
220,
220,
220,
1303,
1482,
2536,
391,
6727,
4179,
286,
288,
85,
42615,
560,
35048,
7617,
35027,
11,
1262,
37419,
7885,
329,
357,
7857,
1635,
779,
42615,
560,
37,
3428,
8,
198,
220,
220,
220,
2488,
1102,
2536,
2913,
7,
76,
11,
5870,
3705,
7211,
1732,
560,
13543,
3103,
58,
83,
287,
279,
13,
13670,
82,
13,
354,
79,
11,
40379,
287,
279,
13,
2435,
62,
20214,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
58,
13940,
23650,
7203,
67,
85,
42615,
560,
35048,
7617,
35027,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
19841,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
79,
13,
82,
13,
354,
79,
13,
18608,
1732,
560,
62,
69,
3428,
62,
9806,
62,
21465,
62,
10366,
952,
532,
352,
13,
15,
8,
1635,
279,
13,
25493,
62,
31412,
58,
83,
11,
912,
60,
1635,
357,
490,
7617,
62,
1676,
67,
62,
6649,
3008,
1635,
285,
58,
13940,
23650,
7203,
67,
85,
42615,
560,
37,
3428,
10699,
1,
9,
62,
77,
8,
7131,
83,
60,
1343,
285,
58,
13940,
23650,
7203,
67,
85,
35048,
7617,
35027,
56,
9492,
984,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
1303,
1482,
2536,
391,
2793,
4179,
286,
657,
611,
5870,
47,
7261,
318,
572,
198,
220,
220,
220,
2488,
1102,
2536,
2913,
7,
76,
11,
1400,
3398,
3705,
7211,
1732,
560,
13543,
9362,
3103,
58,
83,
287,
279,
13,
13670,
82,
13,
354,
79,
11,
40379,
287,
279,
13,
2435,
62,
20214,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5145,
76,
58,
13940,
23650,
7203,
8800,
3398,
47,
3792,
2202,
818,
4694,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
5218,
1391,
76,
58,
13940,
23650,
7203,
67,
85,
42615,
560,
35048,
7617,
35027,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
19841,
657,
13,
15,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
437,
198,
198,
8818,
751,
62,
8800,
3398,
47,
3792,
2202,
818,
4694,
62,
1102,
2536,
6003,
7,
76,
11,
279,
26,
4808,
77,
2625,
4943,
198,
220,
220,
220,
1303,
5740,
11,
949,
62,
15344,
62,
2902,
62,
79,
310,
329,
5870,
47,
318,
691,
20326,
287,
279,
13,
2435,
62,
20214,
62,
4480,
62,
25928,
198,
220,
220,
220,
2488,
1102,
2536,
2913,
7,
76,
11,
685,
83,
287,
279,
13,
13670,
82,
13,
354,
79,
11,
40379,
287,
279,
13,
2435,
62,
20214,
62,
4480,
62,
25928,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
285,
58,
13940,
23650,
7203,
67,
85,
15322,
35027,
1,
9,
62,
77,
8,
7131,
83,
11,
40379,
60,
19841,
279,
13,
82,
13,
354,
79,
13,
9806,
62,
46265,
1635,
285,
58,
13940,
23650,
7203,
8800,
3398,
47,
3792,
2202,
818,
4694,
1,
9,
62,
77,
8,
7131,
83,
11,
40379,
60,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
2488,
1102,
2536,
2913,
7,
76,
11,
685,
83,
287,
279,
13,
13670,
82,
13,
354,
79,
11,
40379,
287,
279,
13,
2435,
62,
20214,
62,
4480,
62,
25928,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
279,
13,
82,
13,
354,
79,
13,
1084,
62,
15344,
62,
2902,
62,
79,
310,
1635,
285,
58,
13940,
23650,
7203,
67,
85,
10699,
1,
9,
62,
77,
8,
7131,
83,
60,
532,
285,
58,
13940,
23650,
7203,
67,
85,
15322,
35027,
1,
9,
62,
77,
8,
7131,
83,
11,
40379,
60,
19841,
198,
220,
220,
220,
220,
220,
220,
220,
279,
13,
82,
13,
354,
79,
13,
9806,
62,
46265,
1635,
357,
16,
532,
285,
58,
13940,
23650,
7203,
8800,
3398,
47,
3792,
2202,
818,
4694,
1,
9,
62,
77,
8,
7131,
83,
11,
40379,
12962,
198,
220,
220,
220,
1267,
198,
437,
628,
198,
8818,
751,
62,
354,
79,
62,
4111,
62,
1676,
67,
62,
1102,
2536,
2913,
7,
76,
11,
279,
26,
4808,
77,
2625,
4943,
198,
220,
220,
220,
2488,
1102,
2536,
2913,
7,
76,
11,
685,
83,
287,
279,
13,
13670,
82,
13,
354,
79,
11,
40379,
287,
279,
13,
2435,
62,
20214,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
285,
58,
13940,
23650,
7203,
67,
85,
10699,
1,
9,
62,
77,
8,
7131,
83,
60,
18189,
285,
58,
13940,
23650,
7203,
67,
85,
15322,
35027,
1,
9,
62,
77,
8,
7131,
83,
11,
40379,
60,
198,
220,
220,
220,
1267,
198,
437,
628,
198,
37811,
198,
220,
220,
220,
751,
62,
354,
79,
62,
9769,
306,
62,
296,
62,
34948,
7,
76,
11,
279,
26,
4808,
77,
2625,
4943,
198,
198,
12,
751,
2551,
7885,
366,
67,
85,
2662,
3886,
43223,
3886,
10699,
3398,
47,
1,
9,
62,
77,
329,
262,
30160,
5870,
47,
4560,
290,
9262,
3484,
198,
12,
751,
262,
1575,
284,
7472,
5990,
26453,
43223,
2662,
13729,
82,
198,
37811,
198,
8818,
751,
62,
354,
79,
62,
9769,
306,
62,
296,
62,
34948,
7,
76,
11,
279,
26,
4808,
77,
2625,
4943,
198,
220,
220,
220,
288,
85,
796,
366,
67,
85,
2662,
3886,
43223,
3886,
10699,
3398,
47,
1,
9,
62,
77,
198,
220,
220,
220,
285,
58,
13940,
23650,
7,
67,
85,
15437,
796,
2488,
45286,
7,
76,
11,
685,
79,
13,
13670,
82,
13,
354,
79,
11,
279,
13,
2435,
62,
20214,
4357,
2779,
62,
3672,
28,
67,
85,
11,
2793,
62,
7784,
28,
15,
8,
628,
220,
220,
220,
1303,
3103,
2536,
2913,
5870,
47,
12,
9769,
306,
12,
296,
12,
64,
25,
39030,
583,
1711,
11,
583,
640,
2239,
18189,
583,
62,
20850,
62,
7857,
62,
15805,
1635,
2546,
329,
618,
319,
11,
18189,
6632,
618,
572,
198,
197,
31,
1102,
2536,
2913,
7,
76,
11,
5870,
11909,
454,
306,
2662,
3886,
10699,
32,
58,
83,
287,
279,
13,
13670,
82,
13,
354,
79,
11,
40379,
287,
279,
13,
2435,
62,
20214,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
279,
13,
82,
13,
354,
79,
13,
296,
62,
15805,
62,
525,
62,
11840,
62,
525,
62,
46265,
62,
4111,
1635,
285,
58,
13940,
23650,
7203,
67,
85,
10699,
1,
9,
62,
77,
8,
7131,
83,
60,
532,
198,
220,
220,
220,
220,
220,
220,
220,
279,
13,
9806,
62,
7857,
58,
83,
60,
1635,
279,
13,
82,
13,
354,
79,
13,
296,
62,
15805,
62,
525,
62,
11840,
62,
525,
62,
46265,
62,
4111,
1635,
357,
16,
12,
76,
58,
13940,
23650,
7203,
8800,
3398,
47,
3792,
2202,
818,
4694,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19841,
285,
58,
13940,
23650,
7203,
67,
85,
2662,
3886,
43223,
3886,
10699,
3398,
47,
1,
9,
62,
77,
8,
7131,
83,
11,
40379,
60,
198,
220,
220,
220,
1267,
198,
197,
2,
3103,
2536,
2913,
5870,
47,
12,
9769,
306,
12,
296,
12,
65,
25,
39030,
583,
1711,
11,
583,
640,
2239,
19841,
583,
62,
20850,
62,
7857,
62,
15805,
1635,
2546,
329,
1123,
1711,
198,
197,
31,
1102,
2536,
2913,
7,
76,
11,
5870,
11909,
454,
306,
2662,
3886,
10699,
33,
58,
83,
287,
279,
13,
13670,
82,
13,
354,
79,
11,
40379,
287,
279,
13,
2435,
62,
20214,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
279,
13,
82,
13,
354,
79,
13,
296,
62,
15805,
62,
525,
62,
11840,
62,
525,
62,
46265,
62,
4111,
1635,
285,
58,
13940,
23650,
7203,
67,
85,
10699,
1,
9,
62,
77,
8,
7131,
83,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18189,
285,
58,
13940,
23650,
7203,
67,
85,
2662,
3886,
43223,
3886,
10699,
3398,
47,
1,
9,
62,
77,
8,
7131,
83,
11,
40379,
60,
198,
220,
220,
220,
1267,
198,
197,
2,
3103,
2536,
2913,
5870,
47,
12,
9769,
306,
12,
296,
12,
66,
25,
39030,
583,
1711,
11,
583,
640,
2239,
19841,
6632,
618,
572,
11,
19841,
583,
62,
20850,
62,
7857,
62,
15805,
9,
9806,
62,
7857,
198,
197,
31,
1102,
2536,
2913,
7,
76,
11,
5870,
11909,
454,
306,
2662,
3886,
10699,
34,
58,
83,
287,
279,
13,
13670,
82,
13,
354,
79,
11,
40379,
287,
279,
13,
2435,
62,
20214,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
279,
13,
9806,
62,
7857,
58,
83,
60,
1635,
279,
13,
82,
13,
354,
79,
13,
296,
62,
15805,
62,
525,
62,
11840,
62,
525,
62,
46265,
62,
4111,
1635,
285,
58,
13940,
23650,
7203,
8800,
3398,
47,
3792,
2202,
818,
4694,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18189,
285,
58,
13940,
23650,
7203,
67,
85,
2662,
3886,
43223,
3886,
10699,
3398,
47,
1,
9,
62,
77,
8,
7131,
83,
11,
40379,
60,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
198,
220,
220,
220,
285,
58,
25,
14957,
43223,
306,
3398,
47,
2662,
13729,
82,
60,
796,
2488,
38011,
7,
76,
11,
279,
13,
17089,
62,
10608,
62,
31412,
1635,
279,
13,
79,
86,
69,
62,
296,
1635,
220,
198,
220,
220,
220,
2160,
7,
76,
58,
13940,
23650,
7,
67,
85,
8,
7131,
83,
11,
40379,
60,
1635,
279,
13,
24425,
62,
525,
62,
16514,
395,
538,
329,
256,
287,
279,
13,
13670,
82,
13,
354,
79,
11,
40379,
287,
279,
13,
2435,
62,
20214,
4008,
198,
220,
220,
220,
2147,
198,
437,
628,
198,
37811,
198,
220,
220,
220,
751,
62,
354,
79,
62,
1102,
2536,
6003,
7,
76,
11,
279,
26,
4808,
77,
2625,
4943,
198,
198,
38052,
287,
12351,
14,
260,
8738,
13,
20362,
284,
751,
62,
354,
79,
62,
1102,
2536,
6003,
611,
5145,
271,
28920,
7,
79,
13,
13670,
82,
13,
354,
79,
8,
284,
751,
5870,
47,
5361,
17778,
290,
220,
198,
15805,
14700,
13,
198,
37811,
198,
8818,
751,
62,
354,
79,
62,
1102,
2536,
6003,
7,
76,
11,
279,
26,
4808,
77,
2625,
4943,
198,
220,
220,
220,
1303,
16926,
46,
611,
442,
79,
13,
1084,
62,
15344,
62,
2902,
62,
79,
310,
318,
657,
13,
15,
11,
290,
612,
318,
645,
5252,
4245,
393,
18411,
331,
12,
3849,
984,
11,
356,
836,
470,
761,
262,
13934,
2174,
198,
220,
220,
220,
2488,
40539,
37227,
32901,
13934,
7885,
284,
2746,
5870,
47,
13,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2773,
1540,
690,
389,
845,
3105,
351,
18253,
9633,
37811,
198,
220,
220,
220,
2488,
25641,
2977,
285,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
9874,
3398,
47,
3792,
2202,
818,
4694,
58,
79,
13,
13670,
82,
13,
354,
79,
11,
279,
13,
2435,
62,
20214,
4357,
20828,
220,
1303,
352,
1002,
3037,
256,
318,
5361,
287,
640,
2239,
26,
657,
4306,
198,
220,
220,
220,
886,
220,
220,
220,
220,
198,
220,
220,
220,
220,
198,
220,
220,
220,
285,
58,
25,
14957,
43223,
306,
3398,
47,
2662,
13729,
82,
60,
796,
657,
198,
220,
220,
220,
285,
58,
25,
14957,
3398,
47,
42663,
13729,
82,
60,
796,
657,
198,
220,
220,
220,
285,
58,
25,
14957,
3398,
47,
5990,
26453,
2964,
67,
2662,
13729,
82,
60,
796,
2488,
38011,
7,
76,
11,
279,
13,
17089,
62,
10608,
62,
31412,
1635,
279,
13,
79,
86,
69,
62,
296,
1635,
198,
220,
220,
220,
220,
220,
220,
220,
2160,
7,
79,
13,
82,
13,
354,
79,
13,
296,
62,
15805,
62,
525,
62,
74,
1929,
1635,
279,
13,
24425,
62,
525,
62,
16514,
395,
538,
1635,
198,
220,
220,
220,
220,
220,
220,
220,
285,
58,
25,
67,
85,
15322,
35027,
7131,
83,
11,
40379,
60,
329,
256,
287,
279,
13,
13670,
82,
13,
354,
79,
11,
40379,
287,
279,
13,
2435,
62,
20214,
8,
198,
220,
220,
220,
1267,
628,
220,
220,
220,
611,
279,
13,
82,
13,
354,
79,
13,
296,
62,
15805,
62,
525,
62,
11840,
62,
525,
62,
46265,
62,
4111,
1875,
352,
13,
15,
36,
12,
22,
198,
220,
220,
220,
220,
220,
220,
220,
751,
62,
354,
79,
62,
9769,
306,
62,
296,
62,
34948,
7,
76,
11,
279,
8,
198,
220,
220,
220,
886,
628,
220,
220,
220,
751,
62,
354,
79,
62,
25802,
62,
10899,
62,
1102,
2536,
6003,
7,
76,
11,
279,
26,
4808,
77,
28,
62,
77,
8,
198,
220,
220,
220,
751,
62,
354,
79,
62,
490,
7617,
62,
25493,
62,
1102,
2536,
6003,
7,
76,
11,
279,
26,
4808,
77,
28,
62,
77,
8,
198,
220,
220,
220,
751,
62,
8800,
3398,
47,
3792,
2202,
818,
4694,
62,
1102,
2536,
6003,
7,
76,
11,
279,
26,
4808,
77,
28,
62,
77,
8,
198,
220,
220,
220,
751,
62,
354,
79,
62,
4111,
62,
1676,
67,
62,
1102,
2536,
2913,
7,
76,
11,
279,
26,
4808,
77,
28,
62,
77,
8,
628,
220,
220,
220,
611,
279,
13,
82,
13,
354,
79,
13,
18608,
1732,
560,
62,
69,
3428,
62,
9806,
62,
21465,
62,
10366,
952,
1875,
352,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
751,
62,
354,
79,
62,
18608,
1732,
560,
62,
69,
3428,
62,
1102,
2536,
6003,
7,
76,
11,
79,
26,
4808,
77,
28,
62,
77,
8,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
329,
256,
287,
279,
13,
13670,
82,
13,
354,
79,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4259,
7,
76,
58,
13940,
23650,
7203,
67,
85,
42615,
560,
37,
3428,
10699,
1,
9,
62,
77,
8,
7131,
83,
4357,
657,
13,
15,
11,
2700,
28,
7942,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
40379,
287,
279,
13,
2435,
62,
20214,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4259,
7,
76,
58,
13940,
23650,
7203,
67,
85,
42615,
560,
35048,
7617,
35027,
1,
9,
62,
77,
8,
7131,
83,
11,
912,
4357,
657,
13,
15,
11,
2700,
28,
7942,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
437,
198
] | 2.162838 | 5,877 |
module ENN
export TimedAutomata, TimePetriNets, Neurons
include(joinpath("TimedAutomata/","TimedAutomata.jl"))
include(joinpath("TimePetriNets/","TimePetriNets.jl"))
include(joinpath("Neurons/","Neurons.jl"))
end | [
21412,
412,
6144,
198,
198,
39344,
5045,
276,
38062,
1045,
11,
3862,
25803,
380,
45,
1039,
11,
3169,
333,
684,
198,
198,
17256,
7,
22179,
6978,
7203,
14967,
276,
38062,
1045,
14,
2430,
14967,
276,
38062,
1045,
13,
20362,
48774,
198,
17256,
7,
22179,
6978,
7203,
7575,
25803,
380,
45,
1039,
14,
2430,
7575,
25803,
380,
45,
1039,
13,
20362,
48774,
198,
17256,
7,
22179,
6978,
7203,
8199,
333,
684,
14,
2430,
8199,
333,
684,
13,
20362,
48774,
198,
198,
437
] | 2.654321 | 81 |
using RecipesBase, Measures
export InvMcmcSampler, McmcOutput
struct InvMcmcSampler{T<:InvMcmcMove}
move::T
desired_samples::Int
burn_in::Int
lag::Int
K::Int
init::McmcInitialiser
pointers::InteractionSequence{Int}
function InvMcmcSampler(
move::T;
desired_samples::Int=1000, burn_in::Int=0, lag::Int=1,
K::Int=100, init=InitMode()
) where {T<:InvMcmcMove}
pointers = [Int[] for i in 1:(2K)]
new{T}(move, desired_samples, burn_in, lag, K, init, pointers)
end
end
Base.show(io::IO, x::InvMcmcSampler{T}) where {T} = print(io, typeof(x))
struct McmcOutput{T<:Union{SIS,SIM}}
sample::Vector{Vector{Path{Int}}} # The sample
model::T
end
Base.show(io::IO, x::McmcOutput) = print(io, typeof(x))
@recipe function f(output::McmcOutput)
model = output.model
sample = output.sample
x = map(x -> model.dist(model.mode, x), sample)
xguide --> "Sample"
yguide --> "Distance from Mode"
legend --> false
size --> (800, 300)
margin --> 5mm
x
end
acceptance_prob(mcmc::InvMcmcSampler) = acceptance_prob(mcmc.move)
function eval_accept_prob(
S_curr::InteractionSequence{Int},
S_prop::InteractionSequence{Int},
model::T,
log_ratio::Float64
) where {T<:Union{SIS,SIM}}
mode, γ, dist = (model.mode, model.γ, model.dist)
# @show S_curr, S_prop
log_lik_ratio = -γ * (
dist(mode, S_prop)-dist(mode, S_curr)
)
if typeof(model)==SIM
log_multinom_term = log_multinomial_ratio(S_curr, S_prop)
return log_lik_ratio + log_ratio + log_multinom_term
else
return log_lik_ratio + log_ratio
end
end
function accept_reject!(
S_curr::InteractionSequence{Int},
S_prop::InteractionSequence{Int},
pointers::InteractionSequence{Int},
move::InvMcmcMove,
model::T
) where {T<:Union{SIS,SIM}}
move.counts[2] += 1
log_ratio = prop_sample!(S_curr, S_prop, move, pointers, model.V)
# Catch out of bounds proposals (reject them, i.e. 0 acc prob)
if any(!(1 ≤ length(x) ≤ model.K_inner.u) for x in S_prop)
log_α = -Inf
elseif !(1 ≤ length(S_prop) ≤ model.K_outer.u)
log_α = -Inf
else
log_α = eval_accept_prob(S_curr, S_prop, model, log_ratio)
end
# @show log_α
if log(rand()) < log_α
# We accept!
move.counts[1] += 1
enact_accept!(S_curr, S_prop, pointers, move)
else
# We reject!
enact_reject!(S_curr, S_prop, pointers, move)
end
end
function intialise_states!(
pointers::InteractionSequence{Int},
init::InteractionSequence{Int}
)
S_curr = InteractionSequence{Int}()
S_prop = InteractionSequence{Int}()
for init_path in init
tmp = pop!(pointers)
copy!(tmp, init_path)
push!(S_curr, tmp)
tmp = pop!(pointers)
copy!(tmp, init_path)
push!(S_prop, tmp)
end
return S_curr, S_prop
end
function return_states!(
S_curr::InteractionSequence{Int},
S_prop::InteractionSequence{Int},
pointers::InteractionSequence{Int}
)
for i in eachindex(S_curr)
tmp = pop!(S_curr)
pushfirst!(pointers, tmp)
tmp = pop!(S_prop)
pushfirst!(pointers, tmp)
end
end
function draw_sample!(
sample_out::Union{InteractionSequenceSample{Int}, SubArray},
mcmc::InvMcmcSampler,
model::T;
burn_in::Int=mcmc.burn_in,
lag::Int=mcmc.lag,
init::InteractionSequence{Int}=get_init(mcmc.init, model)
) where {T<:Union{SIS,SIM}}
pointers = mcmc.pointers
S_curr, S_prop = intialise_states!(pointers, init)
sample_count = 1 # Keeps which sample to be stored we are working to get
i = 0 # Keeps track all samples (included lags and burn_ins)
reset_counts!(mcmc.move) # Reset counts for mcmc move (tracks acceptances)
while sample_count ≤ length(sample_out)
i += 1
# Store value
if (i > burn_in) & (((i-1) % lag)==0)
@inbounds sample_out[sample_count] = deepcopy(S_curr)
sample_count += 1
end
accept_reject!(
S_curr, S_prop,
pointers,
mcmc.move,
model
)
# println(S_prop)
end
return_states!(S_curr, S_prop, pointers)
end
function draw_sample(
mcmc::InvMcmcSampler,
model::T;
desired_samples::Int=mcmc.desired_samples,
burn_in::Int=mcmc.burn_in,
lag::Int=mcmc.lag,
init::InteractionSequence{Int}=get_init(mcmc.init, model)
) where {T<:Union{SIS,SIM}}
sample_out = InteractionSequenceSample{Int}(undef, desired_samples)
draw_sample!(sample_out, mcmc, model, burn_in=burn_in, lag=lag, init=init)
return sample_out
end
function (mcmc::InvMcmcSampler)(
model::T;
desired_samples::Int=mcmc.desired_samples,
burn_in::Int=mcmc.burn_in,
lag::Int=mcmc.lag,
init::InteractionSequence{Int}=get_init(mcmc.init, model)
) where {T<:Union{SIS,SIM}}
sample_out = draw_sample(mcmc, model, desired_samples=desired_samples, burn_in=burn_in, lag=lag, init=init)
return McmcOutput(sample_out, model)
end | [
3500,
44229,
14881,
11,
45040,
198,
39344,
10001,
9742,
23209,
16305,
20053,
11,
1982,
23209,
26410,
198,
198,
7249,
10001,
9742,
23209,
16305,
20053,
90,
51,
27,
25,
19904,
9742,
23209,
21774,
92,
198,
220,
220,
220,
1445,
3712,
51,
198,
220,
220,
220,
10348,
62,
82,
12629,
3712,
5317,
220,
198,
220,
220,
220,
4245,
62,
259,
3712,
5317,
220,
198,
220,
220,
220,
19470,
3712,
5317,
220,
198,
220,
220,
220,
509,
3712,
5317,
198,
220,
220,
220,
2315,
3712,
9742,
23209,
24243,
5847,
198,
220,
220,
220,
32007,
3712,
9492,
2673,
44015,
594,
90,
5317,
92,
198,
220,
220,
220,
2163,
10001,
9742,
23209,
16305,
20053,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1445,
3712,
51,
26,
198,
220,
220,
220,
220,
220,
220,
220,
10348,
62,
82,
12629,
3712,
5317,
28,
12825,
11,
4245,
62,
259,
3712,
5317,
28,
15,
11,
19470,
3712,
5317,
28,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
509,
3712,
5317,
28,
3064,
11,
2315,
28,
31768,
19076,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
810,
1391,
51,
27,
25,
19904,
9742,
23209,
21774,
92,
198,
220,
220,
220,
220,
220,
220,
220,
32007,
796,
685,
5317,
21737,
329,
1312,
287,
352,
37498,
17,
42,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
649,
90,
51,
92,
7,
21084,
11,
10348,
62,
82,
12629,
11,
4245,
62,
259,
11,
19470,
11,
509,
11,
2315,
11,
32007,
8,
198,
220,
220,
220,
886,
220,
198,
437,
220,
198,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
2124,
3712,
19904,
9742,
23209,
16305,
20053,
90,
51,
30072,
810,
1391,
51,
92,
796,
3601,
7,
952,
11,
2099,
1659,
7,
87,
4008,
198,
198,
7249,
1982,
23209,
26410,
90,
51,
27,
25,
38176,
90,
50,
1797,
11,
48913,
11709,
220,
198,
220,
220,
220,
6291,
3712,
38469,
90,
38469,
90,
15235,
90,
5317,
42535,
220,
1303,
383,
6291,
198,
220,
220,
220,
2746,
3712,
51,
198,
437,
220,
198,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
2124,
3712,
9742,
23209,
26410,
8,
796,
3601,
7,
952,
11,
2099,
1659,
7,
87,
4008,
198,
198,
31,
29102,
431,
2163,
277,
7,
22915,
3712,
9742,
23209,
26410,
8,
198,
220,
220,
220,
2746,
796,
5072,
13,
19849,
198,
220,
220,
220,
6291,
796,
5072,
13,
39873,
198,
220,
220,
220,
2124,
796,
3975,
7,
87,
4613,
2746,
13,
17080,
7,
19849,
13,
14171,
11,
2124,
828,
6291,
8,
198,
220,
220,
220,
2124,
41311,
14610,
366,
36674,
1,
198,
220,
220,
220,
331,
41311,
14610,
366,
45767,
422,
10363,
1,
198,
220,
220,
220,
8177,
14610,
3991,
198,
220,
220,
220,
2546,
14610,
357,
7410,
11,
5867,
8,
198,
220,
220,
220,
10330,
14610,
642,
3020,
198,
220,
220,
220,
2124,
198,
437,
220,
198,
198,
13635,
590,
62,
1676,
65,
7,
76,
11215,
66,
3712,
19904,
9742,
23209,
16305,
20053,
8,
796,
13427,
62,
1676,
65,
7,
76,
11215,
66,
13,
21084,
8,
198,
198,
8818,
5418,
62,
13635,
62,
1676,
65,
7,
198,
220,
220,
220,
311,
62,
22019,
81,
3712,
9492,
2673,
44015,
594,
90,
5317,
5512,
198,
220,
220,
220,
311,
62,
22930,
3712,
9492,
2673,
44015,
594,
90,
5317,
5512,
198,
220,
220,
220,
2746,
3712,
51,
11,
198,
220,
220,
220,
2604,
62,
10366,
952,
3712,
43879,
2414,
198,
220,
220,
220,
1267,
810,
1391,
51,
27,
25,
38176,
90,
50,
1797,
11,
48913,
11709,
628,
220,
220,
220,
4235,
11,
7377,
111,
11,
1233,
796,
357,
19849,
13,
14171,
11,
2746,
13,
42063,
11,
2746,
13,
17080,
8,
628,
220,
220,
220,
1303,
2488,
12860,
311,
62,
22019,
81,
11,
311,
62,
22930,
198,
220,
220,
220,
2604,
62,
46965,
62,
10366,
952,
796,
532,
42063,
1635,
357,
198,
220,
220,
220,
220,
220,
220,
220,
1233,
7,
14171,
11,
311,
62,
22930,
13219,
17080,
7,
14171,
11,
311,
62,
22019,
81,
8,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
198,
220,
220,
220,
611,
2099,
1659,
7,
19849,
8,
855,
48913,
198,
220,
220,
220,
220,
220,
220,
220,
2604,
62,
16680,
259,
296,
62,
4354,
796,
2604,
62,
16680,
259,
49070,
62,
10366,
952,
7,
50,
62,
22019,
81,
11,
311,
62,
22930,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2604,
62,
46965,
62,
10366,
952,
1343,
2604,
62,
10366,
952,
1343,
2604,
62,
16680,
259,
296,
62,
4354,
198,
220,
220,
220,
2073,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2604,
62,
46965,
62,
10366,
952,
1343,
2604,
62,
10366,
952,
198,
220,
220,
220,
886,
220,
198,
198,
437,
220,
198,
198,
8818,
2453,
62,
260,
752,
0,
7,
198,
220,
220,
220,
311,
62,
22019,
81,
3712,
9492,
2673,
44015,
594,
90,
5317,
5512,
198,
220,
220,
220,
311,
62,
22930,
3712,
9492,
2673,
44015,
594,
90,
5317,
5512,
198,
220,
220,
220,
32007,
3712,
9492,
2673,
44015,
594,
90,
5317,
5512,
198,
220,
220,
220,
1445,
3712,
19904,
9742,
23209,
21774,
11,
198,
220,
220,
220,
2746,
3712,
51,
198,
220,
220,
220,
1267,
810,
1391,
51,
27,
25,
38176,
90,
50,
1797,
11,
48913,
11709,
628,
220,
220,
220,
1445,
13,
9127,
82,
58,
17,
60,
15853,
352,
628,
220,
220,
220,
2604,
62,
10366,
952,
796,
2632,
62,
39873,
0,
7,
50,
62,
22019,
81,
11,
311,
62,
22930,
11,
1445,
11,
32007,
11,
2746,
13,
53,
8,
628,
220,
220,
220,
1303,
25750,
503,
286,
22303,
11628,
357,
260,
752,
606,
11,
1312,
13,
68,
13,
657,
697,
1861,
8,
198,
220,
220,
220,
611,
597,
7,
0,
7,
16,
41305,
4129,
7,
87,
8,
41305,
2746,
13,
42,
62,
5083,
13,
84,
8,
329,
2124,
287,
311,
62,
22930,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2604,
62,
17394,
796,
532,
18943,
220,
198,
220,
220,
220,
2073,
361,
5145,
7,
16,
41305,
4129,
7,
50,
62,
22930,
8,
41305,
2746,
13,
42,
62,
39605,
13,
84,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2604,
62,
17394,
796,
532,
18943,
220,
198,
220,
220,
220,
2073,
220,
198,
220,
220,
220,
220,
220,
220,
220,
2604,
62,
17394,
796,
5418,
62,
13635,
62,
1676,
65,
7,
50,
62,
22019,
81,
11,
311,
62,
22930,
11,
2746,
11,
2604,
62,
10366,
952,
8,
198,
220,
220,
220,
886,
220,
628,
220,
220,
220,
1303,
2488,
12860,
2604,
62,
17394,
198,
220,
220,
220,
611,
2604,
7,
25192,
28955,
1279,
2604,
62,
17394,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
775,
2453,
0,
198,
220,
220,
220,
220,
220,
220,
220,
1445,
13,
9127,
82,
58,
16,
60,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
10865,
62,
13635,
0,
7,
50,
62,
22019,
81,
11,
311,
62,
22930,
11,
32007,
11,
1445,
8,
198,
220,
220,
220,
2073,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
775,
4968,
0,
198,
220,
220,
220,
220,
220,
220,
220,
10865,
62,
260,
752,
0,
7,
50,
62,
22019,
81,
11,
311,
62,
22930,
11,
32007,
11,
1445,
8,
198,
220,
220,
220,
886,
220,
198,
198,
437,
220,
198,
198,
8818,
493,
498,
786,
62,
27219,
0,
7,
198,
220,
220,
220,
32007,
3712,
9492,
2673,
44015,
594,
90,
5317,
5512,
198,
220,
220,
220,
2315,
3712,
9492,
2673,
44015,
594,
90,
5317,
92,
198,
220,
220,
220,
1267,
628,
220,
220,
220,
311,
62,
22019,
81,
796,
4225,
2673,
44015,
594,
90,
5317,
92,
3419,
198,
220,
220,
220,
311,
62,
22930,
796,
4225,
2673,
44015,
594,
90,
5317,
92,
3419,
198,
220,
220,
220,
329,
2315,
62,
6978,
287,
2315,
198,
220,
220,
220,
220,
220,
220,
220,
45218,
796,
1461,
0,
7,
47809,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4866,
0,
7,
22065,
11,
2315,
62,
6978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
50,
62,
22019,
81,
11,
45218,
8,
198,
220,
220,
220,
220,
220,
220,
220,
45218,
796,
1461,
0,
7,
47809,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4866,
0,
7,
22065,
11,
2315,
62,
6978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
50,
62,
22930,
11,
45218,
8,
198,
220,
220,
220,
886,
220,
628,
220,
220,
220,
1441,
311,
62,
22019,
81,
11,
311,
62,
22930,
198,
198,
437,
220,
198,
198,
8818,
1441,
62,
27219,
0,
7,
198,
220,
220,
220,
311,
62,
22019,
81,
3712,
9492,
2673,
44015,
594,
90,
5317,
5512,
198,
220,
220,
220,
311,
62,
22930,
3712,
9492,
2673,
44015,
594,
90,
5317,
5512,
198,
220,
220,
220,
32007,
3712,
9492,
2673,
44015,
594,
90,
5317,
92,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
329,
1312,
287,
1123,
9630,
7,
50,
62,
22019,
81,
8,
198,
220,
220,
220,
220,
220,
220,
220,
45218,
796,
1461,
0,
7,
50,
62,
22019,
81,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
11085,
0,
7,
47809,
11,
45218,
8,
198,
220,
220,
220,
220,
220,
220,
220,
45218,
796,
1461,
0,
7,
50,
62,
22930,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
11085,
0,
7,
47809,
11,
45218,
8,
198,
220,
220,
220,
886,
220,
198,
437,
220,
198,
198,
8818,
3197,
62,
39873,
0,
7,
198,
220,
220,
220,
6291,
62,
448,
3712,
38176,
90,
9492,
2673,
44015,
594,
36674,
90,
5317,
5512,
3834,
19182,
5512,
198,
220,
220,
220,
285,
11215,
66,
3712,
19904,
9742,
23209,
16305,
20053,
11,
198,
220,
220,
220,
2746,
3712,
51,
26,
198,
220,
220,
220,
4245,
62,
259,
3712,
5317,
28,
76,
11215,
66,
13,
10899,
62,
259,
11,
198,
220,
220,
220,
19470,
3712,
5317,
28,
76,
11215,
66,
13,
30909,
11,
198,
220,
220,
220,
2315,
3712,
9492,
2673,
44015,
594,
90,
5317,
92,
28,
1136,
62,
15003,
7,
76,
11215,
66,
13,
15003,
11,
2746,
8,
198,
220,
220,
220,
1267,
810,
1391,
51,
27,
25,
38176,
90,
50,
1797,
11,
48913,
11709,
628,
220,
220,
220,
32007,
796,
285,
11215,
66,
13,
47809,
628,
220,
220,
220,
311,
62,
22019,
81,
11,
311,
62,
22930,
796,
493,
498,
786,
62,
27219,
0,
7,
47809,
11,
2315,
8,
628,
220,
220,
220,
6291,
62,
9127,
796,
352,
220,
220,
220,
1303,
9175,
82,
543,
6291,
284,
307,
8574,
356,
389,
1762,
284,
651,
220,
198,
220,
220,
220,
1312,
796,
657,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
9175,
82,
2610,
477,
8405,
357,
259,
10341,
300,
3775,
290,
4245,
62,
1040,
8,
220,
198,
220,
220,
220,
13259,
62,
9127,
82,
0,
7,
76,
11215,
66,
13,
21084,
8,
1303,
30027,
9853,
329,
285,
11215,
66,
1445,
357,
46074,
2453,
1817,
8,
628,
220,
220,
220,
981,
6291,
62,
9127,
41305,
4129,
7,
39873,
62,
448,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
15853,
352,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
9363,
1988,
220,
198,
220,
220,
220,
220,
220,
220,
220,
611,
357,
72,
1875,
4245,
62,
259,
8,
1222,
14808,
7,
72,
12,
16,
8,
4064,
19470,
8,
855,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
259,
65,
3733,
6291,
62,
448,
58,
39873,
62,
9127,
60,
796,
2769,
30073,
7,
50,
62,
22019,
81,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6291,
62,
9127,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
886,
220,
198,
220,
220,
220,
220,
220,
220,
220,
2453,
62,
260,
752,
0,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
311,
62,
22019,
81,
11,
311,
62,
22930,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32007,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
11215,
66,
13,
21084,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2746,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
44872,
7,
50,
62,
22930,
8,
198,
220,
220,
220,
886,
220,
198,
220,
220,
220,
1441,
62,
27219,
0,
7,
50,
62,
22019,
81,
11,
311,
62,
22930,
11,
32007,
8,
198,
437,
220,
198,
198,
8818,
3197,
62,
39873,
7,
198,
220,
220,
220,
285,
11215,
66,
3712,
19904,
9742,
23209,
16305,
20053,
11,
220,
198,
220,
220,
220,
2746,
3712,
51,
26,
198,
220,
220,
220,
10348,
62,
82,
12629,
3712,
5317,
28,
76,
11215,
66,
13,
8906,
1202,
62,
82,
12629,
11,
220,
198,
220,
220,
220,
4245,
62,
259,
3712,
5317,
28,
76,
11215,
66,
13,
10899,
62,
259,
11,
198,
220,
220,
220,
19470,
3712,
5317,
28,
76,
11215,
66,
13,
30909,
11,
198,
220,
220,
220,
2315,
3712,
9492,
2673,
44015,
594,
90,
5317,
92,
28,
1136,
62,
15003,
7,
76,
11215,
66,
13,
15003,
11,
2746,
8,
198,
220,
220,
220,
1267,
810,
1391,
51,
27,
25,
38176,
90,
50,
1797,
11,
48913,
11709,
628,
220,
220,
220,
6291,
62,
448,
796,
4225,
2673,
44015,
594,
36674,
90,
5317,
92,
7,
917,
891,
11,
10348,
62,
82,
12629,
8,
198,
220,
220,
220,
3197,
62,
39873,
0,
7,
39873,
62,
448,
11,
285,
11215,
66,
11,
2746,
11,
4245,
62,
259,
28,
10899,
62,
259,
11,
19470,
28,
30909,
11,
2315,
28,
15003,
8,
198,
220,
220,
220,
1441,
6291,
62,
448,
198,
437,
220,
198,
198,
8818,
357,
76,
11215,
66,
3712,
19904,
9742,
23209,
16305,
20053,
5769,
198,
220,
220,
220,
2746,
3712,
51,
26,
198,
220,
220,
220,
10348,
62,
82,
12629,
3712,
5317,
28,
76,
11215,
66,
13,
8906,
1202,
62,
82,
12629,
11,
220,
198,
220,
220,
220,
4245,
62,
259,
3712,
5317,
28,
76,
11215,
66,
13,
10899,
62,
259,
11,
198,
220,
220,
220,
19470,
3712,
5317,
28,
76,
11215,
66,
13,
30909,
11,
198,
220,
220,
220,
2315,
3712,
9492,
2673,
44015,
594,
90,
5317,
92,
28,
1136,
62,
15003,
7,
76,
11215,
66,
13,
15003,
11,
2746,
8,
198,
220,
220,
220,
1267,
810,
1391,
51,
27,
25,
38176,
90,
50,
1797,
11,
48913,
11709,
628,
220,
220,
220,
6291,
62,
448,
796,
3197,
62,
39873,
7,
76,
11215,
66,
11,
2746,
11,
10348,
62,
82,
12629,
28,
8906,
1202,
62,
82,
12629,
11,
4245,
62,
259,
28,
10899,
62,
259,
11,
19470,
28,
30909,
11,
2315,
28,
15003,
8,
628,
220,
220,
220,
1441,
1982,
23209,
26410,
7,
39873,
62,
448,
11,
2746,
8,
198,
198,
437,
220
] | 2.12832 | 2,447 |
using PFKernels
using PFKernels.PowerSystem
using PFKernels.ForwardDiff
using LinearAlgebra
AT = PFKernels.AT
function mynorm(x)
t1s{N} = ForwardDiff.Dual{Nothing,Float64, N} where N
n = length(x)
FT = t1s{n}
V = Vector
F = zeros(n)
adF = V{FT}(undef, n)
adx = V{FT}(undef, n)
# ForwardDiff.seed!(adx, x, one(ForwardDiff.Partials{n,Float64}))
ForwardDiff.seed!(adx, x, ForwardDiff.construct_seeds(ForwardDiff.Partials{n,Float64}))
dF = AT(adF)
dx = AT(adx)
PFKernels.kernel!(PFKernels.backend, dF, dx)
nrm2 = t1s{n}(0.0)
for v in dF
nrm2 += v
end
@show typeof(nrm2)
@show nrm2
return ForwardDiff.value(nrm2), ForwardDiff.partials(nrm2)
end
# Inject GPU kernels
PFKernels.include(joinpath(dirname(@__FILE__), "kernels.jl"))
x = rand(10)
nrm2 = x -> norm(x)^2
res = nrm2(x)
dres = ForwardDiff.gradient(nrm2, x)
@show x
F, dF = mynorm(x)
@assert(F ≈ res)
@assert(dF ≈ dres)
| [
3500,
350,
26236,
44930,
198,
3500,
350,
26236,
44930,
13,
13434,
11964,
198,
3500,
350,
26236,
44930,
13,
39746,
28813,
198,
3500,
44800,
2348,
29230,
198,
198,
1404,
796,
350,
26236,
44930,
13,
1404,
198,
198,
8818,
616,
27237,
7,
87,
8,
198,
220,
220,
220,
256,
16,
82,
90,
45,
92,
796,
19530,
28813,
13,
36248,
90,
18465,
11,
43879,
2414,
11,
399,
92,
810,
399,
198,
220,
220,
220,
299,
796,
4129,
7,
87,
8,
198,
220,
220,
220,
19446,
796,
256,
16,
82,
90,
77,
92,
198,
220,
220,
220,
569,
796,
20650,
198,
220,
220,
220,
376,
796,
1976,
27498,
7,
77,
8,
198,
220,
220,
220,
512,
37,
796,
569,
90,
9792,
92,
7,
917,
891,
11,
299,
8,
198,
220,
220,
220,
512,
87,
796,
569,
90,
9792,
92,
7,
917,
891,
11,
299,
8,
198,
220,
220,
220,
1303,
19530,
28813,
13,
28826,
0,
7,
324,
87,
11,
2124,
11,
530,
7,
39746,
28813,
13,
7841,
8231,
90,
77,
11,
43879,
2414,
92,
4008,
198,
220,
220,
220,
19530,
28813,
13,
28826,
0,
7,
324,
87,
11,
2124,
11,
19530,
28813,
13,
41571,
62,
325,
5379,
7,
39746,
28813,
13,
7841,
8231,
90,
77,
11,
43879,
2414,
92,
4008,
198,
220,
220,
220,
288,
37,
796,
5161,
7,
324,
37,
8,
198,
220,
220,
220,
44332,
796,
5161,
7,
324,
87,
8,
198,
220,
220,
220,
350,
26236,
44930,
13,
33885,
0,
7,
47,
26236,
44930,
13,
1891,
437,
11,
288,
37,
11,
44332,
8,
220,
198,
220,
220,
220,
299,
26224,
17,
796,
256,
16,
82,
90,
77,
92,
7,
15,
13,
15,
8,
198,
220,
220,
220,
329,
410,
287,
288,
37,
198,
220,
220,
220,
220,
220,
299,
26224,
17,
15853,
410,
198,
220,
220,
220,
886,
198,
220,
220,
220,
2488,
12860,
2099,
1659,
7,
77,
26224,
17,
8,
198,
220,
220,
220,
2488,
12860,
299,
26224,
17,
198,
220,
220,
220,
1441,
19530,
28813,
13,
8367,
7,
77,
26224,
17,
828,
19530,
28813,
13,
3911,
8231,
7,
77,
26224,
17,
8,
198,
437,
198,
198,
2,
554,
752,
11362,
50207,
198,
47,
26236,
44930,
13,
17256,
7,
22179,
6978,
7,
15908,
3672,
7,
31,
834,
25664,
834,
828,
366,
74,
44930,
13,
20362,
48774,
198,
198,
87,
796,
43720,
7,
940,
8,
198,
198,
77,
26224,
17,
796,
2124,
4613,
2593,
7,
87,
8,
61,
17,
198,
411,
796,
299,
26224,
17,
7,
87,
8,
198,
67,
411,
796,
19530,
28813,
13,
49607,
7,
77,
26224,
17,
11,
2124,
8,
198,
31,
12860,
2124,
198,
37,
11,
288,
37,
796,
616,
27237,
7,
87,
8,
198,
31,
30493,
7,
37,
15139,
230,
581,
8,
198,
31,
30493,
7,
67,
37,
15139,
230,
288,
411,
8,
198
] | 2.085153 | 458 |
# Copyright 2016, Iain Dunning, Joey Huchette, Miles Lubin, and contributors
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#############################################################################
# JuMP
# An algebraic modeling language for Julia
# See http://github.com/JuliaOpt/JuMP.jl
#############################################################################
# print.jl
# All "pretty printers" for JuMP types.
# - Delegates to appropriate handler methods for REPL or IJulia.
# - These handler methods then pass the correct symbols to use into a
# generic string builder. The IJulia handlers will also wrap in MathJax
# start/close tags.
# - To find printing code for a type in this file, search for `## TypeName`
# - Code here does not need to be fast, in fact simplicity trumps speed
# within reason as this code is thorny enough as it is.
# - Corresponding tests are in test/print.jl, although test/operator.jl
# is also testing the constraint/expression code extensively as well.
# - Base.print and Base.string both delegate to Base.show, if they are not
# separately defined.
#############################################################################
# Used for dispatching
abstract PrintMode
abstract REPLMode <: PrintMode
abstract IJuliaMode <: PrintMode
# Whether something is zero or not for the purposes of printing it
const PRINT_ZERO_TOL = 1e-10
# List of indices available for variable printing
const DIMS = ["i","j","k","l","m","n"]
# Helper function that rounds carefully for the purposes of printing
# e.g. 5.3 => 5.3
# 1.0 => 1
function str_round(f::Float64)
abs(f) == 0.0 && return "0" # strip sign off zero
str = string(f)
length(str) >= 2 && str[end-1:end] == ".0" ? str[1:end-2] : str
end
# TODO: get rid of this! This is only a helper, and should be Base.values
# (and probably live there, as well)
_values(x::Array) = x
_values(x) = Base.values(x)
# REPL-specific symbols
# Anything here: https://en.wikipedia.org/wiki/Windows-1252
# should probably work fine on Windows
const repl = Dict{Symbol,UTF8String}(
:leq => (is_windows() ? "<=" : "≤"),
:geq => (is_windows() ? ">=" : "≥"),
:eq => (is_windows() ? "==" : "="),
:times => "*",
:sq => "²",
:ind_open => "[",
:ind_close => "]",
:for_all => (is_windows() ? "for all" : "∀"),
:in => (is_windows() ? "in" : "∈"),
:open_set => "{",
:dots => (is_windows() ? ".." : "…"),
:close_set => "}",
:union => (is_windows() ? "or" : "∪"),
:infty => (is_windows() ? "Inf" : "∞"),
:open_rng => "[",
:close_rng => "]",
:integer => "integer",
:succeq0 => " is semidefinite",
:Vert => (is_windows() ? "||" : "‖"),
:sub2 => (is_windows() ? "_2" : "₂"))
# IJulia-specific symbols
const ijulia = Dict{Symbol,UTF8String}(
:leq => "\\leq",
:geq => "\\geq",
:eq => "=",
:times => "\\times ",
:sq => "^2",
:ind_open => "_{",
:ind_close => "}",
:for_all => "\\quad\\forall",
:in => "\\in",
:open_set => "\\{",
:dots => "\\dots",
:close_set => "\\}",
:union => "\\cup",
:infty => "\\infty",
:open_rng => "\\[",
:close_rng => "\\]",
:integer => "\\in \\mathbb{Z}",
:succeq0 => "\\succeq 0",
:Vert => "\\Vert",
:sub2 => "_2")
typealias PrintSymbols Dict{Symbol,UTF8String}
# If not already mathmode, then wrap in MathJax start/close tags
math(s,mathmode) = mathmode ? s : "\$\$ $s \$\$"
# helper to look up corresponding JuMPContainerData
printdata(v::JuMPContainer) = getmeta(v, :model).varData[v]
function printdata(v::Array{Variable})
if isempty(v)
error("Cannot locate printing data for an empty array")
end
m = first(v).m
m.varData[v]
end
#------------------------------------------------------------------------
## Model
#------------------------------------------------------------------------
function Base.print(io::IO, m::Model; ignore_print_hook=(m.printhook==nothing))
ignore_print_hook || return m.printhook(io, m)
print(io, model_str(REPLMode,m))
end
function Base.show(io::IO, m::Model)
plural(n) = (n==1 ? "" : "s")
print(io, m.objSense == :Max ? "Maximization" : ((m.objSense == :Min && (!isempty(m.obj) || (m.nlpdata !== nothing && isa(m.nlpdata.nlobj, NonlinearExprData)))) ? "Minimization" : "Feasibility"))
println(io, " problem with:")
nlin = length(m.linconstr)
println(io, " * $(nlin) linear constraint$(plural(nlin))")
nquad = length(m.quadconstr)
if nquad > 0
println(io, " * $(nquad) quadratic constraint$(plural(nquad))")
end
nsos = length(m.sosconstr)
if nsos > 0
println(io, " * $(nsos) SOS constraint$(plural(nsos))")
end
nsoc = length(m.socconstr)
if nsoc > 0
println(io, " * $(nsoc) SOC constraint$(plural(nsoc))")
end
nsdp = length(m.sdpconstr)
if nsdp > 0
println(io, " * $(nsdp) semidefinite constraint$(plural(nsdp))")
end
nlp = m.nlpdata
if nlp !== nothing && length(nlp.nlconstr) > 0
println(io, " * $(length(nlp.nlconstr)) nonlinear constraint$(plural(length(nlp.nlconstr)))")
end
print(io, " * $(m.numCols) variable$(plural(m.numCols))")
nbin = sum(m.colCat .== :Bin)
nint = sum(m.colCat .== :Int)
nsc = sum(m.colCat .== :SemiCont)
nsi = sum(m.colCat .== :SemiInt)
varstr = Any[]
nbin == 0 || push!(varstr, "$nbin binary")
nint == 0 || push!(varstr, "$nint integer")
nsc == 0 || push!(varstr, "$nsc semicontinuous")
nsi == 0 || push!(varstr, "$nsi semi-integer")
if isempty(varstr)
println(io,)
else
println(io, ": $(join(varstr, ", "))")
end
print(io, "Solver is ")
if isa(m.solver, UnsetSolver)
print(io, "default solver")
else
print(io, split(split(string(m.solver), "Solver")[1], ".")[2])
end
end
@compat Base.show(io::IO, ::MIME"text/latex", m::Model) =
print(io, model_str(IJuliaMode,m))
function model_str(mode, m::Model, sym::PrintSymbols)
ijl = mode == IJuliaMode
sep = ijl ? " & " : " "
eol = ijl ? "\\\\\n" : "\n"
nlp = m.nlpdata
# Objective
qobj_str = quad_str(mode, m.obj)
obj_sense = ijl ? (m.objSense == :Max ? "\\max" : "\\min")*"\\quad" :
(m.objSense == :Max ? "Max" : "Min")
str = obj_sense * sep
if nlp !== nothing && nlp.nlobj !== nothing
str *= (qobj_str=="0"?"":"$qobj_str + ") * "(nonlinear expression)"
else
str *= qobj_str
end
str *= eol
# Constraints
str *= ijl ? "\\text{Subject to} \\quad" : "Subject to" * eol
for c in m.linconstr
str *= sep * con_str(mode,c,mathmode=true) * eol
end
for c in m.quadconstr
str *= sep * con_str(mode,c,mathmode=true) * eol
end
for c in m.sosconstr
str *= sep * con_str(mode,c,mathmode=true) * eol
end
for c in m.socconstr
str *= sep * con_str(mode,c,mathmode=true) * eol
end
if nlp !== nothing && length(nlp.nlconstr) > 0
num = length(nlp.nlconstr)
str *= sep * string("$num nonlinear constraint", num>1?"s":"") * eol
end
# Display indexed variables
in_dictlist = falses(m.numCols)
for d in m.dictList
# make sure that you haven't changed a variable type in the collection
firstval = first(_values(d))
cat = getcategory(firstval)
lb, ub = getlowerbound(firstval), getupperbound(firstval)
allsame = true
for v in _values(d)
if !(getcategory(v) == cat && getlowerbound(v) == lb && getupperbound(v) == ub)
allsame = false
break
elseif v in m.customNames
allsame = false
break
end
end
if allsame
for it in _values(d) # Mark variables in JuMPContainer as printed
in_dictlist[it.col] = true
end
str *= sep * cont_str(mode,d,mathmode=true) * eol
end
end
# Display non-indexed variables
for i in 1:m.numCols
in_dictlist[i] && continue
var_name = var_str(mode,m,i)
var_lb, var_ub = m.colLower[i], m.colUpper[i]
str_lb = var_lb == -Inf ? "-"*sym[:infty] : str_round(var_lb)
str_ub = var_ub == +Inf ? sym[:infty] : str_round(var_ub)
var_cat = m.colCat[i]
if var_cat == :Bin # x binary
str *= string(sep, var_name,
" ", sym[:in],
" ", sym[:open_set],
"0,1", sym[:close_set])
elseif var_cat == :SemiInt # x in union of 0 and {lb,...,ub}
str *= string(sep, var_name,
" ", sym[:in],
" ", sym[:open_set],
str_lb, ",", sym[:dots], ",", str_ub,
sym[:close_set],
" ", sym[:union], " ",
sym[:open_set], "0", sym[:close_set])
elseif var_cat == :SemiCont # x in union of 0 and [lb,ub]
str *= string(sep, var_name,
" ", sym[:in],
" ", sym[:open_rng],
str_lb, ",", str_ub,
sym[:close_rng],
" ", sym[:union], " ",
sym[:open_set], "0", sym[:close_set])
elseif var_cat == :Fixed
str *= string(sep, var_name, " = ", str_lb)
elseif var_lb == -Inf && var_ub == +Inf # Free variable
str *= string(sep, var_name, " free")
elseif var_lb == -Inf # No lower bound
str *= string(sep, var_name, " ", sym[:leq], " ", str_ub)
elseif var_ub == +Inf # No upper bound
str *= string(sep, var_name, " ", sym[:geq], " ", str_lb)
else
str *= string(sep, str_lb, " ", sym[:leq],
" ", var_name, " ",
sym[:leq], " ", str_ub)
end
if var_cat == :Int
str *= string(", ", sym[:integer])
end
str *= eol
end
ijl ? "\$\$ \\begin{alignat*}{1}"*str*"\\end{alignat*}\n \$\$" :
str
end
# Handlers to use correct symbols
model_str(::Type{REPLMode}, m::Model) =
model_str(REPLMode, m, repl)
model_str(::Type{IJuliaMode}, m::Model; mathmode=true) =
math(model_str(IJuliaMode, m, ijulia), mathmode)
#------------------------------------------------------------------------
## Variable
#------------------------------------------------------------------------
Base.show(io::IO, v::Variable) = print(io, var_str(REPLMode,v))
@compat Base.show(io::IO, ::MIME"text/latex", v::Variable) =
print(io, var_str(IJuliaMode,v,mathmode=false))
function var_str(mode, m::Model, col::Int; mathmode=true)
colNames = mode == REPLMode ? m.colNames : m.colNamesIJulia
if colNames[col] === EMPTYSTRING
for cont in m.dictList
fill_var_names(mode, colNames, cont)
end
end
return math(colNames[col] == "" ? "col_$col" : colNames[col], mathmode)
end
function fill_var_names{N}(mode, colNames, v::JuMPArray{Variable,N})
data = printdata(v)
idxsets = data.indexsets
lengths = map(length, idxsets)
name = data.name
cprod = cumprod([lengths...])
for (ind,var) in enumerate(v.innerArray)
idx_strs = [string( idxsets[1][mod1(ind,lengths[1])] )]
for i = 2:N
push!(idx_strs, string(idxsets[i][Int(ceil(mod1(ind,cprod[i]) / cprod[i-1]))]))
end
if mode == IJuliaMode
colNames[var.col] = string(name, "_{", join(idx_strs,",") , "}")
else
colNames[var.col] = string(name, "[", join(idx_strs,",") , "]")
end
end
end
function fill_var_names(mode, colNames, v::JuMPDict{Variable})
name = printdata(v).name
for (ind,var) in zip(keys(v),values(v))
if mode == IJuliaMode
colNames[var.col] = string(name, "_{", join([string(i) for i in ind],","), "}")
else
colNames[var.col] = string(name, "[", join([string(i) for i in ind],","), "]")
end
end
end
function fill_var_names(mode, colNames, v::Array{Variable})
isempty(v) && return
sizes = size(v)
m = first(v).m
if !haskey(m.varData, v)
return
end
name = m.varData[v].name
for (ii,var) in enumerate(v)
@assert var.m === m
ind = ind2sub(sizes, ii)
colNames[var.col] = if mode === IJuliaMode
string(name, "_{", join(ind, ","), "}")
else
string(name, "[", join(ind, ","), "]")
end
end
return
end
# Handlers to use correct symbols
var_str(::Type{REPLMode}, v::Variable) =
var_str(REPLMode, v.m, v.col)
var_str(::Type{IJuliaMode}, v::Variable; mathmode=true) =
var_str(IJuliaMode, v.m, v.col, mathmode=mathmode)
#------------------------------------------------------------------------
## Norm
#------------------------------------------------------------------------
Base.show(io::IO, j::Norm) = print(io, norm_str(REPLMode,j))
@compat Base.show(io::IO, ::MIME"text/latex", j::Norm) =
print(io, norm_str(IJuliaMode,j))
function norm_str(mode, n::Norm, sym::PrintSymbols)
string(sym[:Vert], "[",
join(map(t->aff_str(mode,t),n.terms),","),
"]", sym[:Vert], sym[:sub2])
end
# Handlers to use correct symbols
norm_str(::Type{REPLMode}, n::Norm) =
norm_str(REPLMode, n, repl)
norm_str(::Type{IJuliaMode}, n::Norm; mathmode=true) =
math(norm_str(IJuliaMode, n, ijulia), mathmode)
exprstr(n::Norm) = norm_str(REPLMode, n)
#------------------------------------------------------------------------
## JuMPContainer{Variable}
#------------------------------------------------------------------------
Base.show(io::IO, j::Union{JuMPContainer{Variable}, Array{Variable}}) = print(io, cont_str(REPLMode,j))
@compat Base.show(io::IO, ::MIME"text/latex", j::Union{JuMPContainer{Variable},Array{Variable}}) =
print(io, cont_str(IJuliaMode,j,mathmode=false))
# Generic string converter, called by mode-specific handlers
# Assumes that !isempty(j)
_getmodel(j::Array{Variable}) = first(j).m
_getmodel(j::JuMPContainer) = getmeta(j, :model)
function cont_str(mode, j, sym::PrintSymbols)
# Check if anything in the container
if isempty(j)
name = isa(j, JuMPContainer) ? printdata(j).name : "Empty Array{Variable}"
return "$name (no indices)"
end
m = _getmodel(j)
# If this looks like a user-created Array, then defer to base printing
if !haskey(m.varData, j)
@assert isa(j, Array{Variable})
if ndims(j) == 1
return sprint((io,v) -> Base.show_vector(io, v, "[", "]"), j)
else
return sprint((io,X) -> Base.showarray(io, X), j)
end
end
data = printdata(j)
# 1. construct the part with variable name and indexing
locvars = map(data.indexexprs) do tmp
var = tmp.idxvar
if var == nothing
return ""
else
return string(var)
end
end
num_dims = length(data.indexsets)
idxvars = Array(UTF8String, num_dims)
dimidx = 1
for i in 1:num_dims
if data.indexexprs[i].idxvar == nothing
while DIMS[dimidx] in locvars
dimidx += 1
end
if dimidx > length(DIMS)
error("Unexpectedly ran out of indices")
end
idxvars[i] = DIMS[dimidx]
dimidx += 1
else
idxvars[i] = locvars[i]
end
end
name_idx = string(data.name, sym[:ind_open], join(idxvars,","), sym[:ind_close])
# 2. construct part with what we index over
idx_sets = sym[:for_all]*" "*join(map(dim->string(idxvars[dim], " ", sym[:in],
" ", sym[:open_set],
cont_str_set(data.indexsets[dim],sym[:dots]),
sym[:close_set]), 1:num_dims), ", ")
# 3. Handle any conditions
if isa(j, JuMPDict) && data.condition != :()
idx_sets *= string(" s.t. ",join(parse_conditions(data.condition), " and "))
end
# 4. Bounds and category, if possible, and return final string
a_var = first(_values(j))
model = a_var.m
var_cat = model.colCat[a_var.col]
var_lb = model.colLower[a_var.col]
var_ub = model.colUpper[a_var.col]
# Variables may have different bounds, so we can't really print nicely
# at this time (possibly ever, as they could have been changed post
# creation, which we'd never be able to handle.
all_same_lb = true
all_same_ub = true
for var in _values(j)
all_same_lb &= model.colLower[var.col] == var_lb
all_same_ub &= model.colUpper[var.col] == var_ub
end
str_lb = var_lb == -Inf ? "-"*sym[:infty] : str_round(var_lb)
str_ub = var_ub == +Inf ? sym[:infty] : str_round(var_ub)
# Special case bounds printing based on the category
if var_cat == :Bin # x in {0,1}
return "$name_idx $(sym[:in]) $(sym[:open_set])0,1$(sym[:close_set]) $idx_sets"
elseif var_cat == :SemiInt # x in union of 0 and {lb,...,ub}
si_lb = all_same_lb ? str_lb : sym[:dots]
si_ub = all_same_ub ? str_ub : sym[:dots]
return "$name_idx $(sym[:in]) $(sym[:open_set])$si_lb,$(sym[:dots]),$si_ub$(sym[:close_set]) $(sym[:union]) $(sym[:open_set])0$(sym[:close_set]) $idx_sets"
elseif var_cat == :SemiCont # x in union of 0 and [lb,ub]
si_lb = all_same_lb ? str_lb : sym[:dots]
si_ub = all_same_ub ? str_ub : sym[:dots]
return "$name_idx $(sym[:in]) $(sym[:open_rng])$si_lb,$si_ub$(sym[:close_rng]) $(sym[:union]) $(sym[:open_set])0$(sym[:close_set]) $idx_sets"
elseif var_cat == :Fixed
si_bnd = all_same_lb ? str_lb : sym[:dots]
return "$name_idx = $si_bnd $idx_sets"
end
# Continuous and Integer
idx_sets = var_cat == :Int ? ", $(sym[:integer]), $idx_sets" : " $idx_sets"
if all_same_lb && all_same_ub
# Free variable
var_lb == -Inf && var_ub == +Inf && return "$name_idx free$idx_sets"
# No lower bound
var_lb == -Inf && return "$name_idx $(sym[:leq]) $str_ub$idx_sets"
# No upper bound
var_ub == +Inf && return "$name_idx $(sym[:geq]) $str_lb$idx_sets"
# Range
return "$str_lb $(sym[:leq]) $name_idx $(sym[:leq]) $str_ub$idx_sets"
end
if all_same_lb && !all_same_ub
var_lb == -Inf && return "$name_idx $(sym[:leq]) $(sym[:dots])$idx_sets"
return "$str_lb $(sym[:leq]) $name_idx $(sym[:leq]) $(sym[:dots])$idx_sets"
end
if !all_same_lb && all_same_ub
var_ub == +Inf && return "$name_idx $(sym[:geq]) $(sym[:dots])$idx_sets"
return "$(sym[:dots]) $(sym[:leq]) $name_idx $(sym[:leq]) $str_ub$idx_sets"
end
return "$(sym[:dots]) $(sym[:leq]) $name_idx $(sym[:leq]) $(sym[:dots])$idx_sets"
end
# UTILITY FUNCTIONS FOR cont_str
function cont_str_set(idxset::Union{Range,Array}, dots) # 2:2:20 -> {2,4..18,20}
length(idxset) == 0 && return dots
length(idxset) == 1 && return string(idxset[1])
length(idxset) == 2 && return string(idxset[1],",",idxset[2])
length(idxset) == 3 && return string(idxset[1],",",idxset[2],",",idxset[3])
length(idxset) == 4 && return string(idxset[1],",",idxset[2],",",idxset[3],",",idxset[4])
return string(idxset[1],",",idxset[2],",",dots,",",idxset[end-1],",",idxset[end])
end
cont_str_set(idxset, dots) = return dots # Fallback
# parse_conditions
# Not exported. Traverses an expression and constructs an array with entries
# corresponding to each condition. More specifically, if the condition is
# a && (b || c) && (d && e), it returns [a, b || c, d, e].
parse_conditions(not_an_expr) = not_an_expr
function parse_conditions(expr::Expr)
ret = Any[]
if expr.head != :&&
return push!(ret, expr)
end
recurse = map(parse_conditions, expr.args)
vcat(ret, recurse...)
end
# Handlers to use correct symbols
cont_str(::Type{REPLMode}, j; mathmode=false) =
cont_str(REPLMode, j, repl)
cont_str(::Type{IJuliaMode}, j; mathmode=true) =
math(cont_str(IJuliaMode, j, ijulia), mathmode)
#------------------------------------------------------------------------
## JuMPContainer{Float64}
#------------------------------------------------------------------------
Base.show(io::IO, j::JuMPContainer{Float64}) = print(io, val_str(REPLMode,j))
function val_str{N}(mode, j::JuMPArray{Float64,N})
m = _getmodel(j)
data = printdata(j)
out_str = "$(data.name): $N dimensions:\n"
if isempty(j)
return out_str * " (no entries)"
end
function val_str_rec(depth, parent_index::Vector{Any}, parent_str::AbstractString)
# Turn index set into strings
indexset = data.indexsets[depth]
index_strs = map(string, indexset)
# Determine longest index so we can align columns
max_index_len = 0
for index_str in index_strs
max_index_len = max(max_index_len, strwidth(index_str))
end
# If have recursed, we need to prepend the parent's index strings
# accumulated, as well as white space so the alignment works.
for i = 1:length(index_strs)
index_strs[i] = parent_str * lpad(index_strs[i],max_index_len," ")
end
# Create a string for the number of spaces we need to indent
indent = " "^(2*(depth-1))
# Determine the need to recurse
if depth == N
# Deepest level
for i = 1:length(indexset)
value = length(parent_index) == 0 ?
j[indexset[i]] :
j[parent_index...,indexset[i]]
out_str *= indent * "[" * index_strs[i] * "] = $value\n"
end
else
# At least one more layer to go
for i = 1:length(indexset)
index = indexset[i]
# Print the ":" version of indices we will recurse over
out_str *= indent * "[" * index_strs[i] * ",:"^(N-depth) * "]\n"
val_str_rec(depth+1,
length(parent_index) == 0 ? Any[index] : Any[parent_index...,index],
index_strs[i] * ",")
end
end
end
val_str_rec(1,Any[],"")
return out_str
end
# support types that don't have built-in comparison
function _isless(t1::Tuple, t2::Tuple)
n1, n2 = length(t1), length(t2)
for i = 1:min(n1, n2)
a, b = t1[i], t2[i]
if !isequal(a, b)
return applicable(isless,a,b) ? isless(a, b) : isless(hash(a),hash(b))
end
end
return n1 < n2
end
function val_str(mode, dict::JuMPDict{Float64})
nelem = length(dict.tupledict)
isempty(dict) && return ""
m = _getmodel(dict)
data = printdata(dict)
out_str = "$(data.name): $(length(data.indexsets)) dimensions, $nelem "
out_str *= nelem == 1 ? "entry" : "entries"
out_str *= ":"
sortedkeys = sort(collect(keys(dict.tupledict)), lt = _isless)
ndim = length(first(keys(dict.tupledict)))
key_strs = Array(AbstractString, length(dict), ndim)
for (i, key) in enumerate(sortedkeys)
for j in 1:ndim
key_strs[i,j] = string(key[j])
end
end
max_dim_lens = map(1:ndim) do i
maximum(map(length,key_strs[:,i]))
end
key_str = map(1:length(dict)) do i
join(map(1:ndim) do j
lpad(key_strs[i,j], max_dim_lens[j])
end, ",")
end
max_key_len = maximum(map(length,key_str))
for (i,key) in enumerate(sortedkeys)
val = dict[key...]
out_str *= "\n" * lpad("[$(key_str[i])]", max_key_len+3)
out_str *= " = $val"
end
return out_str
end
#------------------------------------------------------------------------
## AffExpr (not GenericAffExpr)
#------------------------------------------------------------------------
Base.show(io::IO, a::AffExpr) = print(io, aff_str(REPLMode,a))
@compat Base.show(io::IO, ::MIME"text/latex", a::AffExpr) =
print(io, math(aff_str(IJuliaMode,a),false))
# Generic string converter, called by mode-specific handlers
function aff_str(mode, a::AffExpr, show_constant=true)
# If the expression is empty, return the constant (or 0)
if length(a.vars) == 0
return show_constant ? str_round(a.constant) : "0"
end
# Get reference to models included in this expression
moddict = Dict{Model,IndexedVector{Float64}}()
for var in a.vars
if !haskey(moddict, var.m)
moddict[var.m] = IndexedVector(Float64,var.m.numCols)
end
end
# Collect like terms
for ind in 1:length(a.vars)
addelt!(moddict[a.vars[ind].m], a.vars[ind].col, a.coeffs[ind])
end
elm = 1
term_str = Array(UTF8String, 2*length(a.vars))
# For each model
for m in keys(moddict)
indvec = moddict[m]
# For each non-zero for this model
for i in 1:indvec.nnz
idx = indvec.nzidx[i]
elt = indvec.elts[idx]
abs(elt) < PRINT_ZERO_TOL && continue # e.g. x - x
pre = abs(abs(elt)-1) < PRINT_ZERO_TOL ? "" : str_round(abs(elt)) * " "
var = var_str(mode,m,idx)
term_str[2*elm-1] = elt < 0 ? " - " : " + "
term_str[2*elm ] = "$pre$var"
elm += 1
end
end
if elm == 1
# Will happen with cancellation of all terms
# We should just return the constant, if its desired
return show_constant ? str_round(a.constant) : "0"
else
# Correction for very first term - don't want a " + "/" - "
term_str[1] = (term_str[1] == " - ") ? "-" : ""
ret = join(term_str[1:2*(elm-1)])
if abs(a.constant) >= PRINT_ZERO_TOL && show_constant
ret = string(ret, a.constant < 0 ? " - " : " + ", str_round(abs(a.constant)))
end
return ret
end
end
# Precompile for faster boot times
Base.precompile(aff_str, (Type{JuMP.REPLMode}, AffExpr, Bool))
Base.precompile(aff_str, (Type{JuMP.IJuliaMode}, AffExpr, Bool))
Base.precompile(aff_str, (Type{JuMP.REPLMode}, AffExpr))
Base.precompile(aff_str, (Type{JuMP.IJuliaMode}, AffExpr))
#------------------------------------------------------------------------
## GenericQuadExpr
#------------------------------------------------------------------------
Base.show(io::IO, q::GenericQuadExpr) = print(io, quad_str(REPLMode,q))
@compat Base.show(io::IO, ::MIME"text/latex", q::GenericQuadExpr) =
print(io, quad_str(IJuliaMode,q,mathmode=false))
# Generic string converter, called by mode-specific handlers
function quad_str(mode, q::GenericQuadExpr, sym)
length(q.qvars1) == 0 && return aff_str(mode,q.aff)
# Canonicalize x_i * x_j so i <= j
for ind in 1:length(q.qvars1)
if q.qvars2[ind].col < q.qvars1[ind].col
q.qvars1[ind],q.qvars2[ind] = q.qvars2[ind],q.qvars1[ind]
end
end
# Merge duplicates
Q = sparse([v.col for v in q.qvars1], [v.col for v in q.qvars2], q.qcoeffs)
I,J,V = findnz(Q)
Qnnz = length(V)
# Odd terms are +/i, even terms are the variables/coeffs
term_str = Array(UTF8String, 2*Qnnz)
if Qnnz > 0
for ind in 1:Qnnz
val = abs(V[ind])
pre = (val == 1.0 ? "" : str_round(val)*" ")
x = var_str(mode,q.qvars1[ind].m,I[ind])
y = var_str(mode,q.qvars1[ind].m,J[ind])
term_str[2*ind-1] = V[ind] < 0 ? " - " : " + "
term_str[2*ind ] = "$pre$x" * (x == y ? sym[:sq] : "$(sym[:times])$y")
end
# Correction for first term as there is no space
# between - and variable coefficient/name
term_str[1] = V[1] < 0 ? "-" : ""
end
ret = join(term_str)
if q.aff.constant == 0 && length(q.aff.vars) == 0
return ret
else
aff = aff_str(mode,q.aff)
if aff[1] == '-'
return string(ret, " - ", aff[2:end])
else
return string(ret, " + ", aff)
end
end
end
# Handlers to use correct symbols
quad_str(::Type{REPLMode}, q::GenericQuadExpr) =
quad_str(REPLMode, q, repl)
quad_str(::Type{IJuliaMode}, q::GenericQuadExpr; mathmode=true) =
math(quad_str(IJuliaMode, q, ijulia), mathmode)
#------------------------------------------------------------------------
## SOCExpr
#------------------------------------------------------------------------
Base.show(io::IO, c::SOCExpr) = print(io, expr_str(REPLMode, c))
@compat Base.show(io::IO, ::MIME"text/latex", c::SOCExpr) =
print(io, expr_str(IJuliaMode, c))
function expr_str(mode, c::SOCExpr)
coeff = (c.coeff == 1) ? "" : string(c.coeff, " ")
aff = aff_str(mode, c.aff)
if aff[1] == '-'
chain = " - "
aff = aff[2:end]
elseif aff == "0"
aff = ""
chain = ""
else # positive
chain = " + "
end
string(coeff, norm_str(mode, c.norm), chain, aff)
end
#------------------------------------------------------------------------
## GenericRangeConstraint
#------------------------------------------------------------------------
Base.show(io::IO, c::GenericRangeConstraint) = print(io, con_str(REPLMode,c))
@compat Base.show(io::IO, ::MIME"text/latex", c::GenericRangeConstraint) =
print(io, con_str(IJuliaMode,c,mathmode=false))
# Generic string converter, called by mode-specific handlers
function con_str(mode, c::GenericRangeConstraint, sym)
s = sense(c)
a = aff_str(mode,c.terms,false)
if s == :range
out_str = "$(str_round(c.lb)) $(sym[:leq]) $a $(sym[:leq]) $(str_round(c.ub))"
else
rel = s == :<= ? sym[:leq] : (s == :>= ? sym[:geq] : sym[:eq])
out_str = string(a," ",rel," ",str_round(rhs(c)))
end
out_str
end
# Handlers to use correct symbols
con_str(::Type{REPLMode}, c::GenericRangeConstraint; args...) =
con_str(REPLMode, c, repl)
con_str(::Type{IJuliaMode}, c::GenericRangeConstraint; mathmode=true) =
math(con_str(IJuliaMode, c, ijulia), mathmode)
#------------------------------------------------------------------------
## QuadConstraint
#------------------------------------------------------------------------
Base.show(io::IO, c::QuadConstraint) = print(io, con_str(REPLMode,c))
@compat Base.show(io::IO, ::MIME"text/latex", c::QuadConstraint) =
print(io, con_str(IJuliaMode,c,mathmode=false))
# Generic string converter, called by mode-specific handlers
function con_str(mode, c::QuadConstraint, sym)
s = c.sense
r = (s == :<=) ? sym[:leq] : (s == :>= ? sym[:geq] : sym[:eq])
"$(quad_str(mode,c.terms)) $r 0"
end
# Handlers to use correct symbols
con_str(::Type{REPLMode}, c::QuadConstraint; args...) =
con_str(REPLMode, c, repl)
con_str(::Type{IJuliaMode}, c::QuadConstraint; mathmode=true) =
math(con_str(IJuliaMode, c, ijulia), mathmode)
#------------------------------------------------------------------------
## SOCConstraint
#------------------------------------------------------------------------
Base.show(io::IO, c::SOCConstraint) = print(io, con_str(REPLMode,c))
@compat Base.show(io::IO, ::MIME"text/latex", c::SOCConstraint) =
print(io, con_str(IJuliaMode,c))
function con_str(mode, c::SOCConstraint, sym::PrintSymbols)
ne = c.normexpr
coeff = ne.coeff == 1 ? "" : string(ne.coeff, " ")
nrm = norm_str(mode, ne.norm)
aff = aff_str(mode, -ne.aff)
string(coeff, nrm, " $(repl[:leq]) ", aff)
end
# Handlers to use correct symbols
con_str(::Type{REPLMode}, c::SOCConstraint; args...) =
con_str(REPLMode, c, repl)
con_str(::Type{IJuliaMode}, c::SOCConstraint; mathmode=true) =
math(con_str(IJuliaMode, c, ijulia), mathmode)
#------------------------------------------------------------------------
## SOSConstraint
#------------------------------------------------------------------------
Base.show(io::IO, c::SOSConstraint) = print(io, con_str(REPLMode,c))
@compat Base.show(io::IO, ::MIME"text/latex", c::SOSConstraint) =
print(io, con_str(IJuliaMode,c,mathmode=false))
# Generic string converter, called by mode-specific handlers
function con_str(mode, c::SOSConstraint, sym::PrintSymbols)
term_str = [string(str_round(c.weights[i]), " ", c.terms[i])
for i in 1:length(c.terms)]
"$(c.sostype): $(sym[:open_set])$(join(term_str,", "))$(sym[:close_set])"
end
# Handlers to use correct symbols
con_str(::Type{REPLMode}, c::SOSConstraint; args...) =
con_str(REPLMode, c, repl)
con_str(::Type{IJuliaMode}, c::SOSConstraint; mathmode=true) =
math(con_str(IJuliaMode, c, ijulia), mathmode)
#------------------------------------------------------------------------
## SDConstraint
#------------------------------------------------------------------------
Base.show(io::IO, c::SDConstraint) = print(io, con_str(REPLMode,c))
@compat Base.show(io::IO, ::MIME"text/latex", c::SDConstraint) =
print(io, con_str(IJuliaMode,c,mathmode=false))
# Generic string converter, called by mode-specific handlers
function con_str(mode, c::SDConstraint, succeq0)
t = c.terms
str = sprint(print, t)
splitted = split(str, "\n")[2:end]
center = ceil(Int, length(splitted)/2)
splitted[center] *= succeq0
join(splitted, "\n")
end
# Handlers to use correct symbols
con_str(::Type{REPLMode}, c::SDConstraint; args...) =
con_str(REPLMode, c, repl[:succeq0])
con_str(::Type{IJuliaMode}, c::SDConstraint; mathmode=true) =
math(con_str(IJuliaMode, c, ijulia[:succeq0], mathmode))
#------------------------------------------------------------------------
## ConstraintRef
#------------------------------------------------------------------------
Base.show(io::IO, c::ConstraintRef{Model,LinearConstraint}) = print(io, con_str(REPLMode,c.m.linconstr[c.idx]))
Base.show(io::IO, c::ConstraintRef{Model,QuadConstraint}) = print(io, con_str(REPLMode,c.m.quadconstr[c.idx]))
Base.show(io::IO, c::ConstraintRef{Model,SOSConstraint}) = print(io, con_str(REPLMode,c.m.sosconstr[c.idx]))
Base.show(io::IO, c::ConstraintRef{Model,SOCConstraint}) = print(io, con_str(REPLMode,c.m.socconstr[c.idx]))
Base.show(io::IO, c::ConstraintRef{Model,SDConstraint}) = print(io, con_str(REPLMode,c.m.sdpconstr[c.idx]))
function Base.show(io::IO, c::ConstraintRef{Model,NonlinearConstraint})
print(io, "Reference to nonlinear constraint #$(linearindex(c))")
end
@compat Base.show(io::IO, ::MIME"text/latex", c::ConstraintRef{Model,LinearConstraint}) =
print(io, con_str(IJuliaMode,c.m.linconstr[c.idx],mathmode=false))
@compat Base.show(io::IO, ::MIME"text/latex", c::ConstraintRef{Model,QuadConstraint}) =
print(io, con_str(IJuliaMode,c.m.quadconstr[c.idx],mathmode=false))
@compat Base.show(io::IO, ::MIME"text/latex", c::ConstraintRef{Model,SOSConstraint}) =
print(io, con_str(IJuliaMode,c.m.sosconstr[c.idx],mathmode=false))
| [
2,
220,
15069,
1584,
11,
314,
391,
5648,
768,
11,
26154,
367,
1229,
3202,
660,
11,
20404,
40753,
259,
11,
290,
20420,
198,
2,
220,
770,
8090,
6127,
5178,
318,
2426,
284,
262,
2846,
286,
262,
29258,
5094,
198,
2,
220,
13789,
11,
410,
13,
362,
13,
15,
13,
1002,
257,
4866,
286,
262,
4904,
43,
373,
407,
9387,
351,
428,
198,
2,
220,
2393,
11,
921,
460,
7330,
530,
379,
2638,
1378,
5908,
16496,
13,
2398,
14,
44,
6489,
14,
17,
13,
15,
11757,
198,
29113,
29113,
7804,
4242,
2,
198,
2,
12585,
7378,
198,
2,
1052,
37139,
291,
21128,
3303,
329,
22300,
198,
2,
4091,
2638,
1378,
12567,
13,
785,
14,
16980,
544,
27871,
14,
33018,
7378,
13,
20362,
198,
29113,
29113,
7804,
4242,
2,
198,
2,
3601,
13,
20362,
198,
2,
1439,
366,
37784,
34654,
1,
329,
12585,
7378,
3858,
13,
198,
2,
532,
1024,
37061,
284,
5035,
21360,
5050,
329,
45285,
393,
314,
16980,
544,
13,
198,
2,
532,
2312,
21360,
5050,
788,
1208,
262,
3376,
14354,
284,
779,
656,
257,
198,
2,
220,
220,
14276,
4731,
27098,
13,
383,
314,
16980,
544,
32847,
481,
635,
14441,
287,
16320,
41,
897,
198,
2,
220,
220,
923,
14,
19836,
15940,
13,
198,
2,
532,
1675,
1064,
13570,
2438,
329,
257,
2099,
287,
428,
2393,
11,
2989,
329,
4600,
2235,
5994,
5376,
63,
198,
2,
532,
6127,
994,
857,
407,
761,
284,
307,
3049,
11,
287,
1109,
21654,
491,
8142,
2866,
198,
2,
220,
220,
1626,
1738,
355,
428,
2438,
318,
38999,
88,
1576,
355,
340,
318,
13,
198,
2,
532,
34428,
278,
5254,
389,
287,
1332,
14,
4798,
13,
20362,
11,
3584,
1332,
14,
46616,
13,
20362,
198,
2,
220,
220,
318,
635,
4856,
262,
32315,
14,
38011,
2438,
20823,
355,
880,
13,
198,
2,
532,
7308,
13,
4798,
290,
7308,
13,
8841,
1111,
23191,
284,
7308,
13,
12860,
11,
611,
484,
389,
407,
198,
2,
220,
220,
13869,
5447,
13,
198,
29113,
29113,
7804,
4242,
2,
198,
198,
2,
16718,
329,
4596,
19775,
198,
397,
8709,
12578,
19076,
198,
397,
8709,
45285,
19076,
1279,
25,
12578,
19076,
198,
397,
8709,
314,
16980,
544,
19076,
1279,
25,
12578,
19076,
198,
198,
2,
10127,
1223,
318,
6632,
393,
407,
329,
262,
4959,
286,
13570,
340,
198,
9979,
4810,
12394,
62,
57,
34812,
62,
51,
3535,
796,
352,
68,
12,
940,
198,
198,
2,
7343,
286,
36525,
1695,
329,
7885,
13570,
198,
9979,
360,
3955,
50,
796,
14631,
72,
2430,
73,
2430,
74,
2430,
75,
2430,
76,
2430,
77,
8973,
198,
198,
2,
5053,
525,
2163,
326,
9196,
7773,
329,
262,
4959,
286,
13570,
198,
2,
304,
13,
70,
13,
220,
220,
642,
13,
18,
220,
5218,
220,
642,
13,
18,
198,
2,
220,
220,
220,
220,
220,
220,
220,
352,
13,
15,
220,
5218,
220,
352,
198,
8818,
965,
62,
744,
7,
69,
3712,
43879,
2414,
8,
198,
220,
220,
220,
2352,
7,
69,
8,
6624,
657,
13,
15,
11405,
1441,
366,
15,
1,
1303,
10283,
1051,
572,
6632,
198,
220,
220,
220,
965,
796,
4731,
7,
69,
8,
198,
220,
220,
220,
4129,
7,
2536,
8,
18189,
362,
11405,
965,
58,
437,
12,
16,
25,
437,
60,
6624,
27071,
15,
1,
5633,
965,
58,
16,
25,
437,
12,
17,
60,
1058,
965,
198,
437,
198,
198,
2,
16926,
46,
25,
651,
5755,
286,
428,
0,
770,
318,
691,
257,
31904,
11,
290,
815,
307,
7308,
13,
27160,
198,
2,
357,
392,
2192,
2107,
612,
11,
355,
880,
8,
198,
62,
27160,
7,
87,
3712,
19182,
8,
796,
2124,
198,
62,
27160,
7,
87,
8,
796,
7308,
13,
27160,
7,
87,
8,
198,
198,
2,
45285,
12,
11423,
14354,
198,
2,
21035,
994,
25,
3740,
1378,
268,
13,
31266,
13,
2398,
14,
15466,
14,
11209,
12,
1065,
4309,
198,
2,
815,
2192,
670,
3734,
319,
3964,
198,
9979,
2186,
796,
360,
713,
90,
13940,
23650,
11,
48504,
23,
10100,
92,
7,
198,
220,
220,
220,
1058,
293,
80,
220,
220,
220,
220,
220,
220,
220,
5218,
357,
271,
62,
28457,
3419,
5633,
33490,
2625,
1058,
366,
35705,
97,
12340,
198,
220,
220,
220,
1058,
469,
80,
220,
220,
220,
220,
220,
220,
220,
5218,
357,
271,
62,
28457,
3419,
5633,
366,
29,
2625,
1058,
366,
35705,
98,
12340,
198,
220,
220,
220,
1058,
27363,
220,
220,
220,
220,
220,
220,
220,
220,
5218,
357,
271,
62,
28457,
3419,
5633,
366,
855,
1,
1058,
366,
2625,
828,
198,
220,
220,
220,
1058,
22355,
220,
220,
220,
220,
220,
5218,
366,
9,
1600,
198,
220,
220,
220,
1058,
31166,
220,
220,
220,
220,
220,
220,
220,
220,
5218,
366,
31185,
1600,
198,
220,
220,
220,
1058,
521,
62,
9654,
220,
220,
5218,
12878,
1600,
198,
220,
220,
220,
1058,
521,
62,
19836,
220,
5218,
366,
60,
1600,
198,
220,
220,
220,
1058,
1640,
62,
439,
220,
220,
220,
5218,
357,
271,
62,
28457,
3419,
5633,
366,
1640,
477,
1,
1058,
366,
24861,
222,
12340,
198,
220,
220,
220,
1058,
259,
220,
220,
220,
220,
220,
220,
220,
220,
5218,
357,
271,
62,
28457,
3419,
5633,
366,
259,
1,
1058,
366,
24861,
230,
12340,
198,
220,
220,
220,
1058,
9654,
62,
2617,
220,
220,
5218,
45144,
1600,
198,
220,
220,
220,
1058,
67,
1747,
220,
220,
220,
220,
220,
220,
5218,
357,
271,
62,
28457,
3419,
5633,
366,
492,
1,
1058,
366,
9962,
828,
198,
220,
220,
220,
1058,
19836,
62,
2617,
220,
5218,
366,
92,
1600,
198,
220,
220,
220,
1058,
24592,
220,
220,
220,
220,
220,
5218,
357,
271,
62,
28457,
3419,
5633,
366,
273,
1,
1058,
366,
24861,
103,
12340,
198,
220,
220,
220,
1058,
259,
19628,
220,
220,
220,
220,
220,
5218,
357,
271,
62,
28457,
3419,
5633,
366,
18943,
1,
1058,
366,
24861,
252,
12340,
198,
220,
220,
220,
1058,
9654,
62,
81,
782,
220,
220,
5218,
12878,
1600,
198,
220,
220,
220,
1058,
19836,
62,
81,
782,
220,
5218,
366,
60,
1600,
198,
220,
220,
220,
1058,
41433,
220,
220,
220,
5218,
366,
41433,
1600,
198,
220,
220,
220,
1058,
82,
1229,
344,
80,
15,
220,
220,
220,
5218,
366,
318,
5026,
485,
69,
9504,
1600,
198,
220,
220,
220,
1058,
42369,
220,
220,
220,
220,
220,
220,
5218,
357,
271,
62,
28457,
3419,
5633,
366,
15886,
1,
1058,
366,
447,
244,
12340,
198,
220,
220,
220,
1058,
7266,
17,
220,
220,
220,
220,
220,
220,
5218,
357,
271,
62,
28457,
3419,
5633,
45434,
17,
1,
1058,
366,
158,
224,
224,
48774,
198,
198,
2,
314,
16980,
544,
12,
11423,
14354,
198,
9979,
1312,
73,
43640,
796,
360,
713,
90,
13940,
23650,
11,
48504,
23,
10100,
92,
7,
198,
220,
220,
220,
1058,
293,
80,
220,
220,
220,
220,
220,
220,
220,
5218,
366,
6852,
293,
80,
1600,
198,
220,
220,
220,
1058,
469,
80,
220,
220,
220,
220,
220,
220,
220,
5218,
366,
6852,
469,
80,
1600,
198,
220,
220,
220,
1058,
27363,
220,
220,
220,
220,
220,
220,
220,
220,
5218,
366,
28,
1600,
198,
220,
220,
220,
1058,
22355,
220,
220,
220,
220,
220,
5218,
366,
6852,
22355,
33172,
198,
220,
220,
220,
1058,
31166,
220,
220,
220,
220,
220,
220,
220,
220,
5218,
366,
61,
17,
1600,
198,
220,
220,
220,
1058,
521,
62,
9654,
220,
220,
5218,
366,
23330,
1600,
198,
220,
220,
220,
1058,
521,
62,
19836,
220,
5218,
366,
92,
1600,
198,
220,
220,
220,
1058,
1640,
62,
439,
220,
220,
220,
5218,
366,
6852,
47003,
6852,
1640,
439,
1600,
198,
220,
220,
220,
1058,
259,
220,
220,
220,
220,
220,
220,
220,
220,
5218,
366,
6852,
259,
1600,
198,
220,
220,
220,
1058,
9654,
62,
2617,
220,
220,
5218,
366,
6852,
90,
1600,
198,
220,
220,
220,
1058,
67,
1747,
220,
220,
220,
220,
220,
220,
5218,
366,
6852,
67,
1747,
1600,
198,
220,
220,
220,
1058,
19836,
62,
2617,
220,
5218,
366,
6852,
92,
1600,
198,
220,
220,
220,
1058,
24592,
220,
220,
220,
220,
220,
5218,
366,
6852,
25244,
1600,
198,
220,
220,
220,
1058,
259,
19628,
220,
220,
220,
220,
220,
5218,
366,
6852,
259,
19628,
1600,
198,
220,
220,
220,
1058,
9654,
62,
81,
782,
220,
220,
5218,
366,
6852,
58,
1600,
198,
220,
220,
220,
1058,
19836,
62,
81,
782,
220,
5218,
366,
6852,
60,
1600,
198,
220,
220,
220,
1058,
41433,
220,
220,
220,
5218,
366,
6852,
259,
26867,
11018,
11848,
90,
57,
92,
1600,
198,
220,
220,
220,
1058,
82,
1229,
344,
80,
15,
220,
220,
220,
5218,
366,
6852,
82,
1229,
344,
80,
657,
1600,
198,
220,
220,
220,
1058,
42369,
220,
220,
220,
220,
220,
220,
5218,
366,
6852,
42369,
1600,
198,
220,
220,
220,
1058,
7266,
17,
220,
220,
220,
220,
220,
220,
5218,
45434,
17,
4943,
198,
198,
4906,
26011,
12578,
13940,
2022,
10220,
360,
713,
90,
13940,
23650,
11,
48504,
23,
10100,
92,
198,
198,
2,
1002,
407,
1541,
10688,
14171,
11,
788,
14441,
287,
16320,
41,
897,
923,
14,
19836,
15940,
198,
11018,
7,
82,
11,
11018,
14171,
8,
796,
10688,
14171,
5633,
264,
1058,
37082,
3,
59,
3,
720,
82,
3467,
3,
59,
3,
1,
198,
198,
2,
31904,
284,
804,
510,
11188,
12585,
7378,
29869,
6601,
198,
4798,
7890,
7,
85,
3712,
33018,
7378,
29869,
8,
796,
651,
28961,
7,
85,
11,
1058,
19849,
737,
7785,
6601,
58,
85,
60,
198,
8818,
3601,
7890,
7,
85,
3712,
19182,
90,
43015,
30072,
198,
220,
220,
220,
611,
318,
28920,
7,
85,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4049,
7203,
34,
34574,
17276,
13570,
1366,
329,
281,
6565,
7177,
4943,
198,
220,
220,
220,
886,
198,
220,
220,
220,
285,
796,
717,
7,
85,
737,
76,
198,
220,
220,
220,
285,
13,
7785,
6601,
58,
85,
60,
198,
437,
198,
198,
2,
10097,
982,
198,
2235,
9104,
198,
2,
10097,
982,
198,
8818,
7308,
13,
4798,
7,
952,
3712,
9399,
11,
285,
3712,
17633,
26,
8856,
62,
4798,
62,
25480,
16193,
76,
13,
1050,
9304,
566,
855,
22366,
4008,
198,
220,
220,
220,
8856,
62,
4798,
62,
25480,
8614,
1441,
285,
13,
1050,
9304,
566,
7,
952,
11,
285,
8,
198,
220,
220,
220,
3601,
7,
952,
11,
2746,
62,
2536,
7,
2200,
6489,
19076,
11,
76,
4008,
198,
437,
198,
198,
8818,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
285,
3712,
17633,
8,
198,
220,
220,
220,
22801,
7,
77,
8,
796,
357,
77,
855,
16,
5633,
13538,
1058,
366,
82,
4943,
198,
220,
220,
220,
3601,
7,
952,
11,
285,
13,
26801,
41166,
6624,
1058,
11518,
5633,
366,
11518,
320,
1634,
1,
1058,
14808,
76,
13,
26801,
41166,
6624,
1058,
9452,
11405,
22759,
271,
28920,
7,
76,
13,
26801,
8,
8614,
357,
76,
13,
21283,
79,
7890,
5145,
855,
2147,
11405,
318,
64,
7,
76,
13,
21283,
79,
7890,
13,
21283,
26801,
11,
8504,
29127,
3109,
1050,
6601,
35514,
5633,
366,
9452,
320,
1634,
1,
1058,
366,
14304,
292,
2247,
48774,
198,
220,
220,
220,
44872,
7,
952,
11,
366,
1917,
351,
25,
4943,
198,
220,
220,
220,
299,
2815,
796,
4129,
7,
76,
13,
2815,
1102,
2536,
8,
198,
220,
220,
220,
44872,
7,
952,
11,
366,
1635,
29568,
77,
2815,
8,
14174,
32315,
3,
7,
489,
1523,
7,
77,
2815,
4008,
4943,
198,
220,
220,
220,
299,
47003,
796,
4129,
7,
76,
13,
47003,
1102,
2536,
8,
198,
220,
220,
220,
611,
299,
47003,
1875,
657,
198,
220,
220,
220,
220,
220,
220,
220,
44872,
7,
952,
11,
366,
1635,
29568,
77,
47003,
8,
15094,
81,
1512,
32315,
3,
7,
489,
1523,
7,
77,
47003,
4008,
4943,
198,
220,
220,
220,
886,
198,
220,
220,
220,
36545,
418,
796,
4129,
7,
76,
13,
82,
418,
1102,
2536,
8,
198,
220,
220,
220,
611,
36545,
418,
1875,
657,
198,
220,
220,
220,
220,
220,
220,
220,
44872,
7,
952,
11,
366,
1635,
29568,
5907,
418,
8,
42707,
32315,
3,
7,
489,
1523,
7,
5907,
418,
4008,
4943,
198,
220,
220,
220,
886,
198,
220,
220,
220,
299,
35634,
796,
4129,
7,
76,
13,
35634,
1102,
2536,
8,
198,
220,
220,
220,
611,
299,
35634,
1875,
657,
198,
220,
220,
220,
220,
220,
220,
220,
44872,
7,
952,
11,
366,
1635,
29568,
5907,
420,
8,
31430,
32315,
3,
7,
489,
1523,
7,
5907,
420,
4008,
4943,
198,
220,
220,
220,
886,
198,
220,
220,
220,
299,
21282,
79,
796,
4129,
7,
76,
13,
21282,
79,
1102,
2536,
8,
198,
220,
220,
220,
611,
299,
21282,
79,
1875,
657,
198,
220,
220,
220,
220,
220,
220,
220,
44872,
7,
952,
11,
366,
1635,
29568,
5907,
26059,
8,
5026,
485,
69,
9504,
32315,
3,
7,
489,
1523,
7,
5907,
26059,
4008,
4943,
198,
220,
220,
220,
886,
198,
220,
220,
220,
299,
34431,
796,
285,
13,
21283,
79,
7890,
198,
220,
220,
220,
611,
299,
34431,
5145,
855,
2147,
11405,
4129,
7,
21283,
79,
13,
21283,
1102,
2536,
8,
1875,
657,
198,
220,
220,
220,
220,
220,
220,
220,
44872,
7,
952,
11,
366,
1635,
29568,
13664,
7,
21283,
79,
13,
21283,
1102,
2536,
4008,
1729,
29127,
32315,
3,
7,
489,
1523,
7,
13664,
7,
21283,
79,
13,
21283,
1102,
2536,
22305,
4943,
198,
220,
220,
220,
886,
198,
220,
220,
220,
3601,
7,
952,
11,
366,
1635,
29568,
76,
13,
22510,
5216,
82,
8,
7885,
3,
7,
489,
1523,
7,
76,
13,
22510,
5216,
82,
4008,
4943,
198,
220,
220,
220,
299,
8800,
796,
2160,
7,
76,
13,
4033,
21979,
764,
855,
1058,
33,
259,
8,
198,
220,
220,
220,
299,
600,
796,
2160,
7,
76,
13,
4033,
21979,
764,
855,
1058,
5317,
8,
198,
220,
220,
220,
299,
1416,
796,
2160,
7,
76,
13,
4033,
21979,
764,
855,
1058,
13900,
72,
4264,
8,
198,
220,
220,
220,
299,
13396,
796,
2160,
7,
76,
13,
4033,
21979,
764,
855,
1058,
13900,
72,
5317,
8,
198,
220,
220,
220,
1401,
2536,
796,
4377,
21737,
198,
220,
220,
220,
299,
8800,
6624,
657,
8614,
4574,
0,
7,
7785,
2536,
11,
17971,
77,
8800,
13934,
4943,
198,
220,
220,
220,
299,
600,
6624,
657,
8614,
4574,
0,
7,
7785,
2536,
11,
17971,
77,
600,
18253,
4943,
198,
220,
220,
220,
299,
1416,
220,
6624,
657,
8614,
4574,
0,
7,
7785,
2536,
11,
17971,
77,
1416,
39290,
756,
259,
5623,
4943,
198,
220,
220,
220,
299,
13396,
220,
6624,
657,
8614,
4574,
0,
7,
7785,
2536,
11,
17971,
5907,
72,
10663,
12,
41433,
4943,
198,
220,
220,
220,
611,
318,
28920,
7,
7785,
2536,
8,
198,
220,
220,
220,
220,
220,
220,
220,
44872,
7,
952,
35751,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
44872,
7,
952,
11,
366,
25,
29568,
22179,
7,
7785,
2536,
11,
33172,
366,
4008,
4943,
198,
220,
220,
220,
886,
198,
220,
220,
220,
3601,
7,
952,
11,
366,
50,
14375,
318,
366,
8,
198,
220,
220,
220,
611,
318,
64,
7,
76,
13,
82,
14375,
11,
791,
2617,
50,
14375,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
952,
11,
366,
12286,
1540,
332,
4943,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
952,
11,
6626,
7,
35312,
7,
8841,
7,
76,
13,
82,
14375,
828,
366,
50,
14375,
4943,
58,
16,
4357,
366,
19570,
58,
17,
12962,
198,
220,
220,
220,
886,
198,
437,
198,
31,
5589,
265,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
7904,
44,
12789,
1,
5239,
14,
17660,
87,
1600,
285,
3712,
17633,
8,
796,
198,
220,
220,
220,
3601,
7,
952,
11,
2746,
62,
2536,
7,
40,
16980,
544,
19076,
11,
76,
4008,
198,
8818,
2746,
62,
2536,
7,
14171,
11,
285,
3712,
17633,
11,
5659,
3712,
18557,
13940,
2022,
10220,
8,
198,
220,
220,
220,
1312,
20362,
796,
4235,
6624,
314,
16980,
544,
19076,
198,
220,
220,
220,
41767,
796,
1312,
20362,
5633,
366,
1222,
366,
1058,
366,
366,
198,
220,
220,
220,
304,
349,
796,
1312,
20362,
5633,
366,
13426,
59,
77,
1,
1058,
37082,
77,
1,
198,
220,
220,
220,
299,
34431,
796,
285,
13,
21283,
79,
7890,
628,
220,
220,
220,
1303,
37092,
198,
220,
220,
220,
10662,
26801,
62,
2536,
796,
15094,
62,
2536,
7,
14171,
11,
285,
13,
26801,
8,
198,
220,
220,
220,
26181,
62,
33819,
796,
1312,
20362,
5633,
357,
76,
13,
26801,
41166,
6624,
1058,
11518,
5633,
366,
6852,
9806,
1,
1058,
366,
6852,
1084,
4943,
9,
1,
6852,
47003,
1,
1058,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
76,
13,
26801,
41166,
6624,
1058,
11518,
5633,
366,
11518,
1,
1058,
366,
9452,
4943,
198,
220,
220,
220,
965,
796,
26181,
62,
33819,
1635,
41767,
198,
220,
220,
220,
611,
299,
34431,
5145,
855,
2147,
11405,
299,
34431,
13,
21283,
26801,
5145,
855,
2147,
198,
220,
220,
220,
220,
220,
220,
220,
965,
1635,
28,
357,
80,
26801,
62,
2536,
855,
1,
15,
1,
1701,
2404,
3,
80,
26801,
62,
2536,
1343,
366,
8,
1635,
30629,
13159,
29127,
5408,
16725,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
965,
1635,
28,
10662,
26801,
62,
2536,
198,
220,
220,
220,
886,
198,
220,
220,
220,
965,
1635,
28,
304,
349,
628,
220,
220,
220,
1303,
1482,
2536,
6003,
198,
220,
220,
220,
965,
1635,
28,
1312,
20362,
5633,
366,
6852,
5239,
90,
19776,
284,
92,
26867,
47003,
1,
1058,
366,
19776,
284,
1,
1635,
304,
349,
198,
220,
220,
220,
329,
269,
287,
285,
13,
2815,
1102,
2536,
198,
220,
220,
220,
220,
220,
220,
220,
965,
1635,
28,
41767,
1635,
369,
62,
2536,
7,
14171,
11,
66,
11,
11018,
14171,
28,
7942,
8,
1635,
304,
349,
198,
220,
220,
220,
886,
198,
220,
220,
220,
329,
269,
287,
285,
13,
47003,
1102,
2536,
198,
220,
220,
220,
220,
220,
220,
220,
965,
1635,
28,
41767,
1635,
369,
62,
2536,
7,
14171,
11,
66,
11,
11018,
14171,
28,
7942,
8,
1635,
304,
349,
198,
220,
220,
220,
886,
198,
220,
220,
220,
329,
269,
287,
285,
13,
82,
418,
1102,
2536,
198,
220,
220,
220,
220,
220,
220,
220,
965,
1635,
28,
41767,
1635,
369,
62,
2536,
7,
14171,
11,
66,
11,
11018,
14171,
28,
7942,
8,
1635,
304,
349,
198,
220,
220,
220,
886,
198,
220,
220,
220,
329,
269,
287,
285,
13,
35634,
1102,
2536,
198,
220,
220,
220,
220,
220,
220,
220,
965,
1635,
28,
41767,
1635,
369,
62,
2536,
7,
14171,
11,
66,
11,
11018,
14171,
28,
7942,
8,
1635,
304,
349,
198,
220,
220,
220,
886,
198,
220,
220,
220,
611,
299,
34431,
5145,
855,
2147,
11405,
4129,
7,
21283,
79,
13,
21283,
1102,
2536,
8,
1875,
657,
198,
220,
220,
220,
220,
220,
220,
220,
997,
796,
4129,
7,
21283,
79,
13,
21283,
1102,
2536,
8,
198,
220,
220,
220,
220,
220,
220,
220,
965,
1635,
28,
41767,
1635,
4731,
7203,
3,
22510,
1729,
29127,
32315,
1600,
997,
29,
16,
1701,
82,
2404,
4943,
1635,
304,
349,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1303,
16531,
41497,
9633,
198,
220,
220,
220,
287,
62,
11600,
4868,
796,
27807,
274,
7,
76,
13,
22510,
5216,
82,
8,
198,
220,
220,
220,
329,
288,
287,
285,
13,
11600,
8053,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
787,
1654,
326,
345,
4398,
470,
3421,
257,
7885,
2099,
287,
262,
4947,
198,
220,
220,
220,
220,
220,
220,
220,
717,
2100,
796,
717,
28264,
27160,
7,
67,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3797,
796,
651,
22872,
7,
11085,
2100,
8,
198,
220,
220,
220,
220,
220,
220,
220,
18360,
11,
20967,
796,
651,
21037,
7784,
7,
11085,
2100,
828,
651,
45828,
7784,
7,
11085,
2100,
8,
198,
220,
220,
220,
220,
220,
220,
220,
477,
31642,
796,
2081,
198,
220,
220,
220,
220,
220,
220,
220,
329,
410,
287,
4808,
27160,
7,
67,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5145,
7,
1136,
22872,
7,
85,
8,
6624,
3797,
11405,
651,
21037,
7784,
7,
85,
8,
6624,
18360,
11405,
651,
45828,
7784,
7,
85,
8,
6624,
20967,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
31642,
796,
3991,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
410,
287,
285,
13,
23144,
36690,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
31642,
796,
3991,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
611,
477,
31642,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
340,
287,
4808,
27160,
7,
67,
8,
220,
1303,
2940,
9633,
287,
12585,
7378,
29869,
355,
10398,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
287,
62,
11600,
4868,
58,
270,
13,
4033,
60,
796,
2081,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
965,
1635,
28,
41767,
1635,
542,
62,
2536,
7,
14171,
11,
67,
11,
11018,
14171,
28,
7942,
8,
220,
1635,
304,
349,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1303,
16531,
1729,
12,
9630,
276,
9633,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
76,
13,
22510,
5216,
82,
198,
220,
220,
220,
220,
220,
220,
220,
287,
62,
11600,
4868,
58,
72,
60,
11405,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
1401,
62,
3672,
796,
1401,
62,
2536,
7,
14171,
11,
76,
11,
72,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1401,
62,
23160,
11,
1401,
62,
549,
796,
285,
13,
4033,
31426,
58,
72,
4357,
285,
13,
4033,
52,
2848,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
965,
62,
23160,
796,
1401,
62,
23160,
6624,
532,
18943,
5633,
366,
21215,
9,
37047,
58,
25,
259,
19628,
60,
1058,
965,
62,
744,
7,
7785,
62,
23160,
8,
198,
220,
220,
220,
220,
220,
220,
220,
965,
62,
549,
796,
1401,
62,
549,
6624,
1343,
18943,
5633,
220,
220,
220,
220,
5659,
58,
25,
259,
19628,
60,
1058,
965,
62,
744,
7,
7785,
62,
549,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1401,
62,
9246,
796,
285,
13,
4033,
21979,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1401,
62,
9246,
6624,
1058,
33,
259,
220,
1303,
2124,
13934,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
965,
1635,
28,
4731,
7,
325,
79,
11,
1401,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
33172,
5659,
58,
25,
259,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
33172,
5659,
58,
25,
9654,
62,
2617,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
15,
11,
16,
1600,
5659,
58,
25,
19836,
62,
2617,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
1401,
62,
9246,
6624,
1058,
13900,
72,
5317,
220,
1303,
2124,
287,
6441,
286,
657,
290,
1391,
23160,
42303,
11,
549,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
965,
1635,
28,
4731,
7,
325,
79,
11,
1401,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
33172,
5659,
58,
25,
259,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
33172,
5659,
58,
25,
9654,
62,
2617,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
965,
62,
23160,
11,
366,
553,
11,
5659,
58,
25,
67,
1747,
4357,
366,
553,
11,
965,
62,
549,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5659,
58,
25,
19836,
62,
2617,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
33172,
5659,
58,
25,
24592,
4357,
366,
33172,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5659,
58,
25,
9654,
62,
2617,
4357,
366,
15,
1600,
5659,
58,
25,
19836,
62,
2617,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
1401,
62,
9246,
6624,
1058,
13900,
72,
4264,
220,
1303,
2124,
287,
6441,
286,
657,
290,
685,
23160,
11,
549,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
965,
1635,
28,
4731,
7,
325,
79,
11,
1401,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
33172,
5659,
58,
25,
259,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
33172,
5659,
58,
25,
9654,
62,
81,
782,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
965,
62,
23160,
11,
366,
553,
11,
965,
62,
549,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5659,
58,
25,
19836,
62,
81,
782,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
33172,
5659,
58,
25,
24592,
4357,
366,
33172,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5659,
58,
25,
9654,
62,
2617,
4357,
366,
15,
1600,
5659,
58,
25,
19836,
62,
2617,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
1401,
62,
9246,
6624,
1058,
13715,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
965,
1635,
28,
4731,
7,
325,
79,
11,
1401,
62,
3672,
11,
366,
796,
33172,
965,
62,
23160,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
1401,
62,
23160,
6624,
532,
18943,
11405,
1401,
62,
549,
6624,
1343,
18943,
1303,
3232,
7885,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
965,
1635,
28,
4731,
7,
325,
79,
11,
1401,
62,
3672,
11,
366,
1479,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
1401,
62,
23160,
6624,
532,
18943,
220,
1303,
1400,
2793,
5421,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
965,
1635,
28,
4731,
7,
325,
79,
11,
1401,
62,
3672,
11,
366,
33172,
5659,
58,
25,
293,
80,
4357,
366,
33172,
965,
62,
549,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
1401,
62,
549,
6624,
1343,
18943,
220,
1303,
1400,
6727,
5421,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
965,
1635,
28,
4731,
7,
325,
79,
11,
1401,
62,
3672,
11,
366,
33172,
5659,
58,
25,
469,
80,
4357,
366,
33172,
965,
62,
23160,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
965,
1635,
28,
4731,
7,
325,
79,
11,
965,
62,
23160,
11,
366,
33172,
5659,
58,
25,
293,
80,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
33172,
1401,
62,
3672,
11,
366,
33172,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5659,
58,
25,
293,
80,
4357,
366,
33172,
965,
62,
549,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1401,
62,
9246,
6624,
1058,
5317,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
965,
1635,
28,
4731,
7,
1600,
33172,
5659,
58,
25,
41433,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
965,
1635,
28,
304,
349,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1312,
20362,
5633,
37082,
3,
59,
3,
26867,
27471,
90,
31494,
265,
9,
18477,
16,
36786,
9,
2536,
9,
1,
6852,
437,
90,
31494,
265,
9,
32239,
77,
3467,
3,
59,
3,
1,
1058,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
965,
198,
437,
198,
198,
2,
7157,
8116,
284,
779,
3376,
14354,
198,
19849,
62,
2536,
7,
3712,
6030,
90,
2200,
6489,
19076,
5512,
285,
3712,
17633,
8,
796,
198,
220,
220,
220,
2746,
62,
2536,
7,
2200,
6489,
19076,
11,
285,
11,
2186,
8,
198,
19849,
62,
2536,
7,
3712,
6030,
90,
40,
16980,
544,
19076,
5512,
285,
3712,
17633,
26,
10688,
14171,
28,
7942,
8,
796,
198,
220,
220,
220,
10688,
7,
19849,
62,
2536,
7,
40,
16980,
544,
19076,
11,
285,
11,
1312,
73,
43640,
828,
10688,
14171,
8,
628,
198,
2,
10097,
982,
198,
2235,
35748,
198,
2,
10097,
982,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
410,
3712,
43015,
8,
796,
3601,
7,
952,
11,
1401,
62,
2536,
7,
2200,
6489,
19076,
11,
85,
4008,
198,
31,
5589,
265,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
7904,
44,
12789,
1,
5239,
14,
17660,
87,
1600,
410,
3712,
43015,
8,
796,
198,
220,
220,
220,
3601,
7,
952,
11,
1401,
62,
2536,
7,
40,
16980,
544,
19076,
11,
85,
11,
11018,
14171,
28,
9562,
4008,
198,
8818,
1401,
62,
2536,
7,
14171,
11,
285,
3712,
17633,
11,
951,
3712,
5317,
26,
10688,
14171,
28,
7942,
8,
198,
220,
220,
220,
951,
36690,
796,
4235,
6624,
45285,
19076,
5633,
285,
13,
4033,
36690,
1058,
285,
13,
4033,
36690,
40,
16980,
544,
198,
220,
220,
220,
611,
951,
36690,
58,
4033,
60,
24844,
38144,
9936,
18601,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
329,
542,
287,
285,
13,
11600,
8053,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6070,
62,
7785,
62,
14933,
7,
14171,
11,
951,
36690,
11,
542,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
10688,
7,
4033,
36690,
58,
4033,
60,
6624,
13538,
5633,
366,
4033,
62,
3,
4033,
1,
1058,
951,
36690,
58,
4033,
4357,
10688,
14171,
8,
198,
437,
198,
8818,
6070,
62,
7785,
62,
14933,
90,
45,
92,
7,
14171,
11,
951,
36690,
11,
410,
3712,
33018,
7378,
19182,
90,
43015,
11,
45,
30072,
198,
220,
220,
220,
1366,
796,
3601,
7890,
7,
85,
8,
198,
220,
220,
220,
4686,
87,
28709,
796,
1366,
13,
9630,
28709,
198,
220,
220,
220,
20428,
796,
3975,
7,
13664,
11,
4686,
87,
28709,
8,
198,
220,
220,
220,
1438,
796,
1366,
13,
3672,
198,
220,
220,
220,
269,
1676,
67,
796,
269,
931,
14892,
26933,
13664,
82,
986,
12962,
198,
220,
220,
220,
329,
357,
521,
11,
7785,
8,
287,
27056,
378,
7,
85,
13,
5083,
19182,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4686,
87,
62,
2536,
82,
796,
685,
8841,
7,
4686,
87,
28709,
58,
16,
7131,
4666,
16,
7,
521,
11,
13664,
82,
58,
16,
12962,
60,
48600,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
796,
362,
25,
45,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
312,
87,
62,
2536,
82,
11,
4731,
7,
312,
87,
28709,
58,
72,
7131,
5317,
7,
344,
346,
7,
4666,
16,
7,
521,
11,
66,
1676,
67,
58,
72,
12962,
1220,
269,
1676,
67,
58,
72,
12,
16,
60,
4008,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
611,
4235,
6624,
314,
16980,
544,
19076,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
951,
36690,
58,
7785,
13,
4033,
60,
796,
4731,
7,
3672,
11,
366,
23330,
1600,
4654,
7,
312,
87,
62,
2536,
82,
553,
553,
8,
837,
366,
92,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
951,
36690,
58,
7785,
13,
4033,
60,
796,
4731,
7,
3672,
11,
220,
12878,
1600,
4654,
7,
312,
87,
62,
2536,
82,
553,
553,
8,
837,
366,
60,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
437,
198,
8818,
6070,
62,
7785,
62,
14933,
7,
14171,
11,
951,
36690,
11,
410,
3712,
33018,
44,
5760,
713,
90,
43015,
30072,
198,
220,
220,
220,
1438,
796,
3601,
7890,
7,
85,
737,
3672,
198,
220,
220,
220,
329,
357,
521,
11,
7785,
8,
287,
19974,
7,
13083,
7,
85,
828,
27160,
7,
85,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
611,
4235,
6624,
314,
16980,
544,
19076,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
951,
36690,
58,
7785,
13,
4033,
60,
796,
4731,
7,
3672,
11,
366,
23330,
1600,
4654,
26933,
8841,
7,
72,
8,
329,
1312,
287,
773,
17241,
553,
828,
366,
92,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
951,
36690,
58,
7785,
13,
4033,
60,
796,
4731,
7,
3672,
11,
220,
12878,
1600,
4654,
26933,
8841,
7,
72,
8,
329,
1312,
287,
773,
17241,
553,
828,
366,
60,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
437,
198,
8818,
6070,
62,
7785,
62,
14933,
7,
14171,
11,
951,
36690,
11,
410,
3712,
19182,
90,
43015,
30072,
198,
220,
220,
220,
318,
28920,
7,
85,
8,
11405,
1441,
198,
220,
220,
220,
10620,
796,
2546,
7,
85,
8,
198,
220,
220,
220,
285,
796,
717,
7,
85,
737,
76,
198,
220,
220,
220,
611,
5145,
10134,
2539,
7,
76,
13,
7785,
6601,
11,
410,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1438,
796,
285,
13,
7785,
6601,
58,
85,
4083,
3672,
198,
220,
220,
220,
329,
357,
4178,
11,
7785,
8,
287,
27056,
378,
7,
85,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
30493,
1401,
13,
76,
24844,
285,
198,
220,
220,
220,
220,
220,
220,
220,
773,
796,
773,
17,
7266,
7,
82,
4340,
11,
21065,
8,
198,
220,
220,
220,
220,
220,
220,
220,
951,
36690,
58,
7785,
13,
4033,
60,
796,
611,
4235,
24844,
314,
16980,
544,
19076,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4731,
7,
3672,
11,
366,
23330,
1600,
4654,
7,
521,
11,
366,
553,
828,
366,
92,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4731,
7,
3672,
11,
220,
12878,
1600,
4654,
7,
521,
11,
366,
553,
828,
366,
60,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
198,
437,
198,
198,
2,
7157,
8116,
284,
779,
3376,
14354,
198,
7785,
62,
2536,
7,
3712,
6030,
90,
2200,
6489,
19076,
5512,
410,
3712,
43015,
8,
796,
198,
220,
220,
220,
1401,
62,
2536,
7,
2200,
6489,
19076,
11,
410,
13,
76,
11,
410,
13,
4033,
8,
198,
7785,
62,
2536,
7,
3712,
6030,
90,
40,
16980,
544,
19076,
5512,
410,
3712,
43015,
26,
10688,
14171,
28,
7942,
8,
796,
198,
220,
220,
220,
1401,
62,
2536,
7,
40,
16980,
544,
19076,
11,
410,
13,
76,
11,
410,
13,
4033,
11,
10688,
14171,
28,
11018,
14171,
8,
198,
198,
2,
10097,
982,
198,
2235,
11220,
198,
2,
10097,
982,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
474,
3712,
35393,
8,
796,
3601,
7,
952,
11,
2593,
62,
2536,
7,
2200,
6489,
19076,
11,
73,
4008,
198,
31,
5589,
265,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
7904,
44,
12789,
1,
5239,
14,
17660,
87,
1600,
474,
3712,
35393,
8,
796,
198,
220,
220,
220,
3601,
7,
952,
11,
2593,
62,
2536,
7,
40,
16980,
544,
19076,
11,
73,
4008,
198,
198,
8818,
2593,
62,
2536,
7,
14171,
11,
299,
3712,
35393,
11,
5659,
3712,
18557,
13940,
2022,
10220,
8,
198,
220,
220,
220,
4731,
7,
37047,
58,
25,
42369,
4357,
12878,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4654,
7,
8899,
7,
83,
3784,
2001,
62,
2536,
7,
14171,
11,
83,
828,
77,
13,
38707,
27267,
553,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
60,
1600,
5659,
58,
25,
42369,
4357,
5659,
58,
25,
7266,
17,
12962,
198,
437,
198,
198,
2,
7157,
8116,
284,
779,
3376,
14354,
198,
27237,
62,
2536,
7,
3712,
6030,
90,
2200,
6489,
19076,
5512,
299,
3712,
35393,
8,
796,
198,
220,
220,
220,
2593,
62,
2536,
7,
2200,
6489,
19076,
11,
299,
11,
2186,
8,
198,
27237,
62,
2536,
7,
3712,
6030,
90,
40,
16980,
544,
19076,
5512,
299,
3712,
35393,
26,
10688,
14171,
28,
7942,
8,
796,
198,
220,
220,
220,
10688,
7,
27237,
62,
2536,
7,
40,
16980,
544,
19076,
11,
299,
11,
1312,
73,
43640,
828,
10688,
14171,
8,
198,
198,
31937,
2536,
7,
77,
3712,
35393,
8,
796,
2593,
62,
2536,
7,
2200,
6489,
19076,
11,
299,
8,
198,
198,
2,
10097,
982,
198,
2235,
12585,
7378,
29869,
90,
43015,
92,
198,
2,
10097,
982,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
474,
3712,
38176,
90,
33018,
7378,
29869,
90,
43015,
5512,
15690,
90,
43015,
11709,
8,
796,
3601,
7,
952,
11,
542,
62,
2536,
7,
2200,
6489,
19076,
11,
73,
4008,
198,
31,
5589,
265,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
7904,
44,
12789,
1,
5239,
14,
17660,
87,
1600,
474,
3712,
38176,
90,
33018,
7378,
29869,
90,
43015,
5512,
19182,
90,
43015,
11709,
8,
796,
198,
220,
220,
220,
3601,
7,
952,
11,
542,
62,
2536,
7,
40,
16980,
544,
19076,
11,
73,
11,
11018,
14171,
28,
9562,
4008,
198,
2,
42044,
4731,
38394,
11,
1444,
416,
4235,
12,
11423,
32847,
198,
198,
2,
2195,
8139,
326,
5145,
271,
28920,
7,
73,
8,
198,
62,
1136,
19849,
7,
73,
3712,
19182,
90,
43015,
30072,
796,
717,
7,
73,
737,
76,
198,
62,
1136,
19849,
7,
73,
3712,
33018,
7378,
29869,
8,
796,
651,
28961,
7,
73,
11,
1058,
19849,
8,
198,
198,
8818,
542,
62,
2536,
7,
14171,
11,
474,
11,
5659,
3712,
18557,
13940,
2022,
10220,
8,
198,
220,
220,
220,
1303,
6822,
611,
1997,
287,
262,
9290,
198,
220,
220,
220,
611,
318,
28920,
7,
73,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
796,
318,
64,
7,
73,
11,
12585,
7378,
29869,
8,
5633,
3601,
7890,
7,
73,
737,
3672,
1058,
366,
40613,
15690,
90,
43015,
36786,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
17971,
3672,
357,
3919,
36525,
16725,
198,
220,
220,
220,
886,
628,
220,
220,
220,
285,
796,
4808,
1136,
19849,
7,
73,
8,
628,
220,
220,
220,
1303,
1002,
428,
3073,
588,
257,
2836,
12,
25598,
15690,
11,
788,
29135,
284,
2779,
13570,
198,
220,
220,
220,
611,
5145,
10134,
2539,
7,
76,
13,
7785,
6601,
11,
474,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
30493,
318,
64,
7,
73,
11,
15690,
90,
43015,
30072,
198,
220,
220,
220,
220,
220,
220,
220,
611,
299,
67,
12078,
7,
73,
8,
6624,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
18553,
19510,
952,
11,
85,
8,
4613,
7308,
13,
12860,
62,
31364,
7,
952,
11,
410,
11,
12878,
1600,
366,
60,
12340,
474,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
18553,
19510,
952,
11,
55,
8,
4613,
7308,
13,
12860,
18747,
7,
952,
11,
1395,
828,
474,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1366,
796,
3601,
7890,
7,
73,
8,
628,
220,
220,
220,
1303,
352,
13,
5678,
262,
636,
351,
7885,
1438,
290,
6376,
278,
198,
220,
220,
220,
1179,
85,
945,
796,
3975,
7,
7890,
13,
9630,
31937,
82,
8,
466,
45218,
198,
220,
220,
220,
220,
220,
220,
220,
1401,
796,
45218,
13,
312,
87,
7785,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1401,
6624,
2147,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
13538,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4731,
7,
7785,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
997,
62,
67,
12078,
796,
4129,
7,
7890,
13,
9630,
28709,
8,
198,
220,
220,
220,
4686,
87,
85,
945,
796,
15690,
7,
48504,
23,
10100,
11,
997,
62,
67,
12078,
8,
198,
220,
220,
220,
5391,
312,
87,
796,
352,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
22510,
62,
67,
12078,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1366,
13,
9630,
31937,
82,
58,
72,
4083,
312,
87,
7785,
6624,
2147,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
981,
360,
3955,
50,
58,
27740,
312,
87,
60,
287,
1179,
85,
945,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5391,
312,
87,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5391,
312,
87,
1875,
4129,
7,
35,
3955,
50,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
7203,
52,
42072,
306,
4966,
503,
286,
36525,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
87,
85,
945,
58,
72,
60,
796,
360,
3955,
50,
58,
27740,
312,
87,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5391,
312,
87,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
87,
85,
945,
58,
72,
60,
796,
1179,
85,
945,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1438,
62,
312,
87,
796,
4731,
7,
7890,
13,
3672,
11,
5659,
58,
25,
521,
62,
9654,
4357,
4654,
7,
312,
87,
85,
945,
553,
553,
828,
5659,
58,
25,
521,
62,
19836,
12962,
198,
220,
220,
220,
1303,
362,
13,
5678,
636,
351,
644,
356,
6376,
625,
198,
220,
220,
220,
4686,
87,
62,
28709,
796,
5659,
58,
25,
1640,
62,
439,
60,
9,
1,
366,
9,
22179,
7,
8899,
7,
27740,
3784,
8841,
7,
312,
87,
85,
945,
58,
27740,
4357,
366,
33172,
5659,
58,
25,
259,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
33172,
5659,
58,
25,
9654,
62,
2617,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
542,
62,
2536,
62,
2617,
7,
7890,
13,
9630,
28709,
58,
27740,
4357,
37047,
58,
25,
67,
1747,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5659,
58,
25,
19836,
62,
2617,
46570,
352,
25,
22510,
62,
67,
12078,
828,
33172,
366,
8,
198,
220,
220,
220,
1303,
513,
13,
33141,
597,
3403,
198,
220,
220,
220,
611,
318,
64,
7,
73,
11,
12585,
44,
5760,
713,
8,
11405,
1366,
13,
31448,
14512,
1058,
3419,
198,
220,
220,
220,
220,
220,
220,
4686,
87,
62,
28709,
1635,
28,
4731,
7203,
264,
13,
83,
13,
33172,
22179,
7,
29572,
62,
17561,
1756,
7,
7890,
13,
31448,
828,
366,
290,
366,
4008,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1303,
604,
13,
347,
3733,
290,
6536,
11,
611,
1744,
11,
290,
1441,
2457,
4731,
198,
220,
220,
220,
257,
62,
7785,
796,
717,
28264,
27160,
7,
73,
4008,
198,
220,
220,
220,
2746,
796,
257,
62,
7785,
13,
76,
198,
220,
220,
220,
1401,
62,
9246,
796,
2746,
13,
4033,
21979,
58,
64,
62,
7785,
13,
4033,
60,
198,
220,
220,
220,
1401,
62,
23160,
220,
796,
2746,
13,
4033,
31426,
58,
64,
62,
7785,
13,
4033,
60,
198,
220,
220,
220,
1401,
62,
549,
220,
796,
2746,
13,
4033,
52,
2848,
58,
64,
62,
7785,
13,
4033,
60,
198,
220,
220,
220,
1303,
15965,
2977,
743,
423,
1180,
22303,
11,
523,
356,
460,
470,
1107,
3601,
16576,
198,
220,
220,
220,
1303,
379,
428,
640,
357,
39363,
1683,
11,
355,
484,
714,
423,
587,
3421,
1281,
198,
220,
220,
220,
1303,
6282,
11,
543,
356,
1549,
1239,
307,
1498,
284,
5412,
13,
198,
220,
220,
220,
477,
62,
31642,
62,
23160,
796,
2081,
198,
220,
220,
220,
477,
62,
31642,
62,
549,
796,
2081,
198,
220,
220,
220,
329,
1401,
287,
4808,
27160,
7,
73,
8,
198,
220,
220,
220,
220,
220,
220,
220,
477,
62,
31642,
62,
23160,
1222,
28,
2746,
13,
4033,
31426,
58,
7785,
13,
4033,
60,
6624,
1401,
62,
23160,
198,
220,
220,
220,
220,
220,
220,
220,
477,
62,
31642,
62,
549,
1222,
28,
2746,
13,
4033,
52,
2848,
58,
7785,
13,
4033,
60,
6624,
1401,
62,
549,
198,
220,
220,
220,
886,
198,
220,
220,
220,
965,
62,
23160,
796,
1401,
62,
23160,
6624,
532,
18943,
5633,
366,
21215,
9,
37047,
58,
25,
259,
19628,
60,
1058,
965,
62,
744,
7,
7785,
62,
23160,
8,
198,
220,
220,
220,
965,
62,
549,
796,
1401,
62,
549,
6624,
1343,
18943,
5633,
220,
220,
220,
220,
5659,
58,
25,
259,
19628,
60,
1058,
965,
62,
744,
7,
7785,
62,
549,
8,
628,
220,
220,
220,
1303,
6093,
1339,
22303,
13570,
1912,
319,
262,
6536,
198,
220,
220,
220,
611,
1401,
62,
9246,
6624,
1058,
33,
259,
220,
1303,
2124,
287,
1391,
15,
11,
16,
92,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
17971,
3672,
62,
312,
87,
29568,
37047,
58,
25,
259,
12962,
29568,
37047,
58,
25,
9654,
62,
2617,
12962,
15,
11,
16,
3,
7,
37047,
58,
25,
19836,
62,
2617,
12962,
720,
312,
87,
62,
28709,
1,
198,
220,
220,
220,
2073,
361,
1401,
62,
9246,
6624,
1058,
13900,
72,
5317,
220,
1303,
2124,
287,
6441,
286,
657,
290,
1391,
23160,
42303,
11,
549,
92,
198,
220,
220,
220,
220,
220,
220,
220,
33721,
62,
23160,
796,
477,
62,
31642,
62,
23160,
5633,
965,
62,
23160,
1058,
5659,
58,
25,
67,
1747,
60,
198,
220,
220,
220,
220,
220,
220,
220,
33721,
62,
549,
796,
477,
62,
31642,
62,
549,
5633,
965,
62,
549,
1058,
5659,
58,
25,
67,
1747,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
17971,
3672,
62,
312,
87,
29568,
37047,
58,
25,
259,
12962,
29568,
37047,
58,
25,
9654,
62,
2617,
12962,
3,
13396,
62,
23160,
11,
3,
7,
37047,
58,
25,
67,
1747,
46570,
3,
13396,
62,
549,
3,
7,
37047,
58,
25,
19836,
62,
2617,
12962,
29568,
37047,
58,
25,
24592,
12962,
29568,
37047,
58,
25,
9654,
62,
2617,
12962,
15,
3,
7,
37047,
58,
25,
19836,
62,
2617,
12962,
720,
312,
87,
62,
28709,
1,
198,
220,
220,
220,
2073,
361,
1401,
62,
9246,
6624,
1058,
13900,
72,
4264,
220,
1303,
2124,
287,
6441,
286,
657,
290,
685,
23160,
11,
549,
60,
198,
220,
220,
220,
220,
220,
220,
220,
33721,
62,
23160,
796,
477,
62,
31642,
62,
23160,
5633,
965,
62,
23160,
1058,
5659,
58,
25,
67,
1747,
60,
198,
220,
220,
220,
220,
220,
220,
220,
33721,
62,
549,
796,
477,
62,
31642,
62,
549,
5633,
965,
62,
549,
1058,
5659,
58,
25,
67,
1747,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
17971,
3672,
62,
312,
87,
29568,
37047,
58,
25,
259,
12962,
29568,
37047,
58,
25,
9654,
62,
81,
782,
12962,
3,
13396,
62,
23160,
11,
3,
13396,
62,
549,
3,
7,
37047,
58,
25,
19836,
62,
81,
782,
12962,
29568,
37047,
58,
25,
24592,
12962,
29568,
37047,
58,
25,
9654,
62,
2617,
12962,
15,
3,
7,
37047,
58,
25,
19836,
62,
2617,
12962,
720,
312,
87,
62,
28709,
1,
198,
220,
220,
220,
2073,
361,
1401,
62,
9246,
6624,
1058,
13715,
198,
220,
220,
220,
220,
220,
220,
220,
33721,
62,
65,
358,
796,
477,
62,
31642,
62,
23160,
5633,
965,
62,
23160,
1058,
5659,
58,
25,
67,
1747,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
17971,
3672,
62,
312,
87,
796,
720,
13396,
62,
65,
358,
720,
312,
87,
62,
28709,
1,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1303,
45012,
290,
34142,
198,
220,
220,
220,
4686,
87,
62,
28709,
796,
1401,
62,
9246,
6624,
1058,
5317,
5633,
33172,
29568,
37047,
58,
25,
41433,
46570,
720,
312,
87,
62,
28709,
1,
1058,
366,
720,
312,
87,
62,
28709,
1,
198,
220,
220,
220,
611,
477,
62,
31642,
62,
23160,
11405,
477,
62,
31642,
62,
549,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3232,
7885,
198,
220,
220,
220,
220,
220,
220,
220,
1401,
62,
23160,
6624,
532,
18943,
11405,
1401,
62,
549,
6624,
1343,
18943,
11405,
1441,
17971,
3672,
62,
312,
87,
1479,
3,
312,
87,
62,
28709,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1400,
2793,
5421,
198,
220,
220,
220,
220,
220,
220,
220,
1401,
62,
23160,
6624,
532,
18943,
11405,
1441,
17971,
3672,
62,
312,
87,
29568,
37047,
58,
25,
293,
80,
12962,
720,
2536,
62,
549,
3,
312,
87,
62,
28709,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1400,
6727,
5421,
198,
220,
220,
220,
220,
220,
220,
220,
1401,
62,
549,
6624,
1343,
18943,
11405,
1441,
17971,
3672,
62,
312,
87,
29568,
37047,
58,
25,
469,
80,
12962,
720,
2536,
62,
23160,
3,
312,
87,
62,
28709,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
13667,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
17971,
2536,
62,
23160,
29568,
37047,
58,
25,
293,
80,
12962,
720,
3672,
62,
312,
87,
29568,
37047,
58,
25,
293,
80,
12962,
720,
2536,
62,
549,
3,
312,
87,
62,
28709,
1,
198,
220,
220,
220,
886,
198,
220,
220,
220,
611,
477,
62,
31642,
62,
23160,
11405,
5145,
439,
62,
31642,
62,
549,
198,
220,
220,
220,
220,
220,
220,
220,
1401,
62,
23160,
6624,
532,
18943,
11405,
1441,
17971,
3672,
62,
312,
87,
29568,
37047,
58,
25,
293,
80,
12962,
29568,
37047,
58,
25,
67,
1747,
12962,
3,
312,
87,
62,
28709,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
17971,
2536,
62,
23160,
29568,
37047,
58,
25,
293,
80,
12962,
720,
3672,
62,
312,
87,
29568,
37047,
58,
25,
293,
80,
12962,
29568,
37047,
58,
25,
67,
1747,
12962,
3,
312,
87,
62,
28709,
1,
198,
220,
220,
220,
886,
198,
220,
220,
220,
611,
5145,
439,
62,
31642,
62,
23160,
11405,
477,
62,
31642,
62,
549,
198,
220,
220,
220,
220,
220,
220,
220,
1401,
62,
549,
6624,
1343,
18943,
11405,
1441,
17971,
3672,
62,
312,
87,
29568,
37047,
58,
25,
469,
80,
12962,
29568,
37047,
58,
25,
67,
1747,
12962,
3,
312,
87,
62,
28709,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
17971,
7,
37047,
58,
25,
67,
1747,
12962,
29568,
37047,
58,
25,
293,
80,
12962,
720,
3672,
62,
312,
87,
29568,
37047,
58,
25,
293,
80,
12962,
720,
2536,
62,
549,
3,
312,
87,
62,
28709,
1,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
17971,
7,
37047,
58,
25,
67,
1747,
12962,
29568,
37047,
58,
25,
293,
80,
12962,
720,
3672,
62,
312,
87,
29568,
37047,
58,
25,
293,
80,
12962,
29568,
37047,
58,
25,
67,
1747,
12962,
3,
312,
87,
62,
28709,
1,
198,
437,
198,
198,
2,
19255,
4146,
9050,
29397,
4177,
11053,
7473,
542,
62,
2536,
198,
8818,
542,
62,
2536,
62,
2617,
7,
312,
87,
2617,
3712,
38176,
90,
17257,
11,
19182,
5512,
22969,
8,
220,
1303,
362,
25,
17,
25,
1238,
4613,
1391,
17,
11,
19,
492,
1507,
11,
1238,
92,
198,
220,
220,
220,
4129,
7,
312,
87,
2617,
8,
6624,
657,
11405,
1441,
22969,
198,
220,
220,
220,
4129,
7,
312,
87,
2617,
8,
6624,
352,
11405,
1441,
4731,
7,
312,
87,
2617,
58,
16,
12962,
198,
220,
220,
220,
4129,
7,
312,
87,
2617,
8,
6624,
362,
11405,
1441,
4731,
7,
312,
87,
2617,
58,
16,
17241,
553,
11,
312,
87,
2617,
58,
17,
12962,
198,
220,
220,
220,
4129,
7,
312,
87,
2617,
8,
6624,
513,
11405,
1441,
4731,
7,
312,
87,
2617,
58,
16,
17241,
553,
11,
312,
87,
2617,
58,
17,
17241,
553,
11,
312,
87,
2617,
58,
18,
12962,
198,
220,
220,
220,
4129,
7,
312,
87,
2617,
8,
6624,
604,
11405,
1441,
4731,
7,
312,
87,
2617,
58,
16,
17241,
553,
11,
312,
87,
2617,
58,
17,
17241,
553,
11,
312,
87,
2617,
58,
18,
17241,
553,
11,
312,
87,
2617,
58,
19,
12962,
198,
220,
220,
220,
1441,
4731,
7,
312,
87,
2617,
58,
16,
17241,
553,
11,
312,
87,
2617,
58,
17,
17241,
553,
11,
67,
1747,
553,
553,
11,
312,
87,
2617,
58,
437,
12,
16,
17241,
553,
11,
312,
87,
2617,
58,
437,
12962,
198,
437,
198,
3642,
62,
2536,
62,
2617,
7,
312,
87,
2617,
11,
22969,
8,
796,
1441,
22969,
1303,
7218,
1891,
198,
2,
21136,
62,
17561,
1756,
198,
2,
1892,
29050,
13,
4759,
690,
274,
281,
5408,
290,
34175,
281,
7177,
351,
12784,
198,
2,
11188,
284,
1123,
4006,
13,
3125,
5734,
11,
611,
262,
4006,
318,
198,
2,
257,
11405,
357,
65,
8614,
269,
8,
11405,
357,
67,
11405,
304,
828,
340,
5860,
685,
64,
11,
275,
8614,
269,
11,
288,
11,
304,
4083,
198,
29572,
62,
17561,
1756,
7,
1662,
62,
272,
62,
31937,
8,
796,
407,
62,
272,
62,
31937,
198,
8818,
21136,
62,
17561,
1756,
7,
31937,
3712,
3109,
1050,
8,
198,
220,
220,
220,
1005,
796,
4377,
21737,
198,
220,
220,
220,
611,
44052,
13,
2256,
14512,
1058,
25226,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
4574,
0,
7,
1186,
11,
44052,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
664,
12321,
796,
3975,
7,
29572,
62,
17561,
1756,
11,
44052,
13,
22046,
8,
198,
220,
220,
220,
410,
9246,
7,
1186,
11,
664,
12321,
23029,
198,
437,
198,
198,
2,
7157,
8116,
284,
779,
3376,
14354,
198,
3642,
62,
2536,
7,
3712,
6030,
90,
2200,
6489,
19076,
5512,
474,
26,
10688,
14171,
28,
9562,
8,
796,
198,
220,
220,
220,
542,
62,
2536,
7,
2200,
6489,
19076,
11,
474,
11,
2186,
8,
198,
3642,
62,
2536,
7,
3712,
6030,
90,
40,
16980,
544,
19076,
5512,
474,
26,
10688,
14171,
28,
7942,
8,
796,
198,
220,
220,
220,
10688,
7,
3642,
62,
2536,
7,
40,
16980,
544,
19076,
11,
474,
11,
1312,
73,
43640,
828,
10688,
14171,
8,
198,
198,
2,
10097,
982,
198,
2235,
12585,
7378,
29869,
90,
43879,
2414,
92,
198,
2,
10097,
982,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
474,
3712,
33018,
7378,
29869,
90,
43879,
2414,
30072,
796,
3601,
7,
952,
11,
1188,
62,
2536,
7,
2200,
6489,
19076,
11,
73,
4008,
198,
8818,
1188,
62,
2536,
90,
45,
92,
7,
14171,
11,
474,
3712,
33018,
7378,
19182,
90,
43879,
2414,
11,
45,
30072,
198,
220,
220,
220,
285,
796,
4808,
1136,
19849,
7,
73,
8,
198,
220,
220,
220,
1366,
796,
3601,
7890,
7,
73,
8,
198,
220,
220,
220,
503,
62,
2536,
796,
17971,
7,
7890,
13,
3672,
2599,
720,
45,
15225,
7479,
77,
1,
198,
220,
220,
220,
611,
318,
28920,
7,
73,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
503,
62,
2536,
1635,
366,
220,
357,
3919,
12784,
16725,
198,
220,
220,
220,
886,
628,
220,
220,
220,
2163,
1188,
62,
2536,
62,
8344,
7,
18053,
11,
2560,
62,
9630,
3712,
38469,
90,
7149,
5512,
2560,
62,
2536,
3712,
23839,
10100,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
6756,
6376,
900,
656,
13042,
198,
220,
220,
220,
220,
220,
220,
220,
6376,
2617,
796,
1366,
13,
9630,
28709,
58,
18053,
60,
198,
220,
220,
220,
220,
220,
220,
220,
6376,
62,
2536,
82,
796,
3975,
7,
8841,
11,
6376,
2617,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
45559,
3810,
14069,
6376,
523,
356,
460,
10548,
15180,
198,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
9630,
62,
11925,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
329,
6376,
62,
2536,
287,
6376,
62,
2536,
82,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
9630,
62,
11925,
796,
3509,
7,
9806,
62,
9630,
62,
11925,
11,
965,
10394,
7,
9630,
62,
2536,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1002,
423,
664,
17539,
11,
356,
761,
284,
3143,
437,
262,
2560,
338,
6376,
13042,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
22425,
11,
355,
880,
355,
2330,
2272,
523,
262,
19114,
2499,
13,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
796,
352,
25,
13664,
7,
9630,
62,
2536,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
62,
2536,
82,
58,
72,
60,
796,
2560,
62,
2536,
1635,
300,
15636,
7,
9630,
62,
2536,
82,
58,
72,
4357,
9806,
62,
9630,
62,
11925,
553,
366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
13610,
257,
4731,
329,
262,
1271,
286,
9029,
356,
761,
284,
33793,
198,
220,
220,
220,
220,
220,
220,
220,
33793,
796,
366,
366,
61,
7,
17,
9,
7,
18053,
12,
16,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
45559,
3810,
262,
761,
284,
664,
12321,
198,
220,
220,
220,
220,
220,
220,
220,
611,
6795,
6624,
399,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
10766,
395,
1241,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
796,
352,
25,
13664,
7,
9630,
2617,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
4129,
7,
8000,
62,
9630,
8,
6624,
657,
5633,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
474,
58,
9630,
2617,
58,
72,
11907,
1058,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
474,
58,
8000,
62,
9630,
986,
11,
9630,
2617,
58,
72,
11907,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
503,
62,
2536,
1635,
28,
33793,
1635,
12878,
1,
1635,
6376,
62,
2536,
82,
58,
72,
60,
1635,
366,
60,
796,
720,
8367,
59,
77,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1629,
1551,
530,
517,
7679,
284,
467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
796,
352,
25,
13664,
7,
9630,
2617,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
796,
6376,
2617,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
12578,
262,
366,
11097,
2196,
286,
36525,
356,
481,
664,
12321,
625,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
503,
62,
2536,
1635,
28,
33793,
1635,
12878,
1,
1635,
6376,
62,
2536,
82,
58,
72,
60,
1635,
33172,
11097,
61,
7,
45,
12,
18053,
8,
1635,
366,
60,
59,
77,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1188,
62,
2536,
62,
8344,
7,
18053,
10,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4129,
7,
8000,
62,
9630,
8,
6624,
657,
5633,
4377,
58,
9630,
60,
1058,
4377,
58,
8000,
62,
9630,
986,
11,
9630,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
62,
2536,
82,
58,
72,
60,
1635,
366,
553,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1188,
62,
2536,
62,
8344,
7,
16,
11,
7149,
58,
17241,
4943,
198,
220,
220,
220,
1441,
503,
62,
2536,
198,
437,
198,
2,
1104,
3858,
326,
836,
470,
423,
3170,
12,
259,
7208,
198,
8818,
4808,
271,
1203,
7,
83,
16,
3712,
51,
29291,
11,
256,
17,
3712,
51,
29291,
8,
198,
220,
220,
220,
299,
16,
11,
299,
17,
796,
4129,
7,
83,
16,
828,
4129,
7,
83,
17,
8,
198,
220,
220,
220,
329,
1312,
796,
352,
25,
1084,
7,
77,
16,
11,
299,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
257,
11,
275,
796,
256,
16,
58,
72,
4357,
256,
17,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
611,
5145,
786,
13255,
7,
64,
11,
275,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
9723,
7,
271,
1203,
11,
64,
11,
65,
8,
5633,
318,
1203,
7,
64,
11,
275,
8,
1058,
318,
1203,
7,
17831,
7,
64,
828,
17831,
7,
65,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
299,
16,
1279,
299,
17,
198,
437,
198,
8818,
1188,
62,
2536,
7,
14171,
11,
8633,
3712,
33018,
44,
5760,
713,
90,
43879,
2414,
30072,
198,
220,
220,
220,
497,
10671,
796,
4129,
7,
11600,
13,
28047,
10137,
713,
8,
198,
220,
220,
220,
318,
28920,
7,
11600,
8,
11405,
1441,
13538,
198,
220,
220,
220,
285,
796,
4808,
1136,
19849,
7,
11600,
8,
198,
220,
220,
220,
1366,
796,
3601,
7890,
7,
11600,
8,
198,
220,
220,
220,
503,
62,
2536,
220,
796,
17971,
7,
7890,
13,
3672,
2599,
29568,
13664,
7,
7890,
13,
9630,
28709,
4008,
15225,
11,
720,
710,
10671,
366,
198,
220,
220,
220,
503,
62,
2536,
1635,
28,
497,
10671,
6624,
352,
5633,
366,
13000,
1,
1058,
366,
298,
1678,
1,
198,
220,
220,
220,
503,
62,
2536,
1635,
28,
366,
11097,
628,
220,
220,
220,
23243,
13083,
796,
3297,
7,
33327,
7,
13083,
7,
11600,
13,
28047,
10137,
713,
36911,
300,
83,
796,
4808,
271,
1203,
8,
628,
220,
220,
220,
299,
27740,
796,
4129,
7,
11085,
7,
13083,
7,
11600,
13,
28047,
10137,
713,
22305,
628,
220,
220,
220,
1994,
62,
2536,
82,
796,
15690,
7,
23839,
10100,
11,
4129,
7,
11600,
828,
299,
27740,
8,
198,
220,
220,
220,
329,
357,
72,
11,
1994,
8,
287,
27056,
378,
7,
82,
9741,
13083,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
474,
287,
352,
25,
358,
320,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
62,
2536,
82,
58,
72,
11,
73,
60,
796,
4731,
7,
2539,
58,
73,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
3509,
62,
27740,
62,
75,
641,
796,
3975,
7,
16,
25,
358,
320,
8,
466,
1312,
198,
220,
220,
220,
220,
220,
220,
220,
5415,
7,
8899,
7,
13664,
11,
2539,
62,
2536,
82,
58,
45299,
72,
60,
4008,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1994,
62,
2536,
796,
3975,
7,
16,
25,
13664,
7,
11600,
4008,
466,
1312,
198,
220,
220,
220,
220,
220,
220,
220,
4654,
7,
8899,
7,
16,
25,
358,
320,
8,
466,
474,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
15636,
7,
2539,
62,
2536,
82,
58,
72,
11,
73,
4357,
3509,
62,
27740,
62,
75,
641,
58,
73,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
886,
11,
366,
553,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
3509,
62,
2539,
62,
11925,
796,
5415,
7,
8899,
7,
13664,
11,
2539,
62,
2536,
4008,
628,
220,
220,
220,
329,
357,
72,
11,
2539,
8,
287,
27056,
378,
7,
82,
9741,
13083,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1188,
796,
8633,
58,
2539,
22345,
198,
220,
220,
220,
220,
220,
220,
220,
503,
62,
2536,
1635,
28,
37082,
77,
1,
1635,
300,
15636,
7203,
58,
3,
7,
2539,
62,
2536,
58,
72,
12962,
60,
1600,
3509,
62,
2539,
62,
11925,
10,
18,
8,
198,
220,
220,
220,
220,
220,
220,
220,
503,
62,
2536,
1635,
28,
366,
796,
720,
2100,
1,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
503,
62,
2536,
198,
437,
628,
198,
2,
10097,
982,
198,
2235,
6708,
3109,
1050,
220,
357,
1662,
42044,
35191,
3109,
1050,
8,
198,
2,
10097,
982,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
257,
3712,
35191,
3109,
1050,
8,
796,
3601,
7,
952,
11,
1527,
62,
2536,
7,
2200,
6489,
19076,
11,
64,
4008,
198,
31,
5589,
265,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
7904,
44,
12789,
1,
5239,
14,
17660,
87,
1600,
257,
3712,
35191,
3109,
1050,
8,
796,
198,
220,
220,
220,
3601,
7,
952,
11,
10688,
7,
2001,
62,
2536,
7,
40,
16980,
544,
19076,
11,
64,
828,
9562,
4008,
198,
2,
42044,
4731,
38394,
11,
1444,
416,
4235,
12,
11423,
32847,
198,
8818,
1527,
62,
2536,
7,
14171,
11,
257,
3712,
35191,
3109,
1050,
11,
905,
62,
9979,
415,
28,
7942,
8,
198,
220,
220,
220,
1303,
1002,
262,
5408,
318,
6565,
11,
1441,
262,
6937,
357,
273,
657,
8,
198,
220,
220,
220,
611,
4129,
7,
64,
13,
85,
945,
8,
6624,
657,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
905,
62,
9979,
415,
5633,
965,
62,
744,
7,
64,
13,
9979,
415,
8,
1058,
366,
15,
1,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1303,
3497,
4941,
284,
4981,
3017,
287,
428,
5408,
198,
220,
220,
220,
953,
11600,
796,
360,
713,
90,
17633,
11,
15732,
276,
38469,
90,
43879,
2414,
11709,
3419,
198,
220,
220,
220,
329,
1401,
287,
257,
13,
85,
945,
198,
220,
220,
220,
220,
220,
220,
220,
611,
5145,
10134,
2539,
7,
4666,
11600,
11,
1401,
13,
76,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
953,
11600,
58,
7785,
13,
76,
60,
796,
12901,
276,
38469,
7,
43879,
2414,
11,
7785,
13,
76,
13,
22510,
5216,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1303,
9745,
588,
2846,
198,
220,
220,
220,
329,
773,
287,
352,
25,
13664,
7,
64,
13,
85,
945,
8,
198,
220,
220,
220,
220,
220,
220,
220,
751,
2120,
0,
7,
4666,
11600,
58,
64,
13,
85,
945,
58,
521,
4083,
76,
4357,
257,
13,
85,
945,
58,
521,
4083,
4033,
11,
257,
13,
1073,
14822,
82,
58,
521,
12962,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1288,
76,
796,
352,
198,
220,
220,
220,
3381,
62,
2536,
796,
15690,
7,
48504,
23,
10100,
11,
362,
9,
13664,
7,
64,
13,
85,
945,
4008,
198,
220,
220,
220,
1303,
1114,
1123,
2746,
198,
220,
220,
220,
329,
285,
287,
8251,
7,
4666,
11600,
8,
198,
220,
220,
220,
220,
220,
220,
220,
773,
35138,
796,
953,
11600,
58,
76,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1114,
1123,
1729,
12,
22570,
329,
428,
2746,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
352,
25,
521,
35138,
13,
20471,
89,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
87,
796,
773,
35138,
13,
27305,
312,
87,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
83,
796,
773,
35138,
13,
417,
912,
58,
312,
87,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2352,
7,
2120,
8,
1279,
4810,
12394,
62,
57,
34812,
62,
51,
3535,
11405,
2555,
220,
1303,
304,
13,
70,
13,
2124,
532,
2124,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
662,
796,
2352,
7,
8937,
7,
2120,
13219,
16,
8,
1279,
4810,
12394,
62,
57,
34812,
62,
51,
3535,
5633,
13538,
1058,
965,
62,
744,
7,
8937,
7,
2120,
4008,
1635,
366,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1401,
796,
1401,
62,
2536,
7,
14171,
11,
76,
11,
312,
87,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3381,
62,
2536,
58,
17,
9,
417,
76,
12,
16,
60,
796,
1288,
83,
1279,
657,
5633,
366,
532,
366,
1058,
366,
1343,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3381,
62,
2536,
58,
17,
9,
417,
76,
220,
2361,
796,
17971,
3866,
3,
7785,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
76,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
611,
1288,
76,
6624,
352,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2561,
1645,
351,
25395,
286,
477,
2846,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
775,
815,
655,
1441,
262,
6937,
11,
611,
663,
10348,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
905,
62,
9979,
415,
5633,
965,
62,
744,
7,
64,
13,
9979,
415,
8,
1058,
366,
15,
1,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
35074,
329,
845,
717,
3381,
532,
836,
470,
765,
257,
366,
1343,
12813,
1,
532,
366,
198,
220,
220,
220,
220,
220,
220,
220,
3381,
62,
2536,
58,
16,
60,
796,
357,
4354,
62,
2536,
58,
16,
60,
6624,
366,
532,
366,
8,
5633,
366,
21215,
1058,
13538,
198,
220,
220,
220,
220,
220,
220,
220,
1005,
796,
4654,
7,
4354,
62,
2536,
58,
16,
25,
17,
9,
7,
417,
76,
12,
16,
8,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2352,
7,
64,
13,
9979,
415,
8,
18189,
4810,
12394,
62,
57,
34812,
62,
51,
3535,
11405,
905,
62,
9979,
415,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1005,
796,
4731,
7,
1186,
11,
257,
13,
9979,
415,
1279,
657,
5633,
366,
532,
366,
1058,
366,
1343,
33172,
965,
62,
744,
7,
8937,
7,
64,
13,
9979,
415,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1005,
198,
220,
220,
220,
886,
198,
437,
198,
2,
3771,
5589,
576,
329,
5443,
6297,
1661,
198,
14881,
13,
3866,
5589,
576,
7,
2001,
62,
2536,
11,
357,
6030,
90,
33018,
7378,
13,
2200,
6489,
19076,
5512,
6708,
3109,
1050,
11,
347,
970,
4008,
198,
14881,
13,
3866,
5589,
576,
7,
2001,
62,
2536,
11,
357,
6030,
90,
33018,
7378,
13,
40,
16980,
544,
19076,
5512,
6708,
3109,
1050,
11,
347,
970,
4008,
198,
14881,
13,
3866,
5589,
576,
7,
2001,
62,
2536,
11,
357,
6030,
90,
33018,
7378,
13,
2200,
6489,
19076,
5512,
6708,
3109,
1050,
4008,
198,
14881,
13,
3866,
5589,
576,
7,
2001,
62,
2536,
11,
357,
6030,
90,
33018,
7378,
13,
40,
16980,
544,
19076,
5512,
6708,
3109,
1050,
4008,
628,
198,
2,
10097,
982,
198,
2235,
42044,
4507,
324,
3109,
1050,
198,
2,
10097,
982,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
10662,
3712,
46189,
4507,
324,
3109,
1050,
8,
796,
3601,
7,
952,
11,
15094,
62,
2536,
7,
2200,
6489,
19076,
11,
80,
4008,
198,
31,
5589,
265,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
7904,
44,
12789,
1,
5239,
14,
17660,
87,
1600,
10662,
3712,
46189,
4507,
324,
3109,
1050,
8,
796,
198,
220,
220,
220,
3601,
7,
952,
11,
15094,
62,
2536,
7,
40,
16980,
544,
19076,
11,
80,
11,
11018,
14171,
28,
9562,
4008,
198,
2,
42044,
4731,
38394,
11,
1444,
416,
4235,
12,
11423,
32847,
198,
8818,
15094,
62,
2536,
7,
14171,
11,
10662,
3712,
46189,
4507,
324,
3109,
1050,
11,
5659,
8,
198,
220,
220,
220,
4129,
7,
80,
13,
44179,
945,
16,
8,
6624,
657,
11405,
1441,
1527,
62,
2536,
7,
14171,
11,
80,
13,
2001,
8,
628,
220,
220,
220,
1303,
19507,
605,
1096,
2124,
62,
72,
1635,
2124,
62,
73,
523,
1312,
19841,
474,
198,
220,
220,
220,
329,
773,
287,
352,
25,
13664,
7,
80,
13,
44179,
945,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
10662,
13,
44179,
945,
17,
58,
521,
4083,
4033,
1279,
10662,
13,
44179,
945,
16,
58,
521,
4083,
4033,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
13,
44179,
945,
16,
58,
521,
4357,
80,
13,
44179,
945,
17,
58,
521,
60,
796,
10662,
13,
44179,
945,
17,
58,
521,
4357,
80,
13,
44179,
945,
16,
58,
521,
60,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1303,
39407,
14184,
16856,
198,
220,
220,
220,
1195,
796,
29877,
26933,
85,
13,
4033,
329,
410,
287,
10662,
13,
44179,
945,
16,
4357,
685,
85,
13,
4033,
329,
410,
287,
10662,
13,
44179,
945,
17,
4357,
10662,
13,
80,
1073,
14822,
82,
8,
198,
220,
220,
220,
314,
11,
41,
11,
53,
796,
1064,
27305,
7,
48,
8,
198,
220,
220,
220,
1195,
20471,
89,
796,
4129,
7,
53,
8,
628,
220,
220,
220,
1303,
20664,
2846,
389,
1343,
14,
72,
11,
772,
2846,
389,
262,
9633,
14,
1073,
14822,
82,
198,
220,
220,
220,
3381,
62,
2536,
796,
15690,
7,
48504,
23,
10100,
11,
362,
9,
48,
20471,
89,
8,
198,
220,
220,
220,
611,
1195,
20471,
89,
1875,
657,
198,
220,
220,
220,
220,
220,
220,
220,
329,
773,
287,
352,
25,
48,
20471,
89,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1188,
796,
2352,
7,
53,
58,
521,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
662,
796,
357,
2100,
6624,
352,
13,
15,
5633,
13538,
1058,
965,
62,
744,
7,
2100,
27493,
1,
366,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
1401,
62,
2536,
7,
14171,
11,
80,
13,
44179,
945,
16,
58,
521,
4083,
76,
11,
40,
58,
521,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
796,
1401,
62,
2536,
7,
14171,
11,
80,
13,
44179,
945,
16,
58,
521,
4083,
76,
11,
41,
58,
521,
12962,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3381,
62,
2536,
58,
17,
9,
521,
12,
16,
60,
796,
569,
58,
521,
60,
1279,
657,
5633,
366,
532,
366,
1058,
366,
1343,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3381,
62,
2536,
58,
17,
9,
521,
220,
2361,
796,
17971,
3866,
3,
87,
1,
1635,
357,
87,
6624,
331,
5633,
5659,
58,
25,
31166,
60,
1058,
17971,
7,
37047,
58,
25,
22355,
12962,
3,
88,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
35074,
329,
717,
3381,
355,
612,
318,
645,
2272,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1022,
532,
290,
7885,
35381,
14,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
3381,
62,
2536,
58,
16,
60,
796,
569,
58,
16,
60,
1279,
657,
5633,
366,
21215,
1058,
13538,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1005,
796,
4654,
7,
4354,
62,
2536,
8,
628,
220,
220,
220,
611,
10662,
13,
2001,
13,
9979,
415,
6624,
657,
11405,
4129,
7,
80,
13,
2001,
13,
85,
945,
8,
6624,
657,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1005,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1527,
796,
1527,
62,
2536,
7,
14171,
11,
80,
13,
2001,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1527,
58,
16,
60,
6624,
705,
19355,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4731,
7,
1186,
11,
366,
532,
33172,
1527,
58,
17,
25,
437,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4731,
7,
1186,
11,
366,
1343,
33172,
1527,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
437,
198,
198,
2,
7157,
8116,
284,
779,
3376,
14354,
198,
47003,
62,
2536,
7,
3712,
6030,
90,
2200,
6489,
19076,
5512,
10662,
3712,
46189,
4507,
324,
3109,
1050,
8,
796,
198,
220,
220,
220,
15094,
62,
2536,
7,
2200,
6489,
19076,
11,
10662,
11,
2186,
8,
198,
47003,
62,
2536,
7,
3712,
6030,
90,
40,
16980,
544,
19076,
5512,
10662,
3712,
46189,
4507,
324,
3109,
1050,
26,
10688,
14171,
28,
7942,
8,
796,
198,
220,
220,
220,
10688,
7,
47003,
62,
2536,
7,
40,
16980,
544,
19076,
11,
10662,
11,
1312,
73,
43640,
828,
10688,
14171,
8,
198,
198,
2,
10097,
982,
198,
2235,
31430,
3109,
1050,
198,
2,
10097,
982,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
269,
3712,
50,
4503,
3109,
1050,
8,
796,
3601,
7,
952,
11,
44052,
62,
2536,
7,
2200,
6489,
19076,
11,
269,
4008,
198,
31,
5589,
265,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
7904,
44,
12789,
1,
5239,
14,
17660,
87,
1600,
269,
3712,
50,
4503,
3109,
1050,
8,
796,
198,
220,
220,
220,
3601,
7,
952,
11,
44052,
62,
2536,
7,
40,
16980,
544,
19076,
11,
269,
4008,
198,
8818,
44052,
62,
2536,
7,
14171,
11,
269,
3712,
50,
4503,
3109,
1050,
8,
198,
220,
220,
220,
763,
14822,
796,
357,
66,
13,
1073,
14822,
6624,
352,
8,
5633,
13538,
1058,
4731,
7,
66,
13,
1073,
14822,
11,
366,
366,
8,
198,
220,
220,
220,
1527,
220,
220,
796,
1527,
62,
2536,
7,
14171,
11,
269,
13,
2001,
8,
198,
220,
220,
220,
611,
1527,
58,
16,
60,
6624,
705,
19355,
198,
220,
220,
220,
220,
220,
220,
220,
6333,
796,
366,
532,
366,
198,
220,
220,
220,
220,
220,
220,
220,
1527,
796,
1527,
58,
17,
25,
437,
60,
198,
220,
220,
220,
2073,
361,
1527,
6624,
366,
15,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1527,
796,
13538,
198,
220,
220,
220,
220,
220,
220,
220,
6333,
796,
13538,
198,
220,
220,
220,
2073,
220,
1303,
3967,
198,
220,
220,
220,
220,
220,
220,
220,
6333,
796,
366,
1343,
366,
198,
220,
220,
220,
886,
198,
220,
220,
220,
4731,
7,
1073,
14822,
11,
2593,
62,
2536,
7,
14171,
11,
269,
13,
27237,
828,
6333,
11,
1527,
8,
198,
437,
198,
198,
2,
10097,
982,
198,
2235,
42044,
17257,
3103,
2536,
2913,
198,
2,
10097,
982,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
269,
3712,
46189,
17257,
3103,
2536,
2913,
8,
796,
3601,
7,
952,
11,
369,
62,
2536,
7,
2200,
6489,
19076,
11,
66,
4008,
198,
31,
5589,
265,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
7904,
44,
12789,
1,
5239,
14,
17660,
87,
1600,
269,
3712,
46189,
17257,
3103,
2536,
2913,
8,
796,
198,
220,
220,
220,
3601,
7,
952,
11,
369,
62,
2536,
7,
40,
16980,
544,
19076,
11,
66,
11,
11018,
14171,
28,
9562,
4008,
198,
2,
42044,
4731,
38394,
11,
1444,
416,
4235,
12,
11423,
32847,
198,
8818,
369,
62,
2536,
7,
14171,
11,
269,
3712,
46189,
17257,
3103,
2536,
2913,
11,
5659,
8,
198,
220,
220,
220,
264,
796,
2565,
7,
66,
8,
198,
220,
220,
220,
257,
796,
1527,
62,
2536,
7,
14171,
11,
66,
13,
38707,
11,
9562,
8,
198,
220,
220,
220,
611,
264,
6624,
1058,
9521,
198,
220,
220,
220,
220,
220,
220,
220,
503,
62,
2536,
796,
17971,
7,
2536,
62,
744,
7,
66,
13,
23160,
4008,
29568,
37047,
58,
25,
293,
80,
12962,
720,
64,
29568,
37047,
58,
25,
293,
80,
12962,
29568,
2536,
62,
744,
7,
66,
13,
549,
4008,
1,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
823,
796,
264,
6624,
1058,
27,
28,
5633,
5659,
58,
25,
293,
80,
60,
1058,
357,
82,
6624,
1058,
29,
28,
5633,
5659,
58,
25,
469,
80,
60,
1058,
5659,
58,
25,
27363,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
503,
62,
2536,
796,
4731,
7,
64,
553,
33172,
2411,
553,
33172,
2536,
62,
744,
7,
81,
11994,
7,
66,
22305,
198,
220,
220,
220,
886,
198,
220,
220,
220,
503,
62,
2536,
198,
437,
198,
2,
7157,
8116,
284,
779,
3376,
14354,
198,
1102,
62,
2536,
7,
3712,
6030,
90,
2200,
6489,
19076,
5512,
269,
3712,
46189,
17257,
3103,
2536,
2913,
26,
26498,
23029,
796,
198,
220,
220,
220,
369,
62,
2536,
7,
2200,
6489,
19076,
11,
269,
11,
2186,
8,
198,
1102,
62,
2536,
7,
3712,
6030,
90,
40,
16980,
544,
19076,
5512,
269,
3712,
46189,
17257,
3103,
2536,
2913,
26,
10688,
14171,
28,
7942,
8,
796,
198,
220,
220,
220,
10688,
7,
1102,
62,
2536,
7,
40,
16980,
544,
19076,
11,
269,
11,
1312,
73,
43640,
828,
10688,
14171,
8,
628,
198,
2,
10097,
982,
198,
2235,
20648,
3103,
2536,
2913,
198,
2,
10097,
982,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
269,
3712,
4507,
324,
3103,
2536,
2913,
8,
796,
3601,
7,
952,
11,
369,
62,
2536,
7,
2200,
6489,
19076,
11,
66,
4008,
198,
31,
5589,
265,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
7904,
44,
12789,
1,
5239,
14,
17660,
87,
1600,
269,
3712,
4507,
324,
3103,
2536,
2913,
8,
796,
198,
220,
220,
220,
3601,
7,
952,
11,
369,
62,
2536,
7,
40,
16980,
544,
19076,
11,
66,
11,
11018,
14171,
28,
9562,
4008,
198,
2,
42044,
4731,
38394,
11,
1444,
416,
4235,
12,
11423,
32847,
198,
8818,
369,
62,
2536,
7,
14171,
11,
269,
3712,
4507,
324,
3103,
2536,
2913,
11,
5659,
8,
198,
220,
220,
220,
264,
796,
269,
13,
33819,
198,
220,
220,
220,
374,
796,
357,
82,
6624,
1058,
27,
28,
8,
5633,
5659,
58,
25,
293,
80,
60,
1058,
357,
82,
6624,
1058,
29,
28,
5633,
5659,
58,
25,
469,
80,
60,
1058,
5659,
58,
25,
27363,
12962,
198,
220,
220,
220,
17971,
7,
47003,
62,
2536,
7,
14171,
11,
66,
13,
38707,
4008,
720,
81,
657,
1,
198,
437,
198,
2,
7157,
8116,
284,
779,
3376,
14354,
198,
1102,
62,
2536,
7,
3712,
6030,
90,
2200,
6489,
19076,
5512,
269,
3712,
4507,
324,
3103,
2536,
2913,
26,
26498,
23029,
796,
198,
220,
220,
220,
369,
62,
2536,
7,
2200,
6489,
19076,
11,
269,
11,
2186,
8,
198,
1102,
62,
2536,
7,
3712,
6030,
90,
40,
16980,
544,
19076,
5512,
269,
3712,
4507,
324,
3103,
2536,
2913,
26,
10688,
14171,
28,
7942,
8,
796,
198,
220,
220,
220,
10688,
7,
1102,
62,
2536,
7,
40,
16980,
544,
19076,
11,
269,
11,
1312,
73,
43640,
828,
10688,
14171,
8,
198,
198,
2,
10097,
982,
198,
2235,
31430,
3103,
2536,
2913,
198,
2,
10097,
982,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
269,
3712,
50,
4503,
3103,
2536,
2913,
8,
796,
3601,
7,
952,
11,
369,
62,
2536,
7,
2200,
6489,
19076,
11,
66,
4008,
198,
31,
5589,
265,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
7904,
44,
12789,
1,
5239,
14,
17660,
87,
1600,
269,
3712,
50,
4503,
3103,
2536,
2913,
8,
796,
198,
220,
220,
220,
3601,
7,
952,
11,
369,
62,
2536,
7,
40,
16980,
544,
19076,
11,
66,
4008,
198,
8818,
369,
62,
2536,
7,
14171,
11,
269,
3712,
50,
4503,
3103,
2536,
2913,
11,
5659,
3712,
18557,
13940,
2022,
10220,
8,
198,
220,
220,
220,
497,
796,
269,
13,
27237,
31937,
198,
220,
220,
220,
763,
14822,
796,
497,
13,
1073,
14822,
6624,
352,
5633,
13538,
1058,
4731,
7,
710,
13,
1073,
14822,
11,
366,
366,
8,
198,
220,
220,
220,
299,
26224,
220,
220,
796,
2593,
62,
2536,
7,
14171,
11,
497,
13,
27237,
8,
198,
220,
220,
220,
1527,
220,
220,
796,
1527,
62,
2536,
7,
14171,
11,
532,
710,
13,
2001,
8,
198,
220,
220,
220,
4731,
7,
1073,
14822,
11,
299,
26224,
11,
366,
29568,
35666,
58,
25,
293,
80,
12962,
33172,
1527,
8,
198,
437,
198,
2,
7157,
8116,
284,
779,
3376,
14354,
198,
1102,
62,
2536,
7,
3712,
6030,
90,
2200,
6489,
19076,
5512,
269,
3712,
50,
4503,
3103,
2536,
2913,
26,
26498,
23029,
796,
198,
220,
220,
220,
369,
62,
2536,
7,
2200,
6489,
19076,
11,
269,
11,
2186,
8,
198,
1102,
62,
2536,
7,
3712,
6030,
90,
40,
16980,
544,
19076,
5512,
269,
3712,
50,
4503,
3103,
2536,
2913,
26,
10688,
14171,
28,
7942,
8,
796,
198,
220,
220,
220,
10688,
7,
1102,
62,
2536,
7,
40,
16980,
544,
19076,
11,
269,
11,
1312,
73,
43640,
828,
10688,
14171,
8,
198,
198,
2,
10097,
982,
198,
2235,
42707,
3103,
2536,
2913,
198,
2,
10097,
982,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
269,
3712,
50,
2640,
3103,
2536,
2913,
8,
796,
3601,
7,
952,
11,
369,
62,
2536,
7,
2200,
6489,
19076,
11,
66,
4008,
198,
31,
5589,
265,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
7904,
44,
12789,
1,
5239,
14,
17660,
87,
1600,
269,
3712,
50,
2640,
3103,
2536,
2913,
8,
796,
198,
220,
220,
220,
3601,
7,
952,
11,
369,
62,
2536,
7,
40,
16980,
544,
19076,
11,
66,
11,
11018,
14171,
28,
9562,
4008,
198,
2,
42044,
4731,
38394,
11,
1444,
416,
4235,
12,
11423,
32847,
198,
8818,
369,
62,
2536,
7,
14171,
11,
269,
3712,
50,
2640,
3103,
2536,
2913,
11,
5659,
3712,
18557,
13940,
2022,
10220,
8,
198,
220,
220,
220,
3381,
62,
2536,
796,
685,
8841,
7,
2536,
62,
744,
7,
66,
13,
43775,
58,
72,
46570,
366,
33172,
269,
13,
38707,
58,
72,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
352,
25,
13664,
7,
66,
13,
38707,
15437,
198,
220,
220,
220,
17971,
7,
66,
13,
82,
455,
2981,
2599,
29568,
37047,
58,
25,
9654,
62,
2617,
12962,
3,
7,
22179,
7,
4354,
62,
2536,
553,
11,
366,
4008,
3,
7,
37047,
58,
25,
19836,
62,
2617,
12962,
1,
198,
437,
198,
2,
7157,
8116,
284,
779,
3376,
14354,
198,
1102,
62,
2536,
7,
3712,
6030,
90,
2200,
6489,
19076,
5512,
269,
3712,
50,
2640,
3103,
2536,
2913,
26,
26498,
23029,
796,
198,
220,
220,
220,
369,
62,
2536,
7,
2200,
6489,
19076,
11,
269,
11,
2186,
8,
198,
1102,
62,
2536,
7,
3712,
6030,
90,
40,
16980,
544,
19076,
5512,
269,
3712,
50,
2640,
3103,
2536,
2913,
26,
10688,
14171,
28,
7942,
8,
796,
198,
220,
220,
220,
10688,
7,
1102,
62,
2536,
7,
40,
16980,
544,
19076,
11,
269,
11,
1312,
73,
43640,
828,
10688,
14171,
8,
198,
198,
2,
10097,
982,
198,
2235,
9834,
3103,
2536,
2913,
198,
2,
10097,
982,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
269,
3712,
10305,
3103,
2536,
2913,
8,
796,
3601,
7,
952,
11,
369,
62,
2536,
7,
2200,
6489,
19076,
11,
66,
4008,
198,
31,
5589,
265,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
7904,
44,
12789,
1,
5239,
14,
17660,
87,
1600,
269,
3712,
10305,
3103,
2536,
2913,
8,
796,
198,
220,
220,
220,
3601,
7,
952,
11,
369,
62,
2536,
7,
40,
16980,
544,
19076,
11,
66,
11,
11018,
14171,
28,
9562,
4008,
198,
2,
42044,
4731,
38394,
11,
1444,
416,
4235,
12,
11423,
32847,
198,
8818,
369,
62,
2536,
7,
14171,
11,
269,
3712,
10305,
3103,
2536,
2913,
11,
6522,
344,
80,
15,
8,
198,
220,
220,
220,
256,
796,
269,
13,
38707,
198,
220,
220,
220,
965,
796,
18553,
7,
4798,
11,
256,
8,
198,
220,
220,
220,
4328,
2175,
796,
6626,
7,
2536,
11,
37082,
77,
4943,
58,
17,
25,
437,
60,
198,
220,
220,
220,
3641,
796,
2906,
346,
7,
5317,
11,
4129,
7,
22018,
2175,
20679,
17,
8,
198,
220,
220,
220,
4328,
2175,
58,
16159,
60,
1635,
28,
6522,
344,
80,
15,
198,
220,
220,
220,
4654,
7,
22018,
2175,
11,
37082,
77,
4943,
198,
437,
198,
2,
7157,
8116,
284,
779,
3376,
14354,
198,
1102,
62,
2536,
7,
3712,
6030,
90,
2200,
6489,
19076,
5512,
269,
3712,
10305,
3103,
2536,
2913,
26,
26498,
23029,
796,
198,
220,
220,
220,
369,
62,
2536,
7,
2200,
6489,
19076,
11,
269,
11,
2186,
58,
25,
82,
1229,
344,
80,
15,
12962,
198,
1102,
62,
2536,
7,
3712,
6030,
90,
40,
16980,
544,
19076,
5512,
269,
3712,
10305,
3103,
2536,
2913,
26,
10688,
14171,
28,
7942,
8,
796,
198,
220,
220,
220,
10688,
7,
1102,
62,
2536,
7,
40,
16980,
544,
19076,
11,
269,
11,
1312,
73,
43640,
58,
25,
82,
1229,
344,
80,
15,
4357,
10688,
14171,
4008,
198,
198,
2,
10097,
982,
198,
2235,
1482,
2536,
2913,
8134,
198,
2,
10097,
982,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
269,
3712,
3103,
2536,
2913,
8134,
90,
17633,
11,
14993,
451,
3103,
2536,
2913,
30072,
796,
3601,
7,
952,
11,
369,
62,
2536,
7,
2200,
6489,
19076,
11,
66,
13,
76,
13,
2815,
1102,
2536,
58,
66,
13,
312,
87,
60,
4008,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
269,
3712,
3103,
2536,
2913,
8134,
90,
17633,
11,
4507,
324,
3103,
2536,
2913,
30072,
220,
220,
796,
3601,
7,
952,
11,
369,
62,
2536,
7,
2200,
6489,
19076,
11,
66,
13,
76,
13,
47003,
1102,
2536,
58,
66,
13,
312,
87,
60,
4008,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
269,
3712,
3103,
2536,
2913,
8134,
90,
17633,
11,
50,
2640,
3103,
2536,
2913,
30072,
220,
220,
220,
796,
3601,
7,
952,
11,
369,
62,
2536,
7,
2200,
6489,
19076,
11,
66,
13,
76,
13,
82,
418,
1102,
2536,
58,
66,
13,
312,
87,
60,
4008,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
269,
3712,
3103,
2536,
2913,
8134,
90,
17633,
11,
50,
4503,
3103,
2536,
2913,
30072,
220,
220,
220,
796,
3601,
7,
952,
11,
369,
62,
2536,
7,
2200,
6489,
19076,
11,
66,
13,
76,
13,
35634,
1102,
2536,
58,
66,
13,
312,
87,
60,
4008,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
269,
3712,
3103,
2536,
2913,
8134,
90,
17633,
11,
10305,
3103,
2536,
2913,
30072,
220,
220,
220,
220,
796,
3601,
7,
952,
11,
369,
62,
2536,
7,
2200,
6489,
19076,
11,
66,
13,
76,
13,
21282,
79,
1102,
2536,
58,
66,
13,
312,
87,
60,
4008,
198,
8818,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
269,
3712,
3103,
2536,
2913,
8134,
90,
17633,
11,
15419,
29127,
3103,
2536,
2913,
30072,
198,
220,
220,
220,
3601,
7,
952,
11,
366,
26687,
284,
1729,
29127,
32315,
1303,
3,
7,
29127,
9630,
7,
66,
4008,
4943,
198,
437,
198,
31,
5589,
265,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
7904,
44,
12789,
1,
5239,
14,
17660,
87,
1600,
269,
3712,
3103,
2536,
2913,
8134,
90,
17633,
11,
14993,
451,
3103,
2536,
2913,
30072,
796,
198,
220,
220,
220,
3601,
7,
952,
11,
369,
62,
2536,
7,
40,
16980,
544,
19076,
11,
66,
13,
76,
13,
2815,
1102,
2536,
58,
66,
13,
312,
87,
4357,
11018,
14171,
28,
9562,
4008,
198,
31,
5589,
265,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
7904,
44,
12789,
1,
5239,
14,
17660,
87,
1600,
269,
3712,
3103,
2536,
2913,
8134,
90,
17633,
11,
4507,
324,
3103,
2536,
2913,
30072,
796,
198,
220,
220,
220,
3601,
7,
952,
11,
369,
62,
2536,
7,
40,
16980,
544,
19076,
11,
66,
13,
76,
13,
47003,
1102,
2536,
58,
66,
13,
312,
87,
4357,
11018,
14171,
28,
9562,
4008,
198,
31,
5589,
265,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
7904,
44,
12789,
1,
5239,
14,
17660,
87,
1600,
269,
3712,
3103,
2536,
2913,
8134,
90,
17633,
11,
50,
2640,
3103,
2536,
2913,
30072,
796,
198,
220,
220,
220,
3601,
7,
952,
11,
369,
62,
2536,
7,
40,
16980,
544,
19076,
11,
66,
13,
76,
13,
82,
418,
1102,
2536,
58,
66,
13,
312,
87,
4357,
11018,
14171,
28,
9562,
4008,
198
] | 2.234091 | 15,793 |
############################################################
## joMatrix - extra functions
# elements(jo)
#elements(A::joAbstractDAparallelToggleOperator) = throw(joAbstractDAparallelToggleOperatorException("elements: pointless operation for joDAdistribute/joDAgather operations"))
# hasinverse(jo)
# issquare(jo)
# istall(jo)
# iswide(jo)
# iscomplex(jo)
# islinear(jo)
# isadjoint(jo)
| [
29113,
14468,
7804,
4242,
198,
2235,
2525,
46912,
532,
3131,
5499,
198,
198,
2,
4847,
7,
7639,
8,
198,
2,
68,
3639,
7,
32,
3712,
7639,
23839,
5631,
1845,
29363,
51,
20258,
18843,
1352,
8,
796,
3714,
7,
7639,
23839,
5631,
1845,
29363,
51,
20258,
18843,
1352,
16922,
7203,
68,
3639,
25,
27158,
4905,
329,
2525,
35,
2782,
396,
4163,
14,
7639,
5631,
70,
1032,
4560,
48774,
198,
198,
2,
468,
259,
4399,
7,
7639,
8,
198,
198,
2,
1189,
421,
533,
7,
7639,
8,
198,
198,
2,
318,
35429,
7,
7639,
8,
198,
198,
2,
318,
4421,
7,
7639,
8,
198,
198,
2,
318,
41887,
7,
7639,
8,
198,
198,
2,
318,
29127,
7,
7639,
8,
198,
198,
2,
318,
41255,
1563,
7,
7639,
8,
628
] | 3.11811 | 127 |
matmul_sizes(s::Integer) = (s,s,s)
matmul_sizes(m_k_n::Tuple{Vararg{<:Integer, 3}}) = m_k_n
"""
runbench(backend, TA, TB, TC; kwargs...)
"""
function runbench(backend::Symbol, ::Type{TA}, ::Type{TB}, ::Type{TC};
kwargs...) where {TA, TB, TC}
return runbench(Val(backend), TA, TB, TC; kwargs...)
end
"""
runbench(::Val{:CUDA}, TA, TB, TC; kwargs...)
"""
function runbench(::Val{:CUDA}, ::Type{TA}, ::Type{TB}, ::Type{TC};
estimator::F = Base.minimum,
libs = all_libs(),
sizes = [2^n for n in 7:14]) where {TA, TB, TC, F}
sizes_vec = collect(sizes)
_sizes_column = Vector{Int}(undef, 0)
_libraries_column = Vector{Symbol}(undef, 0)
_tflops_column = Vector{Float64}(undef, 0)
_times_column = Vector{Float64}(undef, 0)
p = ProgressMeter.Progress(length(sizes_vec))
warmed_up = falses(length(sizes_vec))
for (j, sz) ∈ enumerate(sizes_vec)
showvalues = []
push!(showvalues, (:Size, sz))
GC.gc()
CUDA.reclaim()
M = sz
K = sz
N = sz
for lib in libs
benchfunc! = getbenchfunc(lib)
if !(warmed_up[j])
A_h = rand(TA, (M, K)) / sqrt(TA(K));
B_h = rand(TB, (K, N)) / sqrt(TB(K));
C_h = rand(TC, (M, N));
A = CUDA.CuArray(A_h);
B = CUDA.CuArray(B_h);
C = CUDA.CuArray(C_h);
benchfunc!(C, A, B) # warmup
warmed_up[j] = true
end
A_h = rand(TA, (M, K)) / sqrt(TA(K));
B_h = rand(TB, (K, N)) / sqrt(TB(K));
C_h = rand(TC, (M, N));
A = CUDA.CuArray(A_h);
B = CUDA.CuArray(B_h);
C = CUDA.CuArray(C_h);
trial = benchfunc!(C, A, B)
point_estimate = estimator(trial)
t_ns = Base.time(point_estimate) # time in nanoseconds
t_ps = 1_000 * t_ns # time in picoseconds
flops_factor = 2
tflops = flops_factor * M * K * N / t_ps # teraflops
push!(showvalues, (lib, "$(round(tflops; digits = 2)) TFLOPS"))
push!(_sizes_column, sz)
push!(_libraries_column, lib)
push!(_tflops_column, tflops)
push!(_times_column, t_ns)
end
ProgressMeter.next!(p; showvalues = showvalues)
GC.gc()
CUDA.reclaim()
end
df = DataFrames.DataFrame(
Size = _sizes_column,
Library = _libraries_column,
TFLOPS = _tflops_column,
Time = _times_column,
)
benchmark_result = BenchmarkResult{TA, TB, TC}(df)
return benchmark_result
end
| [
6759,
76,
377,
62,
82,
4340,
7,
82,
3712,
46541,
8,
796,
357,
82,
11,
82,
11,
82,
8,
198,
6759,
76,
377,
62,
82,
4340,
7,
76,
62,
74,
62,
77,
3712,
51,
29291,
90,
19852,
853,
90,
27,
25,
46541,
11,
513,
11709,
8,
796,
285,
62,
74,
62,
77,
198,
198,
37811,
198,
220,
220,
220,
1057,
26968,
7,
1891,
437,
11,
21664,
11,
23799,
11,
17283,
26,
479,
86,
22046,
23029,
198,
37811,
198,
8818,
1057,
26968,
7,
1891,
437,
3712,
13940,
23650,
11,
7904,
6030,
90,
5603,
5512,
7904,
6030,
90,
22737,
5512,
7904,
6030,
90,
4825,
19629,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
86,
22046,
23029,
810,
1391,
5603,
11,
23799,
11,
17283,
92,
198,
220,
220,
220,
1441,
1057,
26968,
7,
7762,
7,
1891,
437,
828,
21664,
11,
23799,
11,
17283,
26,
479,
86,
22046,
23029,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
1057,
26968,
7,
3712,
7762,
90,
25,
43633,
5631,
5512,
21664,
11,
23799,
11,
17283,
26,
479,
86,
22046,
23029,
198,
37811,
198,
8818,
1057,
26968,
7,
3712,
7762,
90,
25,
43633,
5631,
5512,
7904,
6030,
90,
5603,
5512,
7904,
6030,
90,
22737,
5512,
7904,
6030,
90,
4825,
19629,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3959,
1352,
3712,
37,
796,
7308,
13,
39504,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9195,
82,
796,
477,
62,
8019,
82,
22784,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10620,
796,
685,
17,
61,
77,
329,
299,
287,
767,
25,
1415,
12962,
810,
1391,
5603,
11,
23799,
11,
17283,
11,
376,
92,
198,
220,
220,
220,
10620,
62,
35138,
796,
2824,
7,
82,
4340,
8,
198,
220,
220,
220,
4808,
82,
4340,
62,
28665,
796,
20650,
90,
5317,
92,
7,
917,
891,
11,
657,
8,
198,
220,
220,
220,
4808,
75,
11127,
62,
28665,
796,
20650,
90,
13940,
23650,
92,
7,
917,
891,
11,
657,
8,
198,
220,
220,
220,
4808,
83,
2704,
2840,
62,
28665,
796,
20650,
90,
43879,
2414,
92,
7,
917,
891,
11,
657,
8,
198,
220,
220,
220,
4808,
22355,
62,
28665,
796,
20650,
90,
43879,
2414,
92,
7,
917,
891,
11,
657,
8,
198,
220,
220,
220,
279,
796,
18387,
44,
2357,
13,
32577,
7,
13664,
7,
82,
4340,
62,
35138,
4008,
198,
220,
220,
220,
38794,
62,
929,
796,
27807,
274,
7,
13664,
7,
82,
4340,
62,
35138,
4008,
198,
220,
220,
220,
329,
357,
73,
11,
264,
89,
8,
18872,
230,
27056,
378,
7,
82,
4340,
62,
35138,
8,
198,
220,
220,
220,
220,
220,
220,
220,
905,
27160,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
12860,
27160,
11,
357,
25,
10699,
11,
264,
89,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
20145,
13,
36484,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
29369,
5631,
13,
260,
6604,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
337,
796,
264,
89,
198,
220,
220,
220,
220,
220,
220,
220,
509,
796,
264,
89,
198,
220,
220,
220,
220,
220,
220,
220,
399,
796,
264,
89,
198,
220,
220,
220,
220,
220,
220,
220,
329,
9195,
287,
9195,
82,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7624,
20786,
0,
796,
651,
26968,
20786,
7,
8019,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5145,
7,
5767,
1150,
62,
929,
58,
73,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
62,
71,
796,
43720,
7,
5603,
11,
357,
44,
11,
509,
4008,
1220,
19862,
17034,
7,
5603,
7,
42,
18125,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
347,
62,
71,
796,
43720,
7,
22737,
11,
357,
42,
11,
399,
4008,
1220,
19862,
17034,
7,
22737,
7,
42,
18125,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
327,
62,
71,
796,
43720,
7,
4825,
11,
357,
44,
11,
399,
18125,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
796,
29369,
5631,
13,
46141,
19182,
7,
32,
62,
71,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
347,
796,
29369,
5631,
13,
46141,
19182,
7,
33,
62,
71,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
327,
796,
29369,
5631,
13,
46141,
19182,
7,
34,
62,
71,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7624,
20786,
0,
7,
34,
11,
317,
11,
347,
8,
1303,
5814,
929,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
38794,
62,
929,
58,
73,
60,
796,
2081,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
62,
71,
796,
43720,
7,
5603,
11,
357,
44,
11,
509,
4008,
1220,
19862,
17034,
7,
5603,
7,
42,
18125,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
347,
62,
71,
796,
43720,
7,
22737,
11,
357,
42,
11,
399,
4008,
1220,
19862,
17034,
7,
22737,
7,
42,
18125,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
327,
62,
71,
796,
43720,
7,
4825,
11,
357,
44,
11,
399,
18125,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
796,
29369,
5631,
13,
46141,
19182,
7,
32,
62,
71,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
347,
796,
29369,
5631,
13,
46141,
19182,
7,
33,
62,
71,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
327,
796,
29369,
5631,
13,
46141,
19182,
7,
34,
62,
71,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4473,
796,
7624,
20786,
0,
7,
34,
11,
317,
11,
347,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
966,
62,
395,
1920,
796,
3959,
1352,
7,
45994,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
62,
5907,
796,
7308,
13,
2435,
7,
4122,
62,
395,
1920,
8,
1303,
640,
287,
15709,
577,
17561,
82,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
62,
862,
796,
352,
62,
830,
1635,
256,
62,
5907,
1303,
640,
287,
8301,
577,
17561,
82,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
781,
2840,
62,
31412,
796,
362,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
2704,
2840,
796,
781,
2840,
62,
31412,
1635,
337,
1635,
509,
1635,
399,
1220,
256,
62,
862,
1303,
1059,
1878,
75,
2840,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
12860,
27160,
11,
357,
8019,
11,
17971,
7,
744,
7,
83,
2704,
2840,
26,
19561,
796,
362,
4008,
309,
3697,
30737,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
28264,
82,
4340,
62,
28665,
11,
264,
89,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
28264,
75,
11127,
62,
28665,
11,
9195,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
28264,
83,
2704,
2840,
62,
28665,
11,
256,
2704,
2840,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
28264,
22355,
62,
28665,
11,
256,
62,
5907,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
18387,
44,
2357,
13,
19545,
0,
7,
79,
26,
905,
27160,
796,
905,
27160,
8,
198,
220,
220,
220,
220,
220,
220,
220,
20145,
13,
36484,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
29369,
5631,
13,
260,
6604,
3419,
198,
220,
220,
220,
886,
198,
220,
220,
220,
47764,
796,
6060,
35439,
13,
6601,
19778,
7,
198,
220,
220,
220,
220,
220,
220,
220,
12849,
796,
4808,
82,
4340,
62,
28665,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10074,
796,
4808,
75,
11127,
62,
28665,
11,
198,
220,
220,
220,
220,
220,
220,
220,
309,
3697,
30737,
796,
4808,
83,
2704,
2840,
62,
28665,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3862,
796,
4808,
22355,
62,
28665,
11,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
18335,
62,
20274,
796,
25187,
4102,
23004,
90,
5603,
11,
23799,
11,
17283,
92,
7,
7568,
8,
198,
220,
220,
220,
1441,
18335,
62,
20274,
198,
437,
198
] | 1.806538 | 1,499 |
# SPDX-License-Identifier: X11
# 2020-08-29
# Five Variables (100pt)
println(findfirst(x -> x == 0, parse.(Int, split(readline(), " "))))
| [
2,
30628,
55,
12,
34156,
12,
33234,
7483,
25,
1395,
1157,
198,
2,
12131,
12,
2919,
12,
1959,
198,
2,
10579,
15965,
2977,
357,
3064,
457,
8,
198,
198,
35235,
7,
19796,
11085,
7,
87,
4613,
2124,
6624,
657,
11,
21136,
12195,
5317,
11,
6626,
7,
961,
1370,
22784,
366,
366,
35514,
198
] | 2.622642 | 53 |
using Revise
using ReversibleSeismic
nx = 1000
ny = 1000
param = AcousticPropagatorParams(nx=nx, ny=ny,
Rcoef=0.2, dx=20.0, dy=20.0, dt=0.05, nstep=100)
c = 1000*ones(param.NX+2, param.NY+2)
src = (param.NX÷2, param.NY÷2)
srcv = Ricker(param, 100.0, 500.0)
tu = solve(param, src, srcv, c)
loss = sum(tu .^ 2)
@assert loss ≈ 10.931466822080788
using PyPlot
function viz(param, tu)
close("all")
plot(srcv)
savefig("_srcv.png")
for i = 1:200:param.NSTEP+1
close("all")
pcolormesh(tu[:,:,i])
colorbar()
savefig("_f$i.png")
end
end
viz(param, tu)
| [
3500,
5416,
786,
198,
3500,
797,
37393,
4653,
1042,
291,
198,
198,
77,
87,
796,
8576,
198,
3281,
796,
8576,
198,
17143,
796,
4013,
21618,
24331,
363,
1352,
10044,
4105,
7,
77,
87,
28,
77,
87,
11,
299,
88,
28,
3281,
11,
198,
220,
220,
220,
220,
371,
1073,
891,
28,
15,
13,
17,
11,
44332,
28,
1238,
13,
15,
11,
20268,
28,
1238,
13,
15,
11,
288,
83,
28,
15,
13,
2713,
11,
299,
9662,
28,
3064,
8,
198,
198,
66,
796,
8576,
9,
1952,
7,
17143,
13,
45,
55,
10,
17,
11,
5772,
13,
12805,
10,
17,
8,
198,
10677,
796,
357,
17143,
13,
45,
55,
127,
115,
17,
11,
5772,
13,
12805,
127,
115,
17,
8,
198,
10677,
85,
796,
8759,
263,
7,
17143,
11,
1802,
13,
15,
11,
5323,
13,
15,
8,
198,
28047,
796,
8494,
7,
17143,
11,
12351,
11,
12351,
85,
11,
269,
8,
198,
22462,
796,
2160,
7,
28047,
764,
61,
362,
8,
198,
31,
30493,
2994,
15139,
230,
838,
13,
6052,
1415,
2791,
6469,
1238,
36928,
3459,
198,
198,
3500,
9485,
43328,
220,
198,
198,
8818,
48569,
7,
17143,
11,
12777,
8,
198,
220,
220,
220,
220,
1969,
7203,
439,
4943,
198,
220,
220,
220,
220,
7110,
7,
10677,
85,
8,
198,
220,
220,
220,
220,
3613,
5647,
7203,
62,
10677,
85,
13,
11134,
4943,
628,
220,
220,
220,
220,
329,
1312,
796,
352,
25,
2167,
25,
17143,
13,
45,
42135,
10,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1969,
7203,
439,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
4033,
579,
5069,
7,
28047,
58,
45299,
45299,
72,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3124,
5657,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3613,
5647,
7203,
62,
69,
3,
72,
13,
11134,
4943,
198,
220,
220,
220,
220,
886,
198,
437,
198,
198,
85,
528,
7,
17143,
11,
12777,
8,
198
] | 1.892966 | 327 |
#=
JoiceTypeConstructorFunctions:
- Julia version: 1.6
- Author: connorforsythe
- Date: 2021-11-05
=#
export ConstructModelInfo
function checkModelInfo(Data::DataFrame, ChoiceColumn::Symbol, Parameters::Vector{Symbol}, ChoiceSetIDColumn::Symbol, RandomParameters::RandColsType=nothing, PanelIDColumn::ColsType=nothing, WeightColumn::ColsType=nothing)
dataCols = Symbol.(names(Data))
missingCols = []
if !(ChoiceColumn in dataCols)
push!(missingCols, ChoiceColumn)
end
if !(ChoiceSetIDColumn in dataCols)
push!(missingCols, ChoiceSetIDColumn)
end
if !(PanelIDColumn in dataCols) && (PanelIDColumn!=nothing)
push!(missingCols, PanelIDColumn)
end
for tempSymbol in Parameters
if !(tempSymbol in dataCols)
push!(missingCols, tempSymbol)
end
end
if RandomParameters!=nothing
for tempSymbol in keys(RandomParameters)
if !(tempSymbol in dataCols)
push!(missingCols, tempSymbol)
end
end
end
if length(missingCols)>0
error("You have specified the following cols that aren't in the provided dataset: $missingCols")
end
end
function convertParameterColumns(x::Vector{String}) return Symbol.(x) end
function convertParameterColumns(x::Vector{Symbol}) return x end
function convertParameterColumns(x::Symbol) return [x] end
function convertParameterColumns(x::String) return convertParameterColumns(Symbol(x)) end
function convertParameterColumns(x::Nothing) return x end
function convertParameterColumn(x::String) return Symbol(x) end
function convertParameterColumn(x::Symbol) return x end
function convertParameterColumn(x::Nothing) return x end
function convertRandomParameterColumns(x::Dict{Symbol, String}) return x end
function convertRandomParameterColumns(x::Dict{String, String}) return Dict(zip(convertParameterColumns([keys(x)...]), values(x))) end
function convertRandomParameterColumns(x::Nothing) return x end
function ConstructModelInfo(Data::DataFrame, ChoiceColumn::ColType, Parameters::ColsType, ChoiceSetIDColumn::ColType; RandomParameters::RandColsType=nothing, PanelIDColumn::ColType=nothing,
Space::String="preference", Name::NameType=nothing, InterDrawCount::Int=2048, WeightColumn::ColType=nothing)
TimeCreated = Dates.now()
ChoiceColumn = convertParameterColumn(ChoiceColumn)
Parameters = convertParameterColumns(Parameters)
ChoiceSetIDColumn = convertParameterColumn(ChoiceSetIDColumn)
WeightColumn = convertParameterColumn(WeightColumn)
PanelIDColumn = convertParameterColumn(PanelIDColumn)
RandomParameters = convertRandomParameterColumns(RandomParameters)
RandomDraws = getDraws(RandomParameters, InterDrawCount)
typedSpace::JoiceModelSpace = Preference()
colsToKeep = copy(Parameters)
appendParamNames!(colsToKeep, RandomParameters)
push!(colsToKeep, ChoiceColumn)
push!(colsToKeep, ChoiceSetIDColumn)
if(lowercase(Space)=="wtp")
typedSpace = WTP()
end
typedDataStructure::JoiceDataStructure = Panel()
ObservationColumn::Symbol = ChoiceSetIDColumn
if(PanelIDColumn==nothing)
typedDataStructure = Cross()
else
push!(colsToKeep, PanelIDColumn)
ObservationColumn = PanelIDColumn
end
if(WeightColumn!=nothing)
push!(colsToKeep, WeightColumn)
end
checkModelInfo(Data, ChoiceColumn, Parameters, ChoiceSetIDColumn, RandomParameters, PanelIDColumn, WeightColumn)
PreferenceSearchBounds = [-1, 1]
println("Model being constructed with the following properties:")
if(PanelIDColumn!=nothing)
println("Panel Variable: $PanelIDColumn")
end
println("Choice Set Variable: $ChoiceSetIDColumn")
println("Choice Indicator Variable: $ChoiceColumn")
println("Fixed Parameters: $Parameters")
if(RandomParameters!=nothing)
println("Random Parameters: $RandomParameters")
end
print("Data has ")
print(size(Data)[1])
println(" rows")
cleanDataFrame = cleanData(Data, colsToKeep, ChoiceSetIDColumn, PanelIDColumn)
r = ModelInfo(cleanDataFrame, ChoiceColumn, Parameters, :choiceSetID, RandomParameters, RandomDraws,
PanelIDColumn, ObservationColumn, typedDataStructure, typedSpace, Name, InterDrawCount,
WeightColumn, TimeCreated, PreferenceSearchBounds)
return r
end
function cleanData(data::DataFrame, colsToKeep::Vector{Symbol}, choiceSetIDColumn::Symbol, panelIDColumn::Symbol)
data = data[:, colsToKeep]
#Construct new id to allow for repeated choice set ids given
maxChoiceSetID = max(data[:, choiceSetIDColumn]...)
panelIDMultiplier = 10^(ceil(log10(maxChoiceSetID)))
data[:, :choiceSetID] .= (data[:, panelIDColumn].*panelIDMultiplier).+data[:, choiceSetIDColumn]
return data
end
function cleanData(data::DataFrame, colsToKeep::Vector{Symbol}, choiceSetIDColumn::Symbol, panelIDColumn::Nothing)
data = data[:, colsToKeep]
data[:, :choiceSetID] .= data[:, choiceSetIDColumn]
return data
end
function appendParamNames!(currentVect::Vector{Symbol}, randomParameters::Nothing) end
function appendParamNames!(currentVect::Vector{Symbol}, randomParameters::Dict{Symbol, String})
for tempCol in keys(randomParameters)
push!(currentVect, tempCol)
end
end | [
2,
28,
198,
41,
2942,
6030,
42316,
273,
24629,
2733,
25,
198,
12,
22300,
2196,
25,
352,
13,
21,
198,
12,
6434,
25,
369,
13099,
69,
669,
88,
1169,
198,
12,
7536,
25,
33448,
12,
1157,
12,
2713,
198,
46249,
198,
198,
39344,
28407,
17633,
12360,
628,
198,
8818,
2198,
17633,
12360,
7,
6601,
3712,
6601,
19778,
11,
18502,
39470,
3712,
13940,
23650,
11,
40117,
3712,
38469,
90,
13940,
23650,
5512,
18502,
7248,
2389,
39470,
3712,
13940,
23650,
11,
14534,
48944,
3712,
38918,
5216,
82,
6030,
28,
22366,
11,
18810,
2389,
39470,
3712,
5216,
82,
6030,
28,
22366,
11,
14331,
39470,
3712,
5216,
82,
6030,
28,
22366,
8,
628,
220,
220,
220,
1366,
5216,
82,
796,
38357,
12195,
14933,
7,
6601,
4008,
198,
220,
220,
220,
4814,
5216,
82,
796,
17635,
198,
220,
220,
220,
611,
5145,
7,
46770,
39470,
287,
1366,
5216,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
45688,
5216,
82,
11,
18502,
39470,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
611,
5145,
7,
46770,
7248,
2389,
39470,
287,
1366,
5216,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
45688,
5216,
82,
11,
18502,
7248,
2389,
39470,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
611,
5145,
7,
26639,
2389,
39470,
287,
1366,
5216,
82,
8,
11405,
357,
26639,
2389,
39470,
0,
28,
22366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
45688,
5216,
82,
11,
18810,
2389,
39470,
8,
198,
220,
220,
220,
886,
628,
198,
220,
220,
220,
329,
20218,
13940,
23650,
287,
40117,
198,
220,
220,
220,
220,
220,
220,
220,
611,
5145,
7,
29510,
13940,
23650,
287,
1366,
5216,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
45688,
5216,
82,
11,
20218,
13940,
23650,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
611,
14534,
48944,
0,
28,
22366,
198,
220,
220,
220,
220,
220,
220,
220,
329,
20218,
13940,
23650,
287,
8251,
7,
29531,
48944,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5145,
7,
29510,
13940,
23650,
287,
1366,
5216,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
45688,
5216,
82,
11,
20218,
13940,
23650,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
611,
4129,
7,
45688,
5216,
82,
8,
29,
15,
198,
220,
220,
220,
220,
220,
220,
220,
4049,
7203,
1639,
423,
7368,
262,
1708,
951,
82,
326,
3588,
470,
287,
262,
2810,
27039,
25,
720,
45688,
5216,
82,
4943,
198,
220,
220,
220,
886,
198,
437,
198,
198,
8818,
10385,
36301,
39470,
82,
7,
87,
3712,
38469,
90,
10100,
30072,
1441,
38357,
12195,
87,
8,
886,
198,
8818,
10385,
36301,
39470,
82,
7,
87,
3712,
38469,
90,
13940,
23650,
30072,
1441,
2124,
886,
198,
8818,
10385,
36301,
39470,
82,
7,
87,
3712,
13940,
23650,
8,
1441,
685,
87,
60,
886,
198,
8818,
10385,
36301,
39470,
82,
7,
87,
3712,
10100,
8,
1441,
10385,
36301,
39470,
82,
7,
13940,
23650,
7,
87,
4008,
886,
198,
8818,
10385,
36301,
39470,
82,
7,
87,
3712,
18465,
8,
1441,
2124,
886,
198,
8818,
10385,
36301,
39470,
7,
87,
3712,
10100,
8,
1441,
38357,
7,
87,
8,
886,
198,
8818,
10385,
36301,
39470,
7,
87,
3712,
13940,
23650,
8,
1441,
2124,
886,
198,
8818,
10385,
36301,
39470,
7,
87,
3712,
18465,
8,
1441,
2124,
886,
198,
8818,
10385,
29531,
36301,
39470,
82,
7,
87,
3712,
35,
713,
90,
13940,
23650,
11,
10903,
30072,
1441,
2124,
886,
198,
8818,
10385,
29531,
36301,
39470,
82,
7,
87,
3712,
35,
713,
90,
10100,
11,
10903,
30072,
1441,
360,
713,
7,
13344,
7,
1102,
1851,
36301,
39470,
82,
26933,
13083,
7,
87,
8,
22345,
828,
3815,
7,
87,
22305,
886,
198,
8818,
10385,
29531,
36301,
39470,
82,
7,
87,
3712,
18465,
8,
1441,
2124,
886,
198,
198,
8818,
28407,
17633,
12360,
7,
6601,
3712,
6601,
19778,
11,
18502,
39470,
3712,
5216,
6030,
11,
40117,
3712,
5216,
82,
6030,
11,
18502,
7248,
2389,
39470,
3712,
5216,
6030,
26,
14534,
48944,
3712,
38918,
5216,
82,
6030,
28,
22366,
11,
18810,
2389,
39470,
3712,
5216,
6030,
28,
22366,
11,
198,
220,
220,
220,
4687,
3712,
10100,
2625,
3866,
4288,
1600,
6530,
3712,
5376,
6030,
28,
22366,
11,
4225,
25302,
12332,
3712,
5317,
28,
1238,
2780,
11,
14331,
39470,
3712,
5216,
6030,
28,
22366,
8,
628,
198,
220,
220,
220,
3862,
41972,
796,
44712,
13,
2197,
3419,
628,
220,
220,
220,
18502,
39470,
796,
10385,
36301,
39470,
7,
46770,
39470,
8,
198,
220,
220,
220,
40117,
796,
10385,
36301,
39470,
82,
7,
48944,
8,
198,
220,
220,
220,
18502,
7248,
2389,
39470,
796,
10385,
36301,
39470,
7,
46770,
7248,
2389,
39470,
8,
198,
220,
220,
220,
14331,
39470,
796,
10385,
36301,
39470,
7,
25844,
39470,
8,
198,
220,
220,
220,
18810,
2389,
39470,
796,
10385,
36301,
39470,
7,
26639,
2389,
39470,
8,
198,
220,
220,
220,
14534,
48944,
796,
10385,
29531,
36301,
39470,
82,
7,
29531,
48944,
8,
198,
220,
220,
220,
14534,
25302,
82,
796,
651,
25302,
82,
7,
29531,
48944,
11,
4225,
25302,
12332,
8,
198,
220,
220,
220,
25683,
14106,
3712,
41,
2942,
17633,
14106,
796,
3771,
4288,
3419,
628,
198,
220,
220,
220,
951,
82,
2514,
15597,
796,
4866,
7,
48944,
8,
628,
220,
220,
220,
24443,
22973,
36690,
0,
7,
4033,
82,
2514,
15597,
11,
14534,
48944,
8,
628,
220,
220,
220,
4574,
0,
7,
4033,
82,
2514,
15597,
11,
18502,
39470,
8,
198,
220,
220,
220,
4574,
0,
7,
4033,
82,
2514,
15597,
11,
18502,
7248,
2389,
39470,
8,
628,
220,
220,
220,
611,
7,
21037,
7442,
7,
14106,
8,
855,
1,
86,
34788,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
25683,
14106,
796,
370,
7250,
3419,
198,
220,
220,
220,
886,
628,
220,
220,
220,
25683,
6601,
1273,
5620,
3712,
41,
2942,
6601,
1273,
5620,
796,
18810,
3419,
198,
220,
220,
220,
11086,
13208,
39470,
3712,
13940,
23650,
796,
18502,
7248,
2389,
39470,
198,
220,
220,
220,
611,
7,
26639,
2389,
39470,
855,
22366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
25683,
6601,
1273,
5620,
796,
6372,
3419,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
4033,
82,
2514,
15597,
11,
18810,
2389,
39470,
8,
198,
220,
220,
220,
220,
220,
220,
220,
11086,
13208,
39470,
796,
18810,
2389,
39470,
198,
220,
220,
220,
886,
628,
198,
220,
220,
220,
611,
7,
25844,
39470,
0,
28,
22366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
4033,
82,
2514,
15597,
11,
14331,
39470,
8,
198,
220,
220,
220,
886,
628,
220,
220,
220,
2198,
17633,
12360,
7,
6601,
11,
18502,
39470,
11,
40117,
11,
18502,
7248,
2389,
39470,
11,
14534,
48944,
11,
18810,
2389,
39470,
11,
14331,
39470,
8,
198,
220,
220,
220,
3771,
4288,
18243,
33,
3733,
796,
25915,
16,
11,
352,
60,
628,
220,
220,
220,
44872,
7203,
17633,
852,
12006,
351,
262,
1708,
6608,
25,
4943,
198,
220,
220,
220,
611,
7,
26639,
2389,
39470,
0,
28,
22366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
44872,
7203,
26639,
35748,
25,
720,
26639,
2389,
39470,
4943,
198,
220,
220,
220,
886,
198,
220,
220,
220,
44872,
7203,
46770,
5345,
35748,
25,
720,
46770,
7248,
2389,
39470,
4943,
198,
220,
220,
220,
44872,
7203,
46770,
1423,
26407,
35748,
25,
720,
46770,
39470,
4943,
198,
220,
220,
220,
44872,
7203,
13715,
40117,
25,
720,
48944,
4943,
198,
220,
220,
220,
611,
7,
29531,
48944,
0,
28,
22366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
44872,
7203,
29531,
40117,
25,
720,
29531,
48944,
4943,
198,
220,
220,
220,
886,
198,
220,
220,
220,
3601,
7203,
6601,
468,
366,
8,
198,
220,
220,
220,
3601,
7,
7857,
7,
6601,
38381,
16,
12962,
198,
220,
220,
220,
44872,
7203,
15274,
4943,
628,
220,
220,
220,
3424,
6601,
19778,
796,
3424,
6601,
7,
6601,
11,
951,
82,
2514,
15597,
11,
18502,
7248,
2389,
39470,
11,
18810,
2389,
39470,
8,
628,
220,
220,
220,
374,
796,
9104,
12360,
7,
27773,
6601,
19778,
11,
18502,
39470,
11,
40117,
11,
1058,
25541,
7248,
2389,
11,
14534,
48944,
11,
14534,
25302,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18810,
2389,
39470,
11,
11086,
13208,
39470,
11,
25683,
6601,
1273,
5620,
11,
25683,
14106,
11,
6530,
11,
4225,
25302,
12332,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14331,
39470,
11,
3862,
41972,
11,
3771,
4288,
18243,
33,
3733,
8,
628,
220,
220,
220,
1441,
374,
198,
437,
628,
198,
8818,
3424,
6601,
7,
7890,
3712,
6601,
19778,
11,
951,
82,
2514,
15597,
3712,
38469,
90,
13940,
23650,
5512,
3572,
7248,
2389,
39470,
3712,
13940,
23650,
11,
6103,
2389,
39470,
3712,
13940,
23650,
8,
628,
220,
220,
220,
1366,
796,
1366,
58,
45299,
951,
82,
2514,
15597,
60,
628,
220,
220,
220,
1303,
42316,
649,
4686,
284,
1249,
329,
5100,
3572,
900,
220,
2340,
1813,
198,
220,
220,
220,
3509,
46770,
7248,
2389,
796,
3509,
7,
7890,
58,
45299,
3572,
7248,
2389,
39470,
60,
23029,
198,
220,
220,
220,
6103,
2389,
15205,
24705,
959,
796,
838,
61,
7,
344,
346,
7,
6404,
940,
7,
9806,
46770,
7248,
2389,
22305,
628,
220,
220,
220,
1366,
58,
45299,
1058,
25541,
7248,
2389,
60,
764,
28,
357,
7890,
58,
45299,
6103,
2389,
39470,
4083,
9,
35330,
2389,
15205,
24705,
959,
737,
10,
7890,
58,
45299,
3572,
7248,
2389,
39470,
60,
628,
220,
220,
220,
1441,
1366,
198,
198,
437,
198,
198,
8818,
3424,
6601,
7,
7890,
3712,
6601,
19778,
11,
951,
82,
2514,
15597,
3712,
38469,
90,
13940,
23650,
5512,
3572,
7248,
2389,
39470,
3712,
13940,
23650,
11,
6103,
2389,
39470,
3712,
18465,
8,
628,
220,
220,
220,
1366,
796,
1366,
58,
45299,
951,
82,
2514,
15597,
60,
628,
220,
220,
220,
1366,
58,
45299,
1058,
25541,
7248,
2389,
60,
764,
28,
1366,
58,
45299,
3572,
7248,
2389,
39470,
60,
628,
220,
220,
220,
1441,
1366,
198,
198,
437,
198,
198,
8818,
24443,
22973,
36690,
0,
7,
14421,
53,
478,
3712,
38469,
90,
13940,
23650,
5512,
4738,
48944,
3712,
18465,
8,
886,
198,
198,
8818,
24443,
22973,
36690,
0,
7,
14421,
53,
478,
3712,
38469,
90,
13940,
23650,
5512,
4738,
48944,
3712,
35,
713,
90,
13940,
23650,
11,
10903,
30072,
198,
220,
220,
220,
329,
20218,
5216,
287,
8251,
7,
25120,
48944,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
14421,
53,
478,
11,
20218,
5216,
8,
198,
220,
220,
220,
886,
198,
437
] | 2.946154 | 1,820 |
function BigFraction(arg0::BigInteger)
return BigFraction((BigInteger,), arg0)
end
function BigFraction(arg0::BigInteger, arg1::BigInteger)
return BigFraction((BigInteger, BigInteger), arg0, arg1)
end
function BigFraction(arg0::jdouble)
return BigFraction((jdouble,), arg0)
end
function BigFraction(arg0::jdouble, arg1::jdouble, arg2::jint)
return BigFraction((jdouble, jdouble, jint), arg0, arg1, arg2)
end
function BigFraction(arg0::jdouble, arg1::jint)
return BigFraction((jdouble, jint), arg0, arg1)
end
function BigFraction(arg0::jint)
return BigFraction((jint,), arg0)
end
function BigFraction(arg0::jint, arg1::jint)
return BigFraction((jint, jint), arg0, arg1)
end
function BigFraction(arg0::jlong)
return BigFraction((jlong,), arg0)
end
function BigFraction(arg0::jlong, arg1::jlong)
return BigFraction((jlong, jlong), arg0, arg1)
end
function abs(obj::BigFraction)
return jcall(obj, "abs", BigFraction, ())
end
function add(obj::BigFraction, arg0::BigFraction)
return jcall(obj, "add", BigFraction, (BigFraction,), arg0)
end
function add(obj::BigFraction, arg0::BigInteger)
return jcall(obj, "add", BigFraction, (BigInteger,), arg0)
end
function add(obj::BigFraction, arg0::jint)
return jcall(obj, "add", BigFraction, (jint,), arg0)
end
function add(obj::BigFraction, arg0::jlong)
return jcall(obj, "add", BigFraction, (jlong,), arg0)
end
function big_decimal_value(obj::BigFraction)
return jcall(obj, "bigDecimalValue", BigDecimal, ())
end
function big_decimal_value(obj::BigFraction, arg0::jint)
return jcall(obj, "bigDecimalValue", BigDecimal, (jint,), arg0)
end
function big_decimal_value(obj::BigFraction, arg0::jint, arg1::jint)
return jcall(obj, "bigDecimalValue", BigDecimal, (jint, jint), arg0, arg1)
end
function byte_value(obj::Number)
return jcall(obj, "byteValue", jbyte, ())
end
function compare_to(obj::BigFraction, arg0::BigFraction)
return jcall(obj, "compareTo", jint, (BigFraction,), arg0)
end
function divide(obj::BigFraction, arg0::BigFraction)
return jcall(obj, "divide", BigFraction, (BigFraction,), arg0)
end
function divide(obj::BigFraction, arg0::BigInteger)
return jcall(obj, "divide", BigFraction, (BigInteger,), arg0)
end
function divide(obj::BigFraction, arg0::jint)
return jcall(obj, "divide", BigFraction, (jint,), arg0)
end
function divide(obj::BigFraction, arg0::jlong)
return jcall(obj, "divide", BigFraction, (jlong,), arg0)
end
function double_value(obj::BigFraction)
return jcall(obj, "doubleValue", jdouble, ())
end
function equals(obj::BigFraction, arg0::Object)
return jcall(obj, "equals", jboolean, (Object,), arg0)
end
function float_value(obj::BigFraction)
return jcall(obj, "floatValue", jfloat, ())
end
function get_denominator(obj::BigFraction)
return jcall(obj, "getDenominator", BigInteger, ())
end
function get_denominator_as_int(obj::BigFraction)
return jcall(obj, "getDenominatorAsInt", jint, ())
end
function get_denominator_as_long(obj::BigFraction)
return jcall(obj, "getDenominatorAsLong", jlong, ())
end
function get_field(obj::BigFraction)
return jcall(obj, "getField", BigFractionField, ())
end
function get_numerator(obj::BigFraction)
return jcall(obj, "getNumerator", BigInteger, ())
end
function get_numerator_as_int(obj::BigFraction)
return jcall(obj, "getNumeratorAsInt", jint, ())
end
function get_numerator_as_long(obj::BigFraction)
return jcall(obj, "getNumeratorAsLong", jlong, ())
end
function get_reduced_fraction(::Type{BigFraction}, arg0::jint, arg1::jint)
return jcall(BigFraction, "getReducedFraction", BigFraction, (jint, jint), arg0, arg1)
end
function hash_code(obj::BigFraction)
return jcall(obj, "hashCode", jint, ())
end
function int_value(obj::BigFraction)
return jcall(obj, "intValue", jint, ())
end
function long_value(obj::BigFraction)
return jcall(obj, "longValue", jlong, ())
end
function multiply(obj::BigFraction, arg0::BigFraction)
return jcall(obj, "multiply", BigFraction, (BigFraction,), arg0)
end
function multiply(obj::BigFraction, arg0::BigInteger)
return jcall(obj, "multiply", BigFraction, (BigInteger,), arg0)
end
function multiply(obj::BigFraction, arg0::jint)
return jcall(obj, "multiply", BigFraction, (jint,), arg0)
end
function multiply(obj::BigFraction, arg0::jlong)
return jcall(obj, "multiply", BigFraction, (jlong,), arg0)
end
function negate(obj::BigFraction)
return jcall(obj, "negate", BigFraction, ())
end
function percentage_value(obj::BigFraction)
return jcall(obj, "percentageValue", jdouble, ())
end
function pow(obj::BigFraction, arg0::BigInteger)
return jcall(obj, "pow", BigFraction, (BigInteger,), arg0)
end
function pow(obj::BigFraction, arg0::jdouble)
return jcall(obj, "pow", jdouble, (jdouble,), arg0)
end
function pow(obj::BigFraction, arg0::jint)
return jcall(obj, "pow", BigFraction, (jint,), arg0)
end
function pow(obj::BigFraction, arg0::jlong)
return jcall(obj, "pow", BigFraction, (jlong,), arg0)
end
function reciprocal(obj::BigFraction)
return jcall(obj, "reciprocal", BigFraction, ())
end
function reduce(obj::BigFraction)
return jcall(obj, "reduce", BigFraction, ())
end
function short_value(obj::Number)
return jcall(obj, "shortValue", jshort, ())
end
function signum(obj::BigFraction)
return jcall(obj, "signum", jint, ())
end
function subtract(obj::BigFraction, arg0::BigFraction)
return jcall(obj, "subtract", BigFraction, (BigFraction,), arg0)
end
function subtract(obj::BigFraction, arg0::BigInteger)
return jcall(obj, "subtract", BigFraction, (BigInteger,), arg0)
end
function subtract(obj::BigFraction, arg0::jint)
return jcall(obj, "subtract", BigFraction, (jint,), arg0)
end
function subtract(obj::BigFraction, arg0::jlong)
return jcall(obj, "subtract", BigFraction, (jlong,), arg0)
end
function to_string(obj::BigFraction)
return jcall(obj, "toString", JString, ())
end
| [
8818,
4403,
37,
7861,
7,
853,
15,
3712,
12804,
46541,
8,
198,
220,
220,
220,
1441,
4403,
37,
7861,
19510,
12804,
46541,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
4403,
37,
7861,
7,
853,
15,
3712,
12804,
46541,
11,
1822,
16,
3712,
12804,
46541,
8,
198,
220,
220,
220,
1441,
4403,
37,
7861,
19510,
12804,
46541,
11,
4403,
46541,
828,
1822,
15,
11,
1822,
16,
8,
198,
437,
198,
198,
8818,
4403,
37,
7861,
7,
853,
15,
3712,
73,
23352,
8,
198,
220,
220,
220,
1441,
4403,
37,
7861,
19510,
73,
23352,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
4403,
37,
7861,
7,
853,
15,
3712,
73,
23352,
11,
1822,
16,
3712,
73,
23352,
11,
1822,
17,
3712,
73,
600,
8,
198,
220,
220,
220,
1441,
4403,
37,
7861,
19510,
73,
23352,
11,
474,
23352,
11,
474,
600,
828,
1822,
15,
11,
1822,
16,
11,
1822,
17,
8,
198,
437,
198,
198,
8818,
4403,
37,
7861,
7,
853,
15,
3712,
73,
23352,
11,
1822,
16,
3712,
73,
600,
8,
198,
220,
220,
220,
1441,
4403,
37,
7861,
19510,
73,
23352,
11,
474,
600,
828,
1822,
15,
11,
1822,
16,
8,
198,
437,
198,
198,
8818,
4403,
37,
7861,
7,
853,
15,
3712,
73,
600,
8,
198,
220,
220,
220,
1441,
4403,
37,
7861,
19510,
73,
600,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
4403,
37,
7861,
7,
853,
15,
3712,
73,
600,
11,
1822,
16,
3712,
73,
600,
8,
198,
220,
220,
220,
1441,
4403,
37,
7861,
19510,
73,
600,
11,
474,
600,
828,
1822,
15,
11,
1822,
16,
8,
198,
437,
198,
198,
8818,
4403,
37,
7861,
7,
853,
15,
3712,
73,
6511,
8,
198,
220,
220,
220,
1441,
4403,
37,
7861,
19510,
73,
6511,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
4403,
37,
7861,
7,
853,
15,
3712,
73,
6511,
11,
1822,
16,
3712,
73,
6511,
8,
198,
220,
220,
220,
1441,
4403,
37,
7861,
19510,
73,
6511,
11,
474,
6511,
828,
1822,
15,
11,
1822,
16,
8,
198,
437,
198,
198,
8818,
2352,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
8937,
1600,
4403,
37,
7861,
11,
32865,
198,
437,
198,
198,
8818,
751,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
2860,
1600,
4403,
37,
7861,
11,
357,
12804,
37,
7861,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
751,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
12804,
46541,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
2860,
1600,
4403,
37,
7861,
11,
357,
12804,
46541,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
751,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
73,
600,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
2860,
1600,
4403,
37,
7861,
11,
357,
73,
600,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
751,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
73,
6511,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
2860,
1600,
4403,
37,
7861,
11,
357,
73,
6511,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
1263,
62,
12501,
4402,
62,
8367,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
14261,
10707,
4402,
11395,
1600,
4403,
10707,
4402,
11,
32865,
198,
437,
198,
198,
8818,
1263,
62,
12501,
4402,
62,
8367,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
73,
600,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
14261,
10707,
4402,
11395,
1600,
4403,
10707,
4402,
11,
357,
73,
600,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
1263,
62,
12501,
4402,
62,
8367,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
73,
600,
11,
1822,
16,
3712,
73,
600,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
14261,
10707,
4402,
11395,
1600,
4403,
10707,
4402,
11,
357,
73,
600,
11,
474,
600,
828,
1822,
15,
11,
1822,
16,
8,
198,
437,
198,
198,
8818,
18022,
62,
8367,
7,
26801,
3712,
15057,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
26327,
11395,
1600,
474,
26327,
11,
32865,
198,
437,
198,
198,
8818,
8996,
62,
1462,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
5589,
533,
2514,
1600,
474,
600,
11,
357,
12804,
37,
7861,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
14083,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
7146,
485,
1600,
4403,
37,
7861,
11,
357,
12804,
37,
7861,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
14083,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
12804,
46541,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
7146,
485,
1600,
4403,
37,
7861,
11,
357,
12804,
46541,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
14083,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
73,
600,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
7146,
485,
1600,
4403,
37,
7861,
11,
357,
73,
600,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
14083,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
73,
6511,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
7146,
485,
1600,
4403,
37,
7861,
11,
357,
73,
6511,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
4274,
62,
8367,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
23352,
11395,
1600,
474,
23352,
11,
32865,
198,
437,
198,
198,
8818,
21767,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
10267,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
4853,
874,
1600,
474,
2127,
21052,
11,
357,
10267,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
12178,
62,
8367,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
22468,
11395,
1600,
474,
22468,
11,
32865,
198,
437,
198,
198,
8818,
651,
62,
6559,
6351,
1352,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
1136,
21306,
6351,
1352,
1600,
4403,
46541,
11,
32865,
198,
437,
198,
198,
8818,
651,
62,
6559,
6351,
1352,
62,
292,
62,
600,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
1136,
21306,
6351,
1352,
1722,
5317,
1600,
474,
600,
11,
32865,
198,
437,
198,
198,
8818,
651,
62,
6559,
6351,
1352,
62,
292,
62,
6511,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
1136,
21306,
6351,
1352,
1722,
14617,
1600,
474,
6511,
11,
32865,
198,
437,
198,
198,
8818,
651,
62,
3245,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
1136,
15878,
1600,
4403,
37,
7861,
15878,
11,
32865,
198,
437,
198,
198,
8818,
651,
62,
77,
6975,
1352,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
1136,
45,
6975,
1352,
1600,
4403,
46541,
11,
32865,
198,
437,
198,
198,
8818,
651,
62,
77,
6975,
1352,
62,
292,
62,
600,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
1136,
45,
6975,
1352,
1722,
5317,
1600,
474,
600,
11,
32865,
198,
437,
198,
198,
8818,
651,
62,
77,
6975,
1352,
62,
292,
62,
6511,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
1136,
45,
6975,
1352,
1722,
14617,
1600,
474,
6511,
11,
32865,
198,
437,
198,
198,
8818,
651,
62,
445,
19513,
62,
69,
7861,
7,
3712,
6030,
90,
12804,
37,
7861,
5512,
1822,
15,
3712,
73,
600,
11,
1822,
16,
3712,
73,
600,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
12804,
37,
7861,
11,
366,
1136,
7738,
19513,
37,
7861,
1600,
4403,
37,
7861,
11,
357,
73,
600,
11,
474,
600,
828,
1822,
15,
11,
1822,
16,
8,
198,
437,
198,
198,
8818,
12234,
62,
8189,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
17831,
10669,
1600,
474,
600,
11,
32865,
198,
437,
198,
198,
8818,
493,
62,
8367,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
600,
11395,
1600,
474,
600,
11,
32865,
198,
437,
198,
198,
8818,
890,
62,
8367,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
6511,
11395,
1600,
474,
6511,
11,
32865,
198,
437,
198,
198,
8818,
29162,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
16680,
541,
306,
1600,
4403,
37,
7861,
11,
357,
12804,
37,
7861,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
29162,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
12804,
46541,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
16680,
541,
306,
1600,
4403,
37,
7861,
11,
357,
12804,
46541,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
29162,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
73,
600,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
16680,
541,
306,
1600,
4403,
37,
7861,
11,
357,
73,
600,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
29162,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
73,
6511,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
16680,
541,
306,
1600,
4403,
37,
7861,
11,
357,
73,
6511,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
44328,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
710,
10494,
1600,
4403,
37,
7861,
11,
32865,
198,
437,
198,
198,
8818,
5873,
62,
8367,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
25067,
496,
11395,
1600,
474,
23352,
11,
32865,
198,
437,
198,
198,
8818,
7182,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
12804,
46541,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
79,
322,
1600,
4403,
37,
7861,
11,
357,
12804,
46541,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
7182,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
73,
23352,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
79,
322,
1600,
474,
23352,
11,
357,
73,
23352,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
7182,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
73,
600,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
79,
322,
1600,
4403,
37,
7861,
11,
357,
73,
600,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
7182,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
73,
6511,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
79,
322,
1600,
4403,
37,
7861,
11,
357,
73,
6511,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
48135,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
8344,
541,
43270,
1600,
4403,
37,
7861,
11,
32865,
198,
437,
198,
198,
8818,
4646,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
445,
7234,
1600,
4403,
37,
7861,
11,
32865,
198,
437,
198,
198,
8818,
1790,
62,
8367,
7,
26801,
3712,
15057,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
19509,
11395,
1600,
474,
19509,
11,
32865,
198,
437,
198,
198,
8818,
1051,
388,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
12683,
388,
1600,
474,
600,
11,
32865,
198,
437,
198,
198,
8818,
34128,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
7266,
83,
974,
1600,
4403,
37,
7861,
11,
357,
12804,
37,
7861,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
34128,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
12804,
46541,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
7266,
83,
974,
1600,
4403,
37,
7861,
11,
357,
12804,
46541,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
34128,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
73,
600,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
7266,
83,
974,
1600,
4403,
37,
7861,
11,
357,
73,
600,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
34128,
7,
26801,
3712,
12804,
37,
7861,
11,
1822,
15,
3712,
73,
6511,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
7266,
83,
974,
1600,
4403,
37,
7861,
11,
357,
73,
6511,
11,
828,
1822,
15,
8,
198,
437,
198,
198,
8818,
284,
62,
8841,
7,
26801,
3712,
12804,
37,
7861,
8,
198,
220,
220,
220,
1441,
474,
13345,
7,
26801,
11,
366,
1462,
10100,
1600,
449,
10100,
11,
32865,
198,
437,
628
] | 2.605206 | 2,305 |
module QJuliaRegisters
# Plain baseline registers
const half2 = NTuple{2, VecElement{Float16}}
const half4 = NTuple{4, VecElement{Float16}}
#
const float2 = NTuple{2, VecElement{Float32}}
const float4 = NTuple{4, VecElement{Float32}}
const float8 = NTuple{8, VecElement{Float32}}
const float16 = NTuple{16, VecElement{Float32}}
#
const double2 = NTuple{2, VecElement{Float64}}
const double4 = NTuple{4, VecElement{Float64}}
const double8 = NTuple{8, VecElement{Float64}}
# Helper functions for plain registers
function register_type(T)
if T == Float16 || T == ComplexF16 || T == half2 || T == half4
return Float16
elseif T == Float32 || T == ComplexF32 || T == float2 || T == float4 || T == float8 || T == float16
return Float32
elseif T == Float64 || T == ComplexF64 || T == double2 || T == double4 || T == double8
return Float64
elseif T == BigFloat || T == Complex{BigFloat}
return BigFloat
else
error("Cannot deduce a type.")
end
return nothing
end
function register_size(T)
if T == Float16 || T == Float32 || T == Float64 || T == BigFloat
return 1
elseif T == ComplexF16 || T == ComplexF32 || T == ComplexF64 || T == Complex{BigFloat} || T == half2 || T == float2 || T == double2
return 2
elseif T == double4 || T == float4 || T == half4
return 4
elseif T == double8 || T == float8
return 8
elseif T == float16
return 16
else
error("Cannot deduce the register size (type is not supported).")
end
return nothing
end
# More generic registers
abstract type GenericRegister{T<:Real,N} end
mutable struct FloatN{T<:AbstractFloat,N} <: GenericRegister{T,N}
val::NTuple{N, VecElement{T}}
FloatN{T,N}() where {T} where {N} = new( NTuple{N, VecElement{T}}(ntuple(i->0, N)) )
FloatN{T,N}(src::FloatN) where {T} where {N} = new( src.val )
FloatN{T,N}(reg::NTuple{N, VecElement{T}}) where {T} where {N} = new( reg )
end
# re-implement plain complex type for compatibility
mutable struct Complex2{T<:AbstractFloat, N} <: GenericRegister{T,N}
val::Complex{T}
Complex2{T,N}() where {T} where {N} = new( Complex{T}(0.0, 0.0) )
Complex2{T,N}(src::Complex2) where {T} where {N} = new( src.val )
Complex2{T,N}(reg::Complex{T}) where {T} where {N} = new( reg )
Complex2{T,N}(rea::T, img::T) where {T} where {N} = new( Complex{T}(rea, img) )
Complex2{T,N}(tpl::NTuple{2, VecElement{T}}) where {T} where {N} = new( Complex{T}(tpl[1], tpl[2]) )
end
mutable struct IntN{T<:Integer,N} <: GenericRegister{T,N}
val::NTuple{N, VecElement{T}}
IntN{T,N}() where {T} where {N} = new( NTuple{N, VecElement{T}}(ntuple(i->0, N)) )
IntN{T,N}(src::IntN) where {T} where {N} = new( src.val )
IntN{T,N}(reg::NTuple{N, VecElement{T}}) where {T} where {N} = new( reg )
end
# Floating point registers
Half2 = FloatN{Float16, 2}
Half4 = FloatN{Float16, 4}
Half8 = FloatN{Float16, 8}
Half16 = FloatN{Float16, 16}
Single2 = FloatN{Float32, 2}
Single4 = FloatN{Float32, 4}
Single8 = FloatN{Float32, 8}
Single16 = FloatN{Float32, 16}
Double2 = FloatN{Float64, 2}
Double4 = FloatN{Float64, 4}
Double8 = FloatN{Float64, 8}
# Big float type
BigDouble2 = FloatN{BigFloat, 2}
# Additional complex types (are they compatible with Half2, Single2, Double2?)
ComplexH = Complex2{Float16,2}
ComplexS = Complex2{Float32,2}
ComplexD = Complex2{Float64,2}
ComplexB = Complex2{BigFloat,2}
# Signed: BigInt Int128 Int16 Int32 Int64 Int8
# Unsigned: UInt128 UInt16 UInt32 UInt64 UInt8
Int2 = IntN{Int32, 2}
Int4 = IntN{Int32, 4}
UInt2 = IntN{UInt32, 2}
UInt4 = IntN{UInt32, 4}
LongInt2 = IntN{Int64, 2}
LongInt4 = IntN{Int64, 4}
# Helper methods
function register_type(reg::GenericRegister{T,N}) where T where N; return T; end
function register_size(reg::GenericRegister{T,N}) where T where N; return N; end
end #QJuliaRegisters
| [
21412,
1195,
16980,
544,
8081,
6223,
198,
198,
2,
28847,
14805,
28441,
198,
9979,
2063,
17,
796,
24563,
29291,
90,
17,
11,
38692,
20180,
90,
43879,
1433,
11709,
198,
9979,
2063,
19,
796,
24563,
29291,
90,
19,
11,
38692,
20180,
90,
43879,
1433,
11709,
198,
2,
198,
9979,
12178,
17,
220,
796,
24563,
29291,
90,
17,
11,
220,
38692,
20180,
90,
43879,
2624,
11709,
198,
9979,
12178,
19,
220,
796,
24563,
29291,
90,
19,
11,
220,
38692,
20180,
90,
43879,
2624,
11709,
198,
9979,
12178,
23,
220,
796,
24563,
29291,
90,
23,
11,
220,
38692,
20180,
90,
43879,
2624,
11709,
198,
9979,
12178,
1433,
796,
24563,
29291,
90,
1433,
11,
38692,
20180,
90,
43879,
2624,
11709,
198,
2,
198,
9979,
4274,
17,
220,
796,
24563,
29291,
90,
17,
11,
220,
38692,
20180,
90,
43879,
2414,
11709,
198,
9979,
4274,
19,
220,
796,
24563,
29291,
90,
19,
11,
220,
38692,
20180,
90,
43879,
2414,
11709,
198,
9979,
4274,
23,
220,
796,
24563,
29291,
90,
23,
11,
220,
38692,
20180,
90,
43879,
2414,
11709,
198,
198,
2,
5053,
525,
5499,
329,
8631,
28441,
198,
198,
8818,
7881,
62,
4906,
7,
51,
8,
198,
220,
611,
220,
220,
220,
220,
309,
6624,
48436,
1433,
8614,
309,
6624,
19157,
37,
1433,
8614,
309,
6624,
2063,
17,
8614,
309,
6624,
2063,
19,
198,
220,
220,
220,
1441,
48436,
1433,
198,
220,
2073,
361,
309,
6624,
48436,
2624,
8614,
309,
6624,
19157,
37,
2624,
8614,
309,
6624,
12178,
17,
8614,
309,
6624,
12178,
19,
8614,
309,
6624,
12178,
23,
8614,
309,
6624,
12178,
1433,
198,
220,
220,
220,
1441,
48436,
2624,
198,
220,
2073,
361,
309,
6624,
48436,
2414,
8614,
309,
6624,
19157,
37,
2414,
8614,
309,
6624,
4274,
17,
8614,
309,
6624,
4274,
19,
8614,
309,
6624,
4274,
23,
198,
220,
220,
220,
1441,
48436,
2414,
198,
220,
2073,
361,
309,
6624,
4403,
43879,
8614,
309,
6624,
19157,
90,
12804,
43879,
92,
198,
220,
220,
220,
1441,
4403,
43879,
198,
220,
2073,
198,
220,
220,
220,
4049,
7203,
34,
34574,
4648,
7234,
257,
2099,
19570,
198,
220,
886,
628,
220,
1441,
2147,
198,
437,
628,
198,
8818,
7881,
62,
7857,
7,
51,
8,
628,
220,
611,
220,
220,
220,
220,
309,
6624,
48436,
1433,
8614,
309,
6624,
48436,
2624,
8614,
309,
6624,
48436,
2414,
8614,
309,
6624,
4403,
43879,
198,
220,
220,
220,
1441,
352,
198,
220,
2073,
361,
309,
6624,
19157,
37,
1433,
8614,
309,
6624,
19157,
37,
2624,
8614,
309,
6624,
19157,
37,
2414,
8614,
309,
6624,
19157,
90,
12804,
43879,
92,
8614,
309,
6624,
2063,
17,
8614,
309,
6624,
12178,
17,
8614,
309,
6624,
4274,
17,
198,
220,
220,
220,
1441,
362,
198,
220,
2073,
361,
309,
6624,
4274,
19,
8614,
309,
6624,
12178,
19,
8614,
309,
6624,
2063,
19,
198,
220,
220,
220,
1441,
604,
198,
220,
2073,
361,
309,
6624,
4274,
23,
8614,
309,
6624,
12178,
23,
198,
220,
220,
220,
1441,
807,
198,
220,
2073,
361,
309,
6624,
12178,
1433,
198,
220,
220,
220,
1441,
1467,
198,
220,
2073,
198,
220,
220,
220,
4049,
7203,
34,
34574,
4648,
7234,
262,
7881,
2546,
357,
4906,
318,
407,
4855,
8,
19570,
198,
220,
886,
628,
220,
1441,
2147,
198,
437,
628,
198,
2,
3125,
14276,
28441,
198,
198,
397,
8709,
2099,
42044,
38804,
90,
51,
27,
25,
15633,
11,
45,
92,
886,
198,
198,
76,
18187,
2878,
48436,
45,
90,
51,
27,
25,
23839,
43879,
11,
45,
92,
1279,
25,
42044,
38804,
90,
51,
11,
45,
92,
628,
220,
1188,
3712,
11251,
29291,
90,
45,
11,
220,
38692,
20180,
90,
51,
11709,
628,
220,
48436,
45,
90,
51,
11,
45,
92,
3419,
810,
1391,
51,
92,
810,
1391,
45,
92,
796,
649,
7,
24563,
29291,
90,
45,
11,
220,
38692,
20180,
90,
51,
11709,
7,
429,
29291,
7,
72,
3784,
15,
11,
399,
4008,
1267,
198,
220,
48436,
45,
90,
51,
11,
45,
92,
7,
10677,
3712,
43879,
45,
8,
810,
1391,
51,
92,
810,
1391,
45,
92,
220,
796,
649,
7,
12351,
13,
2100,
220,
1267,
198,
220,
48436,
45,
90,
51,
11,
45,
92,
7,
2301,
3712,
11251,
29291,
90,
45,
11,
38692,
20180,
90,
51,
11709,
8,
810,
1391,
51,
92,
810,
1391,
45,
92,
220,
796,
649,
7,
842,
1267,
198,
198,
437,
198,
198,
2,
302,
12,
320,
26908,
8631,
3716,
2099,
329,
17764,
198,
198,
76,
18187,
2878,
19157,
17,
90,
51,
27,
25,
23839,
43879,
11,
399,
92,
1279,
25,
42044,
38804,
90,
51,
11,
45,
92,
628,
220,
1188,
3712,
5377,
11141,
90,
51,
92,
628,
220,
19157,
17,
90,
51,
11,
45,
92,
3419,
810,
1391,
51,
92,
810,
1391,
45,
92,
796,
649,
7,
19157,
90,
51,
92,
7,
15,
13,
15,
11,
657,
13,
15,
8,
1267,
198,
220,
19157,
17,
90,
51,
11,
45,
92,
7,
10677,
3712,
5377,
11141,
17,
8,
810,
1391,
51,
92,
810,
1391,
45,
92,
796,
649,
7,
12351,
13,
2100,
220,
1267,
198,
220,
19157,
17,
90,
51,
11,
45,
92,
7,
2301,
3712,
5377,
11141,
90,
51,
30072,
810,
1391,
51,
92,
810,
1391,
45,
92,
796,
649,
7,
842,
1267,
198,
220,
19157,
17,
90,
51,
11,
45,
92,
7,
21468,
3712,
51,
11,
33705,
3712,
51,
8,
810,
1391,
51,
92,
810,
1391,
45,
92,
796,
649,
7,
19157,
90,
51,
92,
7,
21468,
11,
33705,
8,
1267,
198,
220,
19157,
17,
90,
51,
11,
45,
92,
7,
83,
489,
3712,
11251,
29291,
90,
17,
11,
38692,
20180,
90,
51,
11709,
8,
810,
1391,
51,
92,
810,
1391,
45,
92,
796,
649,
7,
19157,
90,
51,
92,
7,
83,
489,
58,
16,
4357,
256,
489,
58,
17,
12962,
1267,
198,
198,
437,
198,
198,
76,
18187,
2878,
2558,
45,
90,
51,
27,
25,
46541,
11,
45,
92,
1279,
25,
42044,
38804,
90,
51,
11,
45,
92,
628,
220,
1188,
3712,
11251,
29291,
90,
45,
11,
220,
38692,
20180,
90,
51,
11709,
628,
220,
2558,
45,
90,
51,
11,
45,
92,
3419,
810,
1391,
51,
92,
810,
1391,
45,
92,
796,
649,
7,
24563,
29291,
90,
45,
11,
220,
38692,
20180,
90,
51,
11709,
7,
429,
29291,
7,
72,
3784,
15,
11,
399,
4008,
1267,
198,
220,
2558,
45,
90,
51,
11,
45,
92,
7,
10677,
3712,
5317,
45,
8,
810,
1391,
51,
92,
810,
1391,
45,
92,
220,
796,
649,
7,
12351,
13,
2100,
220,
1267,
198,
220,
2558,
45,
90,
51,
11,
45,
92,
7,
2301,
3712,
11251,
29291,
90,
45,
11,
38692,
20180,
90,
51,
11709,
8,
810,
1391,
51,
92,
810,
1391,
45,
92,
220,
796,
649,
7,
842,
1267,
198,
198,
437,
198,
198,
2,
49768,
966,
28441,
198,
31305,
17,
220,
220,
220,
796,
48436,
45,
90,
43879,
1433,
11,
362,
92,
198,
31305,
19,
220,
220,
220,
796,
48436,
45,
90,
43879,
1433,
11,
604,
92,
198,
31305,
23,
220,
220,
220,
796,
48436,
45,
90,
43879,
1433,
11,
807,
92,
198,
31305,
1433,
220,
220,
796,
48436,
45,
90,
43879,
1433,
11,
1467,
92,
198,
28008,
17,
220,
796,
48436,
45,
90,
43879,
2624,
11,
362,
92,
198,
28008,
19,
220,
796,
48436,
45,
90,
43879,
2624,
11,
604,
92,
198,
28008,
23,
220,
796,
48436,
45,
90,
43879,
2624,
11,
807,
92,
198,
28008,
1433,
796,
48436,
45,
90,
43879,
2624,
11,
1467,
92,
198,
25628,
17,
220,
796,
48436,
45,
90,
43879,
2414,
11,
362,
92,
198,
25628,
19,
220,
796,
48436,
45,
90,
43879,
2414,
11,
604,
92,
198,
25628,
23,
220,
796,
48436,
45,
90,
43879,
2414,
11,
807,
92,
198,
2,
4403,
12178,
2099,
198,
12804,
25628,
17,
220,
796,
48436,
45,
90,
12804,
43879,
11,
362,
92,
198,
198,
2,
15891,
3716,
3858,
357,
533,
484,
11670,
351,
13139,
17,
11,
14206,
17,
11,
11198,
17,
10091,
198,
5377,
11141,
39,
796,
19157,
17,
90,
43879,
1433,
11,
17,
92,
198,
5377,
11141,
50,
796,
19157,
17,
90,
43879,
2624,
11,
17,
92,
198,
5377,
11141,
35,
796,
19157,
17,
90,
43879,
2414,
11,
17,
92,
198,
5377,
11141,
33,
796,
19157,
17,
90,
12804,
43879,
11,
17,
92,
198,
198,
2,
36215,
25,
4403,
5317,
2558,
12762,
2558,
1433,
2558,
2624,
2558,
2414,
2558,
23,
198,
2,
791,
32696,
25,
471,
5317,
12762,
471,
5317,
1433,
471,
5317,
2624,
471,
5317,
2414,
471,
5317,
23,
198,
198,
5317,
17,
220,
220,
220,
220,
796,
2558,
45,
90,
5317,
2624,
11,
362,
92,
198,
5317,
19,
220,
220,
220,
220,
796,
2558,
45,
90,
5317,
2624,
11,
604,
92,
198,
52,
5317,
17,
220,
220,
220,
796,
2558,
45,
90,
52,
5317,
2624,
11,
362,
92,
198,
52,
5317,
19,
220,
220,
220,
796,
2558,
45,
90,
52,
5317,
2624,
11,
604,
92,
198,
14617,
5317,
17,
796,
2558,
45,
90,
5317,
2414,
11,
362,
92,
198,
14617,
5317,
19,
796,
2558,
45,
90,
5317,
2414,
11,
604,
92,
628,
198,
2,
5053,
525,
5050,
198,
8818,
7881,
62,
4906,
7,
2301,
3712,
46189,
38804,
90,
51,
11,
45,
30072,
810,
309,
810,
399,
26,
1441,
309,
26,
886,
198,
8818,
7881,
62,
7857,
7,
2301,
3712,
46189,
38804,
90,
51,
11,
45,
30072,
810,
309,
810,
399,
26,
1441,
399,
26,
886,
198,
198,
437,
1303,
48,
16980,
544,
8081,
6223,
198
] | 2.518229 | 1,536 |
module TestParameterTypes
using Mimi
using Test
import Mimi:
external_params, external_param, TimestepMatrix, TimestepVector,
ArrayModelParameter, ScalarModelParameter, FixedTimestep, build, import_params!
#
# Test that parameter type mismatches are caught
#
expr = :(
@defcomp BadComp1 begin
a = Parameter(index=[time, regions], default=[10, 11, 12]) # should be 2D default
function run_timestep(p, v, d, t)
end
end
)
@test_throws LoadError eval(expr)
expr = :(
@defcomp BadComp2 begin
a = Parameter(default=[10, 11, 12]) # should be scalar default
function run_timestep(p, v, d, t)
end
end
)
@test_throws LoadError eval(expr)
#
# Test that the old type parameterization syntax errors
#
expr = :(
@defcomp BadComp3 begin
a::Int = Parameter()
function run_timestep(p, v, d, t)
end
end
)
eval(expr) # Just a deprecation warning for v0.10, then will change to error in v1.0
# @test_throws LoadError eval(expr)
@defcomp MyComp begin
a = Parameter(index=[time, regions], default=ones(101,3))
b = Parameter(index=[time], default=1:101)
c = Parameter(index=[regions])
d = Parameter()
e = Parameter(index=[four])
f = Parameter{Array{Float64, 2}}()
g = Parameter{Int}(default=10.0) # value should be Int despite Float64 default
h = Parameter(default=10) # should be "numtype", despite Int default
j = Parameter{Int}(index = [regions])
function run_timestep(p, v, d, t)
end
end
# Check that explicit number type for model works as expected
numtype = Float32
arrtype = Union{Missing, numtype}
m = Model(numtype)
set_dimension!(m, :time, 2000:2100)
set_dimension!(m, :regions, 3)
set_dimension!(m, :four, 4)
add_comp!(m, MyComp)
set_param!(m, :MyComp, :c, [4,5,6])
set_param!(m, :MyComp, :d, 0.5) # 32-bit float constant
set_param!(m, :MyComp, :e, [1,2,3,4])
set_param!(m, :MyComp, :f, reshape(1:16, 4, 4))
set_param!(m, :MyComp, :j, [1,2,3])
build(m) # applies defaults, creating external params
extpars = external_params(m)
# TBD: These are not (yet) external params. Defaults are applied at build time.
@test isa(extpars[:a], ArrayModelParameter)
@test isa(extpars[:b], ArrayModelParameter)
@test isa(extpars[:c], ArrayModelParameter)
@test isa(extpars[:d], ScalarModelParameter)
@test isa(extpars[:e], ArrayModelParameter)
@test isa(extpars[:f], ScalarModelParameter) # note that :f is stored as a scalar parameter even though its values are an array
@test typeof(extpars[:a].values) == TimestepMatrix{FixedTimestep{2000, 1}, arrtype, 1}
@test typeof(extpars[:b].values) == TimestepVector{FixedTimestep{2000, 1}, arrtype}
@test typeof(extpars[:c].values) == Array{arrtype, 1}
@test typeof(extpars[:d].value) == numtype
@test typeof(extpars[:e].values) == Array{arrtype, 1}
@test typeof(extpars[:f].value) == Array{Float64, 2}
@test typeof(extpars[:g].value) <: Int
@test typeof(extpars[:h].value) == numtype
# test updating parameters
@test_throws ErrorException update_param!(m, :a, 5) # expects an array
@test_throws ErrorException update_param!(m, :a, ones(101)) # wrong size
@test_throws ErrorException update_param!(m, :a, fill("hi", 101, 3)) # wrong type
update_param!(m, :a, Array{Int,2}(zeros(101, 3))) # should be able to convert from Int to Float
@test_throws ErrorException update_param!(m, :d, ones(5)) # wrong type; should be scalar
update_param!(m, :d, 5) # should work, will convert to float
@test extpars[:d].value == 5
@test_throws ErrorException update_param!(m, :e, 5) # wrong type; should be array
@test_throws ErrorException update_param!(m, :e, ones(10)) # wrong size
update_param!(m, :e, [4,5,6,7])
@test length(extpars) == 9
@test typeof(extpars[:a].values) == TimestepMatrix{FixedTimestep{2000, 1}, arrtype, 1}
@test typeof(extpars[:d].value) == numtype
@test typeof(extpars[:e].values) == Array{arrtype, 1}
#------------------------------------------------------------------------------
# Test updating TimestepArrays with update_param!
#------------------------------------------------------------------------------
@defcomp MyComp2 begin
x=Parameter(index=[time])
y=Variable(index=[time])
function run_timestep(p,v,d,t)
v.y[t]=p.x[t]
end
end
# 1. Test with Fixed Timesteps
m = Model()
set_dimension!(m, :time, 2000:2002)
add_comp!(m, MyComp2) # ; first=2000, last=2002)
set_param!(m, :MyComp2, :x, [1, 2, 3])
# N.B. `first` and `last` are now disabled.
# Can't move last beyond last for a component
# @test_throws ErrorException set_dimension!(m, :time, 2001:2003)
set_dimension!(m, :time, 2001:2002)
update_param!(m, :x, [4, 5, 6], update_timesteps = false)
x = external_param(m.md, :x)
@test x.values isa Mimi.TimestepArray{Mimi.FixedTimestep{2000, 1, LAST} where LAST, Union{Missing,Float64}, 1}
@test x.values.data == [4., 5., 6.]
# TBD: this fails, but I'm not sure how it's supposed to behave. It says:
# (ERROR: BoundsError: attempt to access 3-element Array{Float64,1} at index [4])
# run(m)
# @test m[:MyComp2, :y][1] == 5 # 2001
# @test m[:MyComp2, :y][2] == 6 # 2002
update_param!(m, :x, [2, 3], update_timesteps = true)
x = external_param(m.md, :x)
@test x.values isa Mimi.TimestepArray{Mimi.FixedTimestep{2001, 1, LAST} where LAST, Union{Missing,Float64}, 1}
@test x.values.data == [2., 3.]
run(m)
@test m[:MyComp2, :y][1] == 2 # 2001
@test m[:MyComp2, :y][2] == 3 # 2002
# 2. Test with Variable Timesteps
m = Model()
set_dimension!(m, :time, [2000, 2005, 2020])
add_comp!(m, MyComp2)
set_param!(m, :MyComp2, :x, [1, 2, 3])
set_dimension!(m, :time, [2005, 2020, 2050])
update_param!(m, :x, [4, 5, 6], update_timesteps = false)
x = external_param(m.md, :x)
@test x.values isa Mimi.TimestepArray{Mimi.VariableTimestep{(2000, 2005, 2020)}, Union{Missing,Float64}, 1}
@test x.values.data == [4., 5., 6.]
#run(m)
#@test m[:MyComp2, :y][1] == 5 # 2005
#@test m[:MyComp2, :y][2] == 6 # 2020
update_param!(m, :x, [2, 3, 4], update_timesteps = true)
x = external_param(m.md, :x)
@test x.values isa Mimi.TimestepArray{Mimi.VariableTimestep{(2005, 2020, 2050)}, Union{Missing,Float64}, 1}
@test x.values.data == [2., 3., 4.]
run(m)
@test m[:MyComp2, :y][1] == 2 # 2005
@test m[:MyComp2, :y][2] == 3 # 2020
# 3. Test updating from a dictionary
m = Model()
set_dimension!(m, :time, [2000, 2005, 2020])
add_comp!(m, MyComp2)
set_param!(m, :MyComp2, :x, [1, 2, 3])
set_dimension!(m, :time, [2005, 2020, 2050])
update_params!(m, Dict(:x=>[2, 3, 4]), update_timesteps = true)
x = external_param(m.md, :x)
@test x.values isa Mimi.TimestepArray{Mimi.VariableTimestep{(2005, 2020, 2050)}, Union{Missing,Float64}, 1}
@test x.values.data == [2., 3., 4.]
run(m)
@test m[:MyComp2, :y][1] == 2 # 2005
@test m[:MyComp2, :y][2] == 3 # 2020
@test m[:MyComp2, :y][3] == 4 # 2050
# 4. Test updating the time index to a different length
m = Model()
set_dimension!(m, :time, 2000:2002) # length 3
add_comp!(m, MyComp2)
set_param!(m, :MyComp2, :x, [1, 2, 3])
set_dimension!(m, :time, 1999:2003) # length 5
@test_throws ErrorException update_param!(m, :x, [2, 3, 4, 5, 6], update_timesteps = false)
update_param!(m, :x, [2, 3, 4, 5, 6], update_timesteps = true)
x = external_param(m.md, :x)
@test x.values isa Mimi.TimestepArray{Mimi.FixedTimestep{1999, 1, LAST} where LAST, Union{Missing,Float64}, 1}
@test x.values.data == [2., 3., 4., 5., 6.]
run(m)
@test m[:MyComp2, :y] == [2., 3., 4., 5., 6.]
# 5. Test all the warning and error cases
@defcomp MyComp3 begin
regions=Index()
x=Parameter(index=[time]) # One timestep array parameter
y=Parameter(index=[regions]) # One non-timestep array parameter
z=Parameter() # One scalar parameter
end
m = Model() # Build the model
set_dimension!(m, :time, 2000:2002) # Set the time dimension
set_dimension!(m, :regions, [:A, :B])
add_comp!(m, MyComp3)
set_param!(m, :MyComp3, :x, [1, 2, 3])
set_param!(m, :MyComp3, :y, [10, 20])
set_param!(m, :MyComp3, :z, 0)
@test_throws ErrorException update_param!(m, :x, [1, 2, 3, 4]) # Will throw an error because size
@test_throws ErrorException update_param!(m, :y, [10, 15], update_timesteps=true) # Not a timestep array
update_param!(m, :y, [10, 15])
@test external_param(m.md, :y).values == [10., 15.]
@test_throws ErrorException update_param!(m, :z, 1, update_timesteps=true) # Scalar parameter
update_param!(m, :z, 1)
@test external_param(m.md, :z).value == 1
# Reset the time dimensions
set_dimension!(m, :time, 2005:2007)
update_params!(m, Dict(:x=>[3,4,5], :y=>[10,20], :z=>0), update_timesteps=true) # Won't error when updating from a dictionary
@test external_param(m.md, :x).values isa Mimi.TimestepArray{Mimi.FixedTimestep{2005,1},Union{Missing,Float64},1}
@test external_param(m.md, :x).values.data == [3.,4.,5.]
@test external_param(m.md, :y).values == [10.,20.]
@test external_param(m.md, :z).value == 0
#------------------------------------------------------------------------------
# Test the three different set_param! methods for a Symbol type parameter
#------------------------------------------------------------------------------
@defcomp A begin
p1 = Parameter{Symbol}()
end
function _get_model()
m = Model()
set_dimension!(m, :time, 10)
add_comp!(m, A)
return m
end
# Test the 3-argument version of set_param!
m = _get_model()
@test_throws MethodError set_param!(m, :p1, 3) # Can't set it with an Int
set_param!(m, :p1, :foo) # Set it with a Symbol
run(m)
@test m[:A, :p1] == :foo
# Test the 4-argument version of set_param!
m = _get_model()
@test_throws MethodError set_param!(m, :A, :p1, 3)
set_param!(m, :A, :p1, :foo)
run(m)
@test m[:A, :p1] == :foo
# Test the 5-argument version of set_param!
m = _get_model()
@test_throws MethodError set_param!(m, :A, :p1, :A_p1, 3)
set_param!(m, :A, :p1, :A_p1, :foo)
run(m)
@test m[:A, :p1] == :foo
#------------------------------------------------------------------------------
# Test that if set_param! errors in the connection step,
# the created param doesn't remain in the model's list of params
#------------------------------------------------------------------------------
@defcomp A begin
p1 = Parameter(index = [time])
end
@defcomp B begin
p1 = Parameter(index = [time])
end
m = Model()
set_dimension!(m, :time, 10)
add_comp!(m, A)
add_comp!(m, B)
@test_throws ErrorException set_param!(m, :p1, 1:5) # this will error because the provided data is the wrong size
@test isempty(m.md.external_params) # But it should not be added to the model's dictionary
end #module
| [
21412,
6208,
36301,
31431,
198,
198,
3500,
337,
25236,
198,
3500,
6208,
198,
198,
11748,
337,
25236,
25,
198,
220,
220,
220,
7097,
62,
37266,
11,
7097,
62,
17143,
11,
5045,
395,
538,
46912,
11,
5045,
395,
538,
38469,
11,
198,
220,
220,
220,
15690,
17633,
36301,
11,
34529,
283,
17633,
36301,
11,
10832,
14967,
395,
538,
11,
1382,
11,
1330,
62,
37266,
0,
198,
198,
2,
198,
2,
6208,
326,
11507,
2099,
32691,
20981,
389,
4978,
198,
2,
198,
31937,
796,
36147,
198,
220,
220,
220,
2488,
4299,
5589,
7772,
7293,
16,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
25139,
2357,
7,
9630,
41888,
2435,
11,
7652,
4357,
4277,
41888,
940,
11,
1367,
11,
1105,
12962,
220,
1303,
815,
307,
362,
35,
4277,
198,
220,
220,
220,
220,
220,
220,
220,
2163,
1057,
62,
16514,
395,
538,
7,
79,
11,
410,
11,
288,
11,
256,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
8,
198,
31,
9288,
62,
400,
8516,
8778,
12331,
5418,
7,
31937,
8,
198,
198,
31937,
796,
36147,
198,
220,
220,
220,
2488,
4299,
5589,
7772,
7293,
17,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
25139,
2357,
7,
12286,
41888,
940,
11,
1367,
11,
1105,
12962,
220,
1303,
815,
307,
16578,
283,
4277,
198,
220,
220,
220,
220,
220,
220,
220,
2163,
1057,
62,
16514,
395,
538,
7,
79,
11,
410,
11,
288,
11,
256,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
8,
198,
31,
9288,
62,
400,
8516,
8778,
12331,
5418,
7,
31937,
8,
198,
198,
2,
198,
2,
6208,
326,
262,
1468,
2099,
11507,
1634,
15582,
8563,
198,
2,
198,
31937,
796,
36147,
198,
220,
220,
220,
2488,
4299,
5589,
7772,
7293,
18,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
257,
3712,
5317,
796,
25139,
2357,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2163,
1057,
62,
16514,
395,
538,
7,
79,
11,
410,
11,
288,
11,
256,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
8,
198,
18206,
7,
31937,
8,
220,
1303,
2329,
257,
1207,
8344,
341,
6509,
329,
410,
15,
13,
940,
11,
788,
481,
1487,
284,
4049,
287,
410,
16,
13,
15,
198,
2,
2488,
9288,
62,
400,
8516,
8778,
12331,
5418,
7,
31937,
8,
628,
198,
31,
4299,
5589,
2011,
7293,
2221,
198,
220,
220,
220,
257,
796,
25139,
2357,
7,
9630,
41888,
2435,
11,
7652,
4357,
4277,
28,
1952,
7,
8784,
11,
18,
4008,
198,
220,
220,
220,
275,
796,
25139,
2357,
7,
9630,
41888,
2435,
4357,
4277,
28,
16,
25,
8784,
8,
198,
220,
220,
220,
269,
796,
25139,
2357,
7,
9630,
41888,
2301,
507,
12962,
198,
220,
220,
220,
288,
796,
25139,
2357,
3419,
198,
220,
220,
220,
304,
796,
25139,
2357,
7,
9630,
41888,
14337,
12962,
198,
220,
220,
220,
277,
796,
25139,
2357,
90,
19182,
90,
43879,
2414,
11,
362,
11709,
3419,
198,
220,
220,
220,
308,
796,
25139,
2357,
90,
5317,
92,
7,
12286,
28,
940,
13,
15,
8,
220,
220,
220,
1303,
1988,
815,
307,
2558,
3805,
48436,
2414,
4277,
198,
220,
220,
220,
289,
796,
25139,
2357,
7,
12286,
28,
940,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
815,
307,
366,
22510,
4906,
1600,
3805,
2558,
4277,
198,
220,
220,
220,
474,
796,
25139,
2357,
90,
5317,
92,
7,
9630,
796,
685,
2301,
507,
12962,
628,
220,
220,
220,
2163,
1057,
62,
16514,
395,
538,
7,
79,
11,
410,
11,
288,
11,
256,
8,
198,
220,
220,
220,
886,
198,
437,
198,
198,
2,
6822,
326,
7952,
1271,
2099,
329,
2746,
2499,
355,
2938,
198,
22510,
4906,
796,
48436,
2624,
198,
3258,
4906,
796,
4479,
90,
43730,
11,
997,
4906,
92,
198,
198,
76,
796,
9104,
7,
22510,
4906,
8,
198,
198,
2617,
62,
46156,
0,
7,
76,
11,
1058,
2435,
11,
4751,
25,
2481,
405,
8,
198,
2617,
62,
46156,
0,
7,
76,
11,
1058,
2301,
507,
11,
513,
8,
198,
2617,
62,
46156,
0,
7,
76,
11,
1058,
14337,
11,
604,
8,
198,
198,
2860,
62,
5589,
0,
7,
76,
11,
2011,
7293,
8,
198,
2617,
62,
17143,
0,
7,
76,
11,
1058,
3666,
7293,
11,
1058,
66,
11,
685,
19,
11,
20,
11,
21,
12962,
198,
2617,
62,
17143,
0,
7,
76,
11,
1058,
3666,
7293,
11,
1058,
67,
11,
657,
13,
20,
8,
220,
220,
1303,
3933,
12,
2545,
12178,
6937,
198,
2617,
62,
17143,
0,
7,
76,
11,
1058,
3666,
7293,
11,
1058,
68,
11,
685,
16,
11,
17,
11,
18,
11,
19,
12962,
198,
2617,
62,
17143,
0,
7,
76,
11,
1058,
3666,
7293,
11,
1058,
69,
11,
27179,
1758,
7,
16,
25,
1433,
11,
604,
11,
604,
4008,
198,
2617,
62,
17143,
0,
7,
76,
11,
1058,
3666,
7293,
11,
1058,
73,
11,
685,
16,
11,
17,
11,
18,
12962,
198,
198,
11249,
7,
76,
8,
220,
220,
220,
1303,
8991,
26235,
11,
4441,
7097,
42287,
198,
2302,
79,
945,
796,
7097,
62,
37266,
7,
76,
8,
198,
198,
2,
34343,
25,
2312,
389,
407,
357,
25907,
8,
7097,
42287,
13,
2896,
13185,
389,
5625,
379,
1382,
640,
13,
198,
31,
9288,
318,
64,
7,
2302,
79,
945,
58,
25,
64,
4357,
15690,
17633,
36301,
8,
198,
31,
9288,
318,
64,
7,
2302,
79,
945,
58,
25,
65,
4357,
15690,
17633,
36301,
8,
198,
198,
31,
9288,
318,
64,
7,
2302,
79,
945,
58,
25,
66,
4357,
15690,
17633,
36301,
8,
198,
31,
9288,
318,
64,
7,
2302,
79,
945,
58,
25,
67,
4357,
34529,
283,
17633,
36301,
8,
198,
31,
9288,
318,
64,
7,
2302,
79,
945,
58,
25,
68,
4357,
15690,
17633,
36301,
8,
198,
31,
9288,
318,
64,
7,
2302,
79,
945,
58,
25,
69,
4357,
34529,
283,
17633,
36301,
8,
1303,
3465,
326,
1058,
69,
318,
8574,
355,
257,
16578,
283,
11507,
772,
996,
663,
3815,
389,
281,
7177,
198,
198,
31,
9288,
2099,
1659,
7,
2302,
79,
945,
58,
25,
64,
4083,
27160,
8,
6624,
5045,
395,
538,
46912,
90,
13715,
14967,
395,
538,
90,
11024,
11,
352,
5512,
5240,
4906,
11,
352,
92,
198,
31,
9288,
2099,
1659,
7,
2302,
79,
945,
58,
25,
65,
4083,
27160,
8,
6624,
5045,
395,
538,
38469,
90,
13715,
14967,
395,
538,
90,
11024,
11,
352,
5512,
5240,
4906,
92,
198,
198,
31,
9288,
2099,
1659,
7,
2302,
79,
945,
58,
25,
66,
4083,
27160,
8,
6624,
15690,
90,
3258,
4906,
11,
352,
92,
198,
31,
9288,
2099,
1659,
7,
2302,
79,
945,
58,
25,
67,
4083,
8367,
8,
6624,
997,
4906,
198,
31,
9288,
2099,
1659,
7,
2302,
79,
945,
58,
25,
68,
4083,
27160,
8,
6624,
15690,
90,
3258,
4906,
11,
352,
92,
198,
31,
9288,
2099,
1659,
7,
2302,
79,
945,
58,
25,
69,
4083,
8367,
8,
6624,
15690,
90,
43879,
2414,
11,
362,
92,
198,
31,
9288,
2099,
1659,
7,
2302,
79,
945,
58,
25,
70,
4083,
8367,
8,
1279,
25,
2558,
198,
31,
9288,
2099,
1659,
7,
2302,
79,
945,
58,
25,
71,
4083,
8367,
8,
6624,
997,
4906,
198,
198,
2,
1332,
19698,
10007,
198,
31,
9288,
62,
400,
8516,
13047,
16922,
4296,
62,
17143,
0,
7,
76,
11,
1058,
64,
11,
642,
8,
1303,
13423,
281,
7177,
198,
31,
9288,
62,
400,
8516,
13047,
16922,
4296,
62,
17143,
0,
7,
76,
11,
1058,
64,
11,
3392,
7,
8784,
4008,
1303,
2642,
2546,
198,
31,
9288,
62,
400,
8516,
13047,
16922,
4296,
62,
17143,
0,
7,
76,
11,
1058,
64,
11,
6070,
7203,
5303,
1600,
8949,
11,
513,
4008,
1303,
2642,
2099,
198,
198,
19119,
62,
17143,
0,
7,
76,
11,
1058,
64,
11,
15690,
90,
5317,
11,
17,
92,
7,
9107,
418,
7,
8784,
11,
513,
22305,
1303,
815,
307,
1498,
284,
10385,
422,
2558,
284,
48436,
198,
198,
31,
9288,
62,
400,
8516,
13047,
16922,
4296,
62,
17143,
0,
7,
76,
11,
1058,
67,
11,
3392,
7,
20,
4008,
1303,
2642,
2099,
26,
815,
307,
16578,
283,
198,
19119,
62,
17143,
0,
7,
76,
11,
1058,
67,
11,
642,
8,
1303,
815,
670,
11,
481,
10385,
284,
12178,
198,
31,
9288,
1070,
79,
945,
58,
25,
67,
4083,
8367,
6624,
642,
198,
31,
9288,
62,
400,
8516,
13047,
16922,
4296,
62,
17143,
0,
7,
76,
11,
1058,
68,
11,
642,
8,
1303,
2642,
2099,
26,
815,
307,
7177,
198,
31,
9288,
62,
400,
8516,
13047,
16922,
4296,
62,
17143,
0,
7,
76,
11,
1058,
68,
11,
3392,
7,
940,
4008,
1303,
2642,
2546,
198,
19119,
62,
17143,
0,
7,
76,
11,
1058,
68,
11,
685,
19,
11,
20,
11,
21,
11,
22,
12962,
198,
198,
31,
9288,
4129,
7,
2302,
79,
945,
8,
6624,
860,
198,
31,
9288,
2099,
1659,
7,
2302,
79,
945,
58,
25,
64,
4083,
27160,
8,
6624,
5045,
395,
538,
46912,
90,
13715,
14967,
395,
538,
90,
11024,
11,
352,
5512,
5240,
4906,
11,
352,
92,
198,
198,
31,
9288,
2099,
1659,
7,
2302,
79,
945,
58,
25,
67,
4083,
8367,
8,
6624,
997,
4906,
198,
31,
9288,
2099,
1659,
7,
2302,
79,
945,
58,
25,
68,
4083,
27160,
8,
6624,
15690,
90,
3258,
4906,
11,
352,
92,
628,
198,
2,
10097,
26171,
198,
2,
6208,
19698,
5045,
395,
538,
3163,
20477,
351,
4296,
62,
17143,
0,
198,
2,
10097,
26171,
198,
198,
31,
4299,
5589,
2011,
7293,
17,
2221,
198,
220,
220,
220,
2124,
28,
36301,
7,
9630,
41888,
2435,
12962,
198,
220,
220,
220,
331,
28,
43015,
7,
9630,
41888,
2435,
12962,
198,
220,
220,
220,
2163,
1057,
62,
16514,
395,
538,
7,
79,
11,
85,
11,
67,
11,
83,
8,
198,
220,
220,
220,
220,
220,
220,
220,
410,
13,
88,
58,
83,
22241,
79,
13,
87,
58,
83,
60,
198,
220,
220,
220,
886,
198,
437,
198,
198,
2,
352,
13,
6208,
351,
10832,
5045,
395,
25386,
198,
198,
76,
796,
9104,
3419,
198,
2617,
62,
46156,
0,
7,
76,
11,
1058,
2435,
11,
4751,
25,
16942,
8,
198,
2860,
62,
5589,
0,
7,
76,
11,
2011,
7293,
17,
8,
1303,
2162,
717,
28,
11024,
11,
938,
28,
16942,
8,
198,
2617,
62,
17143,
0,
7,
76,
11,
1058,
3666,
7293,
17,
11,
1058,
87,
11,
685,
16,
11,
362,
11,
513,
12962,
198,
198,
2,
399,
13,
33,
13,
4600,
11085,
63,
290,
4600,
12957,
63,
389,
783,
10058,
13,
198,
2,
1680,
470,
1445,
938,
3675,
938,
329,
257,
7515,
198,
2,
2488,
9288,
62,
400,
8516,
13047,
16922,
900,
62,
46156,
0,
7,
76,
11,
1058,
2435,
11,
5878,
25,
16088,
8,
198,
198,
2617,
62,
46156,
0,
7,
76,
11,
1058,
2435,
11,
5878,
25,
16942,
8,
198,
198,
19119,
62,
17143,
0,
7,
76,
11,
1058,
87,
11,
685,
19,
11,
642,
11,
718,
4357,
4296,
62,
16514,
395,
25386,
796,
3991,
8,
198,
87,
796,
7097,
62,
17143,
7,
76,
13,
9132,
11,
1058,
87,
8,
198,
31,
9288,
2124,
13,
27160,
318,
64,
337,
25236,
13,
14967,
395,
538,
19182,
90,
44,
25236,
13,
13715,
14967,
395,
538,
90,
11024,
11,
352,
11,
41894,
92,
810,
41894,
11,
4479,
90,
43730,
11,
43879,
2414,
5512,
352,
92,
198,
31,
9288,
2124,
13,
27160,
13,
7890,
6624,
685,
19,
1539,
642,
1539,
718,
8183,
198,
2,
34343,
25,
428,
10143,
11,
475,
314,
1101,
407,
1654,
703,
340,
338,
4385,
284,
17438,
13,
632,
1139,
25,
198,
2,
357,
24908,
25,
347,
3733,
12331,
25,
2230,
284,
1895,
513,
12,
30854,
15690,
90,
43879,
2414,
11,
16,
92,
379,
6376,
685,
19,
12962,
198,
2,
1057,
7,
76,
8,
198,
2,
2488,
9288,
285,
58,
25,
3666,
7293,
17,
11,
1058,
88,
7131,
16,
60,
6624,
642,
220,
220,
1303,
5878,
198,
2,
2488,
9288,
285,
58,
25,
3666,
7293,
17,
11,
1058,
88,
7131,
17,
60,
6624,
718,
220,
220,
1303,
6244,
198,
198,
19119,
62,
17143,
0,
7,
76,
11,
1058,
87,
11,
685,
17,
11,
513,
4357,
4296,
62,
16514,
395,
25386,
796,
2081,
8,
198,
87,
796,
7097,
62,
17143,
7,
76,
13,
9132,
11,
1058,
87,
8,
198,
31,
9288,
2124,
13,
27160,
318,
64,
337,
25236,
13,
14967,
395,
538,
19182,
90,
44,
25236,
13,
13715,
14967,
395,
538,
90,
14585,
11,
352,
11,
41894,
92,
810,
41894,
11,
4479,
90,
43730,
11,
43879,
2414,
5512,
352,
92,
198,
31,
9288,
2124,
13,
27160,
13,
7890,
6624,
685,
17,
1539,
513,
8183,
198,
5143,
7,
76,
8,
198,
31,
9288,
285,
58,
25,
3666,
7293,
17,
11,
1058,
88,
7131,
16,
60,
6624,
362,
220,
220,
1303,
5878,
198,
31,
9288,
285,
58,
25,
3666,
7293,
17,
11,
1058,
88,
7131,
17,
60,
6624,
513,
220,
220,
1303,
6244,
628,
198,
2,
362,
13,
6208,
351,
35748,
5045,
395,
25386,
198,
198,
76,
796,
9104,
3419,
198,
2617,
62,
46156,
0,
7,
76,
11,
1058,
2435,
11,
685,
11024,
11,
5075,
11,
12131,
12962,
198,
2860,
62,
5589,
0,
7,
76,
11,
2011,
7293,
17,
8,
198,
2617,
62,
17143,
0,
7,
76,
11,
1058,
3666,
7293,
17,
11,
1058,
87,
11,
685,
16,
11,
362,
11,
513,
12962,
198,
198,
2617,
62,
46156,
0,
7,
76,
11,
1058,
2435,
11,
685,
14315,
11,
12131,
11,
32215,
12962,
198,
198,
19119,
62,
17143,
0,
7,
76,
11,
1058,
87,
11,
685,
19,
11,
642,
11,
718,
4357,
4296,
62,
16514,
395,
25386,
796,
3991,
8,
198,
87,
796,
7097,
62,
17143,
7,
76,
13,
9132,
11,
1058,
87,
8,
198,
31,
9288,
2124,
13,
27160,
318,
64,
337,
25236,
13,
14967,
395,
538,
19182,
90,
44,
25236,
13,
43015,
14967,
395,
538,
90,
7,
11024,
11,
5075,
11,
12131,
8,
5512,
4479,
90,
43730,
11,
43879,
2414,
5512,
352,
92,
198,
31,
9288,
2124,
13,
27160,
13,
7890,
6624,
685,
19,
1539,
642,
1539,
718,
8183,
198,
2,
5143,
7,
76,
8,
198,
2,
31,
9288,
285,
58,
25,
3666,
7293,
17,
11,
1058,
88,
7131,
16,
60,
6624,
642,
220,
220,
1303,
5075,
198,
2,
31,
9288,
285,
58,
25,
3666,
7293,
17,
11,
1058,
88,
7131,
17,
60,
6624,
718,
220,
220,
1303,
12131,
198,
198,
19119,
62,
17143,
0,
7,
76,
11,
1058,
87,
11,
685,
17,
11,
513,
11,
604,
4357,
4296,
62,
16514,
395,
25386,
796,
2081,
8,
198,
87,
796,
7097,
62,
17143,
7,
76,
13,
9132,
11,
1058,
87,
8,
198,
31,
9288,
2124,
13,
27160,
318,
64,
337,
25236,
13,
14967,
395,
538,
19182,
90,
44,
25236,
13,
43015,
14967,
395,
538,
90,
7,
14315,
11,
12131,
11,
32215,
8,
5512,
4479,
90,
43730,
11,
43879,
2414,
5512,
352,
92,
198,
31,
9288,
2124,
13,
27160,
13,
7890,
6624,
685,
17,
1539,
513,
1539,
604,
8183,
198,
5143,
7,
76,
8,
198,
31,
9288,
285,
58,
25,
3666,
7293,
17,
11,
1058,
88,
7131,
16,
60,
6624,
362,
220,
220,
1303,
5075,
198,
31,
9288,
285,
58,
25,
3666,
7293,
17,
11,
1058,
88,
7131,
17,
60,
6624,
513,
220,
220,
1303,
12131,
628,
198,
2,
513,
13,
6208,
19698,
422,
257,
22155,
198,
198,
76,
796,
9104,
3419,
198,
2617,
62,
46156,
0,
7,
76,
11,
1058,
2435,
11,
685,
11024,
11,
5075,
11,
12131,
12962,
198,
2860,
62,
5589,
0,
7,
76,
11,
2011,
7293,
17,
8,
198,
2617,
62,
17143,
0,
7,
76,
11,
1058,
3666,
7293,
17,
11,
1058,
87,
11,
685,
16,
11,
362,
11,
513,
12962,
198,
198,
2617,
62,
46156,
0,
7,
76,
11,
1058,
2435,
11,
685,
14315,
11,
12131,
11,
32215,
12962,
198,
198,
19119,
62,
37266,
0,
7,
76,
11,
360,
713,
7,
25,
87,
14804,
58,
17,
11,
513,
11,
604,
46570,
4296,
62,
16514,
395,
25386,
796,
2081,
8,
198,
87,
796,
7097,
62,
17143,
7,
76,
13,
9132,
11,
1058,
87,
8,
198,
31,
9288,
2124,
13,
27160,
318,
64,
337,
25236,
13,
14967,
395,
538,
19182,
90,
44,
25236,
13,
43015,
14967,
395,
538,
90,
7,
14315,
11,
12131,
11,
32215,
8,
5512,
4479,
90,
43730,
11,
43879,
2414,
5512,
352,
92,
198,
31,
9288,
2124,
13,
27160,
13,
7890,
6624,
685,
17,
1539,
513,
1539,
604,
8183,
198,
5143,
7,
76,
8,
198,
31,
9288,
285,
58,
25,
3666,
7293,
17,
11,
1058,
88,
7131,
16,
60,
6624,
362,
220,
220,
1303,
5075,
198,
31,
9288,
285,
58,
25,
3666,
7293,
17,
11,
1058,
88,
7131,
17,
60,
6624,
513,
220,
220,
1303,
12131,
198,
31,
9288,
285,
58,
25,
3666,
7293,
17,
11,
1058,
88,
7131,
18,
60,
6624,
604,
220,
220,
1303,
32215,
628,
198,
2,
604,
13,
6208,
19698,
262,
640,
6376,
284,
257,
1180,
4129,
198,
198,
76,
796,
9104,
3419,
198,
2617,
62,
46156,
0,
7,
76,
11,
1058,
2435,
11,
4751,
25,
16942,
8,
220,
220,
220,
220,
1303,
4129,
513,
198,
2860,
62,
5589,
0,
7,
76,
11,
2011,
7293,
17,
8,
198,
2617,
62,
17143,
0,
7,
76,
11,
1058,
3666,
7293,
17,
11,
1058,
87,
11,
685,
16,
11,
362,
11,
513,
12962,
198,
198,
2617,
62,
46156,
0,
7,
76,
11,
1058,
2435,
11,
7358,
25,
16088,
8,
220,
220,
220,
220,
1303,
4129,
642,
198,
198,
31,
9288,
62,
400,
8516,
13047,
16922,
4296,
62,
17143,
0,
7,
76,
11,
1058,
87,
11,
685,
17,
11,
513,
11,
604,
11,
642,
11,
718,
4357,
4296,
62,
16514,
395,
25386,
796,
3991,
8,
198,
19119,
62,
17143,
0,
7,
76,
11,
1058,
87,
11,
685,
17,
11,
513,
11,
604,
11,
642,
11,
718,
4357,
4296,
62,
16514,
395,
25386,
796,
2081,
8,
198,
87,
796,
7097,
62,
17143,
7,
76,
13,
9132,
11,
1058,
87,
8,
198,
31,
9288,
2124,
13,
27160,
318,
64,
337,
25236,
13,
14967,
395,
538,
19182,
90,
44,
25236,
13,
13715,
14967,
395,
538,
90,
18946,
11,
352,
11,
41894,
92,
810,
41894,
11,
4479,
90,
43730,
11,
43879,
2414,
5512,
352,
92,
198,
31,
9288,
2124,
13,
27160,
13,
7890,
6624,
685,
17,
1539,
513,
1539,
604,
1539,
642,
1539,
718,
8183,
198,
198,
5143,
7,
76,
8,
198,
31,
9288,
285,
58,
25,
3666,
7293,
17,
11,
1058,
88,
60,
6624,
685,
17,
1539,
513,
1539,
604,
1539,
642,
1539,
718,
8183,
198,
198,
2,
642,
13,
6208,
477,
262,
6509,
290,
4049,
2663,
198,
198,
31,
4299,
5589,
2011,
7293,
18,
2221,
198,
220,
220,
220,
7652,
28,
15732,
3419,
198,
220,
220,
220,
2124,
28,
36301,
7,
9630,
41888,
2435,
12962,
220,
220,
220,
220,
220,
220,
1303,
1881,
4628,
395,
538,
7177,
11507,
198,
220,
220,
220,
331,
28,
36301,
7,
9630,
41888,
2301,
507,
12962,
220,
220,
220,
1303,
1881,
1729,
12,
16514,
395,
538,
7177,
11507,
198,
220,
220,
220,
1976,
28,
36301,
3419,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1881,
16578,
283,
11507,
198,
437,
198,
198,
76,
796,
9104,
3419,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
10934,
262,
2746,
198,
2617,
62,
46156,
0,
7,
76,
11,
1058,
2435,
11,
4751,
25,
16942,
8,
220,
220,
220,
220,
1303,
5345,
262,
640,
15793,
198,
2617,
62,
46156,
0,
7,
76,
11,
1058,
2301,
507,
11,
685,
25,
32,
11,
1058,
33,
12962,
198,
2860,
62,
5589,
0,
7,
76,
11,
2011,
7293,
18,
8,
198,
2617,
62,
17143,
0,
7,
76,
11,
1058,
3666,
7293,
18,
11,
1058,
87,
11,
685,
16,
11,
362,
11,
513,
12962,
198,
2617,
62,
17143,
0,
7,
76,
11,
1058,
3666,
7293,
18,
11,
1058,
88,
11,
685,
940,
11,
1160,
12962,
198,
2617,
62,
17143,
0,
7,
76,
11,
1058,
3666,
7293,
18,
11,
1058,
89,
11,
657,
8,
198,
198,
31,
9288,
62,
400,
8516,
13047,
16922,
4296,
62,
17143,
0,
7,
76,
11,
1058,
87,
11,
685,
16,
11,
362,
11,
513,
11,
604,
12962,
1303,
2561,
3714,
281,
4049,
780,
2546,
198,
31,
9288,
62,
400,
8516,
13047,
16922,
4296,
62,
17143,
0,
7,
76,
11,
1058,
88,
11,
685,
940,
11,
1315,
4357,
4296,
62,
16514,
395,
25386,
28,
7942,
8,
1303,
1892,
257,
4628,
395,
538,
7177,
198,
19119,
62,
17143,
0,
7,
76,
11,
1058,
88,
11,
685,
940,
11,
1315,
12962,
198,
31,
9288,
7097,
62,
17143,
7,
76,
13,
9132,
11,
1058,
88,
737,
27160,
6624,
685,
940,
1539,
1315,
8183,
198,
31,
9288,
62,
400,
8516,
13047,
16922,
4296,
62,
17143,
0,
7,
76,
11,
1058,
89,
11,
352,
11,
4296,
62,
16514,
395,
25386,
28,
7942,
8,
1303,
34529,
283,
11507,
198,
19119,
62,
17143,
0,
7,
76,
11,
1058,
89,
11,
352,
8,
198,
31,
9288,
7097,
62,
17143,
7,
76,
13,
9132,
11,
1058,
89,
737,
8367,
6624,
352,
198,
198,
2,
30027,
262,
640,
15225,
198,
2617,
62,
46156,
0,
7,
76,
11,
1058,
2435,
11,
5075,
25,
12726,
8,
198,
198,
19119,
62,
37266,
0,
7,
76,
11,
360,
713,
7,
25,
87,
14804,
58,
18,
11,
19,
11,
20,
4357,
1058,
88,
14804,
58,
940,
11,
1238,
4357,
1058,
89,
14804,
15,
828,
4296,
62,
16514,
395,
25386,
28,
7942,
8,
1303,
23306,
470,
4049,
618,
19698,
422,
257,
22155,
198,
198,
31,
9288,
7097,
62,
17143,
7,
76,
13,
9132,
11,
1058,
87,
737,
27160,
318,
64,
337,
25236,
13,
14967,
395,
538,
19182,
90,
44,
25236,
13,
13715,
14967,
395,
538,
90,
14315,
11,
16,
5512,
38176,
90,
43730,
11,
43879,
2414,
5512,
16,
92,
198,
31,
9288,
7097,
62,
17143,
7,
76,
13,
9132,
11,
1058,
87,
737,
27160,
13,
7890,
6624,
685,
18,
1539,
19,
1539,
20,
8183,
198,
31,
9288,
7097,
62,
17143,
7,
76,
13,
9132,
11,
1058,
88,
737,
27160,
6624,
685,
940,
1539,
1238,
8183,
198,
31,
9288,
7097,
62,
17143,
7,
76,
13,
9132,
11,
1058,
89,
737,
8367,
6624,
657,
628,
198,
2,
10097,
26171,
198,
2,
6208,
262,
1115,
1180,
900,
62,
17143,
0,
5050,
329,
257,
38357,
2099,
11507,
198,
2,
10097,
26171,
628,
198,
31,
4299,
5589,
317,
2221,
198,
220,
220,
220,
279,
16,
796,
25139,
2357,
90,
13940,
23650,
92,
3419,
198,
437,
198,
198,
8818,
4808,
1136,
62,
19849,
3419,
198,
220,
220,
220,
285,
796,
9104,
3419,
198,
220,
220,
220,
900,
62,
46156,
0,
7,
76,
11,
1058,
2435,
11,
838,
8,
198,
220,
220,
220,
751,
62,
5589,
0,
7,
76,
11,
317,
8,
198,
220,
220,
220,
1441,
285,
198,
437,
198,
198,
2,
6208,
262,
513,
12,
49140,
2196,
286,
900,
62,
17143,
0,
198,
76,
796,
4808,
1136,
62,
19849,
3419,
198,
31,
9288,
62,
400,
8516,
11789,
12331,
900,
62,
17143,
0,
7,
76,
11,
1058,
79,
16,
11,
513,
8,
220,
1303,
1680,
470,
900,
340,
351,
281,
2558,
198,
198,
2617,
62,
17143,
0,
7,
76,
11,
1058,
79,
16,
11,
1058,
21943,
8,
220,
220,
220,
1303,
5345,
340,
351,
257,
38357,
198,
5143,
7,
76,
8,
198,
31,
9288,
285,
58,
25,
32,
11,
1058,
79,
16,
60,
6624,
1058,
21943,
198,
198,
2,
6208,
262,
604,
12,
49140,
2196,
286,
900,
62,
17143,
0,
198,
76,
796,
4808,
1136,
62,
19849,
3419,
198,
31,
9288,
62,
400,
8516,
11789,
12331,
900,
62,
17143,
0,
7,
76,
11,
1058,
32,
11,
1058,
79,
16,
11,
513,
8,
198,
198,
2617,
62,
17143,
0,
7,
76,
11,
1058,
32,
11,
1058,
79,
16,
11,
1058,
21943,
8,
198,
5143,
7,
76,
8,
198,
31,
9288,
285,
58,
25,
32,
11,
1058,
79,
16,
60,
6624,
1058,
21943,
198,
198,
2,
6208,
262,
642,
12,
49140,
2196,
286,
900,
62,
17143,
0,
198,
76,
796,
4808,
1136,
62,
19849,
3419,
198,
31,
9288,
62,
400,
8516,
11789,
12331,
900,
62,
17143,
0,
7,
76,
11,
1058,
32,
11,
1058,
79,
16,
11,
1058,
32,
62,
79,
16,
11,
513,
8,
198,
198,
2617,
62,
17143,
0,
7,
76,
11,
1058,
32,
11,
1058,
79,
16,
11,
1058,
32,
62,
79,
16,
11,
1058,
21943,
8,
198,
5143,
7,
76,
8,
198,
31,
9288,
285,
58,
25,
32,
11,
1058,
79,
16,
60,
6624,
1058,
21943,
198,
198,
2,
10097,
26171,
198,
2,
6208,
326,
611,
900,
62,
17143,
0,
8563,
287,
262,
4637,
2239,
11,
220,
198,
2,
220,
220,
220,
220,
220,
220,
262,
2727,
5772,
1595,
470,
3520,
287,
262,
2746,
338,
1351,
286,
42287,
198,
2,
10097,
26171,
198,
198,
31,
4299,
5589,
317,
2221,
198,
220,
220,
220,
279,
16,
796,
25139,
2357,
7,
9630,
796,
685,
2435,
12962,
198,
437,
198,
198,
31,
4299,
5589,
347,
2221,
198,
220,
220,
220,
279,
16,
796,
25139,
2357,
7,
9630,
796,
685,
2435,
12962,
198,
437,
198,
198,
76,
796,
9104,
3419,
198,
2617,
62,
46156,
0,
7,
76,
11,
1058,
2435,
11,
838,
8,
198,
2860,
62,
5589,
0,
7,
76,
11,
317,
8,
198,
2860,
62,
5589,
0,
7,
76,
11,
347,
8,
198,
198,
31,
9288,
62,
400,
8516,
13047,
16922,
900,
62,
17143,
0,
7,
76,
11,
1058,
79,
16,
11,
352,
25,
20,
8,
220,
220,
220,
220,
1303,
428,
481,
4049,
780,
262,
2810,
1366,
318,
262,
2642,
2546,
198,
31,
9288,
318,
28920,
7,
76,
13,
9132,
13,
22615,
62,
37266,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
887,
340,
815,
407,
307,
2087,
284,
262,
2746,
338,
22155,
198,
198,
437,
1303,
21412,
198
] | 2.496954 | 4,268 |
# ThomasFermi.jl
# - Thomas Fermi Density Functional Theory
# Marder is: "Condensed Mattery Physics", Michael Marder, 2000.
# Also very useful is Andrei Postnikov's first DFT lecture, on the Thomas-Fermi method
# http://www.home.uni-osnabrueck.de/apostnik/Lectures/DFT-1.pdf
"""
ThomasFermi_T(n)
Thomas Fermi kinetic energy (T).
Following eqn. 9.69 Marder p/ 217
"""
function ThomasFermi_T(n)
T= (hbar^2)/(2*me) * 3/5 * (3*pi^2)^(2/3) * n^(5/3)
T
end
"
ThomasFermi_T_fnderiv(n)
Thomas Fermi kinetic energy (T) as a functional derivative.
Following eqn. 9.76 Marder p/ 217
"
function ThomasFermi_T_fnderiv(n)
# @printf("ThomasFermi_T_fnderiv(%g,%g)\n",n,V) # to locate NaN error
T= (hbar^2)/(2*me) * 3/5 * (3*pi^2)^(2/3) * n^(2/3)
T
end
"
ThomasFermi_Exc(n)
Thomas Fermi exchange and correlation energy; takes electron density, returns energy.
Following eqn. 9.73 Marder p/ 217
"
function ThomasFermi_Exc(n)
Exc= - 3/4 * (3/pi)^(1/3) * q^2 * n^(5/3)
Exc
end
"
UAtomic(Z,r)
Potential due to Atomic charge; simple bare Coulomb form.
"
function UAtomic(Z,r)
U = -k_e * Z * q^2/r
end
function ThomasFermi_CoulombPotential(density,i,gridspacing,N)
# Coulomb integral.
# Nb: as spherical atom, probably need some horrible weighting parameters for the area of the spherical shell in the range [i] or [j]
# i.e. currently it's some 1D pipe full of electrons with a nuclear charge at the end
Potential=0.0
for j in 1:N
if j==i
continue
end
Potential+= k_e * q^2*density[j]/(gridspacing*(i-j))
end
Potential
end
"
AtomicTest(Z,N=100)
Evaluate Thomas Fermi energy for a spherical atom, atomic charge Z.
N: number of grid points in 1D density repr.
c.f. Marder, p.219, Eqn (9.76):
'The energy of an atomic of nuclear charge Z is approximately -1.5375 Z^(7/3) Ry'
"
function AtomicTest(Z; N=10,verbose::Bool=false)
println("AtomicTest, atomic charge: ",Z)
const radius=25Å
density=zeros(N).+Z/N # I know, a bit dirty... Fills density with flat electron density as initial guess.
gridspacing=N/radius
# Do some DFT here...
V = 4/3*pi*radius^3 # Volume of total sphere of charge density considered.
# Nb: Not sure if corect; Kinetic energy T is proport. to V. Defo volume and not potential?
sumE=0.0
for n in 1:10
if verbose; @printf("SCF Loop: %d\n",n); end;
sumE=0.0
# Central equation as (9.76) in Marder, dropping Dirac term
for i in 1:N
# mu being the chemical potential; this pulls together (9.76)
# Mu is the Lagrange multiplier to enforce the constraint that the density is conserved;
# helpfully this is also identical to the chemical potential
mu=ThomasFermi_T_fnderiv(density[i]) + UAtomic(Z,i*gridspacing) + ThomasFermi_CoulombPotential(density,i,gridspacing,N)
# So I gues we could use the fact that the chem potential is constant, to start moving electron density around?
# From Postnikov 1.2; mu drops to zero at r=infinity, therefore mu is zero everywhere
# TODO: Insert self-consistency here...
if verbose
@printf("\t i: %d density: %g T: %g \n\t\tmu %g = T_fnderiv %g + UAtomic: %g + Coulomb %g\n",
i,density[i],
ThomasFermi_T(density[i]),
mu,ThomasFermi_T_fnderiv(density[i]),UAtomic(Z,i*gridspacing),ThomasFermi_CoulombPotential(density,i,gridspacing,N))
end
# OK; calculate total energy
E=ThomasFermi_T(density[i]) + density[i]*UAtomic(Z,i*gridspacing) + density[i]*ThomasFermi_CoulombPotential(density,i,gridspacing,N)
if verbose
@printf("\t\tE %g = T %g + U %g + Coulomb %g\nTotal E: %g J = %g eV\n",
E,ThomasFermi_T(density[i]), density[i]*UAtomic(Z,i*gridspacing), density[i]*ThomasFermi_CoulombPotential(density,i,gridspacing,N),
sumE,sumE/q)
end
sumE+=E
# Nb: horrid hack :^)
density[i]-=mu*10E35 # vary density based on how much chemical potential mu exceeds 0
if density[i]<0.0; density[i]=0.0; end
end
# Impose constraint sum. density = Z
if verbose
@printf("Sum of density pre normalisation: %f\n",sum(density))
end
density=density.*Z/sum(density)
end
# TODO: calculate total Thomas-Fermi energy here, from density...
println("Density: ",density)
@printf("Total E: %g J = %g Ry = %g eV\n",sumE,sumE/Ry,sumE/q)
println("Marder analytic reference: E ~= -1.5375.Z^(7/3) = ",-1.5375*Z^(7/3), " Ry") # Nb: do some unit conversions
end
| [
2,
5658,
37,
7780,
72,
13,
20362,
198,
2,
220,
532,
5658,
376,
7780,
72,
360,
6377,
44224,
17003,
198,
198,
2,
337,
446,
263,
318,
25,
366,
25559,
15385,
337,
16296,
23123,
1600,
3899,
337,
446,
263,
11,
4751,
13,
220,
198,
198,
2,
4418,
845,
4465,
318,
10948,
72,
2947,
45451,
338,
717,
360,
9792,
19143,
11,
319,
262,
5658,
12,
37,
7780,
72,
2446,
220,
198,
2,
2638,
1378,
2503,
13,
11195,
13,
35657,
12,
418,
77,
397,
24508,
694,
13,
2934,
14,
499,
455,
17187,
14,
43,
478,
942,
14,
8068,
51,
12,
16,
13,
12315,
198,
198,
37811,
198,
22405,
37,
7780,
72,
62,
51,
7,
77,
8,
198,
198,
22405,
376,
7780,
72,
37892,
2568,
357,
51,
737,
198,
14207,
37430,
77,
13,
860,
13,
3388,
337,
446,
263,
279,
14,
24894,
198,
37811,
198,
8818,
5658,
37,
7780,
72,
62,
51,
7,
77,
8,
198,
220,
220,
220,
309,
28,
357,
71,
5657,
61,
17,
20679,
7,
17,
9,
1326,
8,
1635,
513,
14,
20,
1635,
357,
18,
9,
14415,
61,
17,
8,
61,
7,
17,
14,
18,
8,
1635,
299,
61,
7,
20,
14,
18,
8,
198,
220,
220,
220,
309,
198,
437,
198,
198,
1,
198,
22405,
37,
7780,
72,
62,
51,
62,
69,
681,
452,
7,
77,
8,
198,
198,
22405,
376,
7780,
72,
37892,
2568,
357,
51,
8,
355,
257,
10345,
27255,
13,
198,
14207,
37430,
77,
13,
860,
13,
4304,
337,
446,
263,
279,
14,
24894,
198,
1,
198,
8818,
5658,
37,
7780,
72,
62,
51,
62,
69,
681,
452,
7,
77,
8,
198,
2,
220,
220,
220,
2488,
37435,
7203,
22405,
37,
7780,
72,
62,
51,
62,
69,
681,
452,
7,
4,
70,
11,
4,
70,
19415,
77,
1600,
77,
11,
53,
8,
1303,
284,
17276,
11013,
45,
4049,
198,
220,
220,
220,
309,
28,
357,
71,
5657,
61,
17,
20679,
7,
17,
9,
1326,
8,
1635,
513,
14,
20,
1635,
357,
18,
9,
14415,
61,
17,
8,
61,
7,
17,
14,
18,
8,
1635,
299,
61,
7,
17,
14,
18,
8,
198,
220,
220,
220,
309,
198,
437,
198,
198,
1,
220,
198,
5658,
37,
7780,
72,
62,
40127,
7,
77,
8,
628,
5658,
376,
7780,
72,
5163,
290,
16096,
2568,
26,
2753,
11538,
12109,
11,
5860,
2568,
13,
198,
14207,
37430,
77,
13,
860,
13,
4790,
337,
446,
263,
279,
14,
24894,
198,
1,
198,
8818,
5658,
37,
7780,
72,
62,
40127,
7,
77,
8,
198,
220,
220,
220,
25268,
28,
532,
513,
14,
19,
1635,
357,
18,
14,
14415,
8,
61,
7,
16,
14,
18,
8,
1635,
10662,
61,
17,
1635,
299,
61,
7,
20,
14,
18,
8,
198,
220,
220,
220,
25268,
198,
437,
198,
198,
1,
220,
198,
52,
2953,
10179,
7,
57,
11,
81,
8,
198,
198,
25396,
1843,
2233,
284,
28976,
3877,
26,
2829,
6247,
27854,
2381,
1296,
13,
220,
198,
1,
198,
8818,
471,
2953,
10179,
7,
57,
11,
81,
8,
198,
220,
220,
220,
471,
796,
532,
74,
62,
68,
1635,
1168,
1635,
10662,
61,
17,
14,
81,
198,
437,
198,
198,
8818,
5658,
37,
7780,
72,
62,
34,
2852,
2381,
25396,
1843,
7,
43337,
11,
72,
11,
2164,
2340,
79,
4092,
11,
45,
8,
198,
220,
220,
220,
1303,
27854,
2381,
19287,
13,
220,
198,
220,
220,
220,
1303,
399,
65,
25,
355,
43180,
22037,
11,
2192,
761,
617,
12361,
3463,
278,
10007,
329,
262,
1989,
286,
262,
43180,
7582,
287,
262,
2837,
685,
72,
60,
393,
685,
73,
60,
198,
220,
220,
220,
1303,
1312,
13,
68,
13,
3058,
340,
338,
617,
352,
35,
12656,
1336,
286,
28722,
351,
257,
4523,
3877,
379,
262,
886,
198,
220,
220,
220,
32480,
28,
15,
13,
15,
198,
220,
220,
220,
329,
474,
287,
352,
25,
45,
198,
220,
220,
220,
220,
220,
220,
220,
611,
474,
855,
72,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
220,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
32480,
47932,
479,
62,
68,
1635,
10662,
61,
17,
9,
43337,
58,
73,
60,
29006,
2164,
2340,
79,
4092,
9,
7,
72,
12,
73,
4008,
198,
220,
220,
220,
886,
198,
220,
220,
220,
32480,
198,
437,
628,
198,
1,
198,
28976,
14402,
7,
57,
11,
45,
28,
3064,
8,
198,
26439,
4985,
5658,
376,
7780,
72,
2568,
329,
257,
43180,
22037,
11,
17226,
3877,
1168,
13,
198,
399,
25,
1271,
286,
10706,
2173,
287,
352,
35,
12109,
41575,
13,
628,
269,
13,
69,
13,
337,
446,
263,
11,
279,
13,
28896,
11,
412,
80,
77,
357,
24,
13,
4304,
2599,
198,
705,
464,
2568,
286,
281,
17226,
286,
4523,
3877,
1168,
318,
6702,
532,
16,
13,
4310,
2425,
1168,
61,
7,
22,
14,
18,
8,
11089,
6,
198,
1,
198,
8818,
28976,
14402,
7,
57,
26,
399,
28,
940,
11,
19011,
577,
3712,
33,
970,
28,
9562,
8,
198,
220,
220,
220,
44872,
7203,
2953,
10179,
14402,
11,
17226,
3877,
25,
33172,
57,
8,
628,
220,
220,
220,
1500,
16874,
28,
1495,
127,
227,
628,
220,
220,
220,
12109,
28,
9107,
418,
7,
45,
737,
10,
57,
14,
45,
1303,
314,
760,
11,
257,
1643,
11841,
986,
376,
2171,
12109,
351,
6228,
11538,
12109,
355,
4238,
4724,
13,
198,
220,
220,
220,
50000,
79,
4092,
28,
45,
14,
42172,
628,
220,
220,
220,
1303,
2141,
617,
360,
9792,
994,
986,
198,
220,
220,
220,
569,
796,
604,
14,
18,
9,
14415,
9,
42172,
61,
18,
1303,
14701,
286,
2472,
16558,
286,
3877,
12109,
3177,
13,
220,
198,
220,
220,
220,
1303,
399,
65,
25,
1892,
1654,
611,
4755,
310,
26,
16645,
5139,
2568,
309,
318,
7601,
13,
284,
569,
13,
2896,
78,
6115,
290,
407,
2785,
30,
628,
220,
220,
220,
2160,
36,
28,
15,
13,
15,
198,
220,
220,
220,
329,
299,
287,
352,
25,
940,
198,
220,
220,
220,
220,
220,
220,
220,
611,
15942,
577,
26,
2488,
37435,
7203,
6173,
37,
26304,
25,
4064,
67,
59,
77,
1600,
77,
1776,
886,
26,
198,
220,
220,
220,
220,
220,
220,
220,
2160,
36,
28,
15,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
5694,
16022,
355,
357,
24,
13,
4304,
8,
287,
337,
446,
263,
11,
12047,
36202,
330,
3381,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
352,
25,
45,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
38779,
852,
262,
5931,
2785,
26,
428,
16194,
1978,
357,
24,
13,
4304,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
8252,
318,
262,
21003,
9521,
33090,
284,
4605,
262,
32315,
326,
262,
12109,
318,
4055,
276,
26,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1037,
2759,
428,
318,
635,
10411,
284,
262,
5931,
2785,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
38779,
28,
22405,
37,
7780,
72,
62,
51,
62,
69,
681,
452,
7,
43337,
58,
72,
12962,
1343,
471,
2953,
10179,
7,
57,
11,
72,
9,
2164,
2340,
79,
4092,
8,
1343,
5658,
37,
7780,
72,
62,
34,
2852,
2381,
25396,
1843,
7,
43337,
11,
72,
11,
2164,
2340,
79,
4092,
11,
45,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1406,
314,
915,
274,
356,
714,
779,
262,
1109,
326,
262,
4607,
2785,
318,
6937,
11,
284,
923,
3867,
11538,
12109,
1088,
30,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3574,
2947,
45451,
352,
13,
17,
26,
38779,
10532,
284,
6632,
379,
374,
28,
10745,
6269,
11,
4361,
38779,
318,
6632,
8347,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
16926,
46,
25,
35835,
2116,
12,
5936,
396,
1387,
994,
986,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
15942,
577,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
37435,
7203,
59,
83,
1312,
25,
4064,
67,
12109,
25,
4064,
70,
309,
25,
4064,
70,
3467,
77,
59,
83,
59,
17209,
84,
4064,
70,
796,
309,
62,
69,
681,
452,
4064,
70,
1343,
471,
2953,
10179,
25,
4064,
70,
1343,
27854,
2381,
4064,
70,
59,
77,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
11,
43337,
58,
72,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5658,
37,
7780,
72,
62,
51,
7,
43337,
58,
72,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
38779,
11,
22405,
37,
7780,
72,
62,
51,
62,
69,
681,
452,
7,
43337,
58,
72,
46570,
52,
2953,
10179,
7,
57,
11,
72,
9,
2164,
2340,
79,
4092,
828,
22405,
37,
7780,
72,
62,
34,
2852,
2381,
25396,
1843,
7,
43337,
11,
72,
11,
2164,
2340,
79,
4092,
11,
45,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
7477,
26,
15284,
2472,
2568,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
412,
28,
22405,
37,
7780,
72,
62,
51,
7,
43337,
58,
72,
12962,
1343,
12109,
58,
72,
60,
9,
52,
2953,
10179,
7,
57,
11,
72,
9,
2164,
2340,
79,
4092,
8,
1343,
12109,
58,
72,
60,
9,
22405,
37,
7780,
72,
62,
34,
2852,
2381,
25396,
1843,
7,
43337,
11,
72,
11,
2164,
2340,
79,
4092,
11,
45,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
15942,
577,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
37435,
7203,
59,
83,
59,
83,
36,
4064,
70,
796,
309,
4064,
70,
1343,
471,
4064,
70,
1343,
27854,
2381,
4064,
70,
59,
77,
14957,
412,
25,
4064,
70,
449,
796,
4064,
70,
304,
53,
59,
77,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
412,
11,
22405,
37,
7780,
72,
62,
51,
7,
43337,
58,
72,
46570,
12109,
58,
72,
60,
9,
52,
2953,
10179,
7,
57,
11,
72,
9,
2164,
2340,
79,
4092,
828,
12109,
58,
72,
60,
9,
22405,
37,
7780,
72,
62,
34,
2852,
2381,
25396,
1843,
7,
43337,
11,
72,
11,
2164,
2340,
79,
4092,
11,
45,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2160,
36,
11,
16345,
36,
14,
80,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2160,
36,
47932,
36,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
399,
65,
25,
3076,
6058,
8156,
1058,
61,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12109,
58,
72,
45297,
28,
30300,
9,
940,
36,
2327,
1303,
7565,
12109,
1912,
319,
703,
881,
5931,
2785,
38779,
21695,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
12109,
58,
72,
60,
27,
15,
13,
15,
26,
12109,
58,
72,
22241,
15,
13,
15,
26,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1846,
3455,
32315,
2160,
13,
12109,
796,
1168,
198,
220,
220,
220,
220,
220,
220,
220,
611,
15942,
577,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
37435,
7203,
13065,
286,
12109,
662,
3487,
5612,
25,
4064,
69,
59,
77,
1600,
16345,
7,
43337,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
12109,
28,
43337,
15885,
57,
14,
16345,
7,
43337,
8,
198,
220,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1303,
16926,
46,
25,
15284,
2472,
5658,
12,
37,
7780,
72,
2568,
994,
11,
422,
12109,
986,
628,
220,
220,
220,
44872,
7203,
35,
6377,
25,
33172,
43337,
8,
198,
220,
220,
220,
2488,
37435,
7203,
14957,
412,
25,
4064,
70,
449,
796,
4064,
70,
11089,
796,
4064,
70,
304,
53,
59,
77,
1600,
16345,
36,
11,
16345,
36,
14,
46987,
11,
16345,
36,
14,
80,
8,
198,
220,
220,
220,
44872,
7203,
44,
446,
263,
49166,
4941,
25,
412,
5299,
28,
532,
16,
13,
4310,
2425,
13,
57,
61,
7,
22,
14,
18,
8,
796,
366,
12095,
16,
13,
4310,
2425,
9,
57,
61,
7,
22,
14,
18,
828,
366,
11089,
4943,
1303,
399,
65,
25,
466,
617,
4326,
32626,
198,
437,
628
] | 2.240793 | 2,118 |
using LowRankIntegrators, SparseArrays
@testset "Burgers equation" begin
n = 1000 # spatial discretization
l = π # length of spatial domain
Δx = l/n # step size
x_range = Δx/2:Δx:l-Δx/2 # uniform grid
# boundary conditions
left(i) = i > 1 ? i - 1 : n
right(i) = i < n ? i + 1 : 1
# discretized diff operators
# laplacian (times viscosity)
Δ = spzeros(n, n)
ν = 0.005
for i in 1:n
Δ[i,left(i)] = ν/Δx^2
Δ[i,i] = -2ν/Δx^2
Δ[i,right(i)] = ν/Δx^2
end
# gradient
∇ = spzeros(n, n)
for i in 1:n
∇[i,left(i)] = -1/2/Δx
∇[i,right(i)] = 1/2/Δx
end
function burgers(ρ, (∇,Δ), t)
return Δ*ρ - (∇*ρ) .* ρ
end
# uncertainty range
m = 20 # parameter realizations scale as m^2
σ = [0.5,0.5]
ξ_range = [(ξ_1,ξ_2) for ξ_1 in range(-1,1,length=m), ξ_2 in range(-1,1,length=m)];
#initial condition
ub(x) = 0.5*(exp.(cos.(x)) .- 1.5).*sin.(x .+ 2π*0.37) # deterministic initial condition
uprime(x,ξ,σ) = σ[1]*ξ[1]*sin.(2π*x) .+ σ[2]*ξ[2]*sin.(3π*x) # stochastic fluctuation
ρ0_mat = hcat([ub(x_range) + uprime(x_range, ξ, σ) for ξ in ξ_range]...) # full rank initial condition
r = 5 # approximation rank
lr_ρ0 = truncated_svd(ρ0_mat, r); # intial condition
dt = 1e-2 # time step
lr_prob = MatrixDEProblem((ρ,t) -> burgers(ρ, (∇,Δ), t), lr_ρ0, (0.0, 1.0)) # defines the matrix differential equation problem
solvers = [UnconventionalAlgorithm(),
ProjectorSplitting(PrimalLieTrotter()),
ProjectorSplitting(DualLieTrotter()),
ProjectorSplitting(Strang()),
RankAdaptiveUnconventionalAlgorithm(1e-4, rmax=10)]
for solver in solvers
lr_sol = LowRankIntegrators.solve(lr_prob, solver, dt) # solves the low rank approximation
end
end | [
3500,
7754,
27520,
34500,
18942,
11,
1338,
17208,
3163,
20477,
198,
198,
31,
9288,
2617,
366,
33,
3686,
364,
16022,
1,
2221,
198,
220,
220,
220,
299,
796,
8576,
1303,
21739,
1221,
1186,
1634,
628,
220,
220,
220,
300,
796,
18074,
222,
1303,
4129,
286,
21739,
7386,
198,
220,
220,
220,
37455,
87,
796,
300,
14,
77,
1303,
2239,
2546,
198,
220,
220,
220,
2124,
62,
9521,
796,
37455,
87,
14,
17,
25,
138,
242,
87,
25,
75,
12,
138,
242,
87,
14,
17,
1303,
8187,
10706,
628,
220,
220,
220,
1303,
18645,
3403,
198,
220,
220,
220,
1364,
7,
72,
8,
796,
1312,
1875,
352,
5633,
1312,
532,
352,
1058,
299,
198,
220,
220,
220,
826,
7,
72,
8,
796,
1312,
1279,
299,
5633,
1312,
1343,
352,
1058,
352,
628,
220,
220,
220,
1303,
1221,
1186,
1143,
814,
12879,
198,
220,
220,
220,
1303,
8591,
489,
330,
666,
357,
22355,
1490,
6966,
414,
8,
198,
220,
220,
220,
37455,
796,
599,
9107,
418,
7,
77,
11,
299,
8,
198,
220,
220,
220,
7377,
121,
796,
657,
13,
22544,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
77,
198,
220,
220,
220,
220,
220,
220,
220,
37455,
58,
72,
11,
9464,
7,
72,
15437,
796,
7377,
121,
14,
138,
242,
87,
61,
17,
198,
220,
220,
220,
220,
220,
220,
220,
37455,
58,
72,
11,
72,
60,
796,
532,
17,
26180,
14,
138,
242,
87,
61,
17,
198,
220,
220,
220,
220,
220,
220,
220,
37455,
58,
72,
11,
3506,
7,
72,
15437,
796,
7377,
121,
14,
138,
242,
87,
61,
17,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1303,
31312,
198,
220,
220,
220,
18872,
229,
796,
599,
9107,
418,
7,
77,
11,
299,
8,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
77,
198,
220,
220,
220,
220,
220,
220,
220,
18872,
229,
58,
72,
11,
9464,
7,
72,
15437,
796,
532,
16,
14,
17,
14,
138,
242,
87,
198,
220,
220,
220,
220,
220,
220,
220,
18872,
229,
58,
72,
11,
3506,
7,
72,
15437,
796,
352,
14,
17,
14,
138,
242,
87,
198,
220,
220,
220,
886,
628,
220,
220,
220,
2163,
34623,
7,
33643,
11,
357,
24861,
229,
11,
138,
242,
828,
256,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
37455,
9,
33643,
532,
357,
24861,
229,
9,
33643,
8,
764,
9,
18074,
223,
220,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1303,
13479,
2837,
198,
220,
220,
220,
285,
796,
1160,
1303,
11507,
1103,
4582,
5046,
355,
285,
61,
17,
198,
220,
220,
220,
18074,
225,
796,
685,
15,
13,
20,
11,
15,
13,
20,
60,
198,
220,
220,
220,
7377,
122,
62,
9521,
796,
47527,
138,
122,
62,
16,
11,
138,
122,
62,
17,
8,
329,
7377,
122,
62,
16,
287,
2837,
32590,
16,
11,
16,
11,
13664,
28,
76,
828,
7377,
122,
62,
17,
287,
2837,
32590,
16,
11,
16,
11,
13664,
28,
76,
8,
11208,
628,
220,
220,
220,
1303,
36733,
4006,
198,
220,
220,
220,
20967,
7,
87,
8,
796,
657,
13,
20,
9,
7,
11201,
12195,
6966,
12195,
87,
4008,
764,
12,
352,
13,
20,
737,
9,
31369,
12195,
87,
764,
10,
362,
46582,
9,
15,
13,
2718,
8,
1303,
2206,
49228,
4238,
4006,
198,
220,
220,
220,
510,
81,
524,
7,
87,
11,
138,
122,
11,
38392,
8,
796,
18074,
225,
58,
16,
60,
9,
138,
122,
58,
16,
60,
9,
31369,
12195,
17,
46582,
9,
87,
8,
764,
10,
18074,
225,
58,
17,
60,
9,
138,
122,
58,
17,
60,
9,
31369,
12195,
18,
46582,
9,
87,
8,
1303,
3995,
354,
3477,
19180,
2288,
198,
220,
220,
220,
18074,
223,
15,
62,
6759,
796,
289,
9246,
26933,
549,
7,
87,
62,
9521,
8,
1343,
510,
81,
524,
7,
87,
62,
9521,
11,
7377,
122,
11,
18074,
225,
8,
329,
7377,
122,
287,
7377,
122,
62,
9521,
60,
23029,
1303,
1336,
4279,
4238,
4006,
198,
220,
220,
220,
374,
796,
642,
1303,
40874,
4279,
198,
220,
220,
220,
300,
81,
62,
33643,
15,
796,
40122,
515,
62,
82,
20306,
7,
33643,
15,
62,
6759,
11,
374,
1776,
1303,
493,
498,
4006,
628,
198,
220,
220,
220,
288,
83,
796,
352,
68,
12,
17,
1303,
640,
2239,
220,
198,
220,
220,
220,
300,
81,
62,
1676,
65,
796,
24936,
7206,
40781,
19510,
33643,
11,
83,
8,
4613,
34623,
7,
33643,
11,
357,
24861,
229,
11,
138,
242,
828,
256,
828,
220,
300,
81,
62,
33643,
15,
11,
357,
15,
13,
15,
11,
352,
13,
15,
4008,
1303,
15738,
262,
17593,
22577,
16022,
1917,
198,
220,
220,
220,
1540,
690,
796,
685,
3118,
1102,
20405,
2348,
42289,
22784,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4935,
273,
26568,
2535,
7,
23828,
282,
47918,
51,
10599,
353,
3419,
828,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4935,
273,
26568,
2535,
7,
36248,
47918,
51,
10599,
353,
3419,
828,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4935,
273,
26568,
2535,
7,
13290,
648,
3419,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10916,
48003,
425,
3118,
1102,
20405,
2348,
42289,
7,
16,
68,
12,
19,
11,
374,
9806,
28,
940,
15437,
198,
220,
220,
220,
329,
1540,
332,
287,
1540,
690,
198,
220,
220,
220,
220,
220,
220,
220,
300,
81,
62,
34453,
796,
7754,
27520,
34500,
18942,
13,
82,
6442,
7,
14050,
62,
1676,
65,
11,
1540,
332,
11,
288,
83,
8,
1303,
39107,
262,
1877,
4279,
40874,
198,
220,
220,
220,
886,
198,
437
] | 1.975713 | 947 |
@defcomp climatedynamics begin
# Total radiative forcing
radforc = Parameter(index=[time])
# Average global temperature
temp = Variable(index=[time])
# lifetempconst
lifetempconst = Parameter()
# lifetemplin
lifetemplin = Parameter()
# lifetempqd
lifetempqd = Parameter()
# Climate sensitivity
climatesensitivity = Parameter(default = 2.999999803762826)
function run_timestep(p, v, d, t)
if is_first(t)
v.temp[t] = 0.20
else
LifeTemp = max(p.lifetempconst + p.lifetemplin * p.climatesensitivity + p.lifetempqd * p.climatesensitivity^2.0, 1.0)
delaytemp = 1.0 / LifeTemp
temps = p.climatesensitivity / 5.35 / log(2.0)
# Calculate temperature
dtemp = delaytemp * temps * p.radforc[t] - delaytemp * v.temp[t - 1]
v.temp[t] = v.temp[t - 1] + dtemp
end
end
end
| [
171,
119,
123,
31,
4299,
5589,
5424,
515,
4989,
873,
2221,
198,
220,
220,
220,
1303,
7472,
19772,
876,
10833,
198,
220,
220,
220,
2511,
1640,
66,
796,
25139,
2357,
7,
9630,
41888,
2435,
12962,
628,
220,
220,
220,
1303,
13475,
3298,
5951,
198,
220,
220,
220,
20218,
796,
35748,
7,
9630,
41888,
2435,
12962,
628,
220,
220,
220,
1303,
3868,
316,
45787,
9979,
198,
220,
220,
220,
3868,
316,
45787,
9979,
796,
25139,
2357,
3419,
628,
220,
220,
220,
1303,
3868,
316,
18856,
259,
198,
220,
220,
220,
3868,
316,
18856,
259,
796,
25139,
2357,
3419,
628,
220,
220,
220,
1303,
3868,
316,
45787,
80,
67,
198,
220,
220,
220,
3868,
316,
45787,
80,
67,
796,
25139,
2357,
3419,
628,
220,
220,
220,
1303,
13963,
14233,
198,
220,
220,
220,
45225,
40545,
796,
25139,
2357,
7,
12286,
796,
362,
13,
24214,
2079,
1795,
32128,
2078,
2075,
8,
628,
220,
220,
220,
2163,
1057,
62,
16514,
395,
538,
7,
79,
11,
410,
11,
288,
11,
256,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
62,
11085,
7,
83,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
410,
13,
29510,
58,
83,
60,
796,
657,
13,
1238,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5155,
30782,
796,
3509,
7,
79,
13,
36195,
316,
45787,
9979,
1343,
279,
13,
36195,
316,
18856,
259,
1635,
279,
13,
565,
26748,
40545,
1343,
279,
13,
36195,
316,
45787,
80,
67,
1635,
279,
13,
565,
26748,
40545,
61,
17,
13,
15,
11,
352,
13,
15,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5711,
29510,
796,
352,
13,
15,
1220,
5155,
30782,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2169,
862,
796,
279,
13,
565,
26748,
40545,
1220,
642,
13,
2327,
1220,
2604,
7,
17,
13,
15,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
27131,
378,
5951,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
29510,
796,
5711,
29510,
1635,
2169,
862,
1635,
279,
13,
6335,
1640,
66,
58,
83,
60,
532,
5711,
29510,
1635,
410,
13,
29510,
58,
83,
532,
352,
60,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
410,
13,
29510,
58,
83,
60,
796,
410,
13,
29510,
58,
83,
532,
352,
60,
1343,
288,
29510,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
437,
198
] | 2.15103 | 437 |
module SeekerBarrier
using ..Ahorn, Maple
const placements = Ahorn.PlacementDict(
"Seeker Barrier" => Ahorn.EntityPlacement(
Maple.SeekerBarrier,
"rectangle"
),
)
Ahorn.minimumSize(entity::Maple.SeekerBarrier) = 8, 8
Ahorn.resizable(entity::Maple.SeekerBarrier) = true, true
function Ahorn.selection(entity::Maple.SeekerBarrier)
x, y = Ahorn.position(entity)
width = Int(get(entity.data, "width", 8))
height = Int(get(entity.data, "height", 8))
return Ahorn.Rectangle(x, y, width, height)
end
function Ahorn.render(ctx::Ahorn.Cairo.CairoContext, entity::Maple.SeekerBarrier, room::Maple.Room)
width = Int(get(entity.data, "width", 32))
height = Int(get(entity.data, "height", 32))
Ahorn.drawRectangle(ctx, 0, 0, width, height, (0.25, 0.25, 0.25, 0.8), (0.0, 0.0, 0.0, 0.0))
end
end | [
21412,
1001,
28233,
10374,
5277,
198,
198,
3500,
11485,
10910,
1211,
11,
21249,
198,
198,
9979,
21957,
3196,
796,
7900,
1211,
13,
3646,
5592,
35,
713,
7,
198,
220,
220,
220,
366,
4653,
28233,
32804,
1,
5218,
7900,
1211,
13,
32398,
3646,
5592,
7,
198,
220,
220,
220,
220,
220,
220,
220,
21249,
13,
4653,
28233,
10374,
5277,
11,
198,
220,
220,
220,
220,
220,
220,
220,
366,
2554,
9248,
1,
198,
220,
220,
220,
10612,
198,
8,
198,
198,
10910,
1211,
13,
39504,
10699,
7,
26858,
3712,
13912,
293,
13,
4653,
28233,
10374,
5277,
8,
796,
807,
11,
807,
198,
10910,
1211,
13,
411,
13821,
7,
26858,
3712,
13912,
293,
13,
4653,
28233,
10374,
5277,
8,
796,
2081,
11,
2081,
198,
198,
8818,
7900,
1211,
13,
49283,
7,
26858,
3712,
13912,
293,
13,
4653,
28233,
10374,
5277,
8,
198,
220,
220,
220,
2124,
11,
331,
796,
7900,
1211,
13,
9150,
7,
26858,
8,
628,
220,
220,
220,
9647,
796,
2558,
7,
1136,
7,
26858,
13,
7890,
11,
366,
10394,
1600,
807,
4008,
198,
220,
220,
220,
6001,
796,
2558,
7,
1136,
7,
26858,
13,
7890,
11,
366,
17015,
1600,
807,
4008,
628,
220,
220,
220,
1441,
7900,
1211,
13,
45474,
9248,
7,
87,
11,
331,
11,
9647,
11,
6001,
8,
198,
437,
198,
198,
8818,
7900,
1211,
13,
13287,
7,
49464,
3712,
10910,
1211,
13,
34,
18131,
13,
34,
18131,
21947,
11,
9312,
3712,
13912,
293,
13,
4653,
28233,
10374,
5277,
11,
2119,
3712,
13912,
293,
13,
41178,
8,
198,
220,
220,
220,
9647,
796,
2558,
7,
1136,
7,
26858,
13,
7890,
11,
366,
10394,
1600,
3933,
4008,
198,
220,
220,
220,
6001,
796,
2558,
7,
1136,
7,
26858,
13,
7890,
11,
366,
17015,
1600,
3933,
4008,
628,
220,
220,
220,
7900,
1211,
13,
19334,
45474,
9248,
7,
49464,
11,
657,
11,
657,
11,
9647,
11,
6001,
11,
357,
15,
13,
1495,
11,
657,
13,
1495,
11,
657,
13,
1495,
11,
657,
13,
23,
828,
357,
15,
13,
15,
11,
657,
13,
15,
11,
657,
13,
15,
11,
657,
13,
15,
4008,
198,
437,
198,
198,
437
] | 2.41954 | 348 |
using DataFrames
using LinearAlgebra
"""
UniqueTypes
A subtype of AbstractTypes where all individuals are completely
distinct. This type is the simplest AbstractTypes subtype, which
identifies all individuals as unique and completely distinct from each
other.
"""
struct UniqueTypes <: Diversity.API.AbstractTypes
num::Int64
names::Vector{String}
function UniqueTypes(num::Integer)
num > 0 || error("Too few species")
new(num, map(x -> "$x", 1:num))
end
function UniqueTypes(names::Vector{String})
num = length(names)
num > 0 || error("Too few species")
new(num, names)
end
end
import Diversity.API._hassimilarity
_hassimilarity(::UniqueTypes) = false
import Diversity.API._counttypes
function _counttypes(ut::UniqueTypes, ::Bool)
return ut.num
end
import Diversity.API._gettypenames
function _gettypenames(ut::UniqueTypes, ::Bool)
return ut.names
end
import Diversity.API._calcsimilarity
function _calcsimilarity(ut::UniqueTypes, ::Real)
return I
end
import Diversity.API._calcordinariness
function _calcordinariness(::UniqueTypes, abundances::AbstractArray, ::Real)
return abundances
end
import Diversity.API._getdiversityname
_getdiversityname(::UniqueTypes) = "Unique"
"""
Species
A subtype of AbstractTypes where all species are completely distinct.
This type is the simplest AbstractTypes subtype, which identifies all
species as unique and completely distinct from each other.
"""
const Species = UniqueTypes
"""
Taxonomy
A subtype of AbstractTypes with similarity between related taxa,
creating taxonomic similarity matrices.
"""
struct Taxonomy{FP <: AbstractFloat} <: Diversity.API.AbstractTypes
speciesinfo::DataFrame
taxa::Dict{Symbol, FP}
typelabel::Symbol
function Taxonomy{FP}(speciesinfo::DataFrame,
taxa::Dict{Symbol, FP},
typelabel::Symbol) where FP <: AbstractFloat
sort(describe(speciesinfo)[!,:variable]) == sort([keys(taxa)...]) ||
error("Taxon labels do not match similarity values")
typelabel ∈ describe(speciesinfo)[!,:variable] ||
error("$typelabel not found in DataFrame column names")
new{FP}(speciesinfo, taxa, typelabel)
end
end
function Taxonomy(speciesinfo::DataFrame, taxa::Dict,
typelabel::Symbol = :Species)
Taxonomy{valtype(taxa)}(speciesinfo, taxa, typelabel)
end
import Diversity.API.floattypes
function floattypes(::Taxonomy{FP}) where FP <: AbstractFloat
return Set([FP])
end
function _counttypes(tax::Taxonomy, ::Bool)
return nrow(tax.speciesinfo)
end
function _gettypenames(tax::Taxonomy, ::Bool)
return tax.speciesinfo[!,tax.typelabel]
end
function _calcsimilarity(::Taxonomy, ::Real)
error("Can't generate a taxonomic similarity matrix yet")
end
_getdiversityname(::Taxonomy) = "Taxonomy"
"""
GeneralTypes{FP, M}
An AbstractTypes subtype with a general similarity matrix. This
subtype simply holds a matrix with similarities between individuals.
# Members:
- `z` A two-dimensional matrix representing similarity between
individuals.
"""
struct GeneralTypes{FP <: AbstractFloat,
M <: AbstractMatrix{FP}} <: Diversity.API.AbstractTypes
"""
z
A two-dimensional matrix representing similarity between
individuals.
"""
z::M
"""
names
Optional vector of type names.
"""
names::Vector{String}
"""
# Constructor for GeneralTypes
Creates an instance of the GeneralTypes class, with an arbitrary
similarity matrix.
"""
function GeneralTypes(zmatrix::M) where {FP <: AbstractFloat,
M <: AbstractMatrix{FP}}
size(zmatrix, 1) == size(zmatrix, 2) ||
throw(DimensionMismatch("Similarity matrix is not square"))
minimum(zmatrix) ≥ 0 || throw(DomainError(minimum(zmatrix),
"Similarities must be ≥ 0"))
maximum(zmatrix) ≤ 1 || @warn "Similarity matrix has values above 1"
new{FP, M}(zmatrix, map(x -> "$x", 1:size(zmatrix, 1)))
end
function GeneralTypes(zmatrix::M, names::Vector{String}) where
{FP <: AbstractFloat, M <: AbstractMatrix{FP}}
size(zmatrix, 1) == size(zmatrix, 2) ||
throw(DimensionMismatch("Similarity matrix is not square"))
minimum(zmatrix) ≥ 0 || throw(DomainError(minimum(zmatrix),
"Similarities must be ≥ 0"))
maximum(zmatrix) ≤ 1 || @warn "Similarity matrix has values above 1"
length(names) == size(zmatrix, 1) ||
error("Species name vector does not match similarity matrix")
new{FP, M}(zmatrix, names)
end
end
function floattypes(::GeneralTypes{FP, M}) where {FP <: AbstractFloat,
M <: AbstractMatrix{FP}}
return Set([FP])
end
function _counttypes(gt::GeneralTypes, ::Bool)
return size(gt.z, 1)
end
function _gettypenames(gt::GeneralTypes, ::Bool)
return gt.names
end
function _calcsimilarity(gt::GeneralTypes, ::Real)
return gt.z
end
_getdiversityname(::GeneralTypes) = "Arbitrary Z"
| [
3500,
6060,
35439,
198,
3500,
44800,
2348,
29230,
198,
198,
37811,
198,
220,
220,
220,
30015,
31431,
198,
198,
32,
850,
4906,
286,
27741,
31431,
810,
477,
3925,
389,
3190,
198,
17080,
4612,
13,
770,
2099,
318,
262,
24043,
27741,
31431,
850,
4906,
11,
543,
198,
738,
6945,
477,
3925,
355,
3748,
290,
3190,
7310,
422,
1123,
198,
847,
13,
198,
198,
37811,
198,
7249,
30015,
31431,
1279,
25,
36188,
13,
17614,
13,
23839,
31431,
198,
220,
220,
220,
997,
3712,
5317,
2414,
198,
220,
220,
220,
3891,
3712,
38469,
90,
10100,
92,
628,
220,
220,
220,
2163,
30015,
31431,
7,
22510,
3712,
46541,
8,
198,
220,
220,
220,
220,
220,
220,
220,
997,
1875,
657,
8614,
4049,
7203,
23307,
1178,
4693,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
649,
7,
22510,
11,
3975,
7,
87,
4613,
17971,
87,
1600,
352,
25,
22510,
4008,
198,
220,
220,
220,
886,
628,
220,
220,
220,
2163,
30015,
31431,
7,
14933,
3712,
38469,
90,
10100,
30072,
198,
220,
220,
220,
220,
220,
220,
220,
997,
796,
4129,
7,
14933,
8,
198,
220,
220,
220,
220,
220,
220,
220,
997,
1875,
657,
8614,
4049,
7203,
23307,
1178,
4693,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
649,
7,
22510,
11,
3891,
8,
198,
220,
220,
220,
886,
198,
437,
198,
198,
11748,
36188,
13,
17614,
13557,
71,
562,
49941,
414,
198,
62,
71,
562,
49941,
414,
7,
3712,
40257,
31431,
8,
796,
3991,
198,
198,
11748,
36188,
13,
17614,
13557,
9127,
19199,
198,
8818,
4808,
9127,
19199,
7,
315,
3712,
40257,
31431,
11,
7904,
33,
970,
8,
198,
220,
220,
220,
1441,
3384,
13,
22510,
198,
437,
198,
198,
11748,
36188,
13,
17614,
13557,
1136,
774,
3617,
1047,
198,
8818,
4808,
1136,
774,
3617,
1047,
7,
315,
3712,
40257,
31431,
11,
7904,
33,
970,
8,
198,
220,
220,
220,
1441,
3384,
13,
14933,
198,
437,
198,
198,
11748,
36188,
13,
17614,
13557,
9948,
6359,
49941,
414,
198,
8818,
4808,
9948,
6359,
49941,
414,
7,
315,
3712,
40257,
31431,
11,
7904,
15633,
8,
198,
220,
220,
220,
1441,
314,
198,
437,
198,
198,
11748,
36188,
13,
17614,
13557,
9948,
66,
585,
22050,
1272,
198,
8818,
4808,
9948,
66,
585,
22050,
1272,
7,
3712,
40257,
31431,
11,
12467,
1817,
3712,
23839,
19182,
11,
7904,
15633,
8,
198,
220,
220,
220,
1441,
12467,
1817,
198,
437,
198,
198,
11748,
36188,
13,
17614,
13557,
1136,
67,
1608,
3672,
198,
62,
1136,
67,
1608,
3672,
7,
3712,
40257,
31431,
8,
796,
366,
40257,
1,
198,
198,
37811,
198,
220,
220,
220,
28540,
198,
198,
32,
850,
4906,
286,
27741,
31431,
810,
477,
4693,
389,
3190,
7310,
13,
198,
1212,
2099,
318,
262,
24043,
27741,
31431,
850,
4906,
11,
543,
21079,
477,
198,
35448,
355,
3748,
290,
3190,
7310,
422,
1123,
584,
13,
198,
198,
37811,
198,
9979,
28540,
796,
30015,
31431,
198,
198,
37811,
198,
220,
220,
220,
9241,
30565,
198,
198,
32,
850,
4906,
286,
27741,
31431,
351,
26789,
1022,
3519,
1687,
64,
11,
198,
20123,
278,
1687,
40036,
26789,
2603,
45977,
13,
198,
198,
37811,
198,
7249,
9241,
30565,
90,
5837,
1279,
25,
27741,
43879,
92,
1279,
25,
36188,
13,
17614,
13,
23839,
31431,
198,
220,
220,
220,
4693,
10951,
3712,
6601,
19778,
198,
220,
220,
220,
1687,
64,
3712,
35,
713,
90,
13940,
23650,
11,
31459,
92,
198,
220,
220,
220,
2170,
417,
9608,
3712,
13940,
23650,
628,
220,
220,
220,
2163,
9241,
30565,
90,
5837,
92,
7,
35448,
10951,
3712,
6601,
19778,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1687,
64,
3712,
35,
713,
90,
13940,
23650,
11,
31459,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2170,
417,
9608,
3712,
13940,
23650,
8,
810,
31459,
1279,
25,
27741,
43879,
198,
220,
220,
220,
220,
220,
220,
220,
3297,
7,
20147,
4892,
7,
35448,
10951,
38381,
28265,
25,
45286,
12962,
6624,
3297,
26933,
13083,
7,
19290,
64,
26513,
12962,
8614,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
7203,
27017,
261,
14722,
466,
407,
2872,
26789,
3815,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2170,
417,
9608,
18872,
230,
6901,
7,
35448,
10951,
38381,
28265,
25,
45286,
60,
8614,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
7203,
3,
28004,
417,
9608,
407,
1043,
287,
6060,
19778,
5721,
3891,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
649,
90,
5837,
92,
7,
35448,
10951,
11,
1687,
64,
11,
2170,
417,
9608,
8,
198,
220,
220,
220,
886,
198,
437,
198,
198,
8818,
9241,
30565,
7,
35448,
10951,
3712,
6601,
19778,
11,
1687,
64,
3712,
35,
713,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2170,
417,
9608,
3712,
13940,
23650,
796,
1058,
5248,
3171,
8,
198,
220,
220,
220,
9241,
30565,
90,
2100,
4906,
7,
19290,
64,
38165,
7,
35448,
10951,
11,
1687,
64,
11,
2170,
417,
9608,
8,
198,
437,
198,
198,
11748,
36188,
13,
17614,
13,
22468,
19199,
198,
8818,
12178,
19199,
7,
3712,
27017,
30565,
90,
5837,
30072,
810,
31459,
1279,
25,
27741,
43879,
198,
220,
220,
220,
1441,
5345,
26933,
5837,
12962,
198,
437,
198,
198,
8818,
4808,
9127,
19199,
7,
19290,
3712,
27017,
30565,
11,
7904,
33,
970,
8,
198,
220,
220,
220,
1441,
299,
808,
7,
19290,
13,
35448,
10951,
8,
198,
437,
198,
198,
8818,
4808,
1136,
774,
3617,
1047,
7,
19290,
3712,
27017,
30565,
11,
7904,
33,
970,
8,
198,
220,
220,
220,
1441,
1687,
13,
35448,
10951,
58,
28265,
19290,
13,
28004,
417,
9608,
60,
198,
437,
198,
198,
8818,
4808,
9948,
6359,
49941,
414,
7,
3712,
27017,
30565,
11,
7904,
15633,
8,
198,
220,
220,
220,
4049,
7203,
6090,
470,
7716,
257,
1687,
40036,
26789,
17593,
1865,
4943,
198,
437,
198,
198,
62,
1136,
67,
1608,
3672,
7,
3712,
27017,
30565,
8,
796,
366,
27017,
30565,
1,
198,
198,
37811,
198,
220,
220,
220,
3611,
31431,
90,
5837,
11,
337,
92,
198,
198,
2025,
27741,
31431,
850,
4906,
351,
257,
2276,
26789,
17593,
13,
770,
198,
7266,
4906,
2391,
6622,
257,
17593,
351,
20594,
1022,
3925,
13,
198,
198,
2,
12688,
25,
198,
198,
12,
4600,
89,
63,
317,
734,
12,
19577,
17593,
10200,
26789,
1022,
198,
43129,
82,
13,
198,
37811,
198,
7249,
3611,
31431,
90,
5837,
1279,
25,
27741,
43879,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
337,
1279,
25,
27741,
46912,
90,
5837,
11709,
1279,
25,
36188,
13,
17614,
13,
23839,
31431,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
628,
220,
220,
220,
317,
734,
12,
19577,
17593,
10200,
26789,
1022,
198,
220,
220,
220,
3925,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1976,
3712,
44,
628,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
3891,
628,
220,
220,
220,
32233,
15879,
286,
2099,
3891,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3891,
3712,
38469,
90,
10100,
92,
628,
220,
220,
220,
37227,
198,
220,
220,
220,
1303,
28407,
273,
329,
3611,
31431,
628,
220,
220,
220,
7921,
274,
281,
4554,
286,
262,
3611,
31431,
1398,
11,
351,
281,
14977,
198,
220,
220,
220,
26789,
17593,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2163,
3611,
31431,
7,
89,
6759,
8609,
3712,
44,
8,
810,
1391,
5837,
1279,
25,
27741,
43879,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
337,
1279,
25,
27741,
46912,
90,
5837,
11709,
198,
220,
220,
220,
220,
220,
220,
220,
2546,
7,
89,
6759,
8609,
11,
352,
8,
6624,
2546,
7,
89,
6759,
8609,
11,
362,
8,
8614,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3714,
7,
29271,
3004,
44,
1042,
963,
7203,
18925,
414,
17593,
318,
407,
6616,
48774,
628,
220,
220,
220,
220,
220,
220,
220,
5288,
7,
89,
6759,
8609,
8,
26870,
657,
8614,
3714,
7,
43961,
12331,
7,
39504,
7,
89,
6759,
8609,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
18925,
871,
1276,
307,
26870,
657,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
5415,
7,
89,
6759,
8609,
8,
41305,
352,
8614,
2488,
40539,
366,
18925,
414,
17593,
468,
3815,
2029,
352,
1,
628,
220,
220,
220,
220,
220,
220,
220,
649,
90,
5837,
11,
337,
92,
7,
89,
6759,
8609,
11,
3975,
7,
87,
4613,
17971,
87,
1600,
352,
25,
7857,
7,
89,
6759,
8609,
11,
352,
22305,
198,
220,
220,
220,
886,
628,
220,
220,
220,
2163,
3611,
31431,
7,
89,
6759,
8609,
3712,
44,
11,
3891,
3712,
38469,
90,
10100,
30072,
810,
198,
220,
220,
220,
220,
220,
220,
220,
1391,
5837,
1279,
25,
27741,
43879,
11,
337,
1279,
25,
27741,
46912,
90,
5837,
11709,
198,
220,
220,
220,
220,
220,
220,
220,
2546,
7,
89,
6759,
8609,
11,
352,
8,
6624,
2546,
7,
89,
6759,
8609,
11,
362,
8,
8614,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3714,
7,
29271,
3004,
44,
1042,
963,
7203,
18925,
414,
17593,
318,
407,
6616,
48774,
628,
220,
220,
220,
220,
220,
220,
220,
5288,
7,
89,
6759,
8609,
8,
26870,
657,
8614,
3714,
7,
43961,
12331,
7,
39504,
7,
89,
6759,
8609,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
18925,
871,
1276,
307,
26870,
657,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
5415,
7,
89,
6759,
8609,
8,
41305,
352,
8614,
2488,
40539,
366,
18925,
414,
17593,
468,
3815,
2029,
352,
1,
628,
220,
220,
220,
220,
220,
220,
220,
4129,
7,
14933,
8,
6624,
2546,
7,
89,
6759,
8609,
11,
352,
8,
8614,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
7203,
5248,
3171,
1438,
15879,
857,
407,
2872,
26789,
17593,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
649,
90,
5837,
11,
337,
92,
7,
89,
6759,
8609,
11,
3891,
8,
198,
220,
220,
220,
886,
198,
437,
198,
198,
8818,
12178,
19199,
7,
3712,
12218,
31431,
90,
5837,
11,
337,
30072,
810,
1391,
5837,
1279,
25,
27741,
43879,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
337,
1279,
25,
27741,
46912,
90,
5837,
11709,
198,
220,
220,
220,
1441,
5345,
26933,
5837,
12962,
198,
437,
198,
198,
8818,
4808,
9127,
19199,
7,
13655,
3712,
12218,
31431,
11,
7904,
33,
970,
8,
198,
220,
220,
220,
1441,
2546,
7,
13655,
13,
89,
11,
352,
8,
198,
437,
198,
198,
8818,
4808,
1136,
774,
3617,
1047,
7,
13655,
3712,
12218,
31431,
11,
7904,
33,
970,
8,
198,
220,
220,
220,
1441,
308,
83,
13,
14933,
198,
437,
198,
198,
8818,
4808,
9948,
6359,
49941,
414,
7,
13655,
3712,
12218,
31431,
11,
7904,
15633,
8,
198,
220,
220,
220,
1441,
308,
83,
13,
89,
198,
437,
198,
198,
62,
1136,
67,
1608,
3672,
7,
3712,
12218,
31431,
8,
796,
366,
3163,
2545,
11619,
1168,
1,
198
] | 2.622 | 2,000 |
using BRIKHEAD
using Documenter
makedocs(;
modules=[BRIKHEAD],
authors="Zaki A <[email protected]> and contributors",
repo="https://github.com/notZaki/BRIKHEAD.jl/blob/{commit}{path}#L{line}",
sitename="BRIKHEAD.jl",
format=Documenter.HTML(;
prettyurls=get(ENV, "CI", "false") == "true",
canonical="https://notZaki.github.io/BRIKHEAD.jl",
assets=String[],
),
pages=[
"Home" => "index.md",
],
)
deploydocs(;
repo="github.com/notZaki/BRIKHEAD.jl",
)
| [
3500,
347,
7112,
42,
37682,
198,
3500,
16854,
263,
198,
198,
76,
4335,
420,
82,
7,
26,
198,
220,
220,
220,
13103,
41888,
33,
7112,
42,
37682,
4357,
198,
220,
220,
220,
7035,
2625,
57,
8182,
317,
1279,
89,
8182,
31,
12583,
13,
6888,
29,
290,
20420,
1600,
198,
220,
220,
220,
29924,
2625,
5450,
1378,
12567,
13,
785,
14,
1662,
57,
8182,
14,
33,
7112,
42,
37682,
13,
20362,
14,
2436,
672,
14,
90,
41509,
18477,
6978,
92,
2,
43,
90,
1370,
92,
1600,
198,
220,
220,
220,
1650,
12453,
2625,
33,
7112,
42,
37682,
13,
20362,
1600,
198,
220,
220,
220,
5794,
28,
24941,
263,
13,
28656,
7,
26,
198,
220,
220,
220,
220,
220,
220,
220,
2495,
6371,
82,
28,
1136,
7,
1677,
53,
11,
366,
25690,
1600,
366,
9562,
4943,
6624,
366,
7942,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
40091,
2625,
5450,
1378,
1662,
57,
8182,
13,
12567,
13,
952,
14,
33,
7112,
42,
37682,
13,
20362,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
6798,
28,
10100,
58,
4357,
198,
220,
220,
220,
10612,
198,
220,
220,
220,
5468,
41888,
198,
220,
220,
220,
220,
220,
220,
220,
366,
16060,
1,
5218,
366,
9630,
13,
9132,
1600,
198,
220,
220,
220,
16589,
198,
8,
198,
198,
2934,
1420,
31628,
7,
26,
198,
220,
220,
220,
29924,
2625,
12567,
13,
785,
14,
1662,
57,
8182,
14,
33,
7112,
42,
37682,
13,
20362,
1600,
198,
8,
198
] | 2.102459 | 244 |
using IterativeSolvers
using Base.Test
@testset "SVD Lanczos" begin
srand(1234567)
#Thick restart methods
@testset "Thick restart with method=$method" for method in (:ritz, :harmonic)
for T in (Float32, Float64)
@testset "Diagonal Matrix{$T}" begin
n = 30
ns = 5
tol = 1e-5
A = full(Diagonal(T[1.0 : n;]))
q = ones(T, n) / √n
σ, L, history = svdl(A, nsv=ns, v0=q, tol=tol, reltol=tol, maxiter=n, method=method, vecs=:none, log=true)
@test isa(history, ConvergenceHistory)
@test norm(σ - [n : -1.0 : n - 4;]) < 5^2 * 1e-5
@test_throws ArgumentError svdl(A, nsv=ns, v0=q, tol=tol, reltol=tol, maxiter=n, method=:fakemethod, vecs=:none)
#Check the singular vectors also
Σ, L = svdl(A, nsv=ns, v0=q, tol=tol, reltol=tol, maxiter=n, method=method, vecs=:both)
#The vectors should have the structure
# [ 0 0 ... 0 ]
# [ ... ]
# [ 0 0 ... ±1 ]
# [ 0 ... ]
# [ 0 ±1 ... 0 ]
# [±1 0 ... 0 ]
# and furthermore the signs should be aligned across Σ[:U] and Σ[:V]
for i = 1 : 5
Σ[:U][end + 1 - i, i] -= sign(Σ[:U][end + 1 - i, i])
end
@test vecnorm(Σ[:U]) < σ[1] * √tol
for i = 1 : 5
Σ[:Vt][i, end + 1 - i] -= sign(Σ[:Vt][i, end + 1 - i])
end
@test vecnorm(Σ[:U]) < σ[1] * √tol
@test norm(σ - Σ[:S]) < 2max(tol * ns * σ[1], tol)
#Issue #55
let
σ1, _ = svdl(A, nsv=1, tol=tol, reltol=tol)
@test abs(σ[1] - σ1[1]) < 2max(tol * σ[1], tol)
end
end
@testset "Rectangular Matrix{$T}" begin
srand(1)
m = 300
n = 200
k = 5
l = 10
A = randn(T, m, n)
q = randn(T, n) |> x -> x / norm(x)
σ, L = svdl(A, nsv=k, k=l, v0=q, tol=1e-5, maxiter=30, method=method)
@test norm(σ - svdvals(A)[1 : k]) < k^2 * 1e-5
end
end
end
end #svdl
@testset "BrokenArrowBidiagonal" begin
B = IterativeSolvers.BrokenArrowBidiagonal([1, 2, 3], [1, 2], Int[])
@test full(B) == [1 0 1; 0 2 2; 0 0 3]
@test B[3,3] == 3
@test B[2,3] == 2
@test B[3,2] == 0
@test B[1,3] == 1
@test size(B) == (3,3)
@test_throws ArgumentError size(B,3)
@test_throws BoundsError B[1,5]
end
| [
3500,
40806,
876,
36949,
690,
198,
3500,
7308,
13,
14402,
198,
198,
31,
9288,
2617,
366,
50,
8898,
21534,
37925,
1,
2221,
198,
198,
82,
25192,
7,
10163,
2231,
3134,
8,
198,
198,
2,
817,
624,
15765,
5050,
198,
31,
9288,
2617,
366,
817,
624,
15765,
351,
2446,
43641,
24396,
1,
329,
2446,
287,
357,
25,
29574,
11,
1058,
29155,
9229,
8,
198,
220,
220,
220,
329,
309,
287,
357,
43879,
2624,
11,
48436,
2414,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
2617,
366,
18683,
27923,
24936,
90,
3,
51,
36786,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
796,
1542,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
36545,
796,
642,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
284,
75,
796,
352,
68,
12,
20,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
796,
1336,
7,
18683,
27923,
7,
51,
58,
16,
13,
15,
1058,
299,
26,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
796,
3392,
7,
51,
11,
299,
8,
1220,
18872,
248,
77,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18074,
225,
11,
406,
11,
2106,
796,
264,
20306,
75,
7,
32,
11,
299,
21370,
28,
5907,
11,
410,
15,
28,
80,
11,
284,
75,
28,
83,
349,
11,
823,
83,
349,
28,
83,
349,
11,
3509,
2676,
28,
77,
11,
2446,
28,
24396,
11,
1569,
6359,
28,
25,
23108,
11,
2604,
28,
7942,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
64,
7,
23569,
11,
35602,
12745,
18122,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
2593,
7,
38392,
532,
685,
77,
1058,
532,
16,
13,
15,
1058,
299,
532,
604,
26,
12962,
1279,
642,
61,
17,
1635,
352,
68,
12,
20,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
62,
400,
8516,
45751,
12331,
264,
20306,
75,
7,
32,
11,
299,
21370,
28,
5907,
11,
410,
15,
28,
80,
11,
284,
75,
28,
83,
349,
11,
823,
83,
349,
28,
83,
349,
11,
3509,
2676,
28,
77,
11,
2446,
28,
25,
30706,
24396,
11,
1569,
6359,
28,
25,
23108,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
9787,
262,
18032,
30104,
635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7377,
96,
11,
406,
796,
264,
20306,
75,
7,
32,
11,
299,
21370,
28,
5907,
11,
410,
15,
28,
80,
11,
284,
75,
28,
83,
349,
11,
823,
83,
349,
28,
83,
349,
11,
3509,
2676,
28,
77,
11,
2446,
28,
24396,
11,
1569,
6359,
28,
25,
16885,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
464,
30104,
815,
423,
262,
4645,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
685,
657,
220,
657,
2644,
220,
657,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
685,
220,
220,
220,
2644,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
685,
657,
220,
657,
2644,
6354,
16,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
685,
657,
220,
220,
2644,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
685,
657,
6354,
16,
2644,
220,
657,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
685,
22519,
16,
220,
657,
2644,
220,
657,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
290,
50002,
262,
5895,
815,
307,
19874,
1973,
7377,
96,
58,
25,
52,
60,
290,
7377,
96,
58,
25,
53,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
796,
352,
1058,
642,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7377,
96,
58,
25,
52,
7131,
437,
1343,
352,
532,
1312,
11,
1312,
60,
48185,
1051,
7,
138,
96,
58,
25,
52,
7131,
437,
1343,
352,
532,
1312,
11,
1312,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
43030,
27237,
7,
138,
96,
58,
25,
52,
12962,
1279,
18074,
225,
58,
16,
60,
1635,
18872,
248,
83,
349,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
796,
352,
1058,
642,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7377,
96,
58,
25,
53,
83,
7131,
72,
11,
886,
1343,
352,
532,
1312,
60,
48185,
1051,
7,
138,
96,
58,
25,
53,
83,
7131,
72,
11,
886,
1343,
352,
532,
1312,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
43030,
27237,
7,
138,
96,
58,
25,
52,
12962,
1279,
18074,
225,
58,
16,
60,
1635,
18872,
248,
83,
349,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
2593,
7,
38392,
532,
7377,
96,
58,
25,
50,
12962,
1279,
362,
9806,
7,
83,
349,
1635,
36545,
1635,
18074,
225,
58,
16,
4357,
284,
75,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
45147,
1303,
2816,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1309,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18074,
225,
16,
11,
4808,
796,
264,
20306,
75,
7,
32,
11,
299,
21370,
28,
16,
11,
284,
75,
28,
83,
349,
11,
823,
83,
349,
28,
83,
349,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
2352,
7,
38392,
58,
16,
60,
532,
18074,
225,
16,
58,
16,
12962,
1279,
362,
9806,
7,
83,
349,
1635,
18074,
225,
58,
16,
4357,
284,
75,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
2617,
366,
45474,
21413,
24936,
90,
3,
51,
36786,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19677,
392,
7,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
796,
5867,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
796,
939,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
796,
642,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
796,
838,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
796,
43720,
77,
7,
51,
11,
285,
11,
299,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10662,
796,
43720,
77,
7,
51,
11,
299,
8,
930,
29,
2124,
4613,
2124,
1220,
2593,
7,
87,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18074,
225,
11,
406,
796,
264,
20306,
75,
7,
32,
11,
299,
21370,
28,
74,
11,
479,
28,
75,
11,
410,
15,
28,
80,
11,
284,
75,
28,
16,
68,
12,
20,
11,
3509,
2676,
28,
1270,
11,
2446,
28,
24396,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
2593,
7,
38392,
532,
264,
20306,
12786,
7,
32,
38381,
16,
1058,
479,
12962,
1279,
479,
61,
17,
1635,
352,
68,
12,
20,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
437,
198,
437,
1303,
82,
20306,
75,
198,
198,
31,
9288,
2617,
366,
15783,
3464,
3163,
808,
33,
19830,
27923,
1,
2221,
198,
220,
220,
220,
347,
796,
40806,
876,
36949,
690,
13,
15783,
3464,
3163,
808,
33,
19830,
27923,
26933,
16,
11,
362,
11,
513,
4357,
685,
16,
11,
362,
4357,
2558,
58,
12962,
198,
220,
220,
220,
2488,
9288,
1336,
7,
33,
8,
6624,
685,
16,
657,
352,
26,
657,
362,
362,
26,
657,
657,
513,
60,
198,
220,
220,
220,
2488,
9288,
347,
58,
18,
11,
18,
60,
6624,
513,
198,
220,
220,
220,
2488,
9288,
347,
58,
17,
11,
18,
60,
6624,
362,
198,
220,
220,
220,
2488,
9288,
347,
58,
18,
11,
17,
60,
6624,
657,
198,
220,
220,
220,
2488,
9288,
347,
58,
16,
11,
18,
60,
6624,
352,
198,
220,
220,
220,
2488,
9288,
2546,
7,
33,
8,
6624,
357,
18,
11,
18,
8,
198,
220,
220,
220,
2488,
9288,
62,
400,
8516,
45751,
12331,
2546,
7,
33,
11,
18,
8,
198,
220,
220,
220,
2488,
9288,
62,
400,
8516,
347,
3733,
12331,
347,
58,
16,
11,
20,
60,
198,
437,
198
] | 1.681428 | 1,513 |
# ---
# title: 127. Word Ladder
# id: problem127
# author: AquaIndigo
# date: 2020-11-07
# difficulty: Medium
# categories: Breadth-first Search
# link: <https://leetcode.com/problems/word-ladder/description/>
# hidden: true
# ---
#
# Given two words ( _beginWord_ and _endWord_ ), and a dictionary's word list,
# find the length of shortest transformation sequence from _beginWord_ to
# _endWord_ , such that:
#
# 1. Only one letter can be changed at a time.
# 2. Each transformed word must exist in the word list.
#
# **Note:**
#
# * Return 0 if there is no such transformation sequence.
# * All words have the same length.
# * All words contain only lowercase alphabetic characters.
# * You may assume no duplicates in the word list.
# * You may assume _beginWord_ and _endWord_ are non-empty and are not the same.
#
# **Example 1:**
#
#
#
# Input:
# beginWord = "hit",
# endWord = "cog",
# wordList = ["hot","dot","dog","lot","log","cog"]
#
# Output: 5
#
# Explanation: As one shortest transformation is "hit" -> "hot" -> "dot" -> "dog" -> "cog",
# return its length 5.
#
#
# **Example 2:**
#
#
#
# Input:
# beginWord = "hit"
# endWord = "cog"
# wordList = ["hot","dot","dog","lot","log"]
#
# Output: 0
#
# Explanation: The endWord "cog" is not in wordList, therefore no possible ** ** transformation.
#
#
#
## @lc code=start
using LeetCode
using DataStructures
function ladder_length(begin_word::String, end_word::String, word_list::Vector{String})::Int
function isadj(s1, s2)
flg = false
for i in 1:length(s1)
if s1[i] != s2[i]
if flg
return false
else
flg = true
end
end
end
return true
end
if !(end_word in word_list)
return 0
end
!(begin_word in word_list) && push!(word_list, begin_word)
s, t = findall(x -> x == begin_word, word_list)[1],
findall(x -> x == end_word, word_list)[1]
## println(s, ", ", t)
### wl = collect.(word_list)
len = length(word_list)
edges = [Set{Int}() for i in 1:len]
### construct adj list
for i in 1:len
for j in (i + 1):len
if isadj(word_list[i], word_list[j])
push!(edges[i], j)
push!(edges[j], i)
end
end
end
## BFS
qs, qt = Queue{Int}(), Queue{Int}()
dists = [0 for i in 1:len]
visited = [0 for i in 1:len]
enqueue!(qs, s)
enqueue!(qt, t)
visited[s] = 1
visited[t] = 2
dists[s] = dists[t] = 1
while !isempty(qs) && !isempty(qt)
rt1, rt2 = dequeue!(qs), dequeue!(qt)
dis1, dis2 = dists[rt1] + 1, dists[rt2] + 1
## println(rt1, " ", dis1)
for neib in edges[rt1]
if visited[neib] == 2
return dis1 + dists[neib] - 1
elseif visited[neib] == 0
visited[neib] = 1
enqueue!(qs, neib)
dists[neib] = dis1
end
end
for neib in edges[rt2]
if visited[neib] == 1
return dis2 + dists[neib] - 1
elseif visited[neib] == 0
visited[neib] = 2
enqueue!(qt, neib)
dists[neib] = dis2
end
end
end
return 0
end
## @lc code=end
| [
2,
11420,
198,
2,
3670,
25,
18112,
13,
9678,
12862,
1082,
198,
2,
4686,
25,
1917,
16799,
198,
2,
1772,
25,
24838,
5497,
14031,
198,
2,
3128,
25,
12131,
12,
1157,
12,
2998,
198,
2,
8722,
25,
13398,
198,
2,
9376,
25,
28731,
400,
12,
11085,
11140,
198,
2,
2792,
25,
1279,
5450,
1378,
293,
316,
8189,
13,
785,
14,
1676,
22143,
14,
4775,
12,
9435,
1082,
14,
11213,
15913,
198,
2,
7104,
25,
2081,
198,
2,
11420,
198,
2,
220,
198,
2,
11259,
734,
2456,
357,
4808,
27471,
26449,
62,
290,
4808,
437,
26449,
62,
10612,
290,
257,
22155,
338,
1573,
1351,
11,
198,
2,
1064,
262,
4129,
286,
35581,
13389,
8379,
422,
4808,
27471,
26449,
62,
284,
198,
2,
4808,
437,
26449,
62,
837,
884,
326,
25,
198,
2,
220,
198,
2,
220,
220,
352,
13,
5514,
530,
3850,
460,
307,
3421,
379,
257,
640,
13,
198,
2,
220,
220,
362,
13,
5501,
14434,
1573,
1276,
2152,
287,
262,
1573,
1351,
13,
198,
2,
220,
198,
2,
12429,
6425,
25,
1174,
198,
2,
220,
198,
2,
220,
220,
1635,
8229,
657,
611,
612,
318,
645,
884,
13389,
8379,
13,
198,
2,
220,
220,
1635,
1439,
2456,
423,
262,
976,
4129,
13,
198,
2,
220,
220,
1635,
1439,
2456,
3994,
691,
2793,
7442,
435,
746,
33312,
3435,
13,
198,
2,
220,
220,
1635,
921,
743,
7048,
645,
14184,
16856,
287,
262,
1573,
1351,
13,
198,
2,
220,
220,
1635,
921,
743,
7048,
4808,
27471,
26449,
62,
290,
4808,
437,
26449,
62,
389,
1729,
12,
28920,
290,
389,
407,
262,
976,
13,
198,
2,
220,
198,
2,
12429,
16281,
352,
25,
1174,
198,
2,
220,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
220,
220,
220,
23412,
25,
198,
2,
220,
220,
220,
220,
2221,
26449,
796,
366,
17945,
1600,
198,
2,
220,
220,
220,
220,
886,
26449,
796,
366,
66,
519,
1600,
198,
2,
220,
220,
220,
220,
1573,
8053,
796,
14631,
8940,
2430,
26518,
2430,
9703,
2430,
26487,
2430,
6404,
2430,
66,
519,
8973,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
220,
220,
220,
25235,
25,
642,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
220,
220,
220,
50125,
341,
25,
1081,
530,
35581,
13389,
318,
366,
17945,
1,
4613,
366,
8940,
1,
4613,
366,
26518,
1,
4613,
366,
9703,
1,
4613,
366,
66,
519,
1600,
198,
2,
220,
220,
220,
220,
1441,
663,
4129,
642,
13,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
198,
2,
12429,
16281,
362,
25,
1174,
198,
2,
220,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
220,
220,
220,
23412,
25,
198,
2,
220,
220,
220,
220,
2221,
26449,
796,
366,
17945,
1,
198,
2,
220,
220,
220,
220,
886,
26449,
796,
366,
66,
519,
1,
198,
2,
220,
220,
220,
220,
1573,
8053,
796,
14631,
8940,
2430,
26518,
2430,
9703,
2430,
26487,
2430,
6404,
8973,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
220,
220,
220,
25235,
25,
220,
657,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
220,
220,
220,
50125,
341,
25,
220,
383,
886,
26449,
366,
66,
519,
1,
318,
407,
287,
1573,
8053,
11,
4361,
645,
1744,
12429,
12429,
13389,
13,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
198,
2,
220,
198,
2235,
2488,
44601,
2438,
28,
9688,
198,
3500,
1004,
316,
10669,
198,
3500,
6060,
44909,
942,
198,
8818,
18002,
62,
13664,
7,
27471,
62,
4775,
3712,
10100,
11,
886,
62,
4775,
3712,
10100,
11,
1573,
62,
4868,
3712,
38469,
90,
10100,
92,
2599,
25,
5317,
198,
220,
220,
220,
2163,
318,
41255,
7,
82,
16,
11,
264,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
781,
70,
796,
3991,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
352,
25,
13664,
7,
82,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
264,
16,
58,
72,
60,
14512,
264,
17,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
781,
70,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
3991,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
781,
70,
796,
2081,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2081,
198,
220,
220,
220,
886,
198,
220,
220,
220,
611,
5145,
7,
437,
62,
4775,
287,
1573,
62,
4868,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
657,
198,
220,
220,
220,
886,
198,
220,
220,
220,
5145,
7,
27471,
62,
4775,
287,
1573,
62,
4868,
8,
11405,
4574,
0,
7,
4775,
62,
4868,
11,
2221,
62,
4775,
8,
198,
220,
220,
220,
264,
11,
256,
796,
1064,
439,
7,
87,
4613,
2124,
6624,
2221,
62,
4775,
11,
1573,
62,
4868,
38381,
16,
4357,
198,
220,
220,
220,
1064,
439,
7,
87,
4613,
2124,
6624,
886,
62,
4775,
11,
1573,
62,
4868,
38381,
16,
60,
198,
220,
220,
220,
22492,
44872,
7,
82,
11,
33172,
33172,
256,
8,
198,
220,
220,
220,
44386,
266,
75,
796,
2824,
12195,
4775,
62,
4868,
8,
198,
220,
220,
220,
18896,
796,
4129,
7,
4775,
62,
4868,
8,
198,
220,
220,
220,
13015,
796,
685,
7248,
90,
5317,
92,
3419,
329,
1312,
287,
352,
25,
11925,
60,
198,
220,
220,
220,
44386,
5678,
9224,
1351,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
11925,
198,
220,
220,
220,
220,
220,
220,
220,
329,
474,
287,
357,
72,
1343,
352,
2599,
11925,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
318,
41255,
7,
4775,
62,
4868,
58,
72,
4357,
1573,
62,
4868,
58,
73,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
276,
3212,
58,
72,
4357,
474,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
276,
3212,
58,
73,
4357,
1312,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
22492,
347,
10652,
198,
220,
220,
220,
10662,
82,
11,
10662,
83,
796,
4670,
518,
90,
5317,
92,
22784,
4670,
518,
90,
5317,
92,
3419,
198,
220,
220,
220,
288,
1023,
796,
685,
15,
329,
1312,
287,
352,
25,
11925,
60,
198,
220,
220,
220,
8672,
796,
685,
15,
329,
1312,
287,
352,
25,
11925,
60,
198,
220,
220,
220,
551,
36560,
0,
7,
48382,
11,
264,
8,
198,
220,
220,
220,
551,
36560,
0,
7,
39568,
11,
256,
8,
198,
220,
220,
220,
8672,
58,
82,
60,
796,
352,
198,
220,
220,
220,
8672,
58,
83,
60,
796,
362,
198,
220,
220,
220,
288,
1023,
58,
82,
60,
796,
288,
1023,
58,
83,
60,
796,
352,
198,
220,
220,
220,
981,
5145,
271,
28920,
7,
48382,
8,
11405,
5145,
271,
28920,
7,
39568,
8,
198,
220,
220,
220,
220,
220,
220,
220,
374,
83,
16,
11,
374,
83,
17,
796,
390,
36560,
0,
7,
48382,
828,
390,
36560,
0,
7,
39568,
8,
198,
220,
220,
220,
220,
220,
220,
220,
595,
16,
11,
595,
17,
796,
288,
1023,
58,
17034,
16,
60,
1343,
352,
11,
288,
1023,
58,
17034,
17,
60,
1343,
352,
198,
220,
220,
220,
220,
220,
220,
220,
22492,
44872,
7,
17034,
16,
11,
366,
33172,
595,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
497,
571,
287,
13015,
58,
17034,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
8672,
58,
710,
571,
60,
6624,
362,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
595,
16,
1343,
288,
1023,
58,
710,
571,
60,
532,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
8672,
58,
710,
571,
60,
6624,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8672,
58,
710,
571,
60,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
551,
36560,
0,
7,
48382,
11,
497,
571,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
1023,
58,
710,
571,
60,
796,
595,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
329,
497,
571,
287,
13015,
58,
17034,
17,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
8672,
58,
710,
571,
60,
6624,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
595,
17,
1343,
288,
1023,
58,
710,
571,
60,
532,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
8672,
58,
710,
571,
60,
6624,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8672,
58,
710,
571,
60,
796,
362,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
551,
36560,
0,
7,
39568,
11,
497,
571,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
1023,
58,
710,
571,
60,
796,
595,
17,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
657,
198,
437,
198,
2235,
2488,
44601,
2438,
28,
437,
198
] | 2.009308 | 1,719 |
if basename(pwd()) == "aoc"
cd("2019/6")
end
struct Planet
name
parent
children
end
Planet(name) = Planet(name, nothing, Planet[])
function Base.getindex(planet::Planet, name::AbstractString)
if planet.name == name
planet
else
for child in planet.children
result = child[name]
if !isnothing(result)
return result
end
end
end
end
Base.haskey(planet::Planet, name::AbstractString) = !isnothing(planet[name])
function loadsystem(filename::AbstractString)
system = Planet("COM")
lines = readlines(filename)
while length(lines) > 0
line = popfirst!(lines)
parent, child = split(line, ')')
if haskey(system, parent)
push!(system[parent].children, Planet(child, system[parent], Planet[]))
else
push!(lines, line)
end
end
system
end
function orbits(planet::Planet)
depth(planet) * length(planet.children) + sum(orbits.(planet.children), init = 0)
end
depth(::Nothing) = 0
depth(planet::Planet) = 1 + depth(planet.parent)
function parents(planet::Planet)
if isnothing(planet.parent)
[planet]
else
[planet, parents(planet.parent)...]
end
end
part1(filename::AbstractString) = orbits(loadsystem(filename))
@assert part1("example.txt") == 42
function part2(filename::AbstractString)
system = loadsystem(filename)
you = system["YOU"].parent
santa = system["SAN"].parent
common = first(intersect(parents(you), parents(santa)))
depth(you) + depth(santa) - 2 * depth(common)
end
@assert part2("example2.txt") == 4
part2("input.txt")
| [
361,
1615,
12453,
7,
79,
16993,
28955,
6624,
366,
64,
420,
1,
198,
220,
220,
220,
22927,
7203,
23344,
14,
21,
4943,
198,
437,
198,
198,
7249,
11397,
198,
220,
220,
220,
1438,
198,
220,
220,
220,
2560,
198,
220,
220,
220,
1751,
198,
437,
198,
41801,
7,
3672,
8,
796,
11397,
7,
3672,
11,
2147,
11,
11397,
58,
12962,
198,
198,
8818,
7308,
13,
1136,
9630,
7,
47427,
3712,
41801,
11,
1438,
3712,
23839,
10100,
8,
198,
220,
220,
220,
611,
5440,
13,
3672,
6624,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
5440,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1200,
287,
5440,
13,
17197,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1200,
58,
3672,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5145,
271,
22366,
7,
20274,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1255,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
437,
198,
198,
14881,
13,
10134,
2539,
7,
47427,
3712,
41801,
11,
1438,
3712,
23839,
10100,
8,
796,
5145,
271,
22366,
7,
47427,
58,
3672,
12962,
198,
198,
8818,
3440,
10057,
7,
34345,
3712,
23839,
10100,
8,
198,
220,
220,
220,
1080,
796,
11397,
7203,
9858,
4943,
198,
220,
220,
220,
3951,
796,
1100,
6615,
7,
34345,
8,
198,
220,
220,
220,
981,
4129,
7,
6615,
8,
1875,
657,
198,
220,
220,
220,
220,
220,
220,
220,
1627,
796,
1461,
11085,
0,
7,
6615,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2560,
11,
1200,
796,
6626,
7,
1370,
11,
705,
8,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
611,
468,
2539,
7,
10057,
11,
2560,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
10057,
58,
8000,
4083,
17197,
11,
11397,
7,
9410,
11,
1080,
58,
8000,
4357,
11397,
21737,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
6615,
11,
1627,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1080,
198,
437,
198,
198,
8818,
37015,
7,
47427,
3712,
41801,
8,
198,
220,
220,
220,
6795,
7,
47427,
8,
1635,
4129,
7,
47427,
13,
17197,
8,
1343,
2160,
7,
273,
9895,
12195,
47427,
13,
17197,
828,
2315,
796,
657,
8,
198,
437,
198,
198,
18053,
7,
3712,
18465,
8,
796,
657,
198,
18053,
7,
47427,
3712,
41801,
8,
796,
352,
1343,
6795,
7,
47427,
13,
8000,
8,
198,
198,
8818,
3397,
7,
47427,
3712,
41801,
8,
198,
220,
220,
220,
611,
318,
22366,
7,
47427,
13,
8000,
8,
198,
220,
220,
220,
220,
220,
220,
220,
685,
47427,
60,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
685,
47427,
11,
3397,
7,
47427,
13,
8000,
8,
22345,
198,
220,
220,
220,
886,
198,
437,
198,
198,
3911,
16,
7,
34345,
3712,
23839,
10100,
8,
796,
37015,
7,
2220,
10057,
7,
34345,
4008,
198,
31,
30493,
636,
16,
7203,
20688,
13,
14116,
4943,
6624,
5433,
198,
198,
8818,
636,
17,
7,
34345,
3712,
23839,
10100,
8,
198,
220,
220,
220,
1080,
796,
3440,
10057,
7,
34345,
8,
198,
220,
220,
220,
345,
796,
1080,
14692,
36981,
1,
4083,
8000,
198,
220,
220,
220,
264,
4910,
796,
1080,
14692,
36753,
1,
4083,
8000,
198,
220,
220,
220,
2219,
796,
717,
7,
3849,
8831,
7,
23743,
7,
5832,
828,
3397,
7,
82,
4910,
22305,
198,
220,
220,
220,
6795,
7,
5832,
8,
1343,
6795,
7,
82,
4910,
8,
532,
362,
1635,
6795,
7,
11321,
8,
198,
437,
198,
198,
31,
30493,
636,
17,
7203,
20688,
17,
13,
14116,
4943,
6624,
604,
198,
3911,
17,
7203,
15414,
13,
14116,
4943,
198
] | 2.491779 | 669 |
# Core types and definitions
if VERSION < v"0.5.0-dev"
macro pure(ex)
esc(ex)
end
else
using Base: @pure
end
const Symbols = Tuple{Symbol,Vararg{Symbol}}
@doc """
Type-stable axis-specific indexing and identification with a
parametric type.
### Type parameters
```julia
immutable Axis{name,T}
```
* `name` : the name of the axis, a Symbol
* `T` : the type of the axis
### Constructors
```julia
Axis{name}(I)
```
### Arguments
* `name` : the axis name Symbol or integer dimension
* `I` : the indexer, any indexing type that the axis supports
### Examples
Here is an example with a Dimensional axis representing a time
sequence along rows and a Categorical axis of Symbols for column
headers.
```julia
A = AxisArray(reshape(1:60, 12, 5), .1:.1:1.2, [:a, :b, :c, :d, :e])
A[Axis{:col}(2)] # grabs the second column
A[Axis{:col}(:b)] # Same as above, grabs column :b (the second column)
A[Axis{:row}(2)] # grabs the second row
A[Axis{2}(2:5)] # grabs the second through 5th columns
```
""" ->
immutable Axis{name,T}
val::T
end
# Constructed exclusively through Axis{:symbol}(...) or Axis{1}(...)
(::Type{Axis{name}}){name,T}(I::T=()) = Axis{name,T}(I)
Base.:(==){name}(A::Axis{name}, B::Axis{name}) = A.val == B.val
Base.hash{name}(A::Axis{name}, hx::UInt) = hash(A.val, hash(name, hx))
axistype{name,T}(::Axis{name,T}) = T
axistype{name,T}(::Type{Axis{name,T}}) = T
# Pass indexing and related functions straight through to the wrapped value
# TODO: should Axis be an AbstractArray? AbstractArray{T,0} for scalar T?
Base.getindex(A::Axis, i...) = A.val[i...]
Base.eltype{_,T}(::Type{Axis{_,T}}) = eltype(T)
Base.size(A::Axis) = size(A.val)
Base.endof(A::Axis) = length(A)
Base.indices(A::Axis) = indices(A.val)
Base.indices(A::Axis, d) = indices(A.val, d)
Base.length(A::Axis) = length(A.val)
(A::Axis{name}){name}(i) = Axis{name}(i)
Base.convert{name,T}(::Type{Axis{name,T}}, ax::Axis{name,T}) = ax
Base.convert{name,T}(::Type{Axis{name,T}}, ax::Axis{name}) = Axis{name}(convert(T, ax.val))
@doc """
An AxisArray is an AbstractArray that wraps another AbstractArray and
adds axis names and values to each array dimension. AxisArrays can be indexed
by using the named axes as an alternative to positional indexing by
dimension. Other advanced indexing along axis values are also provided.
### Type parameters
The AxisArray contains several type parameters:
```julia
immutable AxisArray{T,N,D,Ax} <: AbstractArray{T,N}
```
* `T` : the elemental type of the AbstractArray
* `N` : the number of dimensions
* `D` : the type of the wrapped AbstractArray
* `Ax` : the names and types of the axes, as a (specialized) NTuple{N, Axis}
### Constructors
```julia
AxisArray(A::AbstractArray, axes::Axis...)
AxisArray(A::AbstractArray, names::Symbol...)
AxisArray(A::AbstractArray, vectors::AbstractVector...)
AxisArray(A::AbstractArray, (names...,), (steps...,), [(offsets...,)])
```
### Arguments
* `A::AbstractArray` : the wrapped array data
* `axes` or `names` or `vectors` : dimensional information for the wrapped array
The dimensional information may be passed in one of three ways and is
entirely optional. When the axis name or value is missing for a
dimension, a default is substituted. The default axis names for
dimensions `(1, 2, 3, 4, 5, ...)` are `(:row, :col, :page, :dim_4,
:dim_5, ...)`. The default axis values are `indices(A, d)` for each
missing dimension `d`.
### Indexing
Indexing returns a view into the original data. The returned view is a
new AxisArray that wraps a SubArray. Indexing should be type
stable. Use `Axis{axisname}(idx)` to index based on a specific
axis. `axisname` is a Symbol specifying the axis to index/slice, and
`idx` is a normal indexing object (`Int`, `Array{Int,1}`, etc.) or a
custom indexing type for that particular type of axis.
Two main types of axes supported by default include:
* Categorical axis -- These are vectors of labels, normally Symbols or
strings. Elements or slices can be indexed by elements or vectors
of elements.
* Dimensional axis -- These are sorted vectors or iterators that can
be indexed by `ClosedInterval()`. These are commonly used for sequences of
times or date-times. For regular sample rates, ranges can be used.
User-defined axis types can be added along with custom indexing
behaviors. To add add a custom type as a Categorical or Dimensional
axis, add a trait using `AxisArrays.axistrait`. Here is the example of
adding a custom Dimensional axis:
```julia
AxisArrays.axistrait(v::MyCustomAxis) = AxisArrays.Dimensional
```
For more advanced indexing, you can define custom methods for
`AxisArrays.axisindexes`.
### Examples
Here is an example with a Dimensional axis representing a time
sequence along rows (it's a FloatRange) and a Categorical axis of
Symbols for column headers.
```julia
A = AxisArray(reshape(1:15, 5, 3), Axis{:time}(.1:.1:0.5), Axis{:col}([:a, :b, :c]))
A[Axis{:time}(1:3)] # equivalent to A[1:3,:]
A[Axis{:time}(ClosedInterval(.2,.4))] # restrict the AxisArray along the time axis
A[ClosedInterval(0.,.3), [:a, :c]] # select an interval and two columns
```
""" ->
immutable AxisArray{T,N,D,Ax} <: AbstractArray{T,N}
data::D # D <:AbstractArray, enforced in constructor to avoid dispatch bugs (https://github.com/JuliaLang/julia/issues/6383)
axes::Ax # Ax<:NTuple{N, Axis}, but with specialized Axis{...} types
(::Type{AxisArray{T,N,D,Ax}}){T,N,D,Ax}(data::AbstractArray{T,N}, axs::Tuple{Vararg{Axis,N}}) = new{T,N,D,Ax}(data, axs)
end
# Helper functions: Default axis names (if not provided)
_defaultdimname(i) = i == 1 ? (:row) : i == 2 ? (:col) : i == 3 ? (:page) : Symbol(:dim_, i)
# Why doesn't @pure work here?
@generated function _nextaxistype{M}(axs::NTuple{M,Axis})
name = _defaultdimname(M+1)
:(Axis{$(Expr(:quote, name))})
end
"""
default_axes(A::AbstractArray)
default_axes(A::AbstractArray, axs)
Return a tuple of Axis objects that appropriately index into the array A.
The optional second argument can take a tuple of vectors or axes, which will be
wrapped with the appropriate axis name, and it will ensure no axis goes beyond
the dimensionality of the array A.
"""
@inline default_axes(A::AbstractArray, args=indices(A)) = _default_axes(A, args, ())
_default_axes{T,N}(A::AbstractArray{T,N}, args::Tuple{}, axs::NTuple{N,Axis}) = axs
_default_axes{T,N}(A::AbstractArray{T,N}, args::Tuple{Any, Vararg{Any}}, axs::NTuple{N,Axis}) = throw(ArgumentError("too many axes provided"))
_default_axes{T,N}(A::AbstractArray{T,N}, args::Tuple{Axis, Vararg{Any}}, axs::NTuple{N,Axis}) = throw(ArgumentError("too many axes provided"))
@inline _default_axes{T,N}(A::AbstractArray{T,N}, args::Tuple{}, axs::Tuple) =
_default_axes(A, args, (axs..., _nextaxistype(axs)(indices(A, length(axs)+1))))
@inline _default_axes{T,N}(A::AbstractArray{T,N}, args::Tuple{Any, Vararg{Any}}, axs::Tuple) =
_default_axes(A, Base.tail(args), (axs..., _nextaxistype(axs)(args[1])))
@inline _default_axes{T,N}(A::AbstractArray{T,N}, args::Tuple{Axis, Vararg{Any}}, axs::Tuple) =
_default_axes(A, Base.tail(args), (axs..., args[1]))
# Axis consistency checks — ensure sizes match and the names are unique
@inline checksizes(axs, sz) =
(length(axs[1]) == sz[1]) & checksizes(tail(axs), tail(sz))
checksizes(::Tuple{}, sz) = true
@inline function checknames(name::Symbol, names...)
matches = false
for n in names
matches |= name == n
end
matches && throw(ArgumentError("axis name :$name is used more than once"))
checknames(names...)
end
checknames(name, names...) = throw(ArgumentError("the Axis names must be Symbols"))
checknames() = ()
# The primary AxisArray constructors — specify an array to wrap and the axes
AxisArray(A::AbstractArray, vects::Union{AbstractVector, Axis}...) = AxisArray(A, vects)
AxisArray(A::AbstractArray, vects::Tuple{Vararg{Union{AbstractVector, Axis}}}) = AxisArray(A, default_axes(A, vects))
function AxisArray{T,N}(A::AbstractArray{T,N}, axs::NTuple{N,Axis})
checksizes(axs, _size(A)) || throw(ArgumentError("the length of each axis must match the corresponding size of data"))
checknames(axisnames(axs...)...)
AxisArray{T,N,typeof(A),typeof(axs)}(A, axs)
end
# Simple non-type-stable constructors to specify names as symbols
AxisArray(A::AbstractArray) = AxisArray(A, ()) # Disambiguation
AxisArray(A::AbstractArray, names::Symbol...) = (inds = indices(A); AxisArray(A, ntuple(i->Axis{names[i]}(inds[i]), length(names))))
function AxisArray{T,N}(A::AbstractArray{T,N}, names::NTuple{N,Symbol}, steps::NTuple{N,Number}, offsets::NTuple{N,Number}=map(zero, steps))
axs = ntuple(i->Axis{names[i]}(range(offsets[i], steps[i], size(A,i))), N)
AxisArray(A, axs...)
end
# Traits
immutable HasAxes{B} end
HasAxes{A<:AxisArray}(::Type{A}) = HasAxes{true}()
HasAxes{A<:AbstractArray}(::Type{A}) = HasAxes{false}()
HasAxes(A::AbstractArray) = HasAxes(typeof(A))
# Axis definitions
@doc """
axisdim(::AxisArray, ::Axis) -> Int
axisdim(::AxisArray, ::Type{Axis}) -> Int
Given an AxisArray and an Axis, return the integer dimension of
the Axis within the array.
""" ->
axisdim(A::AxisArray, ax::Axis) = axisdim(A, typeof(ax))
@generated function axisdim{T<:Axis}(A::AxisArray, ax::Type{T})
dim = axisdim(A, T)
:($dim)
end
# The actual computation is done in the type domain, which is a little tricky
# due to type invariance.
axisdim{T,N,D,Ax,name,S}(A::Type{AxisArray{T,N,D,Ax}}, ::Type{Axis{name,S}}) = axisdim(A, Axis{name})
function axisdim{T,N,D,Ax,name}(::Type{AxisArray{T,N,D,Ax}}, ::Type{Axis{name}})
isa(name, Int) && return name <= N ? name : error("axis $name greater than array dimensionality $N")
names = axisnames(Ax)
idx = findfirst(names, name)
idx == 0 && error("axis $name not found in array axes $names")
idx
end
# Base definitions that aren't provided by AbstractArray
@inline Base.size(A::AxisArray) = size(A.data)
@inline Base.size(A::AxisArray, Ax::Axis) = size(A.data, axisdim(A, Ax))
@inline Base.size{Ax<:Axis}(A::AxisArray, ::Type{Ax}) = size(A.data, axisdim(A, Ax))
@inline Base.indices(A::AxisArray) = indices(A.data)
@inline Base.indices(A::AxisArray, Ax::Axis) = indices(A.data, axisdim(A, Ax))
@inline Base.indices{Ax<:Axis}(A::AxisArray, ::Type{Ax}) = indices(A.data, axisdim(A, Ax))
Base.convert{T,N}(::Type{Array{T,N}}, A::AxisArray{T,N}) = convert(Array{T,N}, A.data)
Base.parent(A::AxisArray) = A.data
# Similar is tricky. If we're just changing the element type, it can stay as an
# AxisArray. But if we're changing dimensions, there's no way it can know how
# to keep track of the axes, so just punt and return a regular old Array.
# TODO: would it feel more consistent to return an AxisArray without any axes?
Base.similar{S}(A::AxisArray, ::Type{S}) = (d = similar(A.data, S); AxisArray(d, A.axes))
Base.similar{S,N}(A::AxisArray, ::Type{S}, dims::Dims{N}) = similar(A.data, S, dims)
# If, however, we pass Axis objects containing the new axis for that dimension,
# we can return a similar AxisArray with an appropriately modified size
Base.similar{T}(A::AxisArray{T}, ax1::Axis, axs::Axis...) = similar(A, T, (ax1, axs...))
Base.similar{S}(A::AxisArray, ::Type{S}, ax1::Axis, axs::Axis...) = similar(A, S, (ax1, axs...))
@generated function Base.similar{T,S,N}(A::AxisArray{T,N}, ::Type{S}, axs::Tuple{Axis,Vararg{Axis}})
inds = Expr(:tuple)
ax = Expr(:tuple)
for d=1:N
push!(inds.args, :(indices(A, Axis{$d})))
push!(ax.args, :(axes(A, Axis{$d})))
end
to_delete = Int[]
for i=1:length(axs.parameters)
a = axs.parameters[i]
d = axisdim(A, a)
axistype(a) <: Tuple{} && push!(to_delete, d)
inds.args[d] = :(indices(axs[$i].val, 1))
ax.args[d] = :(axs[$i])
end
sort!(to_delete)
deleteat!(inds.args, to_delete)
deleteat!(ax.args, to_delete)
quote
d = similar(A.data, S, $inds)
AxisArray(d, $ax)
end
end
# These methods allow us to preserve the AxisArray under reductions
# Note that we only extend the following two methods, and then have it
# dispatch to package-local `reduced_indices` and `reduced_indices0`
# methods. This avoids a whole slew of ambiguities.
if VERSION == v"0.5.0"
Base.reduced_dims(A::AxisArray, region) = reduced_indices(axes(A), region)
Base.reduced_dims0(A::AxisArray, region) = reduced_indices0(axes(A), region)
else
Base.reduced_indices(A::AxisArray, region) = reduced_indices(axes(A), region)
Base.reduced_indices0(A::AxisArray, region) = reduced_indices0(axes(A), region)
end
reduced_indices{N}(axs::Tuple{Vararg{Axis,N}}, ::Tuple{}) = axs
reduced_indices0{N}(axs::Tuple{Vararg{Axis,N}}, ::Tuple{}) = axs
reduced_indices{N}(axs::Tuple{Vararg{Axis,N}}, region::Integer) =
reduced_indices(axs, (region,))
reduced_indices0{N}(axs::Tuple{Vararg{Axis,N}}, region::Integer) =
reduced_indices0(axs, (region,))
reduced_indices{N}(axs::Tuple{Vararg{Axis,N}}, region::Dims) =
map((ax,d)->d∈region ? reduced_axis(ax) : ax, axs, ntuple(identity, Val{N}))
reduced_indices0{N}(axs::Tuple{Vararg{Axis,N}}, region::Dims) =
map((ax,d)->d∈region ? reduced_axis0(ax) : ax, axs, ntuple(identity, Val{N}))
@inline reduced_indices{Ax<:Axis}(axs::Tuple{Vararg{Axis}}, region::Type{Ax}) =
_reduced_indices(reduced_axis, (), region, axs...)
@inline reduced_indices0{Ax<:Axis}(axs::Tuple{Vararg{Axis}}, region::Type{Ax}) =
_reduced_indices(reduced_axis0, (), region, axs...)
@inline reduced_indices(axs::Tuple{Vararg{Axis}}, region::Axis) =
_reduced_indices(reduced_axis, (), region, axs...)
@inline reduced_indices0(axs::Tuple{Vararg{Axis}}, region::Axis) =
_reduced_indices(reduced_axis0, (), region, axs...)
reduced_indices(axs::Tuple{Vararg{Axis}}, region::Tuple) =
reduced_indices(reduced_indices(axs, region[1]), tail(region))
reduced_indices(axs::Tuple{Vararg{Axis}}, region::Tuple{Vararg{Axis}}) =
reduced_indices(reduced_indices(axs, region[1]), tail(region))
reduced_indices0(axs::Tuple{Vararg{Axis}}, region::Tuple) =
reduced_indices0(reduced_indices0(axs, region[1]), tail(region))
reduced_indices0(axs::Tuple{Vararg{Axis}}, region::Tuple{Vararg{Axis}}) =
reduced_indices0(reduced_indices0(axs, region[1]), tail(region))
@pure samesym{n1,n2}(::Type{Axis{n1}}, ::Type{Axis{n2}}) = Val{n1==n2}()
samesym{n1,n2,T1,T2}(::Type{Axis{n1,T1}}, ::Type{Axis{n2,T2}}) = samesym(Axis{n1},Axis{n2})
samesym{n1,n2}(::Type{Axis{n1}}, ::Axis{n2}) = samesym(Axis{n1}, Axis{n2})
samesym{n1,n2}(::Axis{n1}, ::Type{Axis{n2}}) = samesym(Axis{n1}, Axis{n2})
samesym{n1,n2}(::Axis{n1}, ::Axis{n2}) = samesym(Axis{n1}, Axis{n2})
@inline _reduced_indices{Ax<:Axis}(f, out, chosen::Type{Ax}, ax::Axis, axs...) =
__reduced_indices(f, out, samesym(chosen, ax), chosen, ax, axs)
@inline _reduced_indices(f, out, chosen::Axis, ax::Axis, axs...) =
__reduced_indices(f, out, samesym(chosen, ax), chosen, ax, axs)
_reduced_indices(f, out, chosen) = out
@inline __reduced_indices(f, out, ::Val{true}, chosen, ax, axs) =
_reduced_indices(f, (out..., f(ax)), chosen, axs...)
@inline __reduced_indices(f, out, ::Val{false}, chosen, ax, axs) =
_reduced_indices(f, (out..., ax), chosen, axs...)
reduced_axis(ax) = ax(oftype(ax.val, Base.OneTo(1)))
reduced_axis0(ax) = ax(oftype(ax.val, length(ax.val) == 0 ? Base.OneTo(0) : Base.OneTo(1)))
function Base.permutedims(A::AxisArray, perm)
p = permutation(perm, axisnames(A))
AxisArray(permutedims(A.data, p), axes(A)[[p...]])
end
Base.transpose{T}(A::AxisArray{T,2}) = AxisArray(transpose(A.data), A.axes[2], A.axes[1])
Base.ctranspose{T}(A::AxisArray{T,2}) = AxisArray(ctranspose(A.data), A.axes[2], A.axes[1])
Base.transpose{T}(A::AxisArray{T,1}) = AxisArray(transpose(A.data), Axis{:transpose}(Base.OneTo(1)), A.axes[1])
Base.ctranspose{T}(A::AxisArray{T,1}) = AxisArray(ctranspose(A.data), Axis{:transpose}(Base.OneTo(1)), A.axes[1])
Base.map!{F}(f::F, A::AxisArray) = (map!(f, A.data); A)
Base.map(f, A::AxisArray) = AxisArray(map(f, A.data), A.axes...)
function Base.map!{F,T,N,D,Ax<:Tuple{Vararg{Axis}}}(f::F, dest::AxisArray{T,N,D,Ax},
As::AxisArray{T,N,D,Ax}...)
matchingdims((dest, As...)) || error("All axes must be identically-valued")
data = map(a -> a.data, As)
map!(f, dest.data, data...)
return dest
end
function Base.map{T,N,D,Ax<:Tuple{Vararg{Axis}}}(f, As::AxisArray{T,N,D,Ax}...)
matchingdims(As) || error("All axes must be identically-valued")
data = map(a -> a.data, As)
return AxisArray(map(f, data...), As[1].axes...)
end
permutation(to::Union{AbstractVector{Int},Tuple{Int,Vararg{Int}}}, from::Symbols) = to
"""
permutation(to, from) -> p
Calculate the permutation of labels in `from` to produce the order in
`to`. Any entries in `to` that are missing in `from` will receive an
index of 0. Any entries in `from` that are missing in `to` will have
their indices appended to the end of the permutation. Consequently,
the length of `p` is equal to the longer of `to` and `from`.
"""
function permutation(to::Symbols, from::Symbols)
n = length(to)
nf = length(from)
li = linearindices(from)
d = Dict(from[i]=>i for i in li)
covered = similar(dims->falses(length(li)), li)
ind = Array{Int}(max(n, nf))
for (i,toi) in enumerate(to)
j = get(d, toi, 0)
ind[i] = j
if j != 0
covered[j] = true
end
end
k = n
for i in li
if !covered[i]
d[from[i]] != i && throw(ArgumentError("$(from[i]) is a duplicated argument"))
k += 1
k > nf && throw(ArgumentError("no incomplete containment allowed in $to and $from"))
ind[k] = i
end
end
ind
end
function Base.squeeze(A::AxisArray, dims::Dims)
keepdims = setdiff(1:ndims(A), dims)
AxisArray(squeeze(A.data, dims), axes(A)[keepdims])
end
# This version is type-stable
function Base.squeeze{Ax<:Axis}(A::AxisArray, ::Type{Ax})
dim = axisdim(A, Ax)
AxisArray(squeeze(A.data, dim), dropax(Ax, axes(A)...))
end
@inline dropax(ax, ax1, axs...) = (ax1, dropax(ax, axs...)...)
@inline dropax{name}(ax::Axis{name}, ax1::Axis{name}, axs...) = dropax(ax, axs...)
@inline dropax{name}(ax::Type{Axis{name}}, ax1::Axis{name}, axs...) = dropax(ax, axs...)
@inline dropax{name,T}(ax::Type{Axis{name,T}}, ax1::Axis{name}, axs...) = dropax(ax, axs...)
dropax(ax) = ()
# A simple display method to include axis information. It might be nice to
# eventually display the axis labels alongside the data array, but that is
# much more difficult.
function summaryio(io::IO, A::AxisArray)
_summary(io, A)
for (name, val) in zip(axisnames(A), axisvalues(A))
print(io, " :$name, ")
show(IOContext(io, :limit=>true), val)
println(io)
end
print(io, "And data, a ", summary(A.data))
end
_summary{T,N}(io, A::AxisArray{T,N}) = println(io, "$N-dimensional AxisArray{$T,$N,...} with axes:")
function Base.summary(A::AxisArray)
io = IOBuffer()
summaryio(io, A)
String(io)
end
# Custom methods specific to AxisArrays
@doc """
axisnames(A::AxisArray) -> (Symbol...)
axisnames(::Type{AxisArray{...}}) -> (Symbol...)
axisnames(ax::Axis...) -> (Symbol...)
axisnames(::Type{Axis{...}}...) -> (Symbol...)
Returns the axis names of an AxisArray or list of Axises as a tuple of Symbols.
""" ->
axisnames{T,N,D,Ax}(::AxisArray{T,N,D,Ax}) = _axisnames(Ax)
axisnames{T,N,D,Ax}(::Type{AxisArray{T,N,D,Ax}}) = _axisnames(Ax)
axisnames{Ax<:Tuple{Vararg{Axis}}}(::Type{Ax}) = _axisnames(Ax)
@pure _axisnames(Ax) = axisnames(Ax.parameters...)
axisnames() = ()
@inline axisnames{name }(::Axis{name}, B::Axis...) = tuple(name, axisnames(B...)...)
@inline axisnames{name }(::Type{Axis{name}}, B::Type...) = tuple(name, axisnames(B...)...)
@inline axisnames{name,T}(::Type{Axis{name,T}}, B::Type...) = tuple(name, axisnames(B...)...)
axisname{name,T}(::Type{Axis{name,T}}) = name
axisname{name }(::Type{Axis{name }}) = name
axisname(ax::Axis) = axisname(typeof(ax))
@doc """
axisvalues(A::AxisArray) -> (AbstractVector...)
axisvalues(ax::Axis...) -> (AbstractVector...)
Returns the axis values of an AxisArray or list of Axises as a tuple of vectors.
""" ->
axisvalues(A::AxisArray) = axisvalues(A.axes...)
axisvalues() = ()
axisvalues(ax::Axis, axs::Axis...) = tuple(ax.val, axisvalues(axs...)...)
@doc """
axes(A::AxisArray) -> (Axis...)
axes(A::AxisArray, ax::Axis) -> Axis
axes(A::AxisArray, dim::Int) -> Axis
Returns the tuple of axis vectors for an AxisArray. If an specific `Axis` is
specified, then only that axis vector is returned. Note that when extracting a
single axis vector, `axes(A, Axis{1})`) is type-stable and will perform better
than `axes(A)[1]`.
For an AbstractArray without `Axis` information, `axes` returns the
default axes, i.e., those that would be produced by `AxisArray(A)`.
""" ->
axes(A::AxisArray) = A.axes
axes(A::AxisArray, dim::Int) = A.axes[dim]
axes(A::AxisArray, ax::Axis) = axes(A, typeof(ax))
@generated function axes{T<:Axis}(A::AxisArray, ax::Type{T})
dim = axisdim(A, T)
:(A.axes[$dim])
end
axes(A::AbstractArray) = default_axes(A)
axes(A::AbstractArray, dim::Int) = default_axes(A)[dim]
### Axis traits ###
@compat abstract type AxisTrait end
immutable Dimensional <: AxisTrait end
immutable Categorical <: AxisTrait end
immutable Unsupported <: AxisTrait end
axistrait(::Any) = Unsupported
axistrait(ax::Axis) = axistrait(ax.val)
axistrait{T<:Union{Number, Dates.AbstractTime}}(::AbstractVector{T}) = Dimensional
axistrait{T<:Union{Symbol, AbstractString}}(::AbstractVector{T}) = Categorical
checkaxis(ax::Axis) = checkaxis(ax.val)
checkaxis(ax) = checkaxis(axistrait(ax), ax)
checkaxis(::Type{Unsupported}, ax) = nothing # TODO: warn or error?
# Dimensional axes must be monotonically increasing
checkaxis(::Type{Dimensional}, ax) = issorted(ax) || throw(ArgumentError("Dimensional axes must be monotonically increasing"))
# Categorical axes must simply be unique
function checkaxis(::Type{Categorical}, ax)
seen = Set{eltype(ax)}()
for elt in ax
if elt in seen
throw(ArgumentError("Categorical axes must be unique"))
end
push!(seen, elt)
end
end
_length(A::AbstractArray) = length(linearindices(A))
_length(A) = length(A)
_size(A::AbstractArray) = map(length, indices(A))
_size(A) = size(A)
_size(A::AbstractArray, d) = length(indices(A, d))
_size(A, d) = size(A, d)
| [
2,
7231,
3858,
290,
17336,
198,
198,
361,
44156,
2849,
1279,
410,
1,
15,
13,
20,
13,
15,
12,
7959,
1,
198,
220,
220,
220,
15021,
5899,
7,
1069,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3671,
7,
1069,
8,
198,
220,
220,
220,
886,
198,
17772,
198,
220,
220,
220,
1262,
7308,
25,
2488,
37424,
198,
437,
198,
198,
9979,
41327,
10220,
796,
309,
29291,
90,
13940,
23650,
11,
19852,
853,
90,
13940,
23650,
11709,
198,
198,
31,
15390,
37227,
198,
6030,
12,
31284,
16488,
12,
11423,
6376,
278,
290,
11795,
351,
257,
198,
17143,
19482,
2099,
13,
198,
198,
21017,
5994,
10007,
198,
198,
15506,
63,
73,
43640,
198,
8608,
18187,
38349,
90,
3672,
11,
51,
92,
198,
15506,
63,
198,
9,
4600,
3672,
63,
1058,
262,
1438,
286,
262,
16488,
11,
257,
38357,
198,
9,
4600,
51,
63,
1058,
262,
2099,
286,
262,
16488,
198,
198,
21017,
28407,
669,
198,
198,
15506,
63,
73,
43640,
198,
31554,
271,
90,
3672,
92,
7,
40,
8,
198,
15506,
63,
198,
198,
21017,
20559,
2886,
198,
198,
9,
4600,
3672,
63,
1058,
262,
16488,
1438,
38357,
393,
18253,
15793,
198,
9,
4600,
40,
63,
1058,
262,
6376,
263,
11,
597,
6376,
278,
2099,
326,
262,
16488,
6971,
198,
198,
21017,
21066,
198,
198,
4342,
318,
281,
1672,
351,
257,
360,
16198,
16488,
10200,
257,
640,
198,
43167,
1863,
15274,
290,
257,
327,
2397,
12409,
16488,
286,
41327,
10220,
329,
5721,
198,
50145,
13,
198,
198,
15506,
63,
73,
43640,
198,
32,
796,
38349,
19182,
7,
3447,
1758,
7,
16,
25,
1899,
11,
1105,
11,
642,
828,
764,
16,
25,
13,
16,
25,
16,
13,
17,
11,
685,
25,
64,
11,
1058,
65,
11,
1058,
66,
11,
1058,
67,
11,
1058,
68,
12962,
198,
32,
58,
31554,
271,
90,
25,
4033,
92,
7,
17,
15437,
1303,
22378,
262,
1218,
5721,
198,
32,
58,
31554,
271,
90,
25,
4033,
92,
7,
25,
65,
15437,
1303,
16766,
355,
2029,
11,
22378,
5721,
1058,
65,
357,
1169,
1218,
5721,
8,
198,
32,
58,
31554,
271,
90,
25,
808,
92,
7,
17,
15437,
1303,
22378,
262,
1218,
5752,
198,
32,
58,
31554,
271,
90,
17,
92,
7,
17,
25,
20,
15437,
1303,
22378,
262,
1218,
832,
642,
400,
15180,
198,
15506,
63,
198,
198,
37811,
4613,
198,
8608,
18187,
38349,
90,
3672,
11,
51,
92,
198,
220,
220,
220,
1188,
3712,
51,
198,
437,
198,
2,
28407,
276,
11541,
832,
38349,
90,
25,
1837,
23650,
92,
7,
23029,
393,
38349,
90,
16,
92,
7,
23029,
198,
7,
3712,
6030,
90,
31554,
271,
90,
3672,
11709,
19953,
3672,
11,
51,
92,
7,
40,
3712,
51,
28,
28955,
796,
38349,
90,
3672,
11,
51,
92,
7,
40,
8,
198,
14881,
11207,
7,
855,
19953,
3672,
92,
7,
32,
3712,
31554,
271,
90,
3672,
5512,
347,
3712,
31554,
271,
90,
3672,
30072,
796,
317,
13,
2100,
6624,
347,
13,
2100,
198,
14881,
13,
17831,
90,
3672,
92,
7,
32,
3712,
31554,
271,
90,
3672,
5512,
289,
87,
3712,
52,
5317,
8,
796,
12234,
7,
32,
13,
2100,
11,
12234,
7,
3672,
11,
289,
87,
4008,
198,
897,
396,
2981,
90,
3672,
11,
51,
92,
7,
3712,
31554,
271,
90,
3672,
11,
51,
30072,
796,
309,
198,
897,
396,
2981,
90,
3672,
11,
51,
92,
7,
3712,
6030,
90,
31554,
271,
90,
3672,
11,
51,
11709,
8,
796,
309,
198,
2,
6251,
6376,
278,
290,
3519,
5499,
3892,
832,
284,
262,
12908,
1988,
198,
2,
16926,
46,
25,
815,
38349,
307,
281,
27741,
19182,
30,
27741,
19182,
90,
51,
11,
15,
92,
329,
16578,
283,
309,
30,
198,
14881,
13,
1136,
9630,
7,
32,
3712,
31554,
271,
11,
1312,
23029,
796,
317,
13,
2100,
58,
72,
22345,
198,
14881,
13,
417,
4906,
90,
62,
11,
51,
92,
7,
3712,
6030,
90,
31554,
271,
90,
62,
11,
51,
11709,
8,
796,
1288,
4906,
7,
51,
8,
198,
14881,
13,
7857,
7,
32,
3712,
31554,
271,
8,
796,
2546,
7,
32,
13,
2100,
8,
198,
14881,
13,
437,
1659,
7,
32,
3712,
31554,
271,
8,
796,
4129,
7,
32,
8,
198,
14881,
13,
521,
1063,
7,
32,
3712,
31554,
271,
8,
796,
36525,
7,
32,
13,
2100,
8,
198,
14881,
13,
521,
1063,
7,
32,
3712,
31554,
271,
11,
288,
8,
796,
36525,
7,
32,
13,
2100,
11,
288,
8,
198,
14881,
13,
13664,
7,
32,
3712,
31554,
271,
8,
796,
4129,
7,
32,
13,
2100,
8,
198,
7,
32,
3712,
31554,
271,
90,
3672,
92,
19953,
3672,
92,
7,
72,
8,
796,
38349,
90,
3672,
92,
7,
72,
8,
198,
14881,
13,
1102,
1851,
90,
3672,
11,
51,
92,
7,
3712,
6030,
90,
31554,
271,
90,
3672,
11,
51,
92,
5512,
7877,
3712,
31554,
271,
90,
3672,
11,
51,
30072,
796,
7877,
198,
14881,
13,
1102,
1851,
90,
3672,
11,
51,
92,
7,
3712,
6030,
90,
31554,
271,
90,
3672,
11,
51,
92,
5512,
7877,
3712,
31554,
271,
90,
3672,
30072,
796,
38349,
90,
3672,
92,
7,
1102,
1851,
7,
51,
11,
7877,
13,
2100,
4008,
198,
198,
31,
15390,
37227,
198,
2025,
38349,
19182,
318,
281,
27741,
19182,
326,
27521,
1194,
27741,
19182,
290,
198,
2860,
82,
16488,
3891,
290,
3815,
284,
1123,
7177,
15793,
13,
38349,
3163,
20477,
460,
307,
41497,
198,
1525,
1262,
262,
3706,
34197,
355,
281,
5559,
284,
45203,
6376,
278,
416,
198,
46156,
13,
3819,
6190,
6376,
278,
1863,
16488,
3815,
389,
635,
2810,
13,
198,
198,
21017,
5994,
10007,
198,
198,
464,
38349,
19182,
4909,
1811,
2099,
10007,
25,
198,
198,
15506,
63,
73,
43640,
198,
8608,
18187,
38349,
19182,
90,
51,
11,
45,
11,
35,
11,
31554,
92,
1279,
25,
27741,
19182,
90,
51,
11,
45,
92,
198,
15506,
63,
198,
9,
4600,
51,
63,
1058,
262,
25601,
2099,
286,
262,
27741,
19182,
198,
9,
4600,
45,
63,
1058,
262,
1271,
286,
15225,
198,
9,
4600,
35,
63,
1058,
262,
2099,
286,
262,
12908,
27741,
19182,
198,
9,
4600,
31554,
63,
1058,
262,
3891,
290,
3858,
286,
262,
34197,
11,
355,
257,
357,
20887,
1143,
8,
24563,
29291,
90,
45,
11,
38349,
92,
198,
198,
21017,
28407,
669,
198,
198,
15506,
63,
73,
43640,
198,
31554,
271,
19182,
7,
32,
3712,
23839,
19182,
11,
34197,
3712,
31554,
271,
23029,
198,
31554,
271,
19182,
7,
32,
3712,
23839,
19182,
11,
3891,
3712,
13940,
23650,
23029,
198,
31554,
271,
19182,
7,
32,
3712,
23839,
19182,
11,
30104,
3712,
23839,
38469,
23029,
198,
31554,
271,
19182,
7,
32,
3712,
23839,
19182,
11,
357,
14933,
986,
11,
828,
357,
20214,
986,
11,
828,
47527,
8210,
1039,
986,
35751,
12962,
198,
15506,
63,
198,
198,
21017,
20559,
2886,
198,
198,
9,
4600,
32,
3712,
23839,
19182,
63,
1058,
262,
12908,
7177,
1366,
198,
9,
4600,
897,
274,
63,
393,
4600,
14933,
63,
393,
4600,
303,
5217,
63,
1058,
38517,
1321,
329,
262,
12908,
7177,
198,
198,
464,
38517,
1321,
743,
307,
3804,
287,
530,
286,
1115,
2842,
290,
318,
198,
298,
557,
306,
11902,
13,
1649,
262,
16488,
1438,
393,
1988,
318,
4814,
329,
257,
198,
46156,
11,
257,
4277,
318,
31601,
13,
383,
4277,
16488,
3891,
329,
198,
27740,
5736,
4600,
7,
16,
11,
362,
11,
513,
11,
604,
11,
642,
11,
2644,
8,
63,
389,
4600,
7,
25,
808,
11,
1058,
4033,
11,
1058,
7700,
11,
1058,
27740,
62,
19,
11,
198,
25,
27740,
62,
20,
11,
2644,
8,
44646,
383,
4277,
16488,
3815,
389,
4600,
521,
1063,
7,
32,
11,
288,
8,
63,
329,
1123,
198,
45688,
15793,
4600,
67,
44646,
198,
198,
21017,
12901,
278,
198,
198,
15732,
278,
5860,
257,
1570,
656,
262,
2656,
1366,
13,
383,
4504,
1570,
318,
257,
198,
3605,
38349,
19182,
326,
27521,
257,
3834,
19182,
13,
12901,
278,
815,
307,
2099,
198,
31284,
13,
5765,
4600,
31554,
271,
90,
22704,
3672,
92,
7,
312,
87,
8,
63,
284,
6376,
1912,
319,
257,
2176,
198,
22704,
13,
4600,
22704,
3672,
63,
318,
257,
38357,
31577,
262,
16488,
284,
6376,
14,
48369,
11,
290,
198,
63,
312,
87,
63,
318,
257,
3487,
6376,
278,
2134,
357,
63,
5317,
47671,
4600,
19182,
90,
5317,
11,
16,
92,
47671,
3503,
2014,
393,
257,
198,
23144,
6376,
278,
2099,
329,
326,
1948,
2099,
286,
16488,
13,
198,
198,
7571,
1388,
3858,
286,
34197,
4855,
416,
4277,
2291,
25,
198,
198,
9,
327,
2397,
12409,
16488,
1377,
2312,
389,
30104,
286,
14722,
11,
7685,
41327,
10220,
393,
198,
220,
13042,
13,
26632,
393,
24314,
460,
307,
41497,
416,
4847,
393,
30104,
198,
220,
286,
4847,
13,
198,
198,
9,
360,
16198,
16488,
1377,
2312,
389,
23243,
30104,
393,
11629,
2024,
326,
460,
198,
220,
307,
41497,
416,
4600,
2601,
1335,
9492,
2100,
3419,
44646,
2312,
389,
8811,
973,
329,
16311,
286,
198,
220,
1661,
393,
3128,
12,
22355,
13,
1114,
3218,
6291,
3965,
11,
16069,
460,
307,
973,
13,
198,
198,
12982,
12,
23211,
16488,
3858,
460,
307,
2087,
1863,
351,
2183,
6376,
278,
198,
20709,
615,
12706,
13,
1675,
751,
751,
257,
2183,
2099,
355,
257,
327,
2397,
12409,
393,
360,
16198,
198,
22704,
11,
751,
257,
16708,
1262,
4600,
31554,
271,
3163,
20477,
13,
897,
396,
12907,
44646,
3423,
318,
262,
1672,
286,
198,
26872,
257,
2183,
360,
16198,
16488,
25,
198,
198,
15506,
63,
73,
43640,
198,
31554,
271,
3163,
20477,
13,
897,
396,
12907,
7,
85,
3712,
3666,
15022,
31554,
271,
8,
796,
38349,
3163,
20477,
13,
35,
16198,
198,
15506,
63,
198,
198,
1890,
517,
6190,
6376,
278,
11,
345,
460,
8160,
2183,
5050,
329,
198,
63,
31554,
271,
3163,
20477,
13,
22704,
9630,
274,
44646,
628,
198,
21017,
21066,
198,
198,
4342,
318,
281,
1672,
351,
257,
360,
16198,
16488,
10200,
257,
640,
198,
43167,
1863,
15274,
357,
270,
338,
257,
48436,
17257,
8,
290,
257,
327,
2397,
12409,
16488,
286,
198,
13940,
2022,
10220,
329,
5721,
24697,
13,
198,
198,
15506,
63,
73,
43640,
198,
32,
796,
38349,
19182,
7,
3447,
1758,
7,
16,
25,
1314,
11,
642,
11,
513,
828,
38349,
90,
25,
2435,
92,
7,
13,
16,
25,
13,
16,
25,
15,
13,
20,
828,
38349,
90,
25,
4033,
92,
26933,
25,
64,
11,
1058,
65,
11,
1058,
66,
60,
4008,
198,
32,
58,
31554,
271,
90,
25,
2435,
92,
7,
16,
25,
18,
15437,
220,
220,
1303,
7548,
284,
317,
58,
16,
25,
18,
11,
47715,
198,
32,
58,
31554,
271,
90,
25,
2435,
92,
7,
2601,
1335,
9492,
2100,
7,
13,
17,
38508,
19,
4008,
60,
1303,
4239,
262,
38349,
19182,
1863,
262,
640,
16488,
198,
32,
58,
2601,
1335,
9492,
2100,
7,
15,
1539,
13,
18,
828,
685,
25,
64,
11,
1058,
66,
11907,
220,
220,
1303,
2922,
281,
16654,
290,
734,
15180,
198,
15506,
63,
198,
198,
37811,
4613,
198,
8608,
18187,
38349,
19182,
90,
51,
11,
45,
11,
35,
11,
31554,
92,
1279,
25,
27741,
19182,
90,
51,
11,
45,
92,
198,
220,
220,
220,
1366,
3712,
35,
220,
1303,
360,
1279,
25,
23839,
19182,
11,
20326,
287,
23772,
284,
3368,
27965,
11316,
357,
5450,
1378,
12567,
13,
785,
14,
16980,
544,
43,
648,
14,
73,
43640,
14,
37165,
14,
21,
34741,
8,
198,
220,
220,
220,
34197,
3712,
31554,
1303,
12176,
27,
25,
11251,
29291,
90,
45,
11,
38349,
5512,
475,
351,
16976,
38349,
90,
986,
92,
3858,
198,
220,
220,
220,
357,
3712,
6030,
90,
31554,
271,
19182,
90,
51,
11,
45,
11,
35,
11,
31554,
11709,
19953,
51,
11,
45,
11,
35,
11,
31554,
92,
7,
7890,
3712,
23839,
19182,
90,
51,
11,
45,
5512,
7877,
82,
3712,
51,
29291,
90,
19852,
853,
90,
31554,
271,
11,
45,
11709,
8,
796,
649,
90,
51,
11,
45,
11,
35,
11,
31554,
92,
7,
7890,
11,
7877,
82,
8,
198,
437,
198,
198,
2,
5053,
525,
5499,
25,
15161,
16488,
3891,
357,
361,
407,
2810,
8,
198,
62,
12286,
27740,
3672,
7,
72,
8,
796,
1312,
6624,
352,
5633,
357,
25,
808,
8,
1058,
1312,
6624,
362,
5633,
357,
25,
4033,
8,
1058,
1312,
6624,
513,
5633,
357,
25,
7700,
8,
1058,
38357,
7,
25,
27740,
62,
11,
1312,
8,
198,
2,
4162,
1595,
470,
2488,
37424,
670,
994,
30,
198,
31,
27568,
2163,
4808,
19545,
897,
396,
2981,
90,
44,
92,
7,
897,
82,
3712,
11251,
29291,
90,
44,
11,
31554,
271,
30072,
198,
220,
220,
220,
1438,
796,
4808,
12286,
27740,
3672,
7,
44,
10,
16,
8,
198,
220,
220,
220,
36147,
31554,
271,
90,
3,
7,
3109,
1050,
7,
25,
22708,
11,
1438,
4008,
30072,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
4277,
62,
897,
274,
7,
32,
3712,
23839,
19182,
8,
198,
220,
220,
220,
4277,
62,
897,
274,
7,
32,
3712,
23839,
19182,
11,
7877,
82,
8,
198,
198,
13615,
257,
46545,
286,
38349,
5563,
326,
20431,
6376,
656,
262,
7177,
317,
13,
198,
198,
464,
11902,
1218,
4578,
460,
1011,
257,
46545,
286,
30104,
393,
34197,
11,
543,
481,
307,
198,
29988,
1496,
351,
262,
5035,
16488,
1438,
11,
290,
340,
481,
4155,
645,
16488,
2925,
3675,
198,
1169,
15793,
1483,
286,
262,
7177,
317,
13,
198,
37811,
198,
31,
45145,
4277,
62,
897,
274,
7,
32,
3712,
23839,
19182,
11,
26498,
28,
521,
1063,
7,
32,
4008,
796,
4808,
12286,
62,
897,
274,
7,
32,
11,
26498,
11,
32865,
198,
62,
12286,
62,
897,
274,
90,
51,
11,
45,
92,
7,
32,
3712,
23839,
19182,
90,
51,
11,
45,
5512,
26498,
3712,
51,
29291,
90,
5512,
7877,
82,
3712,
11251,
29291,
90,
45,
11,
31554,
271,
30072,
796,
7877,
82,
198,
62,
12286,
62,
897,
274,
90,
51,
11,
45,
92,
7,
32,
3712,
23839,
19182,
90,
51,
11,
45,
5512,
26498,
3712,
51,
29291,
90,
7149,
11,
12372,
853,
90,
7149,
92,
5512,
7877,
82,
3712,
11251,
29291,
90,
45,
11,
31554,
271,
30072,
796,
3714,
7,
28100,
1713,
12331,
7203,
18820,
867,
34197,
2810,
48774,
198,
62,
12286,
62,
897,
274,
90,
51,
11,
45,
92,
7,
32,
3712,
23839,
19182,
90,
51,
11,
45,
5512,
26498,
3712,
51,
29291,
90,
31554,
271,
11,
12372,
853,
90,
7149,
92,
5512,
7877,
82,
3712,
11251,
29291,
90,
45,
11,
31554,
271,
30072,
796,
3714,
7,
28100,
1713,
12331,
7203,
18820,
867,
34197,
2810,
48774,
198,
31,
45145,
4808,
12286,
62,
897,
274,
90,
51,
11,
45,
92,
7,
32,
3712,
23839,
19182,
90,
51,
11,
45,
5512,
26498,
3712,
51,
29291,
90,
5512,
7877,
82,
3712,
51,
29291,
8,
796,
198,
220,
220,
220,
4808,
12286,
62,
897,
274,
7,
32,
11,
26498,
11,
357,
897,
82,
986,
11,
4808,
19545,
897,
396,
2981,
7,
897,
82,
5769,
521,
1063,
7,
32,
11,
4129,
7,
897,
82,
47762,
16,
35514,
198,
31,
45145,
4808,
12286,
62,
897,
274,
90,
51,
11,
45,
92,
7,
32,
3712,
23839,
19182,
90,
51,
11,
45,
5512,
26498,
3712,
51,
29291,
90,
7149,
11,
12372,
853,
90,
7149,
92,
5512,
7877,
82,
3712,
51,
29291,
8,
796,
198,
220,
220,
220,
4808,
12286,
62,
897,
274,
7,
32,
11,
7308,
13,
13199,
7,
22046,
828,
357,
897,
82,
986,
11,
4808,
19545,
897,
396,
2981,
7,
897,
82,
5769,
22046,
58,
16,
60,
22305,
198,
31,
45145,
4808,
12286,
62,
897,
274,
90,
51,
11,
45,
92,
7,
32,
3712,
23839,
19182,
90,
51,
11,
45,
5512,
26498,
3712,
51,
29291,
90,
31554,
271,
11,
12372,
853,
90,
7149,
92,
5512,
7877,
82,
3712,
51,
29291,
8,
796,
198,
220,
220,
220,
4808,
12286,
62,
897,
274,
7,
32,
11,
7308,
13,
13199,
7,
22046,
828,
357,
897,
82,
986,
11,
26498,
58,
16,
60,
4008,
198,
198,
2,
38349,
15794,
8794,
851,
4155,
10620,
2872,
290,
262,
3891,
389,
3748,
198,
31,
45145,
8794,
4340,
7,
897,
82,
11,
264,
89,
8,
796,
198,
220,
220,
220,
357,
13664,
7,
897,
82,
58,
16,
12962,
6624,
264,
89,
58,
16,
12962,
1222,
8794,
4340,
7,
13199,
7,
897,
82,
828,
7894,
7,
82,
89,
4008,
198,
42116,
4340,
7,
3712,
51,
29291,
90,
5512,
264,
89,
8,
796,
2081,
198,
31,
45145,
2163,
2198,
14933,
7,
3672,
3712,
13940,
23650,
11,
3891,
23029,
198,
220,
220,
220,
7466,
796,
3991,
198,
220,
220,
220,
329,
299,
287,
3891,
198,
220,
220,
220,
220,
220,
220,
220,
7466,
930,
28,
1438,
6624,
299,
198,
220,
220,
220,
886,
198,
220,
220,
220,
7466,
11405,
3714,
7,
28100,
1713,
12331,
7203,
22704,
1438,
1058,
3,
3672,
318,
973,
517,
621,
1752,
48774,
198,
220,
220,
220,
2198,
14933,
7,
14933,
23029,
198,
437,
198,
9122,
14933,
7,
3672,
11,
3891,
23029,
796,
3714,
7,
28100,
1713,
12331,
7203,
1169,
38349,
3891,
1276,
307,
41327,
10220,
48774,
198,
9122,
14933,
3419,
796,
7499,
198,
198,
2,
383,
4165,
38349,
19182,
5678,
669,
851,
11986,
281,
7177,
284,
14441,
290,
262,
34197,
198,
31554,
271,
19182,
7,
32,
3712,
23839,
19182,
11,
1569,
310,
82,
3712,
38176,
90,
23839,
38469,
11,
38349,
92,
23029,
796,
38349,
19182,
7,
32,
11,
1569,
310,
82,
8,
198,
31554,
271,
19182,
7,
32,
3712,
23839,
19182,
11,
1569,
310,
82,
3712,
51,
29291,
90,
19852,
853,
90,
38176,
90,
23839,
38469,
11,
38349,
11709,
30072,
796,
38349,
19182,
7,
32,
11,
4277,
62,
897,
274,
7,
32,
11,
1569,
310,
82,
4008,
198,
8818,
38349,
19182,
90,
51,
11,
45,
92,
7,
32,
3712,
23839,
19182,
90,
51,
11,
45,
5512,
7877,
82,
3712,
11251,
29291,
90,
45,
11,
31554,
271,
30072,
198,
220,
220,
220,
8794,
4340,
7,
897,
82,
11,
4808,
7857,
7,
32,
4008,
8614,
3714,
7,
28100,
1713,
12331,
7203,
1169,
4129,
286,
1123,
16488,
1276,
2872,
262,
11188,
2546,
286,
1366,
48774,
198,
220,
220,
220,
2198,
14933,
7,
22704,
14933,
7,
897,
82,
23029,
23029,
198,
220,
220,
220,
38349,
19182,
90,
51,
11,
45,
11,
4906,
1659,
7,
32,
828,
4906,
1659,
7,
897,
82,
38165,
7,
32,
11,
7877,
82,
8,
198,
437,
198,
198,
2,
17427,
1729,
12,
4906,
12,
31284,
5678,
669,
284,
11986,
3891,
355,
14354,
198,
31554,
271,
19182,
7,
32,
3712,
23839,
19182,
8,
796,
38349,
19182,
7,
32,
11,
32865,
1303,
3167,
4131,
328,
2288,
198,
31554,
271,
19182,
7,
32,
3712,
23839,
19182,
11,
3891,
3712,
13940,
23650,
23029,
220,
220,
220,
220,
220,
220,
220,
220,
796,
357,
521,
82,
796,
36525,
7,
32,
1776,
38349,
19182,
7,
32,
11,
299,
83,
29291,
7,
72,
3784,
31554,
271,
90,
14933,
58,
72,
48999,
7,
521,
82,
58,
72,
46570,
4129,
7,
14933,
35514,
198,
8818,
38349,
19182,
90,
51,
11,
45,
92,
7,
32,
3712,
23839,
19182,
90,
51,
11,
45,
5512,
3891,
3712,
11251,
29291,
90,
45,
11,
13940,
23650,
5512,
4831,
3712,
11251,
29291,
90,
45,
11,
15057,
5512,
49005,
3712,
11251,
29291,
90,
45,
11,
15057,
92,
28,
8899,
7,
22570,
11,
4831,
4008,
198,
220,
220,
220,
7877,
82,
796,
299,
83,
29291,
7,
72,
3784,
31554,
271,
90,
14933,
58,
72,
48999,
7,
9521,
7,
8210,
1039,
58,
72,
4357,
4831,
58,
72,
4357,
2546,
7,
32,
11,
72,
4008,
828,
399,
8,
198,
220,
220,
220,
38349,
19182,
7,
32,
11,
7877,
82,
23029,
198,
437,
198,
198,
2,
4759,
896,
198,
8608,
18187,
7875,
31554,
274,
90,
33,
92,
886,
198,
19242,
31554,
274,
90,
32,
27,
25,
31554,
271,
19182,
92,
7,
3712,
6030,
90,
32,
30072,
796,
7875,
31554,
274,
90,
7942,
92,
3419,
198,
19242,
31554,
274,
90,
32,
27,
25,
23839,
19182,
92,
7,
3712,
6030,
90,
32,
30072,
796,
7875,
31554,
274,
90,
9562,
92,
3419,
198,
19242,
31554,
274,
7,
32,
3712,
23839,
19182,
8,
796,
7875,
31554,
274,
7,
4906,
1659,
7,
32,
4008,
198,
198,
2,
38349,
17336,
198,
31,
15390,
37227,
198,
220,
220,
220,
7877,
9409,
320,
7,
3712,
31554,
271,
19182,
11,
7904,
31554,
271,
8,
4613,
2558,
198,
220,
220,
220,
7877,
9409,
320,
7,
3712,
31554,
271,
19182,
11,
7904,
6030,
90,
31554,
271,
30072,
4613,
2558,
198,
198,
15056,
281,
38349,
19182,
290,
281,
38349,
11,
1441,
262,
18253,
15793,
286,
198,
1169,
38349,
1626,
262,
7177,
13,
198,
37811,
4613,
198,
897,
9409,
320,
7,
32,
3712,
31554,
271,
19182,
11,
7877,
3712,
31554,
271,
8,
796,
7877,
9409,
320,
7,
32,
11,
2099,
1659,
7,
897,
4008,
198,
31,
27568,
2163,
7877,
9409,
320,
90,
51,
27,
25,
31554,
271,
92,
7,
32,
3712,
31554,
271,
19182,
11,
7877,
3712,
6030,
90,
51,
30072,
198,
220,
220,
220,
5391,
796,
7877,
9409,
320,
7,
32,
11,
309,
8,
198,
220,
220,
220,
1058,
16763,
27740,
8,
198,
437,
198,
2,
383,
4036,
29964,
318,
1760,
287,
262,
2099,
7386,
11,
543,
318,
257,
1310,
17198,
198,
2,
2233,
284,
2099,
25275,
590,
13,
198,
897,
9409,
320,
90,
51,
11,
45,
11,
35,
11,
31554,
11,
3672,
11,
50,
92,
7,
32,
3712,
6030,
90,
31554,
271,
19182,
90,
51,
11,
45,
11,
35,
11,
31554,
92,
5512,
7904,
6030,
90,
31554,
271,
90,
3672,
11,
50,
11709,
8,
796,
7877,
9409,
320,
7,
32,
11,
38349,
90,
3672,
30072,
198,
8818,
7877,
9409,
320,
90,
51,
11,
45,
11,
35,
11,
31554,
11,
3672,
92,
7,
3712,
6030,
90,
31554,
271,
19182,
90,
51,
11,
45,
11,
35,
11,
31554,
92,
5512,
7904,
6030,
90,
31554,
271,
90,
3672,
11709,
8,
198,
220,
220,
220,
318,
64,
7,
3672,
11,
2558,
8,
11405,
1441,
1438,
19841,
399,
5633,
1438,
1058,
4049,
7203,
22704,
720,
3672,
3744,
621,
7177,
15793,
1483,
720,
45,
4943,
198,
220,
220,
220,
3891,
796,
16488,
14933,
7,
31554,
8,
198,
220,
220,
220,
4686,
87,
796,
1064,
11085,
7,
14933,
11,
1438,
8,
198,
220,
220,
220,
4686,
87,
6624,
657,
11405,
4049,
7203,
22704,
720,
3672,
407,
1043,
287,
7177,
34197,
720,
14933,
4943,
198,
220,
220,
220,
4686,
87,
198,
437,
198,
198,
2,
7308,
17336,
326,
3588,
470,
2810,
416,
27741,
19182,
198,
31,
45145,
7308,
13,
7857,
7,
32,
3712,
31554,
271,
19182,
8,
796,
2546,
7,
32,
13,
7890,
8,
198,
31,
45145,
7308,
13,
7857,
7,
32,
3712,
31554,
271,
19182,
11,
12176,
3712,
31554,
271,
8,
796,
2546,
7,
32,
13,
7890,
11,
7877,
9409,
320,
7,
32,
11,
12176,
4008,
198,
31,
45145,
7308,
13,
7857,
90,
31554,
27,
25,
31554,
271,
92,
7,
32,
3712,
31554,
271,
19182,
11,
7904,
6030,
90,
31554,
30072,
796,
2546,
7,
32,
13,
7890,
11,
7877,
9409,
320,
7,
32,
11,
12176,
4008,
198,
31,
45145,
7308,
13,
521,
1063,
7,
32,
3712,
31554,
271,
19182,
8,
796,
36525,
7,
32,
13,
7890,
8,
198,
31,
45145,
7308,
13,
521,
1063,
7,
32,
3712,
31554,
271,
19182,
11,
12176,
3712,
31554,
271,
8,
796,
36525,
7,
32,
13,
7890,
11,
7877,
9409,
320,
7,
32,
11,
12176,
4008,
198,
31,
45145,
7308,
13,
521,
1063,
90,
31554,
27,
25,
31554,
271,
92,
7,
32,
3712,
31554,
271,
19182,
11,
7904,
6030,
90,
31554,
30072,
796,
36525,
7,
32,
13,
7890,
11,
7877,
9409,
320,
7,
32,
11,
12176,
4008,
198,
14881,
13,
1102,
1851,
90,
51,
11,
45,
92,
7,
3712,
6030,
90,
19182,
90,
51,
11,
45,
92,
5512,
317,
3712,
31554,
271,
19182,
90,
51,
11,
45,
30072,
796,
10385,
7,
19182,
90,
51,
11,
45,
5512,
317,
13,
7890,
8,
198,
14881,
13,
8000,
7,
32,
3712,
31554,
271,
19182,
8,
796,
317,
13,
7890,
198,
2,
11014,
318,
17198,
13,
1002,
356,
821,
655,
5609,
262,
5002,
2099,
11,
340,
460,
2652,
355,
281,
198,
2,
38349,
19182,
13,
887,
611,
356,
821,
5609,
15225,
11,
612,
338,
645,
835,
340,
460,
760,
703,
198,
2,
284,
1394,
2610,
286,
262,
34197,
11,
523,
655,
35363,
290,
1441,
257,
3218,
1468,
15690,
13,
198,
2,
16926,
46,
25,
561,
340,
1254,
517,
6414,
284,
1441,
281,
38349,
19182,
1231,
597,
34197,
30,
198,
14881,
13,
38610,
90,
50,
92,
7,
32,
3712,
31554,
271,
19182,
11,
7904,
6030,
90,
50,
30072,
220,
220,
220,
220,
220,
220,
796,
357,
67,
796,
2092,
7,
32,
13,
7890,
11,
311,
1776,
38349,
19182,
7,
67,
11,
317,
13,
897,
274,
4008,
198,
14881,
13,
38610,
90,
50,
11,
45,
92,
7,
32,
3712,
31554,
271,
19182,
11,
7904,
6030,
90,
50,
5512,
5391,
82,
3712,
35,
12078,
90,
45,
30072,
796,
2092,
7,
32,
13,
7890,
11,
311,
11,
5391,
82,
8,
198,
2,
1002,
11,
2158,
11,
356,
1208,
38349,
5563,
7268,
262,
649,
16488,
329,
326,
15793,
11,
198,
2,
356,
460,
1441,
257,
2092,
38349,
19182,
351,
281,
20431,
9518,
2546,
198,
14881,
13,
38610,
90,
51,
92,
7,
32,
3712,
31554,
271,
19182,
90,
51,
5512,
7877,
16,
3712,
31554,
271,
11,
7877,
82,
3712,
31554,
271,
23029,
796,
2092,
7,
32,
11,
309,
11,
357,
897,
16,
11,
7877,
82,
986,
4008,
198,
14881,
13,
38610,
90,
50,
92,
7,
32,
3712,
31554,
271,
19182,
11,
7904,
6030,
90,
50,
5512,
7877,
16,
3712,
31554,
271,
11,
7877,
82,
3712,
31554,
271,
23029,
796,
2092,
7,
32,
11,
311,
11,
357,
897,
16,
11,
7877,
82,
986,
4008,
198,
31,
27568,
2163,
7308,
13,
38610,
90,
51,
11,
50,
11,
45,
92,
7,
32,
3712,
31554,
271,
19182,
90,
51,
11,
45,
5512,
7904,
6030,
90,
50,
5512,
7877,
82,
3712,
51,
29291,
90,
31554,
271,
11,
19852,
853,
90,
31554,
271,
11709,
8,
198,
220,
220,
220,
773,
82,
796,
1475,
1050,
7,
25,
83,
29291,
8,
198,
220,
220,
220,
7877,
796,
1475,
1050,
7,
25,
83,
29291,
8,
198,
220,
220,
220,
329,
288,
28,
16,
25,
45,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
521,
82,
13,
22046,
11,
36147,
521,
1063,
7,
32,
11,
38349,
90,
3,
67,
92,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
897,
13,
22046,
11,
36147,
897,
274,
7,
32,
11,
38349,
90,
3,
67,
92,
22305,
198,
220,
220,
220,
886,
198,
220,
220,
220,
284,
62,
33678,
796,
2558,
21737,
198,
220,
220,
220,
329,
1312,
28,
16,
25,
13664,
7,
897,
82,
13,
17143,
7307,
8,
198,
220,
220,
220,
220,
220,
220,
220,
257,
796,
7877,
82,
13,
17143,
7307,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
288,
796,
7877,
9409,
320,
7,
32,
11,
257,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7877,
396,
2981,
7,
64,
8,
1279,
25,
309,
29291,
90,
92,
11405,
4574,
0,
7,
1462,
62,
33678,
11,
288,
8,
198,
220,
220,
220,
220,
220,
220,
220,
773,
82,
13,
22046,
58,
67,
60,
796,
36147,
521,
1063,
7,
897,
82,
58,
3,
72,
4083,
2100,
11,
352,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
7877,
13,
22046,
58,
67,
60,
796,
36147,
897,
82,
58,
3,
72,
12962,
198,
220,
220,
220,
886,
198,
220,
220,
220,
3297,
0,
7,
1462,
62,
33678,
8,
198,
220,
220,
220,
12233,
265,
0,
7,
521,
82,
13,
22046,
11,
284,
62,
33678,
8,
198,
220,
220,
220,
12233,
265,
0,
7,
897,
13,
22046,
11,
284,
62,
33678,
8,
198,
220,
220,
220,
9577,
198,
220,
220,
220,
220,
220,
220,
220,
288,
796,
2092,
7,
32,
13,
7890,
11,
311,
11,
720,
521,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
38349,
19182,
7,
67,
11,
720,
897,
8,
198,
220,
220,
220,
886,
198,
437,
198,
198,
2,
2312,
5050,
1249,
514,
284,
12201,
262,
38349,
19182,
739,
20691,
198,
2,
5740,
326,
356,
691,
9117,
262,
1708,
734,
5050,
11,
290,
788,
423,
340,
198,
2,
27965,
284,
5301,
12,
12001,
4600,
445,
19513,
62,
521,
1063,
63,
290,
4600,
445,
19513,
62,
521,
1063,
15,
63,
198,
2,
5050,
13,
770,
30940,
257,
2187,
26891,
286,
18203,
84,
871,
13,
198,
361,
44156,
2849,
6624,
410,
1,
15,
13,
20,
13,
15,
1,
198,
220,
220,
220,
7308,
13,
445,
19513,
62,
67,
12078,
7,
32,
3712,
31554,
271,
19182,
11,
3814,
8,
220,
796,
5322,
62,
521,
1063,
7,
897,
274,
7,
32,
828,
3814,
8,
198,
220,
220,
220,
7308,
13,
445,
19513,
62,
67,
12078,
15,
7,
32,
3712,
31554,
271,
19182,
11,
3814,
8,
796,
5322,
62,
521,
1063,
15,
7,
897,
274,
7,
32,
828,
3814,
8,
198,
17772,
198,
220,
220,
220,
7308,
13,
445,
19513,
62,
521,
1063,
7,
32,
3712,
31554,
271,
19182,
11,
3814,
8,
220,
796,
5322,
62,
521,
1063,
7,
897,
274,
7,
32,
828,
3814,
8,
198,
220,
220,
220,
7308,
13,
445,
19513,
62,
521,
1063,
15,
7,
32,
3712,
31554,
271,
19182,
11,
3814,
8,
796,
5322,
62,
521,
1063,
15,
7,
897,
274,
7,
32,
828,
3814,
8,
198,
437,
198,
198,
445,
19513,
62,
521,
1063,
90,
45,
92,
7,
897,
82,
3712,
51,
29291,
90,
19852,
853,
90,
31554,
271,
11,
45,
92,
5512,
7904,
51,
29291,
90,
30072,
220,
796,
7877,
82,
198,
445,
19513,
62,
521,
1063,
15,
90,
45,
92,
7,
897,
82,
3712,
51,
29291,
90,
19852,
853,
90,
31554,
271,
11,
45,
92,
5512,
7904,
51,
29291,
90,
30072,
796,
7877,
82,
198,
445,
19513,
62,
521,
1063,
90,
45,
92,
7,
897,
82,
3712,
51,
29291,
90,
19852,
853,
90,
31554,
271,
11,
45,
92,
5512,
3814,
3712,
46541,
8,
796,
198,
220,
220,
220,
5322,
62,
521,
1063,
7,
897,
82,
11,
357,
36996,
11,
4008,
198,
445,
19513,
62,
521,
1063,
15,
90,
45,
92,
7,
897,
82,
3712,
51,
29291,
90,
19852,
853,
90,
31554,
271,
11,
45,
92,
5512,
3814,
3712,
46541,
8,
796,
198,
220,
220,
220,
5322,
62,
521,
1063,
15,
7,
897,
82,
11,
357,
36996,
11,
4008,
198,
198,
445,
19513,
62,
521,
1063,
90,
45,
92,
7,
897,
82,
3712,
51,
29291,
90,
19852,
853,
90,
31554,
271,
11,
45,
92,
5512,
3814,
3712,
35,
12078,
8,
796,
198,
220,
220,
220,
3975,
19510,
897,
11,
67,
8,
3784,
67,
24861,
230,
36996,
5633,
5322,
62,
22704,
7,
897,
8,
1058,
7877,
11,
7877,
82,
11,
299,
83,
29291,
7,
738,
414,
11,
3254,
90,
45,
92,
4008,
198,
445,
19513,
62,
521,
1063,
15,
90,
45,
92,
7,
897,
82,
3712,
51,
29291,
90,
19852,
853,
90,
31554,
271,
11,
45,
92,
5512,
3814,
3712,
35,
12078,
8,
796,
198,
220,
220,
220,
3975,
19510,
897,
11,
67,
8,
3784,
67,
24861,
230,
36996,
5633,
5322,
62,
22704,
15,
7,
897,
8,
1058,
7877,
11,
7877,
82,
11,
299,
83,
29291,
7,
738,
414,
11,
3254,
90,
45,
92,
4008,
198,
198,
31,
45145,
5322,
62,
521,
1063,
90,
31554,
27,
25,
31554,
271,
92,
7,
897,
82,
3712,
51,
29291,
90,
19852,
853,
90,
31554,
271,
92,
5512,
3814,
3712,
6030,
90,
31554,
30072,
796,
198,
220,
220,
220,
4808,
445,
19513,
62,
521,
1063,
7,
445,
19513,
62,
22704,
11,
29994,
3814,
11,
7877,
82,
23029,
198,
31,
45145,
5322,
62,
521,
1063,
15,
90,
31554,
27,
25,
31554,
271,
92,
7,
897,
82,
3712,
51,
29291,
90,
19852,
853,
90,
31554,
271,
92,
5512,
3814,
3712,
6030,
90,
31554,
30072,
796,
198,
220,
220,
220,
4808,
445,
19513,
62,
521,
1063,
7,
445,
19513,
62,
22704,
15,
11,
29994,
3814,
11,
7877,
82,
23029,
198,
31,
45145,
5322,
62,
521,
1063,
7,
897,
82,
3712,
51,
29291,
90,
19852,
853,
90,
31554,
271,
92,
5512,
3814,
3712,
31554,
271,
8,
796,
198,
220,
220,
220,
4808,
445,
19513,
62,
521,
1063,
7,
445,
19513,
62,
22704,
11,
29994,
3814,
11,
7877,
82,
23029,
198,
31,
45145,
5322,
62,
521,
1063,
15,
7,
897,
82,
3712,
51,
29291,
90,
19852,
853,
90,
31554,
271,
92,
5512,
3814,
3712,
31554,
271,
8,
796,
198,
220,
220,
220,
4808,
445,
19513,
62,
521,
1063,
7,
445,
19513,
62,
22704,
15,
11,
29994,
3814,
11,
7877,
82,
23029,
198,
198,
445,
19513,
62,
521,
1063,
7,
897,
82,
3712,
51,
29291,
90,
19852,
853,
90,
31554,
271,
92,
5512,
3814,
3712,
51,
29291,
8,
796,
198,
220,
220,
220,
5322,
62,
521,
1063,
7,
445,
19513,
62,
521,
1063,
7,
897,
82,
11,
3814,
58,
16,
46570,
7894,
7,
36996,
4008,
198,
445,
19513,
62,
521,
1063,
7,
897,
82,
3712,
51,
29291,
90,
19852,
853,
90,
31554,
271,
92,
5512,
3814,
3712,
51,
29291,
90,
19852,
853,
90,
31554,
271,
11709,
8,
796,
198,
220,
220,
220,
5322,
62,
521,
1063,
7,
445,
19513,
62,
521,
1063,
7,
897,
82,
11,
3814,
58,
16,
46570,
7894,
7,
36996,
4008,
198,
445,
19513,
62,
521,
1063,
15,
7,
897,
82,
3712,
51,
29291,
90,
19852,
853,
90,
31554,
271,
92,
5512,
3814,
3712,
51,
29291,
8,
796,
198,
220,
220,
220,
5322,
62,
521,
1063,
15,
7,
445,
19513,
62,
521,
1063,
15,
7,
897,
82,
11,
3814,
58,
16,
46570,
7894,
7,
36996,
4008,
198,
445,
19513,
62,
521,
1063,
15,
7,
897,
82,
3712,
51,
29291,
90,
19852,
853,
90,
31554,
271,
92,
5512,
3814,
3712,
51,
29291,
90,
19852,
853,
90,
31554,
271,
11709,
8,
796,
198,
220,
220,
220,
5322,
62,
521,
1063,
15,
7,
445,
19513,
62,
521,
1063,
15,
7,
897,
82,
11,
3814,
58,
16,
46570,
7894,
7,
36996,
4008,
198,
198,
31,
37424,
264,
1047,
4948,
90,
77,
16,
11,
77,
17,
92,
7,
3712,
6030,
90,
31554,
271,
90,
77,
16,
92,
5512,
7904,
6030,
90,
31554,
271,
90,
77,
17,
11709,
8,
796,
3254,
90,
77,
16,
855,
77,
17,
92,
3419,
198,
82,
1047,
4948,
90,
77,
16,
11,
77,
17,
11,
51,
16,
11,
51,
17,
92,
7,
3712,
6030,
90,
31554,
271,
90,
77,
16,
11,
51,
16,
92,
5512,
7904,
6030,
90,
31554,
271,
90,
77,
17,
11,
51,
17,
11709,
8,
796,
264,
1047,
4948,
7,
31554,
271,
90,
77,
16,
5512,
31554,
271,
90,
77,
17,
30072,
198,
82,
1047,
4948,
90,
77,
16,
11,
77,
17,
92,
7,
3712,
6030,
90,
31554,
271,
90,
77,
16,
92,
5512,
7904,
31554,
271,
90,
77,
17,
30072,
796,
264,
1047,
4948,
7,
31554,
271,
90,
77,
16,
5512,
38349,
90,
77,
17,
30072,
198,
82,
1047,
4948,
90,
77,
16,
11,
77,
17,
92,
7,
3712,
31554,
271,
90,
77,
16,
5512,
7904,
6030,
90,
31554,
271,
90,
77,
17,
11709,
8,
796,
264,
1047,
4948,
7,
31554,
271,
90,
77,
16,
5512,
38349,
90,
77,
17,
30072,
198,
82,
1047,
4948,
90,
77,
16,
11,
77,
17,
92,
7,
3712,
31554,
271,
90,
77,
16,
5512,
7904,
31554,
271,
90,
77,
17,
30072,
796,
264,
1047,
4948,
7,
31554,
271,
90,
77,
16,
5512,
38349,
90,
77,
17,
30072,
198,
198,
31,
45145,
4808,
445,
19513,
62,
521,
1063,
90,
31554,
27,
25,
31554,
271,
92,
7,
69,
11,
503,
11,
7147,
3712,
6030,
90,
31554,
5512,
7877,
3712,
31554,
271,
11,
7877,
82,
23029,
796,
198,
220,
220,
220,
11593,
445,
19513,
62,
521,
1063,
7,
69,
11,
503,
11,
264,
1047,
4948,
7,
354,
5233,
11,
7877,
828,
7147,
11,
7877,
11,
7877,
82,
8,
198,
31,
45145,
4808,
445,
19513,
62,
521,
1063,
7,
69,
11,
503,
11,
7147,
3712,
31554,
271,
11,
7877,
3712,
31554,
271,
11,
7877,
82,
23029,
796,
198,
220,
220,
220,
11593,
445,
19513,
62,
521,
1063,
7,
69,
11,
503,
11,
264,
1047,
4948,
7,
354,
5233,
11,
7877,
828,
7147,
11,
7877,
11,
7877,
82,
8,
198,
62,
445,
19513,
62,
521,
1063,
7,
69,
11,
503,
11,
7147,
8,
796,
503,
198,
198,
31,
45145,
11593,
445,
19513,
62,
521,
1063,
7,
69,
11,
503,
11,
7904,
7762,
90,
7942,
5512,
7147,
11,
7877,
11,
7877,
82,
8,
796,
198,
220,
220,
220,
4808,
445,
19513,
62,
521,
1063,
7,
69,
11,
357,
448,
986,
11,
277,
7,
897,
36911,
7147,
11,
7877,
82,
23029,
198,
31,
45145,
11593,
445,
19513,
62,
521,
1063,
7,
69,
11,
503,
11,
7904,
7762,
90,
9562,
5512,
7147,
11,
7877,
11,
7877,
82,
8,
796,
198,
220,
220,
220,
4808,
445,
19513,
62,
521,
1063,
7,
69,
11,
357,
448,
986,
11,
7877,
828,
7147,
11,
7877,
82,
23029,
198,
198,
445,
19513,
62,
22704,
7,
897,
8,
796,
7877,
7,
11205,
2981,
7,
897,
13,
2100,
11,
7308,
13,
3198,
2514,
7,
16,
22305,
198,
445,
19513,
62,
22704,
15,
7,
897,
8,
796,
7877,
7,
11205,
2981,
7,
897,
13,
2100,
11,
4129,
7,
897,
13,
2100,
8,
6624,
657,
5633,
7308,
13,
3198,
2514,
7,
15,
8,
1058,
7308,
13,
3198,
2514,
7,
16,
22305,
628,
198,
8818,
7308,
13,
16321,
7241,
12078,
7,
32,
3712,
31554,
271,
19182,
11,
9943,
8,
198,
220,
220,
220,
279,
796,
9943,
7094,
7,
16321,
11,
16488,
14933,
7,
32,
4008,
198,
220,
220,
220,
38349,
19182,
7,
16321,
7241,
12078,
7,
32,
13,
7890,
11,
279,
828,
34197,
7,
32,
8,
30109,
79,
986,
11907,
8,
198,
437,
198,
198,
14881,
13,
7645,
3455,
90,
51,
92,
7,
32,
3712,
31554,
271,
19182,
90,
51,
11,
17,
30072,
220,
796,
38349,
19182,
7,
7645,
3455,
7,
32,
13,
7890,
828,
317,
13,
897,
274,
58,
17,
4357,
317,
13,
897,
274,
58,
16,
12962,
198,
14881,
13,
24087,
504,
3455,
90,
51,
92,
7,
32,
3712,
31554,
271,
19182,
90,
51,
11,
17,
30072,
796,
38349,
19182,
7,
24087,
504,
3455,
7,
32,
13,
7890,
828,
317,
13,
897,
274,
58,
17,
4357,
317,
13,
897,
274,
58,
16,
12962,
198,
14881,
13,
7645,
3455,
90,
51,
92,
7,
32,
3712,
31554,
271,
19182,
90,
51,
11,
16,
30072,
220,
796,
38349,
19182,
7,
7645,
3455,
7,
32,
13,
7890,
828,
38349,
90,
25,
7645,
3455,
92,
7,
14881,
13,
3198,
2514,
7,
16,
36911,
317,
13,
897,
274,
58,
16,
12962,
198,
14881,
13,
24087,
504,
3455,
90,
51,
92,
7,
32,
3712,
31554,
271,
19182,
90,
51,
11,
16,
30072,
796,
38349,
19182,
7,
24087,
504,
3455,
7,
32,
13,
7890,
828,
38349,
90,
25,
7645,
3455,
92,
7,
14881,
13,
3198,
2514,
7,
16,
36911,
317,
13,
897,
274,
58,
16,
12962,
198,
198,
14881,
13,
8899,
0,
90,
37,
92,
7,
69,
3712,
37,
11,
317,
3712,
31554,
271,
19182,
8,
796,
357,
8899,
0,
7,
69,
11,
317,
13,
7890,
1776,
317,
8,
198,
14881,
13,
8899,
7,
69,
11,
317,
3712,
31554,
271,
19182,
8,
796,
38349,
19182,
7,
8899,
7,
69,
11,
317,
13,
7890,
828,
317,
13,
897,
274,
23029,
198,
198,
8818,
7308,
13,
8899,
0,
90,
37,
11,
51,
11,
45,
11,
35,
11,
31554,
27,
25,
51,
29291,
90,
19852,
853,
90,
31554,
271,
42535,
7,
69,
3712,
37,
11,
2244,
3712,
31554,
271,
19182,
90,
51,
11,
45,
11,
35,
11,
31554,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1081,
3712,
31554,
271,
19182,
90,
51,
11,
45,
11,
35,
11,
31554,
92,
23029,
198,
220,
220,
220,
12336,
67,
12078,
19510,
16520,
11,
1081,
986,
4008,
8614,
4049,
7203,
3237,
34197,
1276,
307,
1852,
1146,
12,
39728,
4943,
198,
220,
220,
220,
1366,
796,
3975,
7,
64,
4613,
257,
13,
7890,
11,
1081,
8,
198,
220,
220,
220,
3975,
0,
7,
69,
11,
2244,
13,
7890,
11,
1366,
23029,
198,
220,
220,
220,
1441,
2244,
198,
437,
198,
198,
8818,
7308,
13,
8899,
90,
51,
11,
45,
11,
35,
11,
31554,
27,
25,
51,
29291,
90,
19852,
853,
90,
31554,
271,
42535,
7,
69,
11,
1081,
3712,
31554,
271,
19182,
90,
51,
11,
45,
11,
35,
11,
31554,
92,
23029,
198,
220,
220,
220,
12336,
67,
12078,
7,
1722,
8,
8614,
4049,
7203,
3237,
34197,
1276,
307,
1852,
1146,
12,
39728,
4943,
198,
220,
220,
220,
1366,
796,
3975,
7,
64,
4613,
257,
13,
7890,
11,
1081,
8,
198,
220,
220,
220,
1441,
38349,
19182,
7,
8899,
7,
69,
11,
1366,
986,
828,
1081,
58,
16,
4083,
897,
274,
23029,
198,
437,
198,
198,
16321,
7094,
7,
1462,
3712,
38176,
90,
23839,
38469,
90,
5317,
5512,
51,
29291,
90,
5317,
11,
19852,
853,
90,
5317,
11709,
5512,
422,
3712,
13940,
2022,
10220,
8,
796,
284,
198,
198,
37811,
198,
220,
220,
220,
9943,
7094,
7,
1462,
11,
422,
8,
4613,
279,
198,
198,
9771,
3129,
378,
262,
9943,
7094,
286,
14722,
287,
4600,
6738,
63,
284,
4439,
262,
1502,
287,
198,
63,
1462,
44646,
4377,
12784,
287,
4600,
1462,
63,
326,
389,
4814,
287,
4600,
6738,
63,
481,
3328,
281,
198,
9630,
286,
657,
13,
4377,
12784,
287,
4600,
6738,
63,
326,
389,
4814,
287,
4600,
1462,
63,
481,
423,
198,
24571,
36525,
598,
1631,
284,
262,
886,
286,
262,
9943,
7094,
13,
24982,
11,
198,
1169,
4129,
286,
4600,
79,
63,
318,
4961,
284,
262,
2392,
286,
4600,
1462,
63,
290,
4600,
6738,
44646,
198,
37811,
198,
8818,
9943,
7094,
7,
1462,
3712,
13940,
2022,
10220,
11,
422,
3712,
13940,
2022,
10220,
8,
198,
220,
220,
220,
299,
796,
4129,
7,
1462,
8,
198,
220,
220,
220,
299,
69,
796,
4129,
7,
6738,
8,
198,
220,
220,
220,
7649,
796,
14174,
521,
1063,
7,
6738,
8,
198,
220,
220,
220,
288,
796,
360,
713,
7,
6738,
58,
72,
60,
14804,
72,
329,
1312,
287,
7649,
8,
198,
220,
220,
220,
5017,
796,
2092,
7,
67,
12078,
3784,
69,
874,
274,
7,
13664,
7,
4528,
36911,
7649,
8,
198,
220,
220,
220,
773,
796,
15690,
90,
5317,
92,
7,
9806,
7,
77,
11,
299,
69,
4008,
198,
220,
220,
220,
329,
357,
72,
11,
1462,
72,
8,
287,
27056,
378,
7,
1462,
8,
198,
220,
220,
220,
220,
220,
220,
220,
474,
796,
651,
7,
67,
11,
284,
72,
11,
657,
8,
198,
220,
220,
220,
220,
220,
220,
220,
773,
58,
72,
60,
796,
474,
198,
220,
220,
220,
220,
220,
220,
220,
611,
474,
14512,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5017,
58,
73,
60,
796,
2081,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
479,
796,
299,
198,
220,
220,
220,
329,
1312,
287,
7649,
198,
220,
220,
220,
220,
220,
220,
220,
611,
5145,
32111,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
58,
6738,
58,
72,
11907,
14512,
1312,
11405,
3714,
7,
28100,
1713,
12331,
7203,
3,
7,
6738,
58,
72,
12962,
318,
257,
14184,
3474,
4578,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
1875,
299,
69,
11405,
3714,
7,
28100,
1713,
12331,
7203,
3919,
17503,
37149,
3142,
287,
720,
1462,
290,
720,
6738,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
773,
58,
74,
60,
796,
1312,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
773,
198,
437,
198,
198,
8818,
7308,
13,
16485,
1453,
2736,
7,
32,
3712,
31554,
271,
19182,
11,
5391,
82,
3712,
35,
12078,
8,
198,
220,
220,
220,
1394,
67,
12078,
796,
900,
26069,
7,
16,
25,
358,
12078,
7,
32,
828,
5391,
82,
8,
198,
220,
220,
220,
38349,
19182,
7,
16485,
1453,
2736,
7,
32,
13,
7890,
11,
5391,
82,
828,
34197,
7,
32,
38381,
14894,
67,
12078,
12962,
198,
437,
198,
2,
770,
2196,
318,
2099,
12,
31284,
198,
8818,
7308,
13,
16485,
1453,
2736,
90,
31554,
27,
25,
31554,
271,
92,
7,
32,
3712,
31554,
271,
19182,
11,
7904,
6030,
90,
31554,
30072,
198,
220,
220,
220,
5391,
796,
7877,
9409,
320,
7,
32,
11,
12176,
8,
198,
220,
220,
220,
38349,
19182,
7,
16485,
1453,
2736,
7,
32,
13,
7890,
11,
5391,
828,
4268,
897,
7,
31554,
11,
34197,
7,
32,
26513,
4008,
198,
437,
198,
198,
31,
45145,
4268,
897,
7,
897,
11,
7877,
16,
11,
7877,
82,
23029,
796,
357,
897,
16,
11,
4268,
897,
7,
897,
11,
7877,
82,
23029,
23029,
198,
31,
45145,
4268,
897,
90,
3672,
92,
7,
897,
3712,
31554,
271,
90,
3672,
5512,
7877,
16,
3712,
31554,
271,
90,
3672,
5512,
7877,
82,
23029,
796,
4268,
897,
7,
897,
11,
7877,
82,
23029,
198,
31,
45145,
4268,
897,
90,
3672,
92,
7,
897,
3712,
6030,
90,
31554,
271,
90,
3672,
92,
5512,
7877,
16,
3712,
31554,
271,
90,
3672,
5512,
7877,
82,
23029,
796,
4268,
897,
7,
897,
11,
7877,
82,
23029,
198,
31,
45145,
4268,
897,
90,
3672,
11,
51,
92,
7,
897,
3712,
6030,
90,
31554,
271,
90,
3672,
11,
51,
92,
5512,
7877,
16,
3712,
31554,
271,
90,
3672,
5512,
7877,
82,
23029,
796,
4268,
897,
7,
897,
11,
7877,
82,
23029,
198,
14781,
897,
7,
897,
8,
796,
7499,
628,
198,
2,
317,
2829,
3359,
2446,
284,
2291,
16488,
1321,
13,
632,
1244,
307,
3621,
284,
198,
2,
4191,
3359,
262,
16488,
14722,
7848,
262,
1366,
7177,
11,
475,
326,
318,
198,
2,
881,
517,
2408,
13,
198,
8818,
10638,
952,
7,
952,
3712,
9399,
11,
317,
3712,
31554,
271,
19182,
8,
198,
220,
220,
220,
4808,
49736,
7,
952,
11,
317,
8,
198,
220,
220,
220,
329,
357,
3672,
11,
1188,
8,
287,
19974,
7,
22704,
14933,
7,
32,
828,
16488,
27160,
7,
32,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
952,
11,
366,
220,
220,
220,
1058,
3,
3672,
11,
366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
905,
7,
9399,
21947,
7,
952,
11,
1058,
32374,
14804,
7942,
828,
1188,
8,
198,
220,
220,
220,
220,
220,
220,
220,
44872,
7,
952,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
3601,
7,
952,
11,
366,
1870,
1366,
11,
257,
33172,
10638,
7,
32,
13,
7890,
4008,
198,
437,
198,
62,
49736,
90,
51,
11,
45,
92,
7,
952,
11,
317,
3712,
31554,
271,
19182,
90,
51,
11,
45,
30072,
796,
44872,
7,
952,
11,
17971,
45,
12,
19577,
38349,
19182,
90,
3,
51,
11,
3,
45,
42303,
92,
351,
34197,
25,
4943,
198,
198,
8818,
7308,
13,
49736,
7,
32,
3712,
31554,
271,
19182,
8,
198,
220,
220,
220,
33245,
796,
314,
9864,
13712,
3419,
198,
220,
220,
220,
10638,
952,
7,
952,
11,
317,
8,
198,
220,
220,
220,
10903,
7,
952,
8,
198,
437,
198,
198,
2,
8562,
5050,
2176,
284,
38349,
3163,
20477,
198,
31,
15390,
37227,
198,
220,
220,
220,
16488,
14933,
7,
32,
3712,
31554,
271,
19182,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4613,
357,
13940,
23650,
23029,
198,
220,
220,
220,
16488,
14933,
7,
3712,
6030,
90,
31554,
271,
19182,
90,
986,
11709,
8,
4613,
357,
13940,
23650,
23029,
198,
220,
220,
220,
16488,
14933,
7,
897,
3712,
31554,
271,
23029,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4613,
357,
13940,
23650,
23029,
198,
220,
220,
220,
16488,
14933,
7,
3712,
6030,
90,
31554,
271,
90,
986,
11709,
23029,
220,
220,
4613,
357,
13940,
23650,
23029,
198,
198,
35561,
262,
16488,
3891,
286,
281,
38349,
19182,
393,
1351,
286,
12176,
2696,
355,
257,
46545,
286,
41327,
10220,
13,
198,
37811,
4613,
198,
22704,
14933,
90,
51,
11,
45,
11,
35,
11,
31554,
92,
7,
3712,
31554,
271,
19182,
90,
51,
11,
45,
11,
35,
11,
31554,
30072,
220,
220,
220,
220,
220,
220,
796,
4808,
22704,
14933,
7,
31554,
8,
198,
22704,
14933,
90,
51,
11,
45,
11,
35,
11,
31554,
92,
7,
3712,
6030,
90,
31554,
271,
19182,
90,
51,
11,
45,
11,
35,
11,
31554,
11709,
8,
796,
4808,
22704,
14933,
7,
31554,
8,
198,
22704,
14933,
90,
31554,
27,
25,
51,
29291,
90,
19852,
853,
90,
31554,
271,
42535,
7,
3712,
6030,
90,
31554,
30072,
220,
220,
796,
4808,
22704,
14933,
7,
31554,
8,
198,
31,
37424,
4808,
22704,
14933,
7,
31554,
8,
796,
16488,
14933,
7,
31554,
13,
17143,
7307,
23029,
198,
22704,
14933,
3419,
796,
7499,
198,
31,
45145,
16488,
14933,
90,
3672,
220,
1782,
7,
3712,
31554,
271,
90,
3672,
5512,
220,
220,
220,
220,
220,
220,
220,
220,
347,
3712,
31554,
271,
23029,
796,
46545,
7,
3672,
11,
16488,
14933,
7,
33,
23029,
23029,
198,
31,
45145,
16488,
14933,
90,
3672,
220,
1782,
7,
3712,
6030,
90,
31554,
271,
90,
3672,
92,
5512,
220,
220,
347,
3712,
6030,
23029,
796,
46545,
7,
3672,
11,
16488,
14933,
7,
33,
23029,
23029,
198,
31,
45145,
16488,
14933,
90,
3672,
11,
51,
92,
7,
3712,
6030,
90,
31554,
271,
90,
3672,
11,
51,
92,
5512,
347,
3712,
6030,
23029,
796,
46545,
7,
3672,
11,
16488,
14933,
7,
33,
23029,
23029,
198,
198,
22704,
3672,
90,
3672,
11,
51,
92,
7,
3712,
6030,
90,
31554,
271,
90,
3672,
11,
51,
11709,
8,
796,
1438,
198,
22704,
3672,
90,
3672,
220,
1782,
7,
3712,
6030,
90,
31554,
271,
90,
3672,
220,
1782,
30072,
796,
1438,
198,
22704,
3672,
7,
897,
3712,
31554,
271,
8,
796,
16488,
3672,
7,
4906,
1659,
7,
897,
4008,
198,
198,
31,
15390,
37227,
198,
220,
220,
220,
16488,
27160,
7,
32,
3712,
31554,
271,
19182,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4613,
357,
23839,
38469,
23029,
198,
220,
220,
220,
16488,
27160,
7,
897,
3712,
31554,
271,
23029,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4613,
357,
23839,
38469,
23029,
198,
198,
35561,
262,
16488,
3815,
286,
281,
38349,
19182,
393,
1351,
286,
12176,
2696,
355,
257,
46545,
286,
30104,
13,
198,
37811,
4613,
198,
22704,
27160,
7,
32,
3712,
31554,
271,
19182,
8,
796,
16488,
27160,
7,
32,
13,
897,
274,
23029,
198,
22704,
27160,
3419,
796,
7499,
198,
22704,
27160,
7,
897,
3712,
31554,
271,
11,
7877,
82,
3712,
31554,
271,
23029,
796,
46545,
7,
897,
13,
2100,
11,
16488,
27160,
7,
897,
82,
23029,
23029,
198,
198,
31,
15390,
37227,
198,
220,
220,
220,
34197,
7,
32,
3712,
31554,
271,
19182,
8,
4613,
357,
31554,
271,
23029,
198,
220,
220,
220,
34197,
7,
32,
3712,
31554,
271,
19182,
11,
7877,
3712,
31554,
271,
8,
4613,
38349,
198,
220,
220,
220,
34197,
7,
32,
3712,
31554,
271,
19182,
11,
5391,
3712,
5317,
8,
4613,
38349,
198,
198,
35561,
262,
46545,
286,
16488,
30104,
329,
281,
38349,
19182,
13,
1002,
281,
2176,
4600,
31554,
271,
63,
318,
198,
23599,
11,
788,
691,
326,
16488,
15879,
318,
4504,
13,
220,
5740,
326,
618,
37895,
257,
198,
29762,
16488,
15879,
11,
4600,
897,
274,
7,
32,
11,
38349,
90,
16,
30072,
63,
8,
318,
2099,
12,
31284,
290,
481,
1620,
1365,
198,
14813,
4600,
897,
274,
7,
32,
38381,
16,
60,
44646,
198,
198,
1890,
281,
27741,
19182,
1231,
4600,
31554,
271,
63,
1321,
11,
4600,
897,
274,
63,
5860,
262,
198,
12286,
34197,
11,
1312,
13,
68,
1539,
883,
326,
561,
307,
4635,
416,
4600,
31554,
271,
19182,
7,
32,
8,
44646,
198,
37811,
4613,
198,
897,
274,
7,
32,
3712,
31554,
271,
19182,
8,
796,
317,
13,
897,
274,
198,
897,
274,
7,
32,
3712,
31554,
271,
19182,
11,
5391,
3712,
5317,
8,
796,
317,
13,
897,
274,
58,
27740,
60,
198,
897,
274,
7,
32,
3712,
31554,
271,
19182,
11,
7877,
3712,
31554,
271,
8,
796,
34197,
7,
32,
11,
2099,
1659,
7,
897,
4008,
198,
31,
27568,
2163,
34197,
90,
51,
27,
25,
31554,
271,
92,
7,
32,
3712,
31554,
271,
19182,
11,
7877,
3712,
6030,
90,
51,
30072,
198,
220,
220,
220,
5391,
796,
7877,
9409,
320,
7,
32,
11,
309,
8,
198,
220,
220,
220,
36147,
32,
13,
897,
274,
58,
3,
27740,
12962,
198,
437,
198,
897,
274,
7,
32,
3712,
23839,
19182,
8,
796,
4277,
62,
897,
274,
7,
32,
8,
198,
897,
274,
7,
32,
3712,
23839,
19182,
11,
5391,
3712,
5317,
8,
796,
4277,
62,
897,
274,
7,
32,
38381,
27740,
60,
198,
198,
21017,
38349,
12796,
44386,
198,
31,
5589,
265,
12531,
2099,
38349,
51,
12907,
886,
198,
8608,
18187,
360,
16198,
1279,
25,
38349,
51,
12907,
886,
198,
8608,
18187,
327,
2397,
12409,
1279,
25,
38349,
51,
12907,
886,
198,
8608,
18187,
791,
15999,
1279,
25,
38349,
51,
12907,
886,
198,
198,
897,
396,
12907,
7,
3712,
7149,
8,
796,
791,
15999,
198,
897,
396,
12907,
7,
897,
3712,
31554,
271,
8,
796,
7877,
396,
12907,
7,
897,
13,
2100,
8,
198,
897,
396,
12907,
90,
51,
27,
25,
38176,
90,
15057,
11,
44712,
13,
23839,
7575,
11709,
7,
3712,
23839,
38469,
90,
51,
30072,
796,
360,
16198,
198,
897,
396,
12907,
90,
51,
27,
25,
38176,
90,
13940,
23650,
11,
27741,
10100,
11709,
7,
3712,
23839,
38469,
90,
51,
30072,
796,
327,
2397,
12409,
198,
198,
9122,
22704,
7,
897,
3712,
31554,
271,
8,
796,
2198,
22704,
7,
897,
13,
2100,
8,
198,
9122,
22704,
7,
897,
8,
796,
2198,
22704,
7,
897,
396,
12907,
7,
897,
828,
7877,
8,
198,
9122,
22704,
7,
3712,
6030,
90,
3118,
15999,
5512,
7877,
8,
796,
2147,
1303,
16926,
46,
25,
9828,
393,
4049,
30,
198,
2,
360,
16198,
34197,
1276,
307,
937,
18970,
1146,
3649,
198,
9122,
22704,
7,
3712,
6030,
90,
35,
16198,
5512,
7877,
8,
796,
1189,
9741,
7,
897,
8,
8614,
3714,
7,
28100,
1713,
12331,
7203,
35,
16198,
34197,
1276,
307,
937,
18970,
1146,
3649,
48774,
198,
2,
327,
2397,
12409,
34197,
1276,
2391,
307,
3748,
198,
8818,
2198,
22704,
7,
3712,
6030,
90,
34,
2397,
12409,
5512,
7877,
8,
198,
220,
220,
220,
1775,
796,
5345,
90,
417,
4906,
7,
897,
38165,
3419,
198,
220,
220,
220,
329,
1288,
83,
287,
7877,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1288,
83,
287,
1775,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3714,
7,
28100,
1713,
12331,
7203,
34,
2397,
12409,
34197,
1276,
307,
3748,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
15898,
11,
1288,
83,
8,
198,
220,
220,
220,
886,
198,
437,
198,
198,
62,
13664,
7,
32,
3712,
23839,
19182,
8,
796,
4129,
7,
29127,
521,
1063,
7,
32,
4008,
198,
62,
13664,
7,
32,
8,
796,
4129,
7,
32,
8,
198,
62,
7857,
7,
32,
3712,
23839,
19182,
8,
796,
3975,
7,
13664,
11,
36525,
7,
32,
4008,
198,
62,
7857,
7,
32,
8,
796,
2546,
7,
32,
8,
198,
62,
7857,
7,
32,
3712,
23839,
19182,
11,
288,
8,
796,
4129,
7,
521,
1063,
7,
32,
11,
288,
4008,
198,
62,
7857,
7,
32,
11,
288,
8,
796,
2546,
7,
32,
11,
288,
8,
198
] | 2.475142 | 9,132 |
# This file is a part of BAT.jl, licensed under the MIT License (MIT).
using Test
Test.@testset "Package BAT" begin
include("utils/test_utils.jl")
include("rngs/test_rngs.jl")
include("distributions/test_distributions.jl")
include("parameters/test_parameters.jl")
include("statistics/test_statistics.jl")
include("densities/test_densities.jl")
include("samplers/test_samplers.jl")
include("io/test_io.jl")
include("plotting/test_plotting.jl")
end
| [
2,
770,
2393,
318,
257,
636,
286,
37421,
13,
20362,
11,
11971,
739,
262,
17168,
13789,
357,
36393,
737,
198,
198,
3500,
6208,
198,
198,
14402,
13,
31,
9288,
2617,
366,
27813,
37421,
1,
2221,
198,
220,
220,
220,
2291,
7203,
26791,
14,
9288,
62,
26791,
13,
20362,
4943,
198,
220,
220,
220,
2291,
7203,
81,
782,
82,
14,
9288,
62,
81,
782,
82,
13,
20362,
4943,
198,
220,
220,
220,
2291,
7203,
17080,
2455,
507,
14,
9288,
62,
17080,
2455,
507,
13,
20362,
4943,
198,
220,
220,
220,
2291,
7203,
17143,
7307,
14,
9288,
62,
17143,
7307,
13,
20362,
4943,
198,
220,
220,
220,
2291,
7203,
14269,
3969,
14,
9288,
62,
14269,
3969,
13,
20362,
4943,
198,
220,
220,
220,
2291,
7203,
67,
641,
871,
14,
9288,
62,
67,
641,
871,
13,
20362,
4943,
198,
220,
220,
220,
2291,
7203,
37687,
489,
364,
14,
9288,
62,
37687,
489,
364,
13,
20362,
4943,
198,
220,
220,
220,
2291,
7203,
952,
14,
9288,
62,
952,
13,
20362,
4943,
198,
220,
220,
220,
2291,
7203,
29487,
889,
14,
9288,
62,
29487,
889,
13,
20362,
4943,
198,
437,
198
] | 2.607527 | 186 |
# ---
# title: 23. Merge k Sorted Lists
# id: problem23
# author: Indigo
# date: 2021-04-14
# difficulty: Hard
# categories: Linked List, Divide and Conquer, Heap
# link: <https://leetcode.com/problems/merge-k-sorted-lists/description/>
# hidden: true
# ---
#
# You are given an array of `k` linked-lists `lists`, each linked-list is sorted
# in ascending order.
#
# _Merge all the linked-lists into one sorted linked-list and return it._
#
#
#
# **Example 1:**
#
#
#
# Input: lists = [[1,4,5],[1,3,4],[2,6]]
# Output: [1,1,2,3,4,4,5,6]
# Explanation: The linked-lists are:
# [
# 1->4->5,
# 1->3->4,
# 2->6
# ]
# merging them into one sorted list:
# 1->1->2->3->4->4->5->6
#
#
# **Example 2:**
#
#
#
# Input: lists = []
# Output: []
#
#
# **Example 3:**
#
#
#
# Input: lists = [[]]
# Output: []
#
#
#
#
# **Constraints:**
#
# * `k == lists.length`
# * `0 <= k <= 10^4`
# * `0 <= lists[i].length <= 500`
# * `-10^4 <= lists[i][j] <= 10^4`
# * `lists[i]` is sorted in **ascending order**.
# * The sum of `lists[i].length` won't exceed `10^4`.
#
#
## @lc code=start
using LeetCode
Base.isless(l1::ListNode, l2::ListNode) = l1.val < l2.val
function merge_k_lists(lists::Vector{T}) where {T<:Union{ListNode{Int},Nothing}}
pq = BinaryMinHeap{ListNode{Int}}()
for l in lists
isnothing(l) || push!(pq, l)
end
res = ListNode{Int}()
p = res
while !isempty(pq)
tp_list = pop!(pq)
p = p.next = tp_list
tp_list = tp_list.next
isnothing(tp_list) || push!(pq, tp_list)
end
return res.next
end
## @lc code=end
| [
2,
11420,
198,
2,
3670,
25,
2242,
13,
39407,
479,
311,
9741,
44968,
198,
2,
4686,
25,
1917,
1954,
198,
2,
1772,
25,
40673,
198,
2,
3128,
25,
33448,
12,
3023,
12,
1415,
198,
2,
8722,
25,
6912,
198,
2,
9376,
25,
7502,
276,
7343,
11,
46894,
290,
40963,
11,
679,
499,
198,
2,
2792,
25,
1279,
5450,
1378,
293,
316,
8189,
13,
785,
14,
1676,
22143,
14,
647,
469,
12,
74,
12,
82,
9741,
12,
20713,
14,
11213,
15913,
198,
2,
7104,
25,
2081,
198,
2,
11420,
198,
2,
220,
198,
2,
921,
389,
1813,
281,
7177,
286,
4600,
74,
63,
6692,
12,
20713,
4600,
20713,
47671,
1123,
6692,
12,
4868,
318,
23243,
198,
2,
287,
41988,
1502,
13,
198,
2,
220,
198,
2,
4808,
13102,
469,
477,
262,
6692,
12,
20713,
656,
530,
23243,
6692,
12,
4868,
290,
1441,
340,
13557,
198,
2,
220,
198,
2,
220,
198,
2,
220,
198,
2,
12429,
16281,
352,
25,
1174,
198,
2,
220,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
220,
220,
220,
23412,
25,
8341,
796,
16410,
16,
11,
19,
11,
20,
38430,
16,
11,
18,
11,
19,
38430,
17,
11,
21,
11907,
198,
2,
220,
220,
220,
220,
25235,
25,
685,
16,
11,
16,
11,
17,
11,
18,
11,
19,
11,
19,
11,
20,
11,
21,
60,
198,
2,
220,
220,
220,
220,
50125,
341,
25,
383,
6692,
12,
20713,
389,
25,
198,
2,
220,
220,
220,
220,
685,
198,
2,
220,
220,
220,
220,
220,
220,
352,
3784,
19,
3784,
20,
11,
198,
2,
220,
220,
220,
220,
220,
220,
352,
3784,
18,
3784,
19,
11,
198,
2,
220,
220,
220,
220,
220,
220,
362,
3784,
21,
198,
2,
220,
220,
220,
220,
2361,
198,
2,
220,
220,
220,
220,
35981,
606,
656,
530,
23243,
1351,
25,
198,
2,
220,
220,
220,
220,
352,
3784,
16,
3784,
17,
3784,
18,
3784,
19,
3784,
19,
3784,
20,
3784,
21,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
198,
2,
12429,
16281,
362,
25,
1174,
198,
2,
220,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
220,
220,
220,
23412,
25,
8341,
796,
17635,
198,
2,
220,
220,
220,
220,
25235,
25,
17635,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
198,
2,
12429,
16281,
513,
25,
1174,
198,
2,
220,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
220,
220,
220,
23412,
25,
8341,
796,
16410,
11907,
198,
2,
220,
220,
220,
220,
25235,
25,
17635,
198,
2,
220,
220,
220,
220,
220,
198,
2,
220,
198,
2,
220,
198,
2,
220,
198,
2,
12429,
3103,
2536,
6003,
25,
1174,
198,
2,
220,
198,
2,
220,
220,
1635,
4600,
74,
6624,
8341,
13,
13664,
63,
198,
2,
220,
220,
1635,
4600,
15,
19841,
479,
19841,
838,
61,
19,
63,
198,
2,
220,
220,
1635,
4600,
15,
19841,
8341,
58,
72,
4083,
13664,
19841,
5323,
63,
198,
2,
220,
220,
1635,
4600,
12,
940,
61,
19,
19841,
8341,
58,
72,
7131,
73,
60,
19841,
838,
61,
19,
63,
198,
2,
220,
220,
1635,
4600,
20713,
58,
72,
60,
63,
318,
23243,
287,
12429,
3372,
1571,
1502,
1174,
13,
198,
2,
220,
220,
1635,
383,
2160,
286,
4600,
20713,
58,
72,
4083,
13664,
63,
1839,
470,
7074,
4600,
940,
61,
19,
44646,
198,
2,
220,
198,
2,
220,
198,
2235,
2488,
44601,
2438,
28,
9688,
198,
3500,
1004,
316,
10669,
198,
198,
14881,
13,
271,
1203,
7,
75,
16,
3712,
8053,
19667,
11,
300,
17,
3712,
8053,
19667,
8,
796,
300,
16,
13,
2100,
1279,
300,
17,
13,
2100,
198,
198,
8818,
20121,
62,
74,
62,
20713,
7,
20713,
3712,
38469,
90,
51,
30072,
810,
1391,
51,
27,
25,
38176,
90,
8053,
19667,
90,
5317,
5512,
18465,
11709,
198,
220,
220,
220,
279,
80,
796,
45755,
9452,
1544,
499,
90,
8053,
19667,
90,
5317,
11709,
3419,
198,
220,
220,
220,
329,
300,
287,
8341,
198,
220,
220,
220,
220,
220,
220,
220,
318,
22366,
7,
75,
8,
8614,
4574,
0,
7,
79,
80,
11,
300,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
581,
796,
7343,
19667,
90,
5317,
92,
3419,
198,
220,
220,
220,
279,
796,
581,
198,
220,
220,
220,
981,
5145,
271,
28920,
7,
79,
80,
8,
198,
220,
220,
220,
220,
220,
220,
220,
256,
79,
62,
4868,
796,
1461,
0,
7,
79,
80,
8,
198,
220,
220,
220,
220,
220,
220,
220,
279,
796,
279,
13,
19545,
796,
256,
79,
62,
4868,
198,
220,
220,
220,
220,
220,
220,
220,
256,
79,
62,
4868,
796,
256,
79,
62,
4868,
13,
19545,
198,
220,
220,
220,
220,
220,
220,
220,
318,
22366,
7,
34788,
62,
4868,
8,
8614,
4574,
0,
7,
79,
80,
11,
256,
79,
62,
4868,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
581,
13,
19545,
198,
437,
198,
2235,
2488,
44601,
2438,
28,
437,
198
] | 2.029797 | 839 |
using Plots
using FFTW
tan_taylor(x) = x+( x^3/3 )+( x^5*2/15.0 )+( x^7*17/315.0 )+( x^9*62/2835.0 )+( x^11*1382/155925.0 )+( x^13*21844/6081075.0 )+( x^15*929569/638512875.0 );
x = LinRange(-π/2+0.1, π/2-0.1, 1001);
tanx_taylor = tan_taylor.(x);
tanx_native = tan.(x);
delta = tanx_native-tanx_taylor
# Time domain comparison.
plot( x, tanx_native,
label = "Julia native tan",
size = (1024, 720),)
plot!( x, tanx_taylor,
label = "8-term Taylor series",)
savefig("figures/tan/time_domain") | [
3500,
1345,
1747,
198,
3500,
376,
9792,
54,
198,
198,
38006,
62,
83,
7167,
7,
87,
8,
796,
2124,
33747,
2124,
61,
18,
14,
18,
1267,
33747,
2124,
61,
20,
9,
17,
14,
1314,
13,
15,
1267,
33747,
2124,
61,
22,
9,
1558,
14,
27936,
13,
15,
1267,
33747,
2124,
61,
24,
9,
5237,
14,
2078,
2327,
13,
15,
1267,
33747,
2124,
61,
1157,
9,
1485,
6469,
14,
1314,
3270,
1495,
13,
15,
1267,
33747,
2124,
61,
1485,
9,
28727,
2598,
14,
28688,
940,
2425,
13,
15,
1267,
33747,
2124,
61,
1314,
9,
24,
25710,
3388,
14,
21,
27203,
12762,
2425,
13,
15,
5619,
198,
198,
87,
796,
5164,
17257,
32590,
46582,
14,
17,
10,
15,
13,
16,
11,
18074,
222,
14,
17,
12,
15,
13,
16,
11,
1802,
16,
1776,
198,
198,
38006,
87,
62,
83,
7167,
796,
25706,
62,
83,
7167,
12195,
87,
1776,
198,
38006,
87,
62,
30191,
796,
25706,
12195,
87,
1776,
198,
198,
67,
12514,
796,
25706,
87,
62,
30191,
12,
38006,
87,
62,
83,
7167,
198,
198,
2,
3862,
7386,
7208,
13,
198,
29487,
7,
220,
197,
87,
11,
25706,
87,
62,
30191,
11,
198,
197,
220,
197,
18242,
796,
366,
16980,
544,
6868,
25706,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
2546,
796,
357,
35500,
11,
26250,
828,
8,
198,
29487,
0,
7,
220,
197,
87,
11,
25706,
87,
62,
83,
7167,
11,
198,
197,
220,
197,
18242,
796,
366,
23,
12,
4354,
8121,
2168,
1600,
8,
198,
198,
21928,
5647,
7203,
5647,
942,
14,
38006,
14,
2435,
62,
27830,
4943
] | 1.965385 | 260 |
module Separators
using Genie, Stipple, StippleUI, StippleUI.API
import Genie.Renderer.Html: HTMLString, normal_element, template
export separator
function __init__()
Genie.Renderer.Html.register_normal_element("q__separator", context = Genie.Renderer.Html)
end
function separator(args...; wrap::Function = StippleUI.DEFAULT_WRAPPER, kwargs...)
wrap() do
Genie.Renderer.Html.q__separator(args...; kwargs...)
end
end
end
| [
21412,
8621,
283,
2024,
198,
198,
3500,
49405,
11,
520,
18793,
11,
520,
18793,
10080,
11,
520,
18793,
10080,
13,
17614,
198,
11748,
49405,
13,
49,
437,
11882,
13,
39,
20369,
25,
11532,
10100,
11,
3487,
62,
30854,
11,
11055,
198,
198,
39344,
2880,
1352,
198,
198,
8818,
11593,
15003,
834,
3419,
198,
220,
49405,
13,
49,
437,
11882,
13,
39,
20369,
13,
30238,
62,
11265,
62,
30854,
7203,
80,
834,
25512,
1352,
1600,
4732,
796,
49405,
13,
49,
437,
11882,
13,
39,
20369,
8,
198,
437,
198,
198,
8818,
2880,
1352,
7,
22046,
986,
26,
14441,
3712,
22203,
796,
520,
18793,
10080,
13,
7206,
38865,
62,
18564,
2969,
18973,
11,
479,
86,
22046,
23029,
198,
220,
14441,
3419,
466,
198,
220,
220,
220,
49405,
13,
49,
437,
11882,
13,
39,
20369,
13,
80,
834,
25512,
1352,
7,
22046,
986,
26,
479,
86,
22046,
23029,
198,
220,
886,
198,
437,
198,
198,
437,
198
] | 2.824675 | 154 |
module PostgreSQLLoader
using Octo.Repo: ExecuteResult
# https://github.com/invenia/LibPQ.jl
using LibPQ # v0.9.1
using .LibPQ.Tables
const current = Dict{Symbol, Any}(
:conn => nothing,
)
current_conn() = current[:conn]
# db_connect
function db_connect(; kwargs...)
if !isempty(kwargs)
str = join(map(kv->join(kv, '='), collect(kwargs)), ' ')
conn = LibPQ.Connection(str)
current[:conn] = conn
end
end
# db_disconnect
function db_disconnect()
conn = current_conn()
close(conn)
current[:conn] = nothing
end
# query
function query(sql::String)
conn = current_conn()
stmt = LibPQ.prepare(conn, sql)
result = LibPQ.execute(stmt)
df = Tables.rowtable(result)
LibPQ.close(result)
df
end
function query(prepared::String, vals::Vector)
conn = current_conn()
stmt = LibPQ.prepare(conn, prepared)
result = LibPQ.execute(stmt, vals)
df = Tables.rowtable(result)
LibPQ.close(result)
df
end
# execute
function execute(sql::String)::ExecuteResult
conn = current_conn()
LibPQ.execute(conn, sql)
ExecuteResult()
end
function execute(prepared::String, vals::Vector)::ExecuteResult
conn = current_conn()
stmt = LibPQ.prepare(conn, prepared)
LibPQ.execute(stmt, vals)
ExecuteResult()
end
function execute(prepared::String, nts::Vector{<:NamedTuple})::ExecuteResult
conn = current_conn()
stmt = LibPQ.prepare(conn, prepared)
for tup in nts
LibPQ.execute(stmt, collect(tup))
end
ExecuteResult()
end
end # module Octo.Backends.PostgreSQLLoader
| [
21412,
2947,
16694,
50,
48,
3069,
1170,
263,
198,
198,
3500,
2556,
78,
13,
6207,
78,
25,
8393,
1133,
23004,
198,
198,
2,
3740,
1378,
12567,
13,
785,
14,
259,
574,
544,
14,
25835,
47,
48,
13,
20362,
198,
3500,
7980,
47,
48,
1303,
410,
15,
13,
24,
13,
16,
198,
3500,
764,
25835,
47,
48,
13,
51,
2977,
198,
198,
9979,
1459,
796,
360,
713,
90,
13940,
23650,
11,
4377,
92,
7,
198,
220,
220,
220,
1058,
37043,
5218,
2147,
11,
198,
8,
198,
198,
14421,
62,
37043,
3419,
796,
1459,
58,
25,
37043,
60,
198,
198,
2,
20613,
62,
8443,
198,
8818,
20613,
62,
8443,
7,
26,
479,
86,
22046,
23029,
198,
220,
220,
220,
611,
5145,
271,
28920,
7,
46265,
22046,
8,
198,
220,
220,
220,
220,
220,
220,
220,
965,
796,
4654,
7,
8899,
7,
74,
85,
3784,
22179,
7,
74,
85,
11,
705,
11639,
828,
2824,
7,
46265,
22046,
36911,
705,
705,
8,
198,
220,
220,
220,
220,
220,
220,
220,
48260,
796,
7980,
47,
48,
13,
32048,
7,
2536,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1459,
58,
25,
37043,
60,
796,
48260,
198,
220,
220,
220,
886,
198,
437,
198,
198,
2,
20613,
62,
6381,
8443,
198,
8818,
20613,
62,
6381,
8443,
3419,
198,
220,
220,
220,
48260,
796,
1459,
62,
37043,
3419,
198,
220,
220,
220,
1969,
7,
37043,
8,
198,
220,
220,
220,
1459,
58,
25,
37043,
60,
796,
2147,
198,
437,
198,
198,
2,
12405,
198,
8818,
12405,
7,
25410,
3712,
10100,
8,
198,
220,
220,
220,
48260,
796,
1459,
62,
37043,
3419,
198,
220,
220,
220,
336,
16762,
796,
7980,
47,
48,
13,
46012,
533,
7,
37043,
11,
44161,
8,
198,
220,
220,
220,
1255,
796,
7980,
47,
48,
13,
41049,
7,
301,
16762,
8,
198,
220,
220,
220,
47764,
796,
33220,
13,
808,
11487,
7,
20274,
8,
198,
220,
220,
220,
7980,
47,
48,
13,
19836,
7,
20274,
8,
198,
220,
220,
220,
47764,
198,
437,
198,
198,
8818,
12405,
7,
3866,
29190,
3712,
10100,
11,
410,
874,
3712,
38469,
8,
198,
220,
220,
220,
48260,
796,
1459,
62,
37043,
3419,
198,
220,
220,
220,
336,
16762,
796,
7980,
47,
48,
13,
46012,
533,
7,
37043,
11,
5597,
8,
198,
220,
220,
220,
1255,
796,
7980,
47,
48,
13,
41049,
7,
301,
16762,
11,
410,
874,
8,
198,
220,
220,
220,
47764,
796,
33220,
13,
808,
11487,
7,
20274,
8,
198,
220,
220,
220,
7980,
47,
48,
13,
19836,
7,
20274,
8,
198,
220,
220,
220,
47764,
198,
437,
198,
198,
2,
12260,
198,
8818,
12260,
7,
25410,
3712,
10100,
2599,
25,
23002,
1133,
23004,
198,
220,
220,
220,
48260,
796,
1459,
62,
37043,
3419,
198,
220,
220,
220,
7980,
47,
48,
13,
41049,
7,
37043,
11,
44161,
8,
198,
220,
220,
220,
8393,
1133,
23004,
3419,
198,
437,
198,
198,
8818,
12260,
7,
3866,
29190,
3712,
10100,
11,
410,
874,
3712,
38469,
2599,
25,
23002,
1133,
23004,
198,
220,
220,
220,
48260,
796,
1459,
62,
37043,
3419,
198,
220,
220,
220,
336,
16762,
796,
7980,
47,
48,
13,
46012,
533,
7,
37043,
11,
5597,
8,
198,
220,
220,
220,
7980,
47,
48,
13,
41049,
7,
301,
16762,
11,
410,
874,
8,
198,
220,
220,
220,
8393,
1133,
23004,
3419,
198,
437,
198,
198,
8818,
12260,
7,
3866,
29190,
3712,
10100,
11,
299,
912,
3712,
38469,
90,
27,
25,
45,
2434,
51,
29291,
92,
2599,
25,
23002,
1133,
23004,
198,
220,
220,
220,
48260,
796,
1459,
62,
37043,
3419,
198,
220,
220,
220,
336,
16762,
796,
7980,
47,
48,
13,
46012,
533,
7,
37043,
11,
5597,
8,
198,
220,
220,
220,
329,
256,
929,
287,
299,
912,
198,
220,
220,
220,
220,
220,
220,
220,
7980,
47,
48,
13,
41049,
7,
301,
16762,
11,
2824,
7,
83,
929,
4008,
198,
220,
220,
220,
886,
198,
220,
220,
220,
8393,
1133,
23004,
3419,
198,
437,
198,
198,
437,
1303,
8265,
2556,
78,
13,
7282,
2412,
13,
6307,
16694,
50,
48,
3069,
1170,
263,
198
] | 2.37931 | 667 |
struct Clibrary
handle::Ptr{Cvoid}
Clibrary(libName::Union{AbstractString, Nothing} = nothing, flags = Libdl.RTLD_LAZY | Libdl.RTLD_DEEPBIND | Libdl.RTLD_LOCAL) = new(Libdl.dlopen(libName === nothing ? _NullCString() : libName, flags))
end
Base.close(lib::Clibrary) = Libdl.dlclose(lib.handle)
# NOTE: risky hack to trick Julia dlopen into ccalling the C dlopen with NULL (meaning to dlopen current process rather than a library)
struct _NullCString <: AbstractString end
Base.cconvert(::Type{Cstring}, ::_NullCString) = Cstring(C_NULL)
| [
198,
198,
7249,
1012,
4115,
198,
197,
28144,
3712,
46745,
90,
34,
19382,
92,
198,
197,
198,
197,
2601,
4115,
7,
8019,
5376,
3712,
38176,
90,
23839,
10100,
11,
10528,
92,
796,
2147,
11,
9701,
796,
7980,
25404,
13,
14181,
11163,
62,
13534,
57,
56,
930,
7980,
25404,
13,
14181,
11163,
62,
35,
35238,
33,
12115,
930,
7980,
25404,
13,
14181,
11163,
62,
29701,
1847,
8,
796,
649,
7,
25835,
25404,
13,
25404,
9654,
7,
8019,
5376,
24844,
2147,
5633,
4808,
35067,
34,
10100,
3419,
1058,
9195,
5376,
11,
9701,
4008,
198,
437,
198,
198,
14881,
13,
19836,
7,
8019,
3712,
2601,
4115,
8,
796,
7980,
25404,
13,
25404,
19836,
7,
8019,
13,
28144,
8,
198,
198,
2,
24550,
25,
220,
17564,
8156,
284,
6908,
22300,
288,
75,
9654,
656,
36624,
9221,
262,
327,
288,
75,
9654,
351,
15697,
357,
24815,
284,
288,
75,
9654,
1459,
1429,
2138,
621,
257,
5888,
8,
198,
7249,
4808,
35067,
34,
10100,
1279,
25,
27741,
10100,
886,
198,
14881,
13,
535,
261,
1851,
7,
3712,
6030,
90,
34,
8841,
5512,
7904,
62,
35067,
34,
10100,
8,
796,
327,
8841,
7,
34,
62,
33991,
8,
628
] | 2.863874 | 191 |
"""
LinearRegression()
Classic regression model. This struct has no parameter.
If you want to use polynomial model, use `Regression.make_design_matrix()`.
see also: [`make_design_matrix`](@ref)
# Example
```jldoctest regression
julia> x = [
16.862463771320925 68.10823385851712
15.382965696961577 65.4313485700859
8.916228406218375 53.92034559524475
10.560285659132695 59.17305391117168
12.142253214135884 62.28708207525656
5.362107221163482 43.604947901567414
13.893239446341777 62.44348617377496
11.871357065173395 60.28433066289655
29.83792267802442 69.22281924803998
21.327107214235483 70.15810991597944
23.852372696012498 69.81780163668844
26.269031430914108 67.61037566099782
22.78907104644012 67.78105545358633
26.73342178134947 68.59263965946904
9.107259141706415 56.565383817343495
29.38551885863976 68.1005579469209
7.935966787763017 53.76264777936664
29.01677894379809 68.69484161138638
6.839609488194577 49.69794758177567
13.95215840314148 62.058116579899085]; #These data are also used to explanations of other functions.
julia> t = [169.80980778351542, 167.9081124078835, 152.30845618985222, 160.3110300206261, 161.96826472170756, 136.02842285615077, 163.98131131382686, 160.117817321485, 172.22758529098235, 172.21342437006865, 171.8939175591617, 169.83018083884602, 171.3878062674257, 170.52487535026015, 156.40282783981309, 170.6488327896672, 151.69267899906185, 172.32478221316322, 145.14365314788827, 163.79383292080666];
julia> model = LinearRegression()
LinearRegression(Float64[])
julia> fit!(model, x, t)
3-element Vector{Float64}:
-0.04772448076255398
1.395963968616736
76.7817095600793
julia> model(x)
20-element Vector{Float64}:
171.05359766482795
167.38737053144575
151.62704681535598
158.88117658330424
163.15274911747872
137.3967419011542
163.28751869479999
160.3699086857777
171.99027166957023
173.70207799107243
173.10650291105486
169.9096820022986
170.31402414534642
171.25872436348817
155.31030802635905
170.44522606721017
151.45368882321284
171.29242257091374
145.83183688699864
162.74674475052848
```
"""
mutable struct LinearRegression
w::Array
LinearRegression() = new(Array{Float64}(undef, 0))
end
"""
fit!(model, x, t)
`x` must be the number of features in the first dimension and the second dimension must be the number of data.
"""
function fit!(model::LinearRegression, x, t)
check_size(x, t)
x = expand(x)
model.w = inv(x * x') * x * t
end
(model::LinearRegression)(x) = expand(x)' * model.w | [
37811,
198,
220,
220,
220,
44800,
8081,
2234,
3419,
198,
39914,
20683,
2746,
13,
770,
2878,
468,
645,
11507,
13,
198,
1532,
345,
765,
284,
779,
745,
6213,
49070,
2746,
11,
779,
4600,
8081,
2234,
13,
15883,
62,
26124,
62,
6759,
8609,
3419,
44646,
198,
198,
3826,
635,
25,
685,
63,
15883,
62,
26124,
62,
6759,
8609,
63,
16151,
31,
5420,
8,
198,
198,
2,
17934,
198,
15506,
63,
73,
335,
38441,
395,
20683,
198,
73,
43640,
29,
2124,
796,
685,
198,
220,
220,
220,
1467,
13,
4521,
26912,
26514,
1485,
22567,
1495,
8257,
13,
15711,
1954,
2548,
38905,
1558,
1065,
198,
220,
220,
220,
1315,
13,
2548,
1959,
2996,
3388,
38205,
1314,
3324,
6135,
13,
3559,
1485,
2780,
3553,
25257,
3270,
198,
220,
220,
220,
807,
13,
48894,
23815,
1821,
5237,
1507,
22318,
7192,
13,
24,
22416,
2231,
35124,
25707,
2425,
198,
220,
220,
220,
838,
13,
34135,
26279,
36445,
1485,
2075,
3865,
7863,
13,
1558,
22515,
2670,
1157,
1558,
14656,
198,
220,
220,
220,
1105,
13,
1415,
18182,
2624,
1415,
1485,
3365,
5705,
8190,
13,
2078,
32583,
1238,
2425,
1495,
37466,
198,
220,
220,
220,
642,
13,
35667,
15982,
1828,
18298,
2682,
6469,
5946,
13,
1899,
2920,
31714,
25150,
3134,
37309,
198,
220,
220,
220,
1511,
13,
49682,
23516,
27260,
2682,
1558,
3324,
8190,
13,
2598,
2682,
4521,
1558,
26514,
37747,
198,
220,
220,
220,
1367,
13,
5774,
17059,
2154,
2996,
1558,
2091,
3865,
3126,
13,
2078,
3559,
1270,
2791,
2078,
4846,
2816,
198,
220,
220,
220,
2808,
13,
23,
29088,
1828,
3134,
1795,
1731,
3682,
8644,
13,
1828,
2078,
1129,
1731,
1795,
28771,
23,
198,
220,
220,
220,
2310,
13,
34159,
940,
4761,
1415,
22370,
38783,
4317,
13,
21273,
940,
2079,
19707,
3720,
2598,
198,
220,
220,
220,
2242,
13,
5332,
24693,
2075,
4846,
486,
1731,
4089,
8644,
13,
23,
23188,
27037,
2623,
34427,
2598,
198,
220,
220,
220,
2608,
13,
26276,
3070,
1415,
26895,
1415,
15711,
8275,
13,
21,
15197,
38219,
1899,
2079,
46519,
198,
220,
220,
220,
2534,
13,
40401,
2998,
13464,
2414,
21844,
17,
8275,
13,
3695,
940,
2816,
2231,
2327,
4521,
2091,
198,
220,
220,
220,
2608,
13,
49995,
3682,
23188,
1485,
2920,
2857,
8257,
13,
3270,
2075,
2670,
2996,
5824,
3388,
3023,
198,
220,
220,
220,
860,
13,
15982,
25191,
1415,
17279,
2414,
1314,
7265,
13,
47372,
2548,
2548,
1558,
2682,
2682,
3865,
198,
220,
220,
220,
2808,
13,
2548,
2816,
20356,
29796,
2670,
4304,
8257,
13,
3064,
2816,
3720,
42947,
22567,
198,
220,
220,
220,
767,
13,
24,
30743,
2791,
3695,
3324,
5066,
29326,
7192,
13,
4304,
2075,
2857,
40393,
32459,
2414,
198,
220,
220,
220,
2808,
13,
486,
3134,
3695,
5824,
29088,
34583,
8257,
13,
3388,
34137,
1433,
1157,
21734,
2548,
198,
220,
220,
220,
718,
13,
23,
2670,
31751,
33646,
41931,
3324,
5125,
13,
3388,
3720,
32576,
23,
1558,
2425,
3134,
198,
220,
220,
220,
1511,
13,
49234,
21273,
31552,
1415,
18294,
8190,
13,
2713,
23,
1157,
2996,
43240,
2079,
2919,
20,
11208,
1303,
4711,
1366,
389,
635,
973,
284,
18681,
286,
584,
5499,
13,
198,
198,
73,
43640,
29,
256,
796,
685,
22172,
13,
34583,
1795,
39761,
2327,
1314,
3682,
11,
26118,
13,
24,
2919,
14686,
30120,
3459,
2327,
11,
24848,
13,
21495,
29228,
1507,
42250,
23148,
11,
13454,
13,
3132,
940,
6200,
22136,
30057,
11,
27829,
13,
38956,
2075,
37856,
17279,
38219,
11,
21056,
13,
15,
30336,
23815,
3980,
8628,
3324,
11,
26826,
13,
4089,
1485,
16616,
20107,
2075,
4521,
11,
13454,
13,
1157,
3695,
1558,
2624,
1415,
5332,
11,
23120,
13,
1828,
2425,
5332,
1959,
2931,
23,
22370,
11,
23120,
13,
17,
19880,
1731,
2718,
405,
3104,
2996,
11,
28369,
13,
4531,
2670,
1558,
38605,
1433,
1558,
11,
27191,
13,
5999,
486,
28362,
2548,
5705,
31418,
11,
28369,
13,
32220,
37988,
2075,
4524,
28676,
11,
16677,
13,
20,
23045,
2425,
14877,
2075,
25150,
11,
23871,
13,
1821,
2078,
25870,
2670,
6659,
26895,
11,
16677,
13,
2414,
3459,
34159,
4531,
2791,
4761,
11,
25326,
13,
3388,
2075,
3695,
17032,
3312,
21652,
11,
23120,
13,
33916,
3695,
1828,
1485,
24136,
1828,
11,
20299,
13,
1415,
2623,
4310,
20198,
28011,
1983,
11,
26826,
13,
3720,
34741,
1959,
1238,
1795,
27310,
11208,
198,
198,
73,
43640,
29,
2746,
796,
44800,
8081,
2234,
3419,
198,
14993,
451,
8081,
2234,
7,
43879,
2414,
58,
12962,
198,
198,
73,
43640,
29,
4197,
0,
7,
19849,
11,
2124,
11,
256,
8,
198,
18,
12,
30854,
20650,
90,
43879,
2414,
38362,
198,
532,
15,
13,
15,
32883,
1731,
22148,
4304,
13381,
31952,
198,
220,
352,
13,
2670,
45734,
2670,
33808,
21940,
2623,
198,
8684,
13,
3695,
1558,
2931,
3980,
405,
44750,
198,
198,
73,
43640,
29,
2746,
7,
87,
8,
198,
1238,
12,
30854,
20650,
90,
43879,
2414,
38362,
198,
28369,
13,
2713,
30743,
4304,
34287,
1983,
3865,
198,
26118,
13,
2548,
4790,
2154,
4310,
1415,
2231,
2425,
198,
25326,
13,
49856,
3023,
3104,
1314,
2327,
41292,
198,
24063,
13,
3459,
17657,
2996,
5999,
21288,
1731,
198,
26826,
13,
1314,
1983,
2920,
17657,
29059,
4761,
198,
21643,
13,
2670,
3134,
45068,
486,
1314,
3682,
198,
26826,
13,
2078,
2425,
1507,
3388,
2857,
24214,
198,
13454,
13,
2623,
2079,
2919,
35978,
3324,
3324,
198,
28369,
13,
34155,
1983,
1433,
37381,
2154,
1954,
198,
28174,
13,
2154,
1238,
3324,
2079,
15982,
26660,
198,
28174,
13,
15801,
1120,
1959,
11442,
20,
34251,
198,
27191,
13,
44675,
3104,
2167,
1828,
49087,
198,
16677,
13,
18,
15187,
1731,
18781,
2682,
41290,
198,
28369,
13,
1495,
5774,
1731,
2623,
2682,
3459,
1558,
198,
20708,
13,
26717,
1270,
1795,
2075,
30743,
2713,
198,
16677,
13,
43489,
1828,
1899,
3134,
2481,
29326,
198,
25326,
13,
2231,
2623,
28011,
1954,
21777,
5705,
198,
28369,
13,
1959,
1731,
18182,
31495,
1485,
4524,
198,
20299,
13,
5999,
1507,
2623,
44980,
34808,
2414,
198,
25090,
13,
4524,
3134,
2598,
15426,
49351,
2780,
198,
15506,
63,
198,
37811,
198,
76,
18187,
2878,
44800,
8081,
2234,
198,
220,
220,
220,
266,
3712,
19182,
198,
220,
220,
220,
44800,
8081,
2234,
3419,
796,
649,
7,
19182,
90,
43879,
2414,
92,
7,
917,
891,
11,
657,
4008,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
4197,
0,
7,
19849,
11,
2124,
11,
256,
8,
198,
63,
87,
63,
1276,
307,
262,
1271,
286,
3033,
287,
262,
717,
15793,
290,
262,
1218,
15793,
1276,
307,
262,
1271,
286,
1366,
13,
198,
37811,
198,
8818,
4197,
0,
7,
19849,
3712,
14993,
451,
8081,
2234,
11,
2124,
11,
256,
8,
198,
220,
220,
220,
2198,
62,
7857,
7,
87,
11,
256,
8,
198,
220,
220,
220,
2124,
796,
4292,
7,
87,
8,
198,
220,
220,
220,
2746,
13,
86,
796,
800,
7,
87,
1635,
2124,
11537,
1635,
2124,
1635,
256,
198,
437,
198,
198,
7,
19849,
3712,
14993,
451,
8081,
2234,
5769,
87,
8,
796,
4292,
7,
87,
33047,
1635,
2746,
13,
86
] | 2.277876 | 1,130 |
# beefblup
# Julia package for performing single-variate BLUP to find beef cattle
# breeding values
# (C) 2021 Thomas A. Christensen II
# Licensed under BSD-3-Clause License
# cSpell:includeRegExp #.*
# cSpell:includeRegExp ("""|''')[^\1]*\1
module BeefBLUP
# Import the required packages
using CSV
using DataFrames
using LinearAlgebra
using Dates
using Gtk
# Main entry-level function - acts just like the script
function beefblup()
# Ask for an input spreadsheet
path = open_dialog_native(
"Select a beefblup worksheet",
GtkNullContainer(),
("*.csv", GtkFileFilter("*.csv", name="beefblup worksheet"))
)
# Ask for an output text filename
savepath = save_dialog_native(
"Save your beefblup results",
GtkNullContainer(),
(GtkFileFilter("*.txt", name="Results file"),
"*.txt")
)
# Ask for heritability
print("What is the heritability for this trait?> ")
h2 = parse(Float64, readline(stdin))
beefblup(path, savepath, h2)
end
function beefblup(datafile::String, h2::Float64)
# Assume the data is named the same as the file without the trailing extension
dataname = join(split(datafile, ".")[1:end - 1])
# Create a new results name
resultsfile = string(dataname, "_results.txt")
# Pass this info on to the worker
beefblup(datafile, resultsfile, h2)
end
# Main worker function, can perform all the work if given all the user input
function beefblup(path::String, savepath::String, h2::Float64)
# Import data from a suitable spreadsheet
data = DataFrame(CSV.File(path))
# Make sure the data is in the proper format
renamecolstospec!(data)
# Sort the array by date
sort!(data, :birthdate)
# Define fields to hold id values for animals and their parents
numanimals = length(data.id)
# Calculate the relationship matrix
A = additiverelationshipmatrix(data.id, data.dam, data.sire)
# Extract all of the fixed effects
fixedeffectdata = data[:,5:end-1]
(X, fixedeffects) = fixedeffectmatrix(fixedeffectdata)
# Extract the observed data
Y = convert(Array{Float64}, data[:,end])
# The random effects matrix
Z = Matrix{Int}(I, numanimals, numanimals)
# Remove items where there is no data
nullobs = findall(isnothing, Y)
Z[nullobs, nullobs] .= 0
# Calculate heritability
λ = (1 - h2) / h2
# Use the mixed-model equations
MME = [X' * X X' * Z; Z' * X (Z' * Z) + (inv(A) .* λ)]
MMY = [X' * Y; Z' * Y]
solutions = MME \ MMY
# Find the accuracies
diaginv = diag(inv(MME))
reliability = ones(Float64, length(diaginv)) .- diaginv .* λ
# Find how many traits we found BLUE for
numgroups = length(reliability) - numanimals
# Split the BLUP and BLUE results
β = solutions[1:numgroups]
μ = solutions[numgroups+1:end]
μ_reliability = reliability[numgroups+1:end]
# Extract the names of the traits
traitname = names(data)[end]
# Start printing results to output
fileID = open(savepath, "w")
write(fileID, "beefblup Results Report\n")
write(fileID, "Produced using beefblup (")
write(fileID, "https://github.com/millironx/beefblup")
write(fileID, ")\n\n")
write(fileID, "Input:\t")
write(fileID, path)
write(fileID, "\nAnalysis performed:\t")
write(fileID, string(Dates.today()))
write(fileID, "\nTrait examined:\t")
write(fileID, traitname)
write(fileID, "\n\n")
# Print base population stats
write(fileID, "Base Population:\n")
for i in 1:length(fixedeffects)
effect = fixedeffects[i]
write(fileID, "\t")
write(fileID, string(effect.name))
write(fileID, ":\t")
write(fileID, string(effect.basetrait))
write(fileID, "\n")
end
write(fileID, "\tMean ")
write(fileID, traitname)
write(fileID, ":\t")
write(fileID, string(solutions[1]))
write(fileID, "\n\n")
# Contemporary group adjustments
counter = 2
write(fileID, "Contemporary Group Effects:\n")
for i in 1:length(fixedeffects)
effect = fixedeffects[i]
write(fileID, "\t")
write(fileID, effect.name)
write(fileID, "\tEffect\n")
for j in 1:length(effect.alltraits)
types = effect.alltraits[j]
write(fileID, "\t")
write(fileID, string(types))
write(fileID, "\t")
write(fileID, string(β[counter]))
write(fileID, "\n")
counter = counter + 1
end
write(fileID, "\n")
end
write(fileID, "\n")
# Expected breeding values
write(fileID, "Expected Breeding Values:\n")
write(fileID, "\tID\tEBV\tReliability\n")
for i in 1:numanimals
write(fileID, "\t")
write(fileID, string(data.id[i]))
write(fileID, "\t")
write(fileID, string(μ[i]))
write(fileID, "\t")
write(fileID, string(μ_reliability[i]))
write(fileID, "\n")
end
write(fileID, "\n - END REPORT -")
close(fileID)
end
"""
fixedeffectmatrix(fixedeffectdata::DataFrame)
Creates contemporary groupings and the fixed-effect incidence matrix based on the fixed
effects listed in `fixedeffectdata`.
Returns a tuple `(X::Matrix{Int}, fixedeffects::Array{FixedEffect})` in which `X` is the
actual matrix, and `fixedeffects` is the contemporary groupings.
"""
function fixedeffectmatrix(fixedeffectdata::DataFrame)
# Declare an empty return matrix
fixedeffects = FixedEffect[]
# Add each trait to the array
for i in 1:size(fixedeffectdata)[2]
name = names(fixedeffectdata)[i]
traits = eachcol(fixedeffectdata)[i]
if length(unique(traits)) > 1
push!(fixedeffects, FixedEffect(name, traits))
else
@warn string("column '", name, "' does not have any unique animals and will be dropped from analysis")
pname = propertynames(fixedeffectdata)[i]
DataFrames.select!(fixedeffectdata, Not(pname))
end
end
X = ones(Int64, (size(fixedeffectdata)[1], 1))
for i in 1:length(fixedeffects)
trait = fixedeffects[i]
for phenotype in trait.alltraits
X = cat(X, Int64.(fixedeffectdata[:,i] .== phenotype), dims=2)
end
end
return X, fixedeffects
end
"""
additiverelationshipmatrix(id, dam, sire)
Returns the additive numerator relationship matrix based on the pedigree provided in `dam`
and `sire` for animals in `id`.
"""
function additiverelationshipmatrix(id::AbstractVector, damid::AbstractVector, sireid::AbstractVector)
# Sanity-check for valid pedigree
if !(length(id) == length(damid) && length(damid) == length(sireid))
throw(ArgumentError("id, dam, and sire must be of the same length"))
end
# Convert to positions
dam = indexin(damid, id)
sire = indexin(sireid, id)
# Calculate loop iterations
numanimals = length(dam)
# Create an empty matrix for the additive relationship matrix
A = zeros(numanimals, numanimals)
# Create the additive relationship matrix by the FORTRAN method presented by
# Henderson
for i in 1:numanimals
if !isnothing(dam[i]) && !isnothing(sire[i])
for j in 1:(i - 1)
A[j,i] = 0.5 * (A[j,sire[i]] + A[j,dam[i]])
A[i,j] = A[j,i]
end
A[i,i] = 1 + 0.5 * A[sire[i], dam[i]]
elseif !isnothing(dam[i]) && isnothing(sire[i])
for j in 1:(i - 1)
A[j,i] = 0.5 * A[j,dam[i]]
A[i,j] = A[j,i]
end
A[i,i] = 1
elseif isnothing(dam[i]) && !isnothing(sire[i])
for j in 1:(i - 1)
A[j,i] = 0.5 * A[j,sire[i]]
A[i,j] = A[j,i]
end
A[i,i] = 1
else
for j in 1:(i - 1)
A[j,i] = 0
A[i,j] = 0
end
A[i,i] = 1
end
end
return A
end
"""
renamecolstospec(::DataFrame)
Renames the first four columns of the beefblup data sheet so that they can be referred to by
name instead of by column index, regardless of user input.
"""
function renamecolstospec!(df::DataFrame)
# Pull out the fixed-effect and observation name
othernames = propertynames(df)[5:end]
# Put specification column names and user-defined names together
allnames = cat([:id, :birthdate, :dam, :sire], othernames, dims=1)
# Rename in the DataFrame
rename!(df, allnames, makeunique=true)
return df
end
struct FixedEffect
name::String
basetrait::Any
alltraits::AbstractArray{Any}
end
function FixedEffect(name::String, incidences)
basetrait = last(unique(incidences))
types = unique(incidences)[1:end-1]
return FixedEffect(name, basetrait, types)
end
end
| [
2,
12023,
2436,
929,
198,
2,
22300,
5301,
329,
9489,
2060,
12,
25641,
378,
9878,
8577,
284,
1064,
12023,
17025,
198,
2,
18954,
3815,
198,
2,
357,
34,
8,
33448,
5658,
317,
13,
49195,
2873,
198,
2,
49962,
739,
347,
10305,
12,
18,
12,
2601,
682,
13789,
198,
2,
269,
31221,
25,
17256,
8081,
16870,
1303,
15885,
198,
2,
269,
31221,
25,
17256,
8081,
16870,
5855,
15931,
91,
7061,
11537,
58,
61,
59,
16,
60,
9,
59,
16,
198,
198,
21412,
35309,
9148,
8577,
198,
198,
2,
17267,
262,
2672,
10392,
198,
3500,
44189,
198,
3500,
6060,
35439,
198,
3500,
44800,
2348,
29230,
198,
3500,
44712,
198,
3500,
402,
30488,
198,
198,
2,
8774,
5726,
12,
5715,
2163,
532,
6529,
655,
588,
262,
4226,
198,
8818,
12023,
2436,
929,
3419,
628,
220,
220,
220,
1303,
16981,
329,
281,
5128,
30117,
198,
220,
220,
220,
3108,
796,
1280,
62,
38969,
519,
62,
30191,
7,
198,
220,
220,
220,
366,
17563,
257,
12023,
2436,
929,
2499,
25473,
1600,
198,
220,
220,
220,
402,
30488,
35067,
29869,
22784,
198,
220,
220,
220,
5855,
24620,
40664,
1600,
402,
30488,
8979,
22417,
7203,
24620,
40664,
1600,
1438,
2625,
1350,
891,
2436,
929,
2499,
25473,
48774,
198,
220,
220,
220,
1267,
628,
220,
220,
220,
1303,
16981,
329,
281,
5072,
2420,
29472,
198,
220,
220,
220,
3613,
6978,
796,
3613,
62,
38969,
519,
62,
30191,
7,
198,
220,
220,
220,
366,
16928,
534,
12023,
2436,
929,
2482,
1600,
198,
220,
220,
220,
402,
30488,
35067,
29869,
22784,
198,
220,
220,
220,
357,
38,
30488,
8979,
22417,
7203,
24620,
14116,
1600,
1438,
2625,
25468,
2393,
12340,
198,
220,
220,
220,
366,
24620,
14116,
4943,
198,
220,
220,
220,
1267,
628,
220,
220,
220,
1303,
16981,
329,
607,
34147,
198,
220,
220,
220,
3601,
7203,
2061,
318,
262,
607,
34147,
329,
428,
16708,
30,
29,
366,
8,
198,
220,
220,
220,
289,
17,
796,
21136,
7,
43879,
2414,
11,
1100,
1370,
7,
19282,
259,
4008,
628,
220,
220,
220,
12023,
2436,
929,
7,
6978,
11,
3613,
6978,
11,
289,
17,
8,
198,
198,
437,
198,
198,
8818,
12023,
2436,
929,
7,
7890,
7753,
3712,
10100,
11,
289,
17,
3712,
43879,
2414,
8,
198,
220,
220,
220,
1303,
2195,
2454,
262,
1366,
318,
3706,
262,
976,
355,
262,
2393,
1231,
262,
25462,
7552,
198,
220,
220,
220,
4818,
272,
480,
796,
4654,
7,
35312,
7,
7890,
7753,
11,
366,
19570,
58,
16,
25,
437,
532,
352,
12962,
628,
220,
220,
220,
1303,
13610,
257,
649,
2482,
1438,
198,
220,
220,
220,
2482,
7753,
796,
4731,
7,
19608,
272,
480,
11,
45434,
43420,
13,
14116,
4943,
628,
220,
220,
220,
1303,
6251,
428,
7508,
319,
284,
262,
8383,
198,
220,
220,
220,
12023,
2436,
929,
7,
7890,
7753,
11,
2482,
7753,
11,
289,
17,
8,
198,
437,
198,
198,
2,
8774,
8383,
2163,
11,
460,
1620,
477,
262,
670,
611,
1813,
477,
262,
2836,
5128,
198,
8818,
12023,
2436,
929,
7,
6978,
3712,
10100,
11,
3613,
6978,
3712,
10100,
11,
289,
17,
3712,
43879,
2414,
8,
628,
220,
220,
220,
1303,
17267,
1366,
422,
257,
11080,
30117,
198,
220,
220,
220,
1366,
796,
6060,
19778,
7,
7902,
53,
13,
8979,
7,
6978,
4008,
628,
220,
220,
220,
1303,
6889,
1654,
262,
1366,
318,
287,
262,
1774,
5794,
198,
220,
220,
220,
36265,
4033,
301,
418,
43106,
0,
7,
7890,
8,
628,
220,
220,
220,
1303,
33947,
262,
7177,
416,
3128,
198,
220,
220,
220,
3297,
0,
7,
7890,
11,
1058,
24280,
4475,
8,
628,
220,
220,
220,
1303,
2896,
500,
7032,
284,
1745,
4686,
3815,
329,
4695,
290,
511,
3397,
198,
220,
220,
220,
997,
11227,
874,
796,
4129,
7,
7890,
13,
312,
8,
628,
220,
220,
220,
1303,
27131,
378,
262,
2776,
17593,
198,
220,
220,
220,
317,
796,
38298,
39468,
1056,
6759,
8609,
7,
7890,
13,
312,
11,
1366,
13,
11043,
11,
1366,
13,
82,
557,
8,
628,
220,
220,
220,
1303,
29677,
477,
286,
262,
5969,
3048,
198,
220,
220,
220,
5969,
10760,
7890,
796,
1366,
58,
45299,
20,
25,
437,
12,
16,
60,
628,
220,
220,
220,
357,
55,
11,
5969,
34435,
8,
796,
5969,
10760,
6759,
8609,
7,
34021,
10760,
7890,
8,
628,
220,
220,
220,
1303,
29677,
262,
6515,
1366,
198,
220,
220,
220,
575,
796,
10385,
7,
19182,
90,
43879,
2414,
5512,
1366,
58,
45299,
437,
12962,
628,
220,
220,
220,
1303,
383,
4738,
3048,
17593,
198,
220,
220,
220,
1168,
796,
24936,
90,
5317,
92,
7,
40,
11,
997,
11227,
874,
11,
997,
11227,
874,
8,
628,
220,
220,
220,
1303,
17220,
3709,
810,
612,
318,
645,
1366,
198,
220,
220,
220,
9242,
8158,
796,
1064,
439,
7,
271,
22366,
11,
575,
8,
198,
220,
220,
220,
1168,
58,
8423,
8158,
11,
9242,
8158,
60,
764,
28,
657,
628,
220,
220,
220,
1303,
27131,
378,
607,
34147,
198,
220,
220,
220,
7377,
119,
796,
357,
16,
532,
289,
17,
8,
1220,
289,
17,
628,
220,
220,
220,
1303,
5765,
262,
7668,
12,
19849,
27490,
198,
220,
220,
220,
337,
11682,
796,
685,
55,
6,
1635,
1395,
1395,
6,
1635,
1168,
26,
1168,
6,
1635,
1395,
357,
57,
6,
1635,
1168,
8,
1343,
357,
16340,
7,
32,
8,
764,
9,
7377,
119,
15437,
198,
220,
220,
220,
20806,
56,
796,
685,
55,
6,
1635,
575,
26,
1168,
6,
1635,
575,
60,
198,
220,
220,
220,
8136,
796,
337,
11682,
3467,
20806,
56,
628,
220,
220,
220,
1303,
9938,
262,
4431,
13433,
198,
220,
220,
220,
2566,
363,
16340,
796,
2566,
363,
7,
16340,
7,
44,
11682,
4008,
198,
220,
220,
220,
17843,
796,
3392,
7,
43879,
2414,
11,
4129,
7,
10989,
363,
16340,
4008,
764,
12,
2566,
363,
16340,
764,
9,
7377,
119,
628,
220,
220,
220,
1303,
9938,
703,
867,
12796,
356,
1043,
9878,
8924,
329,
198,
220,
220,
220,
997,
24432,
796,
4129,
7,
2411,
12455,
8,
532,
997,
11227,
874,
628,
220,
220,
220,
1303,
27758,
262,
9878,
8577,
290,
9878,
8924,
2482,
198,
220,
220,
220,
27169,
796,
8136,
58,
16,
25,
22510,
24432,
60,
198,
220,
220,
220,
18919,
796,
8136,
58,
22510,
24432,
10,
16,
25,
437,
60,
198,
220,
220,
220,
18919,
62,
2411,
12455,
796,
17843,
58,
22510,
24432,
10,
16,
25,
437,
60,
628,
220,
220,
220,
1303,
29677,
262,
3891,
286,
262,
12796,
198,
220,
220,
220,
16708,
3672,
796,
3891,
7,
7890,
38381,
437,
60,
628,
220,
220,
220,
1303,
7253,
13570,
2482,
284,
5072,
198,
220,
220,
220,
2393,
2389,
796,
1280,
7,
21928,
6978,
11,
366,
86,
4943,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
366,
1350,
891,
2436,
929,
15691,
6358,
59,
77,
4943,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
366,
11547,
771,
1262,
12023,
2436,
929,
357,
4943,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
366,
5450,
1378,
12567,
13,
785,
14,
17805,
1934,
87,
14,
1350,
891,
2436,
929,
4943,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
366,
19415,
77,
59,
77,
4943,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
366,
20560,
7479,
83,
4943,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
3108,
8,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
77,
32750,
6157,
7479,
83,
4943,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
4731,
7,
35,
689,
13,
40838,
3419,
4008,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
77,
51,
12907,
11068,
7479,
83,
4943,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
16708,
3672,
8,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
77,
59,
77,
4943,
628,
220,
220,
220,
1303,
12578,
2779,
3265,
9756,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
366,
14881,
20133,
7479,
77,
4943,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
13664,
7,
34021,
34435,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1245,
796,
5969,
34435,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
83,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
4731,
7,
10760,
13,
3672,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
366,
7479,
83,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
4731,
7,
10760,
13,
12093,
316,
12907,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
77,
4943,
198,
220,
220,
220,
886,
628,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
83,
5308,
272,
366,
8,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
16708,
3672,
8,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
366,
7479,
83,
4943,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
4731,
7,
82,
14191,
58,
16,
60,
4008,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
77,
59,
77,
4943,
628,
220,
220,
220,
1303,
38698,
1448,
16895,
198,
220,
220,
220,
3753,
796,
362,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
366,
4264,
33080,
4912,
17417,
7479,
77,
4943,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
13664,
7,
34021,
34435,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1245,
796,
5969,
34435,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
83,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
1245,
13,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
83,
18610,
59,
77,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
329,
474,
287,
352,
25,
13664,
7,
10760,
13,
439,
9535,
896,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3858,
796,
1245,
13,
439,
9535,
896,
58,
73,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
83,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
4731,
7,
19199,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
83,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
4731,
7,
26638,
58,
24588,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
77,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3753,
796,
3753,
1343,
352,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
77,
4943,
198,
220,
220,
220,
886,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
77,
4943,
628,
220,
220,
220,
1303,
1475,
7254,
18954,
3815,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
366,
3109,
7254,
3719,
8228,
27068,
7479,
77,
4943,
198,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
83,
2389,
59,
83,
30195,
53,
59,
83,
6892,
12455,
59,
77,
4943,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
77,
3778,
320,
874,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
83,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
4731,
7,
7890,
13,
312,
58,
72,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
83,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
4731,
7,
34703,
58,
72,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
83,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
4731,
7,
34703,
62,
2411,
12455,
58,
72,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
77,
4943,
198,
220,
220,
220,
886,
628,
220,
220,
220,
3551,
7,
7753,
2389,
11,
37082,
77,
532,
23578,
39099,
532,
4943,
198,
220,
220,
220,
1969,
7,
7753,
2389,
8,
198,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
5969,
10760,
6759,
8609,
7,
34021,
10760,
7890,
3712,
6601,
19778,
8,
198,
198,
16719,
274,
11811,
1448,
654,
290,
262,
5969,
12,
10760,
18349,
17593,
1912,
319,
262,
5969,
198,
34435,
5610,
287,
4600,
34021,
10760,
7890,
44646,
198,
198,
35561,
257,
46545,
4600,
7,
55,
3712,
46912,
90,
5317,
5512,
5969,
34435,
3712,
19182,
90,
13715,
18610,
30072,
63,
287,
543,
4600,
55,
63,
318,
262,
198,
50039,
17593,
11,
290,
4600,
34021,
34435,
63,
318,
262,
11811,
1448,
654,
13,
198,
37811,
198,
8818,
5969,
10760,
6759,
8609,
7,
34021,
10760,
7890,
3712,
6601,
19778,
8,
198,
220,
220,
220,
1303,
16691,
533,
281,
6565,
1441,
17593,
198,
220,
220,
220,
5969,
34435,
796,
10832,
18610,
21737,
628,
220,
220,
220,
1303,
3060,
1123,
16708,
284,
262,
7177,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
7857,
7,
34021,
10760,
7890,
38381,
17,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
796,
3891,
7,
34021,
10760,
7890,
38381,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
12796,
796,
1123,
4033,
7,
34021,
10760,
7890,
38381,
72,
60,
628,
220,
220,
220,
220,
220,
220,
220,
611,
4129,
7,
34642,
7,
9535,
896,
4008,
1875,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
34021,
34435,
11,
10832,
18610,
7,
3672,
11,
12796,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
40539,
4731,
7203,
28665,
705,
1600,
1438,
11,
24018,
857,
407,
423,
597,
3748,
4695,
290,
481,
307,
5710,
422,
3781,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
3672,
796,
3119,
14933,
7,
34021,
10760,
7890,
38381,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6060,
35439,
13,
19738,
0,
7,
34021,
10760,
7890,
11,
1892,
7,
79,
3672,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1395,
796,
3392,
7,
5317,
2414,
11,
357,
7857,
7,
34021,
10760,
7890,
38381,
16,
4357,
352,
4008,
628,
220,
220,
220,
329,
1312,
287,
352,
25,
13664,
7,
34021,
34435,
8,
198,
220,
220,
220,
220,
220,
220,
220,
16708,
796,
5969,
34435,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
329,
47174,
287,
16708,
13,
439,
9535,
896,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1395,
796,
3797,
7,
55,
11,
2558,
2414,
12195,
34021,
10760,
7890,
58,
45299,
72,
60,
764,
855,
47174,
828,
5391,
82,
28,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1441,
1395,
11,
5969,
34435,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
38298,
39468,
1056,
6759,
8609,
7,
312,
11,
1801,
11,
264,
557,
8,
198,
198,
35561,
262,
38298,
5470,
1352,
2776,
17593,
1912,
319,
262,
46895,
2810,
287,
4600,
11043,
63,
198,
392,
4600,
82,
557,
63,
329,
4695,
287,
4600,
312,
44646,
198,
198,
37811,
198,
8818,
38298,
39468,
1056,
6759,
8609,
7,
312,
3712,
23839,
38469,
11,
1801,
312,
3712,
23839,
38469,
11,
264,
557,
312,
3712,
23839,
38469,
8,
198,
220,
220,
220,
1303,
2986,
414,
12,
9122,
329,
4938,
46895,
198,
220,
220,
220,
611,
5145,
7,
13664,
7,
312,
8,
6624,
4129,
7,
11043,
312,
8,
11405,
4129,
7,
11043,
312,
8,
6624,
4129,
7,
82,
557,
312,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3714,
7,
28100,
1713,
12331,
7203,
312,
11,
1801,
11,
290,
264,
557,
1276,
307,
286,
262,
976,
4129,
48774,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1303,
38240,
284,
6116,
198,
220,
220,
220,
1801,
796,
6376,
259,
7,
11043,
312,
11,
4686,
8,
198,
220,
220,
220,
264,
557,
796,
6376,
259,
7,
82,
557,
312,
11,
4686,
8,
628,
220,
220,
220,
1303,
27131,
378,
9052,
34820,
198,
220,
220,
220,
997,
11227,
874,
796,
4129,
7,
11043,
8,
628,
220,
220,
220,
1303,
13610,
281,
6565,
17593,
329,
262,
38298,
2776,
17593,
198,
220,
220,
220,
317,
796,
1976,
27498,
7,
77,
3778,
320,
874,
11,
997,
11227,
874,
8,
628,
220,
220,
220,
1303,
13610,
262,
38298,
2776,
17593,
416,
262,
7473,
5446,
1565,
2446,
5545,
416,
198,
220,
220,
220,
1303,
22016,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
77,
3778,
320,
874,
198,
220,
220,
220,
220,
220,
220,
220,
611,
5145,
271,
22366,
7,
11043,
58,
72,
12962,
11405,
5145,
271,
22366,
7,
82,
557,
58,
72,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
474,
287,
352,
37498,
72,
532,
352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
58,
73,
11,
72,
60,
796,
657,
13,
20,
1635,
357,
32,
58,
73,
11,
82,
557,
58,
72,
11907,
1343,
317,
58,
73,
11,
11043,
58,
72,
11907,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
58,
72,
11,
73,
60,
796,
317,
58,
73,
11,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
58,
72,
11,
72,
60,
796,
352,
1343,
657,
13,
20,
1635,
317,
58,
82,
557,
58,
72,
4357,
1801,
58,
72,
11907,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
5145,
271,
22366,
7,
11043,
58,
72,
12962,
11405,
318,
22366,
7,
82,
557,
58,
72,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
329,
474,
287,
352,
37498,
72,
532,
352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
58,
73,
11,
72,
60,
796,
657,
13,
20,
1635,
317,
58,
73,
11,
11043,
58,
72,
11907,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
58,
72,
11,
73,
60,
796,
317,
58,
73,
11,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
317,
58,
72,
11,
72,
60,
796,
352,
198,
220,
220,
220,
2073,
361,
318,
22366,
7,
11043,
58,
72,
12962,
11405,
5145,
271,
22366,
7,
82,
557,
58,
72,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
329,
474,
287,
352,
37498,
72,
532,
352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
58,
73,
11,
72,
60,
796,
657,
13,
20,
1635,
317,
58,
73,
11,
82,
557,
58,
72,
11907,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
58,
72,
11,
73,
60,
796,
317,
58,
73,
11,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
317,
58,
72,
11,
72,
60,
796,
352,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
329,
474,
287,
352,
37498,
72,
532,
352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
58,
73,
11,
72,
60,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
58,
72,
11,
73,
60,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
317,
58,
72,
11,
72,
60,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1441,
317,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
36265,
4033,
301,
418,
43106,
7,
3712,
6601,
19778,
8,
198,
198,
26764,
1047,
262,
717,
1440,
15180,
286,
262,
12023,
2436,
929,
1366,
9629,
523,
326,
484,
460,
307,
6412,
284,
416,
198,
3672,
2427,
286,
416,
5721,
6376,
11,
7692,
286,
2836,
5128,
13,
198,
37811,
198,
8818,
36265,
4033,
301,
418,
43106,
0,
7,
7568,
3712,
6601,
19778,
8,
198,
220,
220,
220,
1303,
21429,
503,
262,
5969,
12,
10760,
290,
13432,
1438,
198,
220,
220,
220,
584,
14933,
796,
3119,
14933,
7,
7568,
38381,
20,
25,
437,
60,
628,
220,
220,
220,
1303,
5930,
20855,
5721,
3891,
290,
2836,
12,
23211,
3891,
1978,
198,
220,
220,
220,
477,
14933,
796,
3797,
26933,
25,
312,
11,
1058,
24280,
4475,
11,
1058,
11043,
11,
1058,
82,
557,
4357,
584,
14933,
11,
5391,
82,
28,
16,
8,
628,
220,
220,
220,
1303,
7152,
480,
287,
262,
6060,
19778,
198,
220,
220,
220,
36265,
0,
7,
7568,
11,
477,
14933,
11,
787,
34642,
28,
7942,
8,
198,
220,
220,
220,
1441,
47764,
198,
437,
198,
198,
7249,
10832,
18610,
198,
220,
220,
220,
1438,
3712,
10100,
198,
220,
220,
220,
1615,
316,
12907,
3712,
7149,
198,
220,
220,
220,
477,
9535,
896,
3712,
23839,
19182,
90,
7149,
92,
198,
437,
198,
198,
8818,
10832,
18610,
7,
3672,
3712,
10100,
11,
753,
44845,
8,
198,
220,
220,
220,
1615,
316,
12907,
796,
938,
7,
34642,
7,
1939,
44845,
4008,
198,
220,
220,
220,
3858,
796,
3748,
7,
1939,
44845,
38381,
16,
25,
437,
12,
16,
60,
198,
220,
220,
220,
1441,
10832,
18610,
7,
3672,
11,
1615,
316,
12907,
11,
3858,
8,
198,
437,
628,
198,
437,
198
] | 2.439533 | 3,597 |
"""
Execution state that encapsulates synchronization primitives and resources
bound to a command submission on the GPU.
Resources bound to the related execution can be either freed or released (dereferenced)
once the execution completes.
The execution is assumed to be completed when the execution
state has been waited on (see [`wait`](@ref)), or when an inherited execution state has
been completed execution.
Execution state can be inherited across submissions, where resource dependencies
are transfered over to a new execution state bound to a command that **must** include
the inherited `ExecutionState`'s semaphore as a wait semaphore.
"""
struct ExecutionState
queue::Queue
semaphore::Optional{Vk.SemaphoreSubmitInfoKHR}
fence::Optional{Vk.Fence}
free_after_completion::Vector{Ref}
release_after_completion::Vector{Ref}
end
function ExecutionState(queue; semaphore = nothing, fence = nothing, free_after_completion = [], release_after_completion = [])
ExecutionState(queue, semaphore, fence, free_after_completion, release_after_completion)
end
function finalize!(exec::ExecutionState)
for resource in exec.free_after_completion
finalize(resource[])
end
empty!(exec.free_after_completion)
empty!(exec.release_after_completion)
true
end
function _wait(fence::Vk.Fence, timeout)
ret = unwrap(Vk.wait_for_fences(Vk.device(fence), [fence], true, timeout))
ret == Vk.SUCCESS
end
function _wait(fences, timeout)
isempty(fences) && return true
ret = unwrap(Vk.wait_for_fences(Vk.device(first(fence)), fences, true, timeout))
ret == Vk.SUCCESS
end
function Base.wait(exec::ExecutionState, timeout = typemax(UInt32))
fence = exec.fence::Vk.Fence
_wait(fence, timeout) && finalize!(exec)
end
function Base.wait(execs::AbstractVector{ExecutionState}, timeout = typemax(UInt32))
fences = map(Base.Fix2(getproperty, :fence), execs)::Vector{Fence}
_wait(fences, timeout) && all(finalize!, execs)
end
function submit(dispatch::QueueDispatch, queue_family_index, submit_infos;
signal_fence = false,
semaphore = nothing,
free_after_completion = [],
release_after_completion = [],
inherit = nothing,
check_inheritance = true,
)
q = queue(dispatch, queue_family_index)
fence = signal_fence ? Vk.Fence(Vk.device(q)) : nothing
if inherit isa ExecutionState
append!(free_after_completion, inherit.free_after_completion)
append!(release_after_completion, inherit.release_after_completion)
empty!(inherit.free_after_completion)
empty!(inherit.release_after_completion)
if check_inheritance && !any(Base.Fix1(in, inherit.semaphore), submit_infos.wait_semaphores)
error("No wait semaphore has been registered that
matches the inherited state.")
end
end
for submit_info in submit_infos
for command_buffer_info in submit_info.command_buffer_infos
end_recording(command_buffer_info.command_buffer)
end
end
unwrap(Vk.queue_submit_2_khr(q, submit_infos; fence = something(fence, C_NULL)))
ExecutionState(q; semaphore, fence, free_after_completion, release_after_completion)
end
function submit(dispatch::QueueDispatch, queue_family_index, submit_info::Vk.SubmitInfo2KHR;
signal_fence = false,
semaphore = nothing,
free_after_completion = [],
release_after_completion = [],
inherit = nothing,
check_inheritance = true,
)
if !isnothing(semaphore)
semaphore in submit_info.signal_semaphore_infos || error("The provided semaphore was not included in the submission structure")
end
submit(dispatch, queue_family_index, [submit_info]; signal_fence, semaphore, free_after_completion, release_after_completion, inherit, check_inheritance)
end
function Base.show(io::IO, exec::ExecutionState)
print(io, ExecutionState, "($(exec.queue)")
if !isnothing(exec.fence)
is_complete = _wait(exec.fence, 0)
if is_complete
print(io, ", completed execution")
else
print(io, ", in progress")
end
end
print(io, ')')
end
| [
37811,
198,
23002,
1009,
1181,
326,
32652,
15968,
42133,
2684,
20288,
290,
4133,
198,
7784,
284,
257,
3141,
14498,
319,
262,
11362,
13,
198,
198,
33236,
5421,
284,
262,
3519,
9706,
460,
307,
2035,
13459,
393,
2716,
357,
67,
567,
69,
14226,
771,
8,
198,
27078,
262,
9706,
32543,
13,
198,
464,
9706,
318,
9672,
284,
307,
5668,
618,
262,
9706,
198,
5219,
468,
587,
13488,
319,
357,
3826,
685,
63,
17077,
63,
16151,
31,
5420,
36911,
393,
618,
281,
19552,
9706,
1181,
468,
198,
47436,
5668,
9706,
13,
198,
198,
23002,
1009,
1181,
460,
307,
19552,
1973,
22129,
11,
810,
8271,
20086,
198,
533,
13501,
1068,
625,
284,
257,
649,
9706,
1181,
5421,
284,
257,
3141,
326,
12429,
27238,
1174,
2291,
198,
1169,
19552,
4600,
23002,
1009,
9012,
63,
6,
82,
5026,
6570,
382,
355,
257,
4043,
5026,
6570,
382,
13,
198,
37811,
198,
7249,
37497,
9012,
198,
220,
220,
220,
16834,
3712,
34991,
198,
220,
220,
220,
5026,
6570,
382,
3712,
30719,
90,
53,
74,
13,
13900,
6570,
382,
45135,
12360,
42,
17184,
92,
198,
220,
220,
220,
13990,
3712,
30719,
90,
53,
74,
13,
37,
594,
92,
198,
220,
220,
220,
1479,
62,
8499,
62,
785,
24547,
3712,
38469,
90,
8134,
92,
198,
220,
220,
220,
2650,
62,
8499,
62,
785,
24547,
3712,
38469,
90,
8134,
92,
198,
437,
198,
198,
8818,
37497,
9012,
7,
36560,
26,
5026,
6570,
382,
796,
2147,
11,
13990,
796,
2147,
11,
1479,
62,
8499,
62,
785,
24547,
796,
685,
4357,
2650,
62,
8499,
62,
785,
24547,
796,
685,
12962,
198,
220,
220,
220,
37497,
9012,
7,
36560,
11,
5026,
6570,
382,
11,
13990,
11,
1479,
62,
8499,
62,
785,
24547,
11,
2650,
62,
8499,
62,
785,
24547,
8,
198,
437,
198,
198,
8818,
2457,
1096,
0,
7,
18558,
3712,
23002,
1009,
9012,
8,
198,
220,
220,
220,
329,
8271,
287,
2452,
13,
5787,
62,
8499,
62,
785,
24547,
198,
220,
220,
220,
220,
220,
220,
220,
2457,
1096,
7,
31092,
58,
12962,
198,
220,
220,
220,
886,
198,
220,
220,
220,
6565,
0,
7,
18558,
13,
5787,
62,
8499,
62,
785,
24547,
8,
198,
220,
220,
220,
6565,
0,
7,
18558,
13,
20979,
62,
8499,
62,
785,
24547,
8,
198,
220,
220,
220,
2081,
198,
437,
198,
198,
8818,
4808,
17077,
7,
69,
594,
3712,
53,
74,
13,
37,
594,
11,
26827,
8,
198,
220,
220,
220,
1005,
796,
7379,
2416,
7,
53,
74,
13,
17077,
62,
1640,
62,
69,
3007,
7,
53,
74,
13,
25202,
7,
69,
594,
828,
685,
69,
594,
4357,
2081,
11,
26827,
4008,
198,
220,
220,
220,
1005,
6624,
569,
74,
13,
12564,
4093,
7597,
198,
437,
198,
198,
8818,
4808,
17077,
7,
69,
3007,
11,
26827,
8,
198,
220,
220,
220,
318,
28920,
7,
69,
3007,
8,
11405,
1441,
2081,
198,
220,
220,
220,
1005,
796,
7379,
2416,
7,
53,
74,
13,
17077,
62,
1640,
62,
69,
3007,
7,
53,
74,
13,
25202,
7,
11085,
7,
69,
594,
36911,
35771,
11,
2081,
11,
26827,
4008,
198,
220,
220,
220,
1005,
6624,
569,
74,
13,
12564,
4093,
7597,
198,
437,
198,
198,
8818,
7308,
13,
17077,
7,
18558,
3712,
23002,
1009,
9012,
11,
26827,
796,
2170,
368,
897,
7,
52,
5317,
2624,
4008,
198,
220,
220,
220,
13990,
796,
2452,
13,
69,
594,
3712,
53,
74,
13,
37,
594,
198,
220,
220,
220,
4808,
17077,
7,
69,
594,
11,
26827,
8,
11405,
2457,
1096,
0,
7,
18558,
8,
198,
437,
198,
198,
8818,
7308,
13,
17077,
7,
18558,
82,
3712,
23839,
38469,
90,
23002,
1009,
9012,
5512,
26827,
796,
2170,
368,
897,
7,
52,
5317,
2624,
4008,
198,
220,
220,
220,
35771,
796,
3975,
7,
14881,
13,
22743,
17,
7,
1136,
26745,
11,
1058,
69,
594,
828,
2452,
82,
2599,
25,
38469,
90,
37,
594,
92,
198,
220,
220,
220,
4808,
17077,
7,
69,
3007,
11,
26827,
8,
11405,
477,
7,
20311,
1096,
28265,
2452,
82,
8,
198,
437,
198,
198,
8818,
9199,
7,
6381,
17147,
3712,
34991,
49354,
11,
16834,
62,
17989,
62,
9630,
11,
9199,
62,
10745,
418,
26,
198,
220,
220,
220,
6737,
62,
69,
594,
796,
3991,
11,
198,
220,
220,
220,
5026,
6570,
382,
796,
2147,
11,
198,
220,
220,
220,
1479,
62,
8499,
62,
785,
24547,
796,
685,
4357,
198,
220,
220,
220,
2650,
62,
8499,
62,
785,
24547,
796,
685,
4357,
198,
220,
220,
220,
16955,
796,
2147,
11,
198,
220,
220,
220,
2198,
62,
259,
372,
42942,
796,
2081,
11,
198,
8,
198,
220,
220,
220,
10662,
796,
16834,
7,
6381,
17147,
11,
16834,
62,
17989,
62,
9630,
8,
628,
220,
220,
220,
13990,
796,
6737,
62,
69,
594,
5633,
569,
74,
13,
37,
594,
7,
53,
74,
13,
25202,
7,
80,
4008,
1058,
2147,
628,
220,
220,
220,
611,
16955,
318,
64,
37497,
9012,
198,
220,
220,
220,
220,
220,
220,
220,
24443,
0,
7,
5787,
62,
8499,
62,
785,
24547,
11,
16955,
13,
5787,
62,
8499,
62,
785,
24547,
8,
198,
220,
220,
220,
220,
220,
220,
220,
24443,
0,
7,
20979,
62,
8499,
62,
785,
24547,
11,
16955,
13,
20979,
62,
8499,
62,
785,
24547,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6565,
0,
7,
259,
372,
270,
13,
5787,
62,
8499,
62,
785,
24547,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6565,
0,
7,
259,
372,
270,
13,
20979,
62,
8499,
62,
785,
24547,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2198,
62,
259,
372,
42942,
11405,
5145,
1092,
7,
14881,
13,
22743,
16,
7,
259,
11,
16955,
13,
43616,
6570,
382,
828,
9199,
62,
10745,
418,
13,
17077,
62,
43616,
6570,
2850,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
7203,
2949,
4043,
5026,
6570,
382,
468,
587,
6823,
326,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7466,
262,
19552,
1181,
19570,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
329,
9199,
62,
10951,
287,
9199,
62,
10745,
418,
198,
220,
220,
220,
220,
220,
220,
220,
329,
3141,
62,
22252,
62,
10951,
287,
9199,
62,
10951,
13,
21812,
62,
22252,
62,
10745,
418,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
62,
8344,
1284,
7,
21812,
62,
22252,
62,
10951,
13,
21812,
62,
22252,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
7379,
2416,
7,
53,
74,
13,
36560,
62,
46002,
62,
17,
62,
74,
11840,
7,
80,
11,
9199,
62,
10745,
418,
26,
13990,
796,
1223,
7,
69,
594,
11,
327,
62,
33991,
22305,
198,
220,
220,
220,
37497,
9012,
7,
80,
26,
5026,
6570,
382,
11,
13990,
11,
1479,
62,
8499,
62,
785,
24547,
11,
2650,
62,
8499,
62,
785,
24547,
8,
198,
437,
198,
198,
8818,
9199,
7,
6381,
17147,
3712,
34991,
49354,
11,
16834,
62,
17989,
62,
9630,
11,
9199,
62,
10951,
3712,
53,
74,
13,
45135,
12360,
17,
42,
17184,
26,
198,
220,
220,
220,
6737,
62,
69,
594,
796,
3991,
11,
198,
220,
220,
220,
5026,
6570,
382,
796,
2147,
11,
198,
220,
220,
220,
1479,
62,
8499,
62,
785,
24547,
796,
685,
4357,
198,
220,
220,
220,
2650,
62,
8499,
62,
785,
24547,
796,
685,
4357,
198,
220,
220,
220,
16955,
796,
2147,
11,
198,
220,
220,
220,
2198,
62,
259,
372,
42942,
796,
2081,
11,
198,
8,
198,
220,
220,
220,
611,
5145,
271,
22366,
7,
43616,
6570,
382,
8,
198,
220,
220,
220,
220,
220,
220,
220,
5026,
6570,
382,
287,
9199,
62,
10951,
13,
12683,
282,
62,
43616,
6570,
382,
62,
10745,
418,
8614,
4049,
7203,
464,
2810,
5026,
6570,
382,
373,
407,
3017,
287,
262,
14498,
4645,
4943,
198,
220,
220,
220,
886,
198,
220,
220,
220,
9199,
7,
6381,
17147,
11,
16834,
62,
17989,
62,
9630,
11,
685,
46002,
62,
10951,
11208,
6737,
62,
69,
594,
11,
5026,
6570,
382,
11,
1479,
62,
8499,
62,
785,
24547,
11,
2650,
62,
8499,
62,
785,
24547,
11,
16955,
11,
2198,
62,
259,
372,
42942,
8,
198,
437,
198,
198,
8818,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
2452,
3712,
23002,
1009,
9012,
8,
198,
220,
220,
220,
3601,
7,
952,
11,
37497,
9012,
11,
366,
16763,
7,
18558,
13,
36560,
8,
4943,
198,
220,
220,
220,
611,
5145,
271,
22366,
7,
18558,
13,
69,
594,
8,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
20751,
796,
4808,
17077,
7,
18558,
13,
69,
594,
11,
657,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
62,
20751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
952,
11,
33172,
5668,
9706,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
952,
11,
33172,
287,
4371,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
3601,
7,
952,
11,
705,
8,
11537,
198,
437,
198
] | 2.744386 | 1,514 |
function setupCommBuffers!(domain::Domain, edgeNodes::Int)
function cache_align_real(n::Int64)
n = Int32(n)
(n + CACHE_COHERENCE_PAD_REAL%Int32 - one(Int32)) & ~(CACHE_COHERENCE_PAD_REAL%Int32 - one(Int32))
end
@unpack_Domain domain
# allocate a buffer large enough for nodal ghost data
maxEdgeSize = max(domain.sizeX, max(domain.sizeY, domain.sizeZ))+1
m_maxPlaneSize = cache_align_real(maxEdgeSize*maxEdgeSize)
m_maxEdgeSize = cache_align_real(maxEdgeSize)
maxPlaneSize = m_maxPlaneSize
maxEdgeSize = m_maxEdgeSize
# assume communication to 6 neighbors by default
m_rowMin = (m_rowLoc == 0) ? 0 : 1
m_rowMax = (m_rowLoc == m_tp-1) ? 0 : 1
m_colMin = (m_colLoc == 0) ? 0 : 1
m_colMax = (m_colLoc == m_tp-1) ? 0 : 1
m_planeMin = (m_planeLoc == 0) ? 0 : 1
m_planeMax = (m_planeLoc == m_tp-1) ? 0 : 1
# account for face communication
comBufSize =(
(m_rowMin + m_rowMax + m_colMin + m_colMax + m_planeMin + m_planeMax) *
m_maxPlaneSize * MAX_FIELDS_PER_MPI_COMM
)
# account for edge communication
comBufSize += (
((m_rowMin & m_colMin) + (m_rowMin & m_planeMin) + (m_colMin & m_planeMin) +
(m_rowMax & m_colMax) + (m_rowMax & m_planeMax) + (m_colMax & m_planeMax) +
(m_rowMax & m_colMin) + (m_rowMin & m_planeMax) + (m_colMin & m_planeMax) +
(m_rowMin & m_colMax) + (m_rowMax & m_planeMin) + (m_colMax & m_planeMin)) *
m_maxEdgeSize * MAX_FIELDS_PER_MPI_COMM
)
# account for corner communication
# factor of 16 is so each buffer has its own cache line
comBufSize += (((m_rowMin & m_colMin & m_planeMin) +
(m_rowMin & m_colMin & m_planeMax) +
(m_rowMin & m_colMax & m_planeMin) +
(m_rowMin & m_colMax & m_planeMax) +
(m_rowMax & m_colMin & m_planeMin) +
(m_rowMax & m_colMin & m_planeMax) +
(m_rowMax & m_colMax & m_planeMin) +
(m_rowMax & m_colMax & m_planeMax)) * CACHE_COHERENCE_PAD_REAL
)
commDataSend = Vector{Float64}(undef, comBufSize)
commDataRecv = Vector{Float64}(undef, comBufSize)
# prevent floating point exceptions
fill!(commDataSend, 0)
fill!(commDataRecv, 0)
# Boundary nodesets
if (m_colLoc == 0)
resize!(symmX, edgeNodes*edgeNodes)
end
if (m_rowLoc == 0)
resize!(symmY, edgeNodes*edgeNodes)
end
if (m_planeLoc == 0)
resize!(symmZ, edgeNodes*edgeNodes)
end
@pack_Domain! domain
end
getMyRank(comm::MPI.Comm) = MPI.Comm_rank(comm)
getMyRank(::Nothing) = 0
getNumRanks(comm::MPI.Comm) = MPI.Comm_size(comm)
getNumRanks(::Nothing) = 1
getWtime(::MPI.Comm) = MPI.Wtime()
getWtime(::Nothing) = time()
comm_max(data::Float64, comm::MPI.Comm) = MPI.Allreduce(data, MPI.MAX, comm)
comm_max(data::Float64, ::Nothing) = data
comm_min(data::Float64, comm::MPI.Comm) = MPI.Allreduce(data, MPI.MIN, comm)
comm_min(data::Float64, ::Nothing) = data
comm_barrier(comm::MPI.Comm) = MPI.Barrier(comm)
comm_barrier(::Nothing) = nothing
| [
8818,
9058,
6935,
36474,
364,
0,
7,
27830,
3712,
43961,
11,
5743,
45,
4147,
3712,
5317,
8,
198,
220,
220,
220,
2163,
12940,
62,
31494,
62,
5305,
7,
77,
3712,
5317,
2414,
8,
198,
220,
220,
220,
220,
220,
220,
220,
299,
796,
2558,
2624,
7,
77,
8,
198,
220,
220,
220,
220,
220,
220,
220,
357,
77,
1343,
327,
2246,
13909,
62,
8220,
16879,
18310,
62,
47,
2885,
62,
2200,
1847,
4,
5317,
2624,
532,
530,
7,
5317,
2624,
4008,
1222,
5299,
7,
34,
2246,
13909,
62,
8220,
16879,
18310,
62,
47,
2885,
62,
2200,
1847,
4,
5317,
2624,
532,
530,
7,
5317,
2624,
4008,
198,
220,
220,
220,
886,
198,
220,
220,
220,
2488,
403,
8002,
62,
43961,
7386,
198,
220,
220,
220,
1303,
31935,
257,
11876,
1588,
1576,
329,
18666,
282,
10905,
1366,
198,
220,
220,
220,
3509,
37021,
10699,
796,
3509,
7,
27830,
13,
7857,
55,
11,
3509,
7,
27830,
13,
7857,
56,
11,
7386,
13,
7857,
57,
4008,
10,
16,
628,
220,
220,
220,
285,
62,
9806,
3646,
1531,
10699,
796,
12940,
62,
31494,
62,
5305,
7,
9806,
37021,
10699,
9,
9806,
37021,
10699,
8,
198,
220,
220,
220,
285,
62,
9806,
37021,
10699,
796,
12940,
62,
31494,
62,
5305,
7,
9806,
37021,
10699,
8,
198,
220,
220,
220,
3509,
3646,
1531,
10699,
796,
285,
62,
9806,
3646,
1531,
10699,
198,
220,
220,
220,
3509,
37021,
10699,
796,
285,
62,
9806,
37021,
10699,
628,
220,
220,
220,
1303,
7048,
6946,
284,
718,
12020,
416,
4277,
198,
220,
220,
220,
285,
62,
808,
9452,
796,
357,
76,
62,
808,
33711,
6624,
657,
8,
220,
220,
220,
220,
220,
220,
220,
5633,
657,
1058,
352,
198,
220,
220,
220,
285,
62,
808,
11518,
796,
357,
76,
62,
808,
33711,
6624,
285,
62,
34788,
12,
16,
8,
220,
220,
220,
220,
5633,
657,
1058,
352,
198,
220,
220,
220,
285,
62,
4033,
9452,
796,
357,
76,
62,
4033,
33711,
6624,
657,
8,
220,
220,
220,
220,
220,
220,
220,
5633,
657,
1058,
352,
198,
220,
220,
220,
285,
62,
4033,
11518,
796,
357,
76,
62,
4033,
33711,
6624,
285,
62,
34788,
12,
16,
8,
220,
220,
220,
220,
5633,
657,
1058,
352,
198,
220,
220,
220,
285,
62,
14382,
9452,
796,
357,
76,
62,
14382,
33711,
6624,
657,
8,
220,
220,
220,
5633,
657,
1058,
352,
198,
220,
220,
220,
285,
62,
14382,
11518,
796,
357,
76,
62,
14382,
33711,
6624,
285,
62,
34788,
12,
16,
8,
5633,
657,
1058,
352,
628,
220,
220,
220,
1303,
1848,
329,
1986,
6946,
198,
220,
220,
220,
401,
33,
3046,
10699,
796,
7,
198,
220,
220,
220,
220,
220,
220,
220,
357,
76,
62,
808,
9452,
1343,
285,
62,
808,
11518,
1343,
285,
62,
4033,
9452,
1343,
285,
62,
4033,
11518,
1343,
285,
62,
14382,
9452,
1343,
285,
62,
14382,
11518,
8,
1635,
198,
220,
220,
220,
220,
220,
220,
220,
285,
62,
9806,
3646,
1531,
10699,
1635,
25882,
62,
11674,
3698,
5258,
62,
18973,
62,
7378,
40,
62,
9858,
44,
198,
220,
220,
220,
1267,
628,
220,
220,
220,
1303,
1848,
329,
5743,
6946,
198,
220,
220,
220,
401,
33,
3046,
10699,
15853,
357,
198,
220,
220,
220,
220,
220,
220,
220,
14808,
76,
62,
808,
9452,
1222,
285,
62,
4033,
9452,
8,
1343,
357,
76,
62,
808,
9452,
1222,
285,
62,
14382,
9452,
8,
1343,
357,
76,
62,
4033,
9452,
1222,
285,
62,
14382,
9452,
8,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
357,
76,
62,
808,
11518,
1222,
285,
62,
4033,
11518,
8,
1343,
357,
76,
62,
808,
11518,
1222,
285,
62,
14382,
11518,
8,
1343,
357,
76,
62,
4033,
11518,
1222,
285,
62,
14382,
11518,
8,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
357,
76,
62,
808,
11518,
1222,
285,
62,
4033,
9452,
8,
1343,
357,
76,
62,
808,
9452,
1222,
285,
62,
14382,
11518,
8,
1343,
357,
76,
62,
4033,
9452,
1222,
285,
62,
14382,
11518,
8,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
357,
76,
62,
808,
9452,
1222,
285,
62,
4033,
11518,
8,
1343,
357,
76,
62,
808,
11518,
1222,
285,
62,
14382,
9452,
8,
1343,
357,
76,
62,
4033,
11518,
1222,
285,
62,
14382,
9452,
4008,
1635,
198,
220,
220,
220,
220,
220,
220,
220,
285,
62,
9806,
37021,
10699,
1635,
25882,
62,
11674,
3698,
5258,
62,
18973,
62,
7378,
40,
62,
9858,
44,
198,
220,
220,
220,
1267,
628,
220,
220,
220,
1303,
1848,
329,
5228,
6946,
198,
220,
220,
220,
1303,
5766,
286,
1467,
318,
523,
1123,
11876,
468,
663,
898,
12940,
1627,
198,
220,
220,
220,
401,
33,
3046,
10699,
15853,
14808,
7,
76,
62,
808,
9452,
1222,
285,
62,
4033,
9452,
1222,
285,
62,
14382,
9452,
8,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
76,
62,
808,
9452,
1222,
285,
62,
4033,
9452,
1222,
285,
62,
14382,
11518,
8,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
76,
62,
808,
9452,
1222,
285,
62,
4033,
11518,
1222,
285,
62,
14382,
9452,
8,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
76,
62,
808,
9452,
1222,
285,
62,
4033,
11518,
1222,
285,
62,
14382,
11518,
8,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
76,
62,
808,
11518,
1222,
285,
62,
4033,
9452,
1222,
285,
62,
14382,
9452,
8,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
76,
62,
808,
11518,
1222,
285,
62,
4033,
9452,
1222,
285,
62,
14382,
11518,
8,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
76,
62,
808,
11518,
1222,
285,
62,
4033,
11518,
1222,
285,
62,
14382,
9452,
8,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
76,
62,
808,
11518,
1222,
285,
62,
4033,
11518,
1222,
285,
62,
14382,
11518,
4008,
1635,
327,
2246,
13909,
62,
8220,
16879,
18310,
62,
47,
2885,
62,
2200,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
725,
6601,
25206,
796,
20650,
90,
43879,
2414,
92,
7,
917,
891,
11,
401,
33,
3046,
10699,
8,
198,
220,
220,
220,
725,
6601,
6690,
85,
796,
20650,
90,
43879,
2414,
92,
7,
917,
891,
11,
401,
33,
3046,
10699,
8,
198,
220,
220,
220,
1303,
2948,
12462,
966,
13269,
198,
220,
220,
220,
6070,
0,
7,
9503,
6601,
25206,
11,
657,
8,
198,
220,
220,
220,
6070,
0,
7,
9503,
6601,
6690,
85,
11,
657,
8,
628,
220,
220,
220,
1303,
30149,
560,
13760,
1039,
198,
220,
220,
220,
611,
357,
76,
62,
4033,
33711,
6624,
657,
8,
198,
220,
220,
220,
220,
220,
220,
220,
47558,
0,
7,
1837,
3020,
55,
11,
5743,
45,
4147,
9,
14907,
45,
4147,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
611,
357,
76,
62,
808,
33711,
6624,
657,
8,
198,
220,
220,
220,
220,
220,
220,
220,
47558,
0,
7,
1837,
3020,
56,
11,
5743,
45,
4147,
9,
14907,
45,
4147,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
611,
357,
76,
62,
14382,
33711,
6624,
657,
8,
198,
220,
220,
220,
220,
220,
220,
220,
47558,
0,
7,
1837,
3020,
57,
11,
5743,
45,
4147,
9,
14907,
45,
4147,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
2488,
8002,
62,
43961,
0,
7386,
198,
437,
198,
198,
1136,
3666,
27520,
7,
9503,
3712,
7378,
40,
13,
6935,
8,
796,
4904,
40,
13,
6935,
62,
43027,
7,
9503,
8,
198,
1136,
3666,
27520,
7,
3712,
18465,
8,
796,
657,
198,
198,
1136,
33111,
49,
2283,
7,
9503,
3712,
7378,
40,
13,
6935,
8,
796,
4904,
40,
13,
6935,
62,
7857,
7,
9503,
8,
198,
1136,
33111,
49,
2283,
7,
3712,
18465,
8,
796,
352,
198,
198,
1136,
54,
2435,
7,
3712,
7378,
40,
13,
6935,
8,
796,
4904,
40,
13,
54,
2435,
3419,
198,
1136,
54,
2435,
7,
3712,
18465,
8,
796,
640,
3419,
198,
198,
9503,
62,
9806,
7,
7890,
3712,
43879,
2414,
11,
725,
3712,
7378,
40,
13,
6935,
8,
796,
4904,
40,
13,
3237,
445,
7234,
7,
7890,
11,
4904,
40,
13,
22921,
11,
725,
8,
198,
9503,
62,
9806,
7,
7890,
3712,
43879,
2414,
11,
7904,
18465,
8,
796,
1366,
198,
198,
9503,
62,
1084,
7,
7890,
3712,
43879,
2414,
11,
725,
3712,
7378,
40,
13,
6935,
8,
796,
4904,
40,
13,
3237,
445,
7234,
7,
7890,
11,
4904,
40,
13,
23678,
11,
725,
8,
198,
9503,
62,
1084,
7,
7890,
3712,
43879,
2414,
11,
7904,
18465,
8,
796,
1366,
198,
198,
9503,
62,
5657,
5277,
7,
9503,
3712,
7378,
40,
13,
6935,
8,
796,
4904,
40,
13,
10374,
5277,
7,
9503,
8,
198,
9503,
62,
5657,
5277,
7,
3712,
18465,
8,
796,
2147,
198
] | 2.11413 | 1,472 |
using ParallelAccelerator
#ParallelAccelerator.ParallelIR.set_debug_level(3)
@acc function find_chg(k,m,W,Wp)
W_tmp = [abs(W[i,j] - Wp[i,j]) for i in 1:m, j in 1:k]
s = [sum(W_tmp[:,j]) for j in 1:k]
chg = maximum(s)
end
function main(m::Int, k::Int)
W = Array{Float64}(m, k)
Wp = Array{Float64}(m, k)
fill!(W, 3)
fill!(Wp, 5)
chg = find_chg(k,m,W,Wp)
println("chg = ", chg)
end
main(100, 100)
| [
3500,
42945,
12832,
7015,
1352,
198,
198,
2,
10044,
29363,
12832,
7015,
1352,
13,
10044,
29363,
4663,
13,
2617,
62,
24442,
62,
5715,
7,
18,
8,
198,
198,
31,
4134,
2163,
1064,
62,
354,
70,
7,
74,
11,
76,
11,
54,
11,
54,
79,
8,
197,
220,
198,
197,
54,
62,
22065,
796,
685,
8937,
7,
54,
58,
72,
11,
73,
60,
532,
370,
79,
58,
72,
11,
73,
12962,
329,
1312,
287,
352,
25,
76,
11,
474,
287,
352,
25,
74,
60,
198,
197,
82,
796,
685,
16345,
7,
54,
62,
22065,
58,
45299,
73,
12962,
329,
474,
287,
352,
25,
74,
60,
198,
197,
354,
70,
796,
5415,
7,
82,
8,
198,
437,
198,
198,
8818,
1388,
7,
76,
3712,
5317,
11,
479,
3712,
5317,
8,
198,
220,
220,
220,
370,
220,
796,
15690,
90,
43879,
2414,
92,
7,
76,
11,
479,
8,
220,
220,
220,
198,
220,
220,
220,
370,
79,
796,
15690,
90,
43879,
2414,
92,
7,
76,
11,
479,
8,
198,
220,
220,
220,
6070,
0,
7,
54,
11,
513,
8,
198,
220,
220,
220,
6070,
0,
7,
54,
79,
11,
642,
8,
198,
220,
220,
220,
442,
70,
796,
1064,
62,
354,
70,
7,
74,
11,
76,
11,
54,
11,
54,
79,
8,
628,
220,
220,
220,
44872,
7203,
354,
70,
796,
33172,
442,
70,
8,
198,
198,
437,
198,
198,
12417,
7,
3064,
11,
1802,
8,
198
] | 1.850427 | 234 |
using Iconv
using Test
@test iconv("笨熊", "UTF-8", "GBK") == togbk("笨熊") == g"笨熊"
@test iconv(g"笨熊", "GBK", "UTF-8") == toutf8(g"笨熊") == b"笨熊" | [
3500,
26544,
85,
198,
3500,
6208,
198,
198,
31,
9288,
7196,
85,
7203,
163,
105,
101,
163,
228,
232,
1600,
366,
48504,
12,
23,
1600,
366,
4579,
42,
4943,
6624,
284,
22296,
74,
7203,
163,
105,
101,
163,
228,
232,
4943,
6624,
308,
1,
163,
105,
101,
163,
228,
232,
1,
198,
31,
9288,
7196,
85,
7,
70,
1,
163,
105,
101,
163,
228,
232,
1600,
366,
4579,
42,
1600,
366,
48504,
12,
23,
4943,
6624,
256,
448,
69,
23,
7,
70,
1,
163,
105,
101,
163,
228,
232,
4943,
6624,
275,
1,
163,
105,
101,
163,
228,
232,
1
] | 1.42 | 100 |
module GHWT_tf_1d
include("utils.jl")
using ..GraphSignal, ..GraphPartition, ..BasisSpecification, LinearAlgebra
include("common.jl")
export ghwt_tf_bestbasis, eghwt_bestbasis
"""
coeffdict = tf_init(dmatrix::Matrix{Float64},GP::GraphPart)
Store the expanding coeffcients from matrix into a list of dictionary (inbuilt hashmap in Julia)
### Input Arguments
* `dmatrix`: The expanding GHWT coefficients of all levels corresponding to input GP
* `GP::GraphPart`: an input GraphPart object
### Output Arguments
* `coeffdict`: The expanding GHWT coeffcients stored in a list of "dictionary" (inbuilt hashmap in Julia),
* `coeffdict`: The entry `coeffdict[j][(k,l)]` corresponds to the coefficient of basis-vector on level j with region k and tag l.
Copyright 2018 The Regents of the University of California
Implemented by Yiqun Shao (Adviser: Dr. Naoki Saito)
"""
function tf_init(dmatrix::Matrix{Float64},GP::GraphPart)
# Obtain the tag information
tag = convert(Array{Int,2},GP.tag)
# Obtain the region information
tag_r = convert(Array{Int,2},rs_to_region(GP.rs, GP.tag))
(m,n) = size(dmatrix)
# Initialize coeffdict
coeffdict = Array{Dict{Tuple{Int,Int},Float64}}(undef, n)
# Fill in the values with the rule that `coeffdict[j][(k,l)]` represents
# the coefficient of basis-vector on level j with region k and tag l.
for i = 1:n
coeffdict[i]= Dict{Tuple{Int,Int},Float64}((tag_r[j,i],tag[j,i]) => dmatrix[j,i] for j=1:m)
end
return coeffdict
end
"""
coeffdict_new,tag_tf = tf_core_new(coeffdict::Array{Dict{Tuple{Int,Int},Float64},1})
One forward iteration of time-frequency adapted GHWT method. For each entry in `coeffdict_new`, we compare two (or one) entries in 'coeffdict' on time-direction and two (or one) entries in 'coeffdict' on frequency-direction.
Those two groups reprensent the same subspace. We compare the cost-functional value of them and choose the smaller one as a new entry in 'coeffdict_new'.
### Input Arguments
* `coeffdict`: The entries of which reprensents the cost functional value of some basis-vectors' coefficients.
### Output Arguments
* `coeffdict_new`: The entries of which represents the cost functional value of some basis-vectors' coefficients
* `tag_tf`: Indicating whether the time-direction (0) or frequency direction (1) was chosen for each entry in coeffdict_new.
Copyright 2018 The Regents of the University of California
Implemented by Yiqun Shao (Adviser: Dr. Naoki Saito)
"""
function tf_core_new(coeffdict::Array{Dict{Tuple{Int,Int},Float64},1})
# We choose '1-norm' as the optional cost functional
costfun = cost_functional(1)
jmax = length(coeffdict)
# Initialization
coeffdict_new = Array{Dict{Tuple{Int,Int},Float64}}(undef, jmax-1)
tag_tf = Array{Dict{Tuple{Int,Int},Bool}}(undef, jmax-1)
# Iterate through levels
for j = 1:(jmax-1)
# the temporary dictionary, which will be the j-th level of `coeffdict_new`
temp_coeff = Dict{Tuple{Int,Int},Float64}()
# the temporary dictionary, which will be the j-th level of 'tag_tf'
temp_tf = Dict{Tuple{Int,Int},Bool}()
# iterate through the entries in coeffdict on level j
for key in keys(coeffdict[j])
# coeffdict[j][k,l] represent the entry on level j with region k and tag l
k = key[1] # region index
l = key[2] # tag index
# only look at the entry with even tag l to avoid duplication
if l%2 == 0
# search for the (j,k,l+1) entry.
# the (j,k,l) and (j,k,l+1) span the same subspace as (j+1,2*k,l/2) and (j+1,2*k+1,l/2)
# (j,k,l) and (j,k,l+1) are `frequency-direction`
# (j,k,l) and (j,k,l+1) are `time-direction`
if haskey(coeffdict[j],(k,l+1)) # check for degenerate case ((j,k,l+1) doesn't exist)
freqcos = costfun([coeffdict[j][(k,l)],coeffdict[j][(k,l+1)]])
else
freqcos = costfun([coeffdict[j][(k,l)]])
end
if ~haskey(coeffdict[j+1],(2*k,l/2)) # check for degenerate case ((j+1,2*k,l/2) or (j+1,2*k+1,l/2) doesn't exist)
timecos = costfun([coeffdict[j+1][(2*k+1,l/2)]])
elseif ~haskey(coeffdict[j+1],(2*k+1,l/2))
timecos = costfun([coeffdict[j+1][(2*k,l/2)]])
else
timecos = costfun([coeffdict[j+1][(2*k+1,l/2)],coeffdict[j+1][(2*k,l/2)]])
end
# compare the cost-functional value and record into 'tag_tf'
if timecos <= freqcos
temp_coeff[(k,l/2)] = timecos
temp_tf[(k,l/2)] = false
else
temp_coeff[(k,l/2)] = freqcos
temp_tf[(k,l/2)] = true
end
end
end
coeffdict_new[j] = temp_coeff
tag_tf[j] = temp_tf
end
return coeffdict_new,tag_tf
end
"""
tag_tf_b_new = tf_basisrecover_new(tag_tf_b::Array{Dict{Tuple{Int,Int},Bool}},tag_tf_f::Array{Dict{Tuple{Int,Int},Bool}})
One backward iteration of time-frequency adapted GHWT method to recover the best-basis from the `tag_tf`s recorded.
### Input Arguments
* `tag_tf_b`: The `dictionary` recording the time-or-frequency information on some iteration 'i' in the main algorithm
* `tag_tf_f`: The `dictionary` recording the time-or-frequency information on some iteration 'i+1' in the main algorithm
### Output Arguments
* `tag_tf_b_new`: The updated 'tag_tf_b'. Eventually the 'tag_tf' on iteration 1 will represent the selected best-basis
Copyright 2018 The Regents of the University of California
Implemented by Yiqun Shao (Adviser: Dr. Naoki Saito)
"""
function tf_basisrecover_new(tag_tf_b::Array{Dict{Tuple{Int,Int},Bool}},tag_tf_f::Array{Dict{Tuple{Int,Int},Bool}})
# Initialization
jmax = length(tag_tf_b)
#tag_tf_b_new = Array{Dict{Tuple{Int,Int},Bool}}(jmax)
tag_tf_b_new = Array{Dict{Tuple{Int,Int},Bool}}(undef, jmax)
for j = 1:jmax
tag_tf_b_new[j] = Dict{Tuple{Int,Int},Bool}()
end
# Iterate on the levels
for j = 1:(jmax-1)
for key in keys(tag_tf_f[j])
k = key[1]
l = key[2]
# The entries on frequency-direction are selected
if tag_tf_f[j][(k,l)] == true
if ~haskey(tag_tf_b[j],(k,2*l))
tag_tf_b_new[j][(k,2*l+1)] = tag_tf_b[j][(k,2*l+1)]
elseif ~haskey(tag_tf_b[j],(k,2*l+1))
tag_tf_b_new[j][(k,2*l)] = tag_tf_b[j][(k,2*l)]
else
tag_tf_b_new[j][(k,2*l)] = tag_tf_b[j][(k,2*l)]
tag_tf_b_new[j][(k,2*l+1)] = tag_tf_b[j][(k,2*l+1)]
end
else
# The entries on time-direction are selected
if ~haskey(tag_tf_b[j+1],(2*k,l))
tag_tf_b_new[j+1][(2*k+1,l)] = tag_tf_b[j+1][(2*k+1,l)]
elseif ~haskey(tag_tf_b[j+1],(2*k+1,l))
tag_tf_b_new[j+1][(2*k,l)] = tag_tf_b[j+1][(2*k,l)]
else
tag_tf_b_new[j+1][(2*k+1,l)] = tag_tf_b[j+1][(2*k+1,l)]
tag_tf_b_new[j+1][(2*k,l)] = tag_tf_b[j+1][(2*k,l)]
end
end
end
end
return tag_tf_b_new
end
"""
(dvec, BS) = ghwt_tf_bestbasis(dmatrix::Array{Float64,3}, GP::GraphPart; cfspec::Float64 = 1.0, flatten::Any = 1.0)
Implementation of time-frequency adapted GHWT method = eGHWT.
Modified from the algorithm in the paper: "A Fast Algorithm for Adapted Time Frequency Tilings" by Christoph M. Thiele and Lars F. Villemoes.
### Input Arguments
* `dmatrix::Array{Float64,3}`: the matrix of expansion coefficients
* `GP::GraphPart`: an input GraphPart object
* `cfspec::Any`: the specification of cost functional to be used (default: 1.0, i.e., 1-norm)
* `flatten::Any`: the method for flattening vector-valued data to scalar-valued data (default: 1.0, i.e., 1-norm)
### Output Arguments
* `dvec::Matrix{Float64}`: the vector of expansion coefficients corresponding to the eGHWT best basis
* `BS::BasisSpec`: a BasisSpec object which specifies the eGHWT best basis
Copyright 2018 The Regents of the University of California
Implemented by Yiqun Shao (Adviser: Dr. Naoki Saito)
"""
function ghwt_tf_bestbasis(dmatrix::Array{Float64,3}, GP::GraphPart; cfspec::Float64 = 1.0, flatten::Any = 1.0)
# determine the cost functional to be used
costfun = cost_functional(cfspec)
# constants and dmatrix cleanup
fcols = Base.size(dmatrix,3)
dmatrix[ abs.(dmatrix) .< 10^2 * eps() ] .= 0
dmatrix0 = deepcopy(dmatrix) # keep the original dmatrix as dmatrix0
# "flatten" dmatrix
if fcols > 1
if !isnothing(flatten)
dmatrix = dmatrix_flatten(dmatrix, flatten)[:,:,1]
end
end
dmatrix = dmatrix.^cfspec
# Initialization. Store the expanding coeffcients from matrix into a list of dictionary (inbuilt hashmap in Julia)
# The entry `coeffdict[j][(k,l)]` corresponds to the coefficient of basis-vector on level j with region k and tag l.
tag = convert(Array{Int,2},GP.tag)
tag_r = rs_to_region(GP.rs, GP.tag)
(m,n) = size(dmatrix)
coeffdict = Array{Dict{Tuple{Int,Int},Float64}}(undef, n)
for i = 1:n
coeffdict[i]= Dict{Tuple{Int,Int},Float64}((tag_r[j,i],tag[j,i]) => dmatrix[j,i] for j=1:m)
end
# TAG_tf stores the time-or-frequency information on every iteration
# COEFFDICT stores the corresponding cost-functional values.
COEFFDICT = Vector(undef, n)
TAG_tf = Vector(undef, n)
# Initialization of the first iteration
COEFFDICT[1] = coeffdict
TAG_tf_init = Array{Dict{Tuple{Int,Int},Bool}}(undef, n)
for j = 1:n
TAG_tf_init[j] = Dict(key => true for key in keys(coeffdict[j]))
end
TAG_tf[1] = TAG_tf_init
# Iterate forward. For each entry in `COEFFDICT[i+1]`, we compare two (or one) entries in 'COEFFDICT[i]' on time-direction and two (or one) on frequency-direction.
# Those two groups reprensent the same subspace. We compare the cost-functional value of them and choose the smaller one as a new entry in 'COEFFDICT[i+1]'
# 'TAG_tf[i+1]' records if frequency-direction (1) or time-direction (0) was chosen.
for i = 1:(n-1)
COEFFDICT[i+1], TAG_tf[i+1] = tf_core_new(COEFFDICT[i])
end
# Iterate backward with the existing tag_tf information to recover the best-basis.
bestbasis_tag = TAG_tf[n]
for i = (n-1):-1:1
bestbasis_tag = tf_basisrecover_new(TAG_tf[i],bestbasis_tag)
end
# Change the data structure from dictionary to matrix
#bestbasis = zeros(m,n)
#bestbasis_tag_matrix = zeros(Int,m,n)
levlist = Vector{Tuple{Int,Int}}(undef, 0)
dvec = Vector{Float64}(undef, 0)
for j = 1:n
for i = 1:m
k = tag_r[i,j]
l = tag[i,j]
if haskey(bestbasis_tag[j],(k,l))
#bestbasis_tag_matrix[i,j] = 1
push!(levlist, (i,j))
#bestbasis[i,j] = dmatrix[i,j]
push!(dvec, dmatrix[i,j])
end
end
end
BS = BasisSpec(levlist, c2f = true, description = "eGHWT Best Basis")
dvec = dmatrix2dvec(dmatrix0, GP, BS)
return dvec, BS
end # of function ghwt_tf_bestbasis
const eghwt_bestbasis = ghwt_tf_bestbasis # This should be a useful alias!
end # of module GHWT_tf_1d
| [
21412,
24739,
39386,
62,
27110,
62,
16,
67,
201,
198,
201,
198,
17256,
7203,
26791,
13,
20362,
4943,
201,
198,
201,
198,
3500,
11485,
37065,
11712,
282,
11,
11485,
37065,
7841,
653,
11,
11485,
15522,
271,
22882,
2649,
11,
44800,
2348,
29230,
201,
198,
201,
198,
17256,
7203,
11321,
13,
20362,
4943,
201,
198,
201,
198,
39344,
24997,
46569,
62,
27110,
62,
13466,
12093,
271,
11,
304,
456,
46569,
62,
13466,
12093,
271,
201,
198,
201,
198,
201,
198,
37811,
201,
198,
1073,
14822,
11600,
796,
48700,
62,
15003,
7,
67,
6759,
8609,
3712,
46912,
90,
43879,
2414,
5512,
16960,
3712,
37065,
7841,
8,
201,
198,
201,
198,
22658,
262,
11581,
763,
14822,
35611,
422,
17593,
656,
257,
1351,
286,
22155,
357,
259,
18780,
12234,
8899,
287,
22300,
8,
201,
198,
201,
198,
21017,
23412,
20559,
2886,
201,
198,
9,
4600,
67,
6759,
8609,
63,
25,
383,
11581,
24739,
39386,
44036,
286,
477,
2974,
11188,
284,
5128,
14714,
201,
198,
9,
4600,
16960,
3712,
37065,
7841,
63,
25,
281,
5128,
29681,
7841,
2134,
201,
198,
201,
198,
21017,
25235,
20559,
2886,
201,
198,
9,
4600,
1073,
14822,
11600,
63,
25,
383,
11581,
24739,
39386,
763,
14822,
35611,
8574,
287,
257,
1351,
286,
366,
67,
14188,
1,
357,
259,
18780,
12234,
8899,
287,
22300,
828,
201,
198,
9,
4600,
1073,
14822,
11600,
63,
25,
383,
5726,
4600,
1073,
14822,
11600,
58,
73,
7131,
7,
74,
11,
75,
15437,
63,
24866,
284,
262,
35381,
286,
4308,
12,
31364,
319,
1241,
474,
351,
3814,
479,
290,
7621,
300,
13,
201,
198,
201,
198,
15269,
2864,
383,
3310,
658,
286,
262,
2059,
286,
3442,
201,
198,
201,
198,
3546,
1154,
12061,
416,
575,
25011,
403,
911,
5488,
357,
2782,
4703,
263,
25,
1583,
13,
11013,
18228,
311,
38995,
8,
201,
198,
37811,
201,
198,
8818,
48700,
62,
15003,
7,
67,
6759,
8609,
3712,
46912,
90,
43879,
2414,
5512,
16960,
3712,
37065,
7841,
8,
201,
198,
220,
220,
220,
1303,
1835,
3153,
262,
7621,
1321,
201,
198,
220,
220,
220,
7621,
796,
10385,
7,
19182,
90,
5317,
11,
17,
5512,
16960,
13,
12985,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
1835,
3153,
262,
3814,
1321,
201,
198,
220,
220,
220,
7621,
62,
81,
796,
10385,
7,
19182,
90,
5317,
11,
17,
5512,
3808,
62,
1462,
62,
36996,
7,
16960,
13,
3808,
11,
14714,
13,
12985,
4008,
201,
198,
201,
198,
220,
220,
220,
357,
76,
11,
77,
8,
796,
2546,
7,
67,
6759,
8609,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
20768,
1096,
763,
14822,
11600,
201,
198,
220,
220,
220,
763,
14822,
11600,
796,
15690,
90,
35,
713,
90,
51,
29291,
90,
5317,
11,
5317,
5512,
43879,
2414,
11709,
7,
917,
891,
11,
299,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
27845,
287,
262,
3815,
351,
262,
3896,
326,
4600,
1073,
14822,
11600,
58,
73,
7131,
7,
74,
11,
75,
15437,
63,
6870,
201,
198,
220,
220,
220,
1303,
262,
35381,
286,
4308,
12,
31364,
319,
1241,
474,
351,
3814,
479,
290,
7621,
300,
13,
201,
198,
220,
220,
220,
329,
1312,
796,
352,
25,
77,
201,
198,
220,
220,
220,
220,
220,
220,
220,
763,
14822,
11600,
58,
72,
22241,
360,
713,
90,
51,
29291,
90,
5317,
11,
5317,
5512,
43879,
2414,
92,
19510,
12985,
62,
81,
58,
73,
11,
72,
4357,
12985,
58,
73,
11,
72,
12962,
5218,
288,
6759,
8609,
58,
73,
11,
72,
60,
329,
474,
28,
16,
25,
76,
8,
201,
198,
220,
220,
220,
886,
201,
198,
220,
220,
220,
1441,
763,
14822,
11600,
201,
198,
437,
201,
198,
201,
198,
201,
198,
37811,
201,
198,
1073,
14822,
11600,
62,
3605,
11,
12985,
62,
27110,
796,
48700,
62,
7295,
62,
3605,
7,
1073,
14822,
11600,
3712,
19182,
90,
35,
713,
90,
51,
29291,
90,
5317,
11,
5317,
5512,
43879,
2414,
5512,
16,
30072,
201,
198,
201,
198,
3198,
2651,
24415,
286,
640,
12,
35324,
16573,
24739,
39386,
2446,
13,
1114,
1123,
5726,
287,
4600,
1073,
14822,
11600,
62,
3605,
47671,
356,
8996,
734,
357,
273,
530,
8,
12784,
287,
705,
1073,
14822,
11600,
6,
319,
640,
12,
37295,
290,
734,
357,
273,
530,
8,
12784,
287,
705,
1073,
14822,
11600,
6,
319,
8373,
12,
37295,
13,
201,
198,
9627,
734,
2628,
1128,
918,
34086,
262,
976,
850,
13200,
13,
775,
8996,
262,
1575,
12,
45124,
1988,
286,
606,
290,
3853,
262,
4833,
530,
355,
257,
649,
5726,
287,
705,
1073,
14822,
11600,
62,
3605,
4458,
201,
198,
201,
198,
21017,
23412,
20559,
2886,
201,
198,
9,
4600,
1073,
14822,
11600,
63,
25,
383,
12784,
286,
543,
1128,
918,
82,
658,
262,
1575,
10345,
1988,
286,
617,
4308,
12,
303,
5217,
6,
44036,
13,
201,
198,
201,
198,
21017,
25235,
20559,
2886,
201,
198,
9,
4600,
1073,
14822,
11600,
62,
3605,
63,
25,
383,
12784,
286,
543,
6870,
262,
1575,
10345,
1988,
286,
617,
4308,
12,
303,
5217,
6,
44036,
201,
198,
9,
4600,
12985,
62,
27110,
63,
25,
1423,
12364,
1771,
262,
640,
12,
37295,
357,
15,
8,
393,
8373,
4571,
357,
16,
8,
373,
7147,
329,
1123,
5726,
287,
763,
14822,
11600,
62,
3605,
13,
201,
198,
201,
198,
15269,
2864,
383,
3310,
658,
286,
262,
2059,
286,
3442,
201,
198,
201,
198,
3546,
1154,
12061,
416,
575,
25011,
403,
911,
5488,
357,
2782,
4703,
263,
25,
1583,
13,
11013,
18228,
311,
38995,
8,
201,
198,
37811,
201,
198,
8818,
48700,
62,
7295,
62,
3605,
7,
1073,
14822,
11600,
3712,
19182,
90,
35,
713,
90,
51,
29291,
90,
5317,
11,
5317,
5512,
43879,
2414,
5512,
16,
30072,
201,
198,
220,
220,
220,
1303,
775,
3853,
705,
16,
12,
27237,
6,
355,
262,
11902,
1575,
10345,
201,
198,
220,
220,
220,
1575,
12543,
796,
1575,
62,
45124,
7,
16,
8,
201,
198,
220,
220,
220,
474,
9806,
796,
4129,
7,
1073,
14822,
11600,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
20768,
1634,
201,
198,
220,
220,
220,
763,
14822,
11600,
62,
3605,
796,
15690,
90,
35,
713,
90,
51,
29291,
90,
5317,
11,
5317,
5512,
43879,
2414,
11709,
7,
917,
891,
11,
474,
9806,
12,
16,
8,
201,
198,
220,
220,
220,
7621,
62,
27110,
796,
15690,
90,
35,
713,
90,
51,
29291,
90,
5317,
11,
5317,
5512,
33,
970,
11709,
7,
917,
891,
11,
474,
9806,
12,
16,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
40806,
378,
832,
2974,
201,
198,
220,
220,
220,
329,
474,
796,
352,
37498,
73,
9806,
12,
16,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
262,
8584,
22155,
11,
543,
481,
307,
262,
474,
12,
400,
1241,
286,
4600,
1073,
14822,
11600,
62,
3605,
63,
201,
198,
220,
220,
220,
220,
220,
220,
220,
20218,
62,
1073,
14822,
796,
360,
713,
90,
51,
29291,
90,
5317,
11,
5317,
5512,
43879,
2414,
92,
3419,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
262,
8584,
22155,
11,
543,
481,
307,
262,
474,
12,
400,
1241,
286,
705,
12985,
62,
27110,
6,
201,
198,
220,
220,
220,
220,
220,
220,
220,
20218,
62,
27110,
796,
360,
713,
90,
51,
29291,
90,
5317,
11,
5317,
5512,
33,
970,
92,
3419,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
11629,
378,
832,
262,
12784,
287,
763,
14822,
11600,
319,
1241,
474,
201,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
287,
8251,
7,
1073,
14822,
11600,
58,
73,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
763,
14822,
11600,
58,
73,
7131,
74,
11,
75,
60,
2380,
262,
5726,
319,
1241,
474,
351,
3814,
479,
290,
7621,
300,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
796,
1994,
58,
16,
60,
1303,
3814,
6376,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
796,
1994,
58,
17,
60,
1303,
7621,
6376,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
691,
804,
379,
262,
5726,
351,
772,
7621,
300,
284,
3368,
50124,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
300,
4,
17,
6624,
657,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2989,
329,
262,
357,
73,
11,
74,
11,
75,
10,
16,
8,
5726,
13,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
262,
357,
73,
11,
74,
11,
75,
8,
290,
357,
73,
11,
74,
11,
75,
10,
16,
8,
11506,
262,
976,
850,
13200,
355,
357,
73,
10,
16,
11,
17,
9,
74,
11,
75,
14,
17,
8,
290,
357,
73,
10,
16,
11,
17,
9,
74,
10,
16,
11,
75,
14,
17,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
357,
73,
11,
74,
11,
75,
8,
290,
357,
73,
11,
74,
11,
75,
10,
16,
8,
389,
4600,
35324,
12,
37295,
63,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
357,
73,
11,
74,
11,
75,
8,
290,
357,
73,
11,
74,
11,
75,
10,
16,
8,
389,
4600,
2435,
12,
37295,
63,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
468,
2539,
7,
1073,
14822,
11600,
58,
73,
4357,
7,
74,
11,
75,
10,
16,
4008,
1303,
2198,
329,
25419,
378,
1339,
14808,
73,
11,
74,
11,
75,
10,
16,
8,
1595,
470,
2152,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2030,
80,
6966,
796,
1575,
12543,
26933,
1073,
14822,
11600,
58,
73,
7131,
7,
74,
11,
75,
8,
4357,
1073,
14822,
11600,
58,
73,
7131,
7,
74,
11,
75,
10,
16,
8,
11907,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2030,
80,
6966,
796,
1575,
12543,
26933,
1073,
14822,
11600,
58,
73,
7131,
7,
74,
11,
75,
8,
11907,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5299,
10134,
2539,
7,
1073,
14822,
11600,
58,
73,
10,
16,
4357,
7,
17,
9,
74,
11,
75,
14,
17,
4008,
1303,
2198,
329,
25419,
378,
1339,
14808,
73,
10,
16,
11,
17,
9,
74,
11,
75,
14,
17,
8,
393,
357,
73,
10,
16,
11,
17,
9,
74,
10,
16,
11,
75,
14,
17,
8,
1595,
470,
2152,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
6966,
796,
1575,
12543,
26933,
1073,
14822,
11600,
58,
73,
10,
16,
7131,
7,
17,
9,
74,
10,
16,
11,
75,
14,
17,
8,
11907,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
5299,
10134,
2539,
7,
1073,
14822,
11600,
58,
73,
10,
16,
4357,
7,
17,
9,
74,
10,
16,
11,
75,
14,
17,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
6966,
796,
1575,
12543,
26933,
1073,
14822,
11600,
58,
73,
10,
16,
7131,
7,
17,
9,
74,
11,
75,
14,
17,
8,
11907,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
6966,
796,
1575,
12543,
26933,
1073,
14822,
11600,
58,
73,
10,
16,
7131,
7,
17,
9,
74,
10,
16,
11,
75,
14,
17,
8,
4357,
1073,
14822,
11600,
58,
73,
10,
16,
7131,
7,
17,
9,
74,
11,
75,
14,
17,
8,
11907,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
8996,
262,
1575,
12,
45124,
1988,
290,
1700,
656,
705,
12985,
62,
27110,
6,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
640,
6966,
19841,
2030,
80,
6966,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20218,
62,
1073,
14822,
58,
7,
74,
11,
75,
14,
17,
15437,
796,
640,
6966,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20218,
62,
27110,
58,
7,
74,
11,
75,
14,
17,
15437,
796,
3991,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20218,
62,
1073,
14822,
58,
7,
74,
11,
75,
14,
17,
15437,
796,
2030,
80,
6966,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20218,
62,
27110,
58,
7,
74,
11,
75,
14,
17,
15437,
796,
2081,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
201,
198,
220,
220,
220,
220,
220,
220,
220,
886,
201,
198,
220,
220,
220,
220,
220,
220,
220,
763,
14822,
11600,
62,
3605,
58,
73,
60,
796,
20218,
62,
1073,
14822,
201,
198,
220,
220,
220,
220,
220,
220,
220,
7621,
62,
27110,
58,
73,
60,
796,
20218,
62,
27110,
201,
198,
220,
220,
220,
886,
201,
198,
220,
220,
220,
1441,
763,
14822,
11600,
62,
3605,
11,
12985,
62,
27110,
201,
198,
437,
201,
198,
201,
198,
201,
198,
37811,
201,
198,
220,
220,
220,
7621,
62,
27110,
62,
65,
62,
3605,
796,
48700,
62,
12093,
271,
260,
9631,
62,
3605,
7,
12985,
62,
27110,
62,
65,
3712,
19182,
90,
35,
713,
90,
51,
29291,
90,
5317,
11,
5317,
5512,
33,
970,
92,
5512,
12985,
62,
27110,
62,
69,
3712,
19182,
90,
35,
713,
90,
51,
29291,
90,
5317,
11,
5317,
5512,
33,
970,
11709,
8,
201,
198,
201,
198,
220,
220,
220,
1881,
19528,
24415,
286,
640,
12,
35324,
16573,
24739,
39386,
2446,
284,
8551,
262,
1266,
12,
12093,
271,
422,
262,
4600,
12985,
62,
27110,
63,
82,
6264,
13,
201,
198,
201,
198,
21017,
23412,
20559,
2886,
201,
198,
9,
4600,
12985,
62,
27110,
62,
65,
63,
25,
383,
4600,
67,
14188,
63,
8296,
262,
640,
12,
273,
12,
35324,
1321,
319,
617,
24415,
705,
72,
6,
287,
262,
1388,
11862,
201,
198,
9,
4600,
12985,
62,
27110,
62,
69,
63,
25,
383,
4600,
67,
14188,
63,
8296,
262,
640,
12,
273,
12,
35324,
1321,
319,
617,
24415,
705,
72,
10,
16,
6,
287,
262,
1388,
11862,
201,
198,
201,
198,
21017,
25235,
20559,
2886,
201,
198,
9,
4600,
12985,
62,
27110,
62,
65,
62,
3605,
63,
25,
383,
6153,
705,
12985,
62,
27110,
62,
65,
4458,
16178,
262,
705,
12985,
62,
27110,
6,
319,
24415,
352,
481,
2380,
262,
6163,
1266,
12,
12093,
271,
201,
198,
201,
198,
15269,
2864,
383,
3310,
658,
286,
262,
2059,
286,
3442,
201,
198,
201,
198,
3546,
1154,
12061,
416,
575,
25011,
403,
911,
5488,
357,
2782,
4703,
263,
25,
1583,
13,
11013,
18228,
311,
38995,
8,
201,
198,
37811,
201,
198,
8818,
48700,
62,
12093,
271,
260,
9631,
62,
3605,
7,
12985,
62,
27110,
62,
65,
3712,
19182,
90,
35,
713,
90,
51,
29291,
90,
5317,
11,
5317,
5512,
33,
970,
92,
5512,
12985,
62,
27110,
62,
69,
3712,
19182,
90,
35,
713,
90,
51,
29291,
90,
5317,
11,
5317,
5512,
33,
970,
11709,
8,
201,
198,
220,
220,
220,
1303,
20768,
1634,
201,
198,
220,
220,
220,
474,
9806,
796,
4129,
7,
12985,
62,
27110,
62,
65,
8,
201,
198,
220,
220,
220,
1303,
12985,
62,
27110,
62,
65,
62,
3605,
796,
15690,
90,
35,
713,
90,
51,
29291,
90,
5317,
11,
5317,
5512,
33,
970,
11709,
7,
73,
9806,
8,
201,
198,
220,
220,
220,
7621,
62,
27110,
62,
65,
62,
3605,
796,
15690,
90,
35,
713,
90,
51,
29291,
90,
5317,
11,
5317,
5512,
33,
970,
11709,
7,
917,
891,
11,
474,
9806,
8,
201,
198,
220,
220,
220,
329,
474,
796,
352,
25,
73,
9806,
201,
198,
220,
220,
220,
220,
220,
220,
220,
7621,
62,
27110,
62,
65,
62,
3605,
58,
73,
60,
796,
360,
713,
90,
51,
29291,
90,
5317,
11,
5317,
5512,
33,
970,
92,
3419,
201,
198,
220,
220,
220,
886,
201,
198,
201,
198,
220,
220,
220,
1303,
40806,
378,
319,
262,
2974,
201,
198,
220,
220,
220,
329,
474,
796,
352,
37498,
73,
9806,
12,
16,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
287,
8251,
7,
12985,
62,
27110,
62,
69,
58,
73,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
796,
1994,
58,
16,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
796,
1994,
58,
17,
60,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
383,
12784,
319,
8373,
12,
37295,
389,
6163,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
7621,
62,
27110,
62,
69,
58,
73,
7131,
7,
74,
11,
75,
15437,
6624,
2081,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5299,
10134,
2539,
7,
12985,
62,
27110,
62,
65,
58,
73,
4357,
7,
74,
11,
17,
9,
75,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7621,
62,
27110,
62,
65,
62,
3605,
58,
73,
7131,
7,
74,
11,
17,
9,
75,
10,
16,
15437,
796,
220,
7621,
62,
27110,
62,
65,
58,
73,
7131,
7,
74,
11,
17,
9,
75,
10,
16,
15437,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
220,
5299,
10134,
2539,
7,
12985,
62,
27110,
62,
65,
58,
73,
4357,
7,
74,
11,
17,
9,
75,
10,
16,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7621,
62,
27110,
62,
65,
62,
3605,
58,
73,
7131,
7,
74,
11,
17,
9,
75,
15437,
796,
7621,
62,
27110,
62,
65,
58,
73,
7131,
7,
74,
11,
17,
9,
75,
15437,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7621,
62,
27110,
62,
65,
62,
3605,
58,
73,
7131,
7,
74,
11,
17,
9,
75,
15437,
796,
220,
7621,
62,
27110,
62,
65,
58,
73,
7131,
7,
74,
11,
17,
9,
75,
15437,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7621,
62,
27110,
62,
65,
62,
3605,
58,
73,
7131,
7,
74,
11,
17,
9,
75,
10,
16,
15437,
796,
220,
7621,
62,
27110,
62,
65,
58,
73,
7131,
7,
74,
11,
17,
9,
75,
10,
16,
15437,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
383,
12784,
319,
640,
12,
37295,
389,
6163,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5299,
10134,
2539,
7,
12985,
62,
27110,
62,
65,
58,
73,
10,
16,
4357,
7,
17,
9,
74,
11,
75,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7621,
62,
27110,
62,
65,
62,
3605,
58,
73,
10,
16,
7131,
7,
17,
9,
74,
10,
16,
11,
75,
15437,
796,
220,
7621,
62,
27110,
62,
65,
58,
73,
10,
16,
7131,
7,
17,
9,
74,
10,
16,
11,
75,
15437,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
220,
5299,
10134,
2539,
7,
12985,
62,
27110,
62,
65,
58,
73,
10,
16,
4357,
7,
17,
9,
74,
10,
16,
11,
75,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7621,
62,
27110,
62,
65,
62,
3605,
58,
73,
10,
16,
7131,
7,
17,
9,
74,
11,
75,
15437,
796,
220,
7621,
62,
27110,
62,
65,
58,
73,
10,
16,
7131,
7,
17,
9,
74,
11,
75,
15437,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7621,
62,
27110,
62,
65,
62,
3605,
58,
73,
10,
16,
7131,
7,
17,
9,
74,
10,
16,
11,
75,
15437,
796,
220,
7621,
62,
27110,
62,
65,
58,
73,
10,
16,
7131,
7,
17,
9,
74,
10,
16,
11,
75,
15437,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7621,
62,
27110,
62,
65,
62,
3605,
58,
73,
10,
16,
7131,
7,
17,
9,
74,
11,
75,
15437,
796,
220,
7621,
62,
27110,
62,
65,
58,
73,
10,
16,
7131,
7,
17,
9,
74,
11,
75,
15437,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
201,
198,
220,
220,
220,
220,
220,
220,
220,
886,
201,
198,
220,
220,
220,
886,
201,
198,
220,
220,
220,
1441,
7621,
62,
27110,
62,
65,
62,
3605,
201,
198,
437,
201,
198,
201,
198,
201,
198,
37811,
201,
198,
7,
67,
35138,
11,
24218,
8,
796,
24997,
46569,
62,
27110,
62,
13466,
12093,
271,
7,
67,
6759,
8609,
3712,
19182,
90,
43879,
2414,
11,
18,
5512,
14714,
3712,
37065,
7841,
26,
30218,
16684,
3712,
43879,
2414,
796,
352,
13,
15,
11,
27172,
268,
3712,
7149,
796,
352,
13,
15,
8,
201,
198,
201,
198,
3546,
32851,
286,
640,
12,
35324,
16573,
24739,
39386,
2446,
796,
304,
17511,
39386,
13,
201,
198,
5841,
1431,
422,
262,
11862,
287,
262,
3348,
25,
366,
32,
12549,
978,
42289,
329,
30019,
276,
3862,
31902,
40422,
654,
1,
416,
1951,
2522,
337,
13,
536,
494,
293,
290,
31239,
376,
13,
569,
8270,
76,
3028,
13,
201,
198,
201,
198,
21017,
23412,
20559,
2886,
201,
198,
9,
4600,
67,
6759,
8609,
3712,
19182,
90,
43879,
2414,
11,
18,
92,
63,
25,
262,
17593,
286,
7118,
44036,
201,
198,
9,
4600,
16960,
3712,
37065,
7841,
63,
25,
281,
5128,
29681,
7841,
2134,
201,
198,
9,
4600,
12993,
16684,
3712,
7149,
63,
25,
262,
20855,
286,
1575,
10345,
284,
307,
973,
357,
12286,
25,
352,
13,
15,
11,
1312,
13,
68,
1539,
352,
12,
27237,
8,
201,
198,
9,
4600,
2704,
41769,
3712,
7149,
63,
25,
262,
2446,
329,
27172,
3101,
15879,
12,
39728,
1366,
284,
16578,
283,
12,
39728,
1366,
357,
12286,
25,
352,
13,
15,
11,
1312,
13,
68,
1539,
352,
12,
27237,
8,
201,
198,
201,
198,
21017,
25235,
20559,
2886,
201,
198,
9,
4600,
67,
35138,
3712,
46912,
90,
43879,
2414,
92,
63,
25,
262,
15879,
286,
7118,
44036,
11188,
284,
262,
304,
17511,
39386,
1266,
4308,
201,
198,
9,
4600,
4462,
3712,
15522,
271,
22882,
63,
25,
257,
6455,
271,
22882,
2134,
543,
26052,
262,
304,
17511,
39386,
1266,
4308,
201,
198,
201,
198,
15269,
2864,
383,
3310,
658,
286,
262,
2059,
286,
3442,
201,
198,
201,
198,
3546,
1154,
12061,
416,
575,
25011,
403,
911,
5488,
357,
2782,
4703,
263,
25,
1583,
13,
11013,
18228,
311,
38995,
8,
201,
198,
37811,
201,
198,
8818,
24997,
46569,
62,
27110,
62,
13466,
12093,
271,
7,
67,
6759,
8609,
3712,
19182,
90,
43879,
2414,
11,
18,
5512,
14714,
3712,
37065,
7841,
26,
30218,
16684,
3712,
43879,
2414,
796,
352,
13,
15,
11,
27172,
268,
3712,
7149,
796,
352,
13,
15,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
5004,
262,
1575,
10345,
284,
307,
973,
201,
198,
220,
220,
220,
1575,
12543,
796,
1575,
62,
45124,
7,
12993,
16684,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
38491,
290,
288,
6759,
8609,
27425,
201,
198,
220,
220,
220,
277,
4033,
82,
796,
7308,
13,
7857,
7,
67,
6759,
8609,
11,
18,
8,
201,
198,
220,
220,
220,
288,
6759,
8609,
58,
2352,
12195,
67,
6759,
8609,
8,
764,
27,
838,
61,
17,
1635,
304,
862,
3419,
2361,
764,
28,
657,
201,
198,
201,
198,
220,
220,
220,
288,
6759,
8609,
15,
796,
2769,
30073,
7,
67,
6759,
8609,
8,
220,
220,
220,
220,
220,
1303,
1394,
262,
2656,
288,
6759,
8609,
355,
288,
6759,
8609,
15,
201,
198,
220,
220,
220,
1303,
366,
2704,
41769,
1,
288,
6759,
8609,
201,
198,
220,
220,
220,
611,
277,
4033,
82,
1875,
352,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
5145,
271,
22366,
7,
2704,
41769,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
6759,
8609,
796,
288,
6759,
8609,
62,
2704,
41769,
7,
67,
6759,
8609,
11,
27172,
268,
38381,
45299,
45299,
16,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
886,
201,
198,
220,
220,
220,
886,
201,
198,
220,
220,
220,
288,
6759,
8609,
796,
288,
6759,
8609,
13,
61,
12993,
16684,
201,
198,
201,
198,
220,
220,
220,
1303,
20768,
1634,
13,
9363,
262,
11581,
763,
14822,
35611,
422,
17593,
656,
257,
1351,
286,
22155,
357,
259,
18780,
12234,
8899,
287,
22300,
8,
201,
198,
220,
220,
220,
1303,
383,
5726,
4600,
1073,
14822,
11600,
58,
73,
7131,
7,
74,
11,
75,
15437,
63,
24866,
284,
262,
35381,
286,
4308,
12,
31364,
319,
1241,
474,
351,
3814,
479,
290,
7621,
300,
13,
201,
198,
220,
220,
220,
7621,
796,
10385,
7,
19182,
90,
5317,
11,
17,
5512,
16960,
13,
12985,
8,
201,
198,
220,
220,
220,
7621,
62,
81,
796,
44608,
62,
1462,
62,
36996,
7,
16960,
13,
3808,
11,
14714,
13,
12985,
8,
201,
198,
220,
220,
220,
357,
76,
11,
77,
8,
796,
2546,
7,
67,
6759,
8609,
8,
201,
198,
220,
220,
220,
763,
14822,
11600,
796,
15690,
90,
35,
713,
90,
51,
29291,
90,
5317,
11,
5317,
5512,
43879,
2414,
11709,
7,
917,
891,
11,
299,
8,
201,
198,
220,
220,
220,
329,
1312,
796,
352,
25,
77,
201,
198,
220,
220,
220,
220,
220,
220,
220,
763,
14822,
11600,
58,
72,
22241,
360,
713,
90,
51,
29291,
90,
5317,
11,
5317,
5512,
43879,
2414,
92,
19510,
12985,
62,
81,
58,
73,
11,
72,
4357,
12985,
58,
73,
11,
72,
12962,
5218,
288,
6759,
8609,
58,
73,
11,
72,
60,
329,
474,
28,
16,
25,
76,
8,
201,
198,
220,
220,
220,
886,
201,
198,
201,
198,
220,
220,
220,
1303,
37801,
62,
27110,
7000,
262,
640,
12,
273,
12,
35324,
1321,
319,
790,
24415,
201,
198,
220,
220,
220,
1303,
7375,
37267,
35,
18379,
7000,
262,
11188,
1575,
12,
45124,
3815,
13,
201,
198,
220,
220,
220,
7375,
37267,
35,
18379,
796,
20650,
7,
917,
891,
11,
299,
8,
201,
198,
220,
220,
220,
37801,
62,
27110,
796,
20650,
7,
917,
891,
11,
299,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
20768,
1634,
286,
262,
717,
24415,
201,
198,
220,
220,
220,
7375,
37267,
35,
18379,
58,
16,
60,
796,
763,
14822,
11600,
201,
198,
220,
220,
220,
37801,
62,
27110,
62,
15003,
796,
15690,
90,
35,
713,
90,
51,
29291,
90,
5317,
11,
5317,
5512,
33,
970,
11709,
7,
917,
891,
11,
299,
8,
201,
198,
220,
220,
220,
329,
474,
796,
352,
25,
77,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37801,
62,
27110,
62,
15003,
58,
73,
60,
796,
360,
713,
7,
2539,
5218,
2081,
329,
1994,
287,
8251,
7,
1073,
14822,
11600,
58,
73,
60,
4008,
201,
198,
220,
220,
220,
886,
201,
198,
220,
220,
220,
37801,
62,
27110,
58,
16,
60,
796,
37801,
62,
27110,
62,
15003,
201,
198,
201,
198,
220,
220,
220,
1303,
40806,
378,
2651,
13,
1114,
1123,
5726,
287,
4600,
8220,
37267,
35,
18379,
58,
72,
10,
16,
60,
47671,
356,
8996,
734,
357,
273,
530,
8,
12784,
287,
705,
8220,
37267,
35,
18379,
58,
72,
49946,
319,
640,
12,
37295,
290,
734,
357,
273,
530,
8,
319,
8373,
12,
37295,
13,
201,
198,
220,
220,
220,
1303,
5845,
734,
2628,
1128,
918,
34086,
262,
976,
850,
13200,
13,
775,
8996,
262,
1575,
12,
45124,
1988,
286,
606,
290,
3853,
262,
4833,
530,
355,
257,
649,
5726,
287,
705,
8220,
37267,
35,
18379,
58,
72,
10,
16,
49946,
201,
198,
220,
220,
220,
1303,
705,
42197,
62,
27110,
58,
72,
10,
16,
49946,
4406,
611,
8373,
12,
37295,
357,
16,
8,
393,
640,
12,
37295,
357,
15,
8,
373,
7147,
13,
201,
198,
220,
220,
220,
329,
1312,
796,
352,
37498,
77,
12,
16,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
7375,
37267,
35,
18379,
58,
72,
10,
16,
4357,
37801,
62,
27110,
58,
72,
10,
16,
60,
796,
48700,
62,
7295,
62,
3605,
7,
8220,
37267,
35,
18379,
58,
72,
12962,
201,
198,
220,
220,
220,
886,
201,
198,
201,
198,
220,
220,
220,
1303,
40806,
378,
19528,
351,
262,
4683,
7621,
62,
27110,
1321,
284,
8551,
262,
1266,
12,
12093,
271,
13,
201,
198,
220,
220,
220,
1266,
12093,
271,
62,
12985,
796,
37801,
62,
27110,
58,
77,
60,
201,
198,
220,
220,
220,
329,
1312,
796,
357,
77,
12,
16,
2599,
12,
16,
25,
16,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1266,
12093,
271,
62,
12985,
796,
48700,
62,
12093,
271,
260,
9631,
62,
3605,
7,
42197,
62,
27110,
58,
72,
4357,
13466,
12093,
271,
62,
12985,
8,
201,
198,
220,
220,
220,
886,
201,
198,
201,
198,
220,
220,
220,
1303,
9794,
262,
1366,
4645,
422,
22155,
284,
17593,
201,
198,
220,
220,
220,
1303,
13466,
12093,
271,
796,
1976,
27498,
7,
76,
11,
77,
8,
201,
198,
220,
220,
220,
1303,
13466,
12093,
271,
62,
12985,
62,
6759,
8609,
796,
1976,
27498,
7,
5317,
11,
76,
11,
77,
8,
201,
198,
220,
220,
220,
23145,
4868,
796,
20650,
90,
51,
29291,
90,
5317,
11,
5317,
11709,
7,
917,
891,
11,
657,
8,
201,
198,
220,
220,
220,
288,
35138,
796,
20650,
90,
43879,
2414,
92,
7,
917,
891,
11,
657,
8,
201,
198,
220,
220,
220,
329,
474,
796,
352,
25,
77,
201,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
796,
352,
25,
76,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
796,
7621,
62,
81,
58,
72,
11,
73,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
796,
7621,
58,
72,
11,
73,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
468,
2539,
7,
13466,
12093,
271,
62,
12985,
58,
73,
4357,
7,
74,
11,
75,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
13466,
12093,
271,
62,
12985,
62,
6759,
8609,
58,
72,
11,
73,
60,
796,
352,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
2768,
4868,
11,
357,
72,
11,
73,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
13466,
12093,
271,
58,
72,
11,
73,
60,
796,
288,
6759,
8609,
58,
72,
11,
73,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
67,
35138,
11,
288,
6759,
8609,
58,
72,
11,
73,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
201,
198,
220,
220,
220,
220,
220,
220,
220,
886,
201,
198,
220,
220,
220,
886,
201,
198,
201,
198,
220,
220,
220,
24218,
796,
6455,
271,
22882,
7,
2768,
4868,
11,
269,
17,
69,
796,
2081,
11,
6764,
796,
366,
68,
17511,
39386,
6705,
6455,
271,
4943,
201,
198,
220,
220,
220,
288,
35138,
796,
288,
6759,
8609,
17,
67,
35138,
7,
67,
6759,
8609,
15,
11,
14714,
11,
24218,
8,
201,
198,
220,
220,
220,
1441,
288,
35138,
11,
24218,
201,
198,
437,
1303,
286,
2163,
24997,
46569,
62,
27110,
62,
13466,
12093,
271,
201,
198,
201,
198,
9979,
304,
456,
46569,
62,
13466,
12093,
271,
796,
24997,
46569,
62,
27110,
62,
13466,
12093,
271,
1303,
770,
815,
307,
257,
4465,
16144,
0,
201,
198,
201,
198,
437,
1303,
286,
8265,
24739,
39386,
62,
27110,
62,
16,
67,
201,
198
] | 2.104104 | 5,629 |
using Test
using StaticArrays
using IntervalArithmetic
# using Revise
using HDGElasticity
function allapprox(v1,v2)
return all(v1 .≈ v2)
end
@test HDGElasticity.linear_map_slope(1.,2.,[1.,2.],[3.,4.]) ≈ [2.,2.]
map = HDGElasticity.LineMap(0.,1.,[0.,0.],[1.,1.])
@test map.xiL ≈ 0.0
@test map.xiR ≈ 1.0
@test allapprox(map.xL,[0.,0.])
@test allapprox(map.xR,[1.,1.])
@test allapprox(map.slope,[1.,1.])
@test HDGElasticity.dimension(map) == 2
@test allapprox(map(0.),[0.,0.])
@test allapprox(map(0.5),[0.5,0.5])
map = HDGElasticity.LineMap([0.5,0.5],[1.,0.5])
@test map.xiL ≈ -1.0
@test map.xiR ≈ 1.0
@test allapprox(map.xL,[0.5,0.5])
@test allapprox(map.xR,[1.0,0.5])
@test allapprox(map.slope,[0.5,0.0]/2)
map = HDGElasticity.LineMap([0.,0.],[1.,1.]*sqrt(2))
@test allapprox(map(-1),[0.,0.])
@test allapprox(map(1),[1,1]*sqrt(2))
@test allapprox(HDGElasticity.jacobian(map),[1,1]/sqrt(2))
@test allapprox(HDGElasticity.determinant_jacobian(map),1.)
@test allapprox(HDGElasticity.inverse_jacobian(map),[1,1]*sqrt(2))
xiL = [0.,0.]
xiR = [1.,1.]
xL = [0.,0.]
xR = [2.,1.]
map = HDGElasticity.CellMap(xiL,xiR,xL,xR)
@test allapprox(map.xiL,xiL)
@test allapprox(map.xiR,xiR)
@test allapprox(map.xL,xL)
@test allapprox(map.xR,xR)
@test HDGElasticity.dimension(map) == 2
@test allapprox(map([0.5,0.5]),[1.,0.5])
@test allapprox(map([0.25,0.75]),[0.5,0.75])
@test allapprox(HDGElasticity.jacobian(map),[2.,1.])
@test allapprox(HDGElasticity.inverse_jacobian(map),[0.5,1.])
@test HDGElasticity.determinant_jacobian(map) ≈ 2.0
@test allapprox(HDGElasticity.face_determinant_jacobian(map),[2.,1.,2.,1.])
HDGElasticity.update_range!(map,[1.,1.],[2.,2.])
@test allapprox(map([0.5,0.5]),[1.5,1.5])
@test allapprox(map([0.75,0.25]),[1.75,1.25])
@test allapprox(HDGElasticity.jacobian(map),[1.,1.])
@test HDGElasticity.determinant_jacobian(map) ≈ 1.0
map = HDGElasticity.CellMap(2)
@test allapprox(map.xiL,[-1.,-1.])
@test allapprox(map.xiR,[+1.,+1.])
@test allapprox(map.xL,[-1.,-1.])
@test allapprox(map.xR,[+1.,+1.])
@test allapprox(map.slope,[1.,1.])
HDGElasticity.update_range!(map,[0.,0.],[1.,1.])
@test allapprox(map.xL,[0.,0.])
@test allapprox(map.xR,[1.,1.])
@test allapprox(map.slope,[0.5,0.5])
box = IntervalBox(1..2,3..5)
HDGElasticity.update_range!(map,box)
@test allapprox(map.xL,[1.,3.])
@test allapprox(map.xR,[2.,5.])
@test allapprox(map.slope,[0.5,1.])
map = HDGElasticity.CellMap([1.,2.],[2.,4.])
@test allapprox(map.xiL,[-1.,-1.])
@test allapprox(map.xiR,[1.,1.])
@test allapprox(map.xL,[1.,2.])
@test allapprox(map.xR,[2.,4.])
@test allapprox(HDGElasticity.jacobian(map),[0.5,1.])
@test HDGElasticity.determinant_jacobian(map) ≈ 0.5
xi = IntervalBox(-1..1,2)
x = IntervalBox(0..1,2)
map = HDGElasticity.CellMap(xi,x)
@test allapprox(map.xiL,[-1.,-1.])
@test allapprox(map.xiR,[1.,1.])
@test allapprox(map.xL,[0.,0.])
@test allapprox(map.xR,[1.,1.])
map = HDGElasticity.CellMap(IntervalBox(0..2,1..2))
@test allapprox(map.xiL,[-1.,-1.])
@test allapprox(map.xiR,[1.,1.])
@test allapprox(map.xL,[0.,1.])
@test allapprox(map.xR,[2.,2.])
fmaps = HDGElasticity.reference_cell_facemaps(2)
@test allapprox(fmaps[1](-1.0),[-1.,-1.])
@test allapprox(fmaps[1](+1.0),[+1.,-1.])
@test allapprox(fmaps[2](-1.0),[+1.,-1.])
@test allapprox(fmaps[2](+1.0),[+1.,+1.])
@test allapprox(fmaps[3](-1.0),[-1.,+1.])
@test allapprox(fmaps[3](+1.0),[+1.,+1.])
@test allapprox(fmaps[4](-1.0),[-1.,-1.])
@test allapprox(fmaps[4](+1.0),[-1.,+1.])
| [
3500,
6208,
198,
3500,
36125,
3163,
20477,
198,
3500,
4225,
2100,
3163,
29848,
198,
2,
1262,
5416,
786,
198,
3500,
5572,
8264,
75,
3477,
414,
198,
198,
8818,
477,
1324,
13907,
7,
85,
16,
11,
85,
17,
8,
198,
220,
220,
220,
1441,
477,
7,
85,
16,
764,
35705,
230,
410,
17,
8,
198,
437,
198,
198,
31,
9288,
5572,
8264,
75,
3477,
414,
13,
29127,
62,
8899,
62,
6649,
3008,
7,
16,
1539,
17,
1539,
58,
16,
1539,
17,
13,
38430,
18,
1539,
19,
8183,
8,
15139,
230,
685,
17,
1539,
17,
8183,
198,
198,
8899,
796,
5572,
8264,
75,
3477,
414,
13,
13949,
13912,
7,
15,
1539,
16,
1539,
58,
15,
1539,
15,
13,
38430,
16,
1539,
16,
8183,
8,
198,
31,
9288,
3975,
13,
29992,
43,
15139,
230,
657,
13,
15,
198,
31,
9288,
3975,
13,
29992,
49,
15139,
230,
352,
13,
15,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
87,
43,
17414,
15,
1539,
15,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
87,
49,
17414,
16,
1539,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
6649,
3008,
17414,
16,
1539,
16,
8183,
8,
198,
31,
9288,
5572,
8264,
75,
3477,
414,
13,
46156,
7,
8899,
8,
6624,
362,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
7,
15,
12179,
58,
15,
1539,
15,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
7,
15,
13,
20,
828,
58,
15,
13,
20,
11,
15,
13,
20,
12962,
198,
198,
8899,
796,
5572,
8264,
75,
3477,
414,
13,
13949,
13912,
26933,
15,
13,
20,
11,
15,
13,
20,
38430,
16,
1539,
15,
13,
20,
12962,
198,
31,
9288,
3975,
13,
29992,
43,
15139,
230,
532,
16,
13,
15,
198,
31,
9288,
3975,
13,
29992,
49,
15139,
230,
352,
13,
15,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
87,
43,
17414,
15,
13,
20,
11,
15,
13,
20,
12962,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
87,
49,
17414,
16,
13,
15,
11,
15,
13,
20,
12962,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
6649,
3008,
17414,
15,
13,
20,
11,
15,
13,
15,
60,
14,
17,
8,
198,
198,
8899,
796,
5572,
8264,
75,
3477,
414,
13,
13949,
13912,
26933,
15,
1539,
15,
13,
38430,
16,
1539,
16,
8183,
9,
31166,
17034,
7,
17,
4008,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
32590,
16,
828,
58,
15,
1539,
15,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
7,
16,
828,
58,
16,
11,
16,
60,
9,
31166,
17034,
7,
17,
4008,
198,
31,
9288,
477,
1324,
13907,
7,
10227,
8264,
75,
3477,
414,
13,
30482,
672,
666,
7,
8899,
828,
58,
16,
11,
16,
60,
14,
31166,
17034,
7,
17,
4008,
198,
31,
9288,
477,
1324,
13907,
7,
10227,
8264,
75,
3477,
414,
13,
67,
13221,
415,
62,
30482,
672,
666,
7,
8899,
828,
16,
2014,
198,
31,
9288,
477,
1324,
13907,
7,
10227,
8264,
75,
3477,
414,
13,
259,
4399,
62,
30482,
672,
666,
7,
8899,
828,
58,
16,
11,
16,
60,
9,
31166,
17034,
7,
17,
4008,
198,
198,
29992,
43,
796,
685,
15,
1539,
15,
8183,
198,
29992,
49,
796,
685,
16,
1539,
16,
8183,
198,
87,
43,
796,
685,
15,
1539,
15,
8183,
198,
87,
49,
796,
685,
17,
1539,
16,
8183,
198,
8899,
796,
5572,
8264,
75,
3477,
414,
13,
28780,
13912,
7,
29992,
43,
11,
29992,
49,
11,
87,
43,
11,
87,
49,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
29992,
43,
11,
29992,
43,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
29992,
49,
11,
29992,
49,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
87,
43,
11,
87,
43,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
87,
49,
11,
87,
49,
8,
198,
31,
9288,
5572,
8264,
75,
3477,
414,
13,
46156,
7,
8899,
8,
6624,
362,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
26933,
15,
13,
20,
11,
15,
13,
20,
46570,
58,
16,
1539,
15,
13,
20,
12962,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
26933,
15,
13,
1495,
11,
15,
13,
2425,
46570,
58,
15,
13,
20,
11,
15,
13,
2425,
12962,
198,
31,
9288,
477,
1324,
13907,
7,
10227,
8264,
75,
3477,
414,
13,
30482,
672,
666,
7,
8899,
828,
58,
17,
1539,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
10227,
8264,
75,
3477,
414,
13,
259,
4399,
62,
30482,
672,
666,
7,
8899,
828,
58,
15,
13,
20,
11,
16,
8183,
8,
198,
31,
9288,
5572,
8264,
75,
3477,
414,
13,
67,
13221,
415,
62,
30482,
672,
666,
7,
8899,
8,
15139,
230,
362,
13,
15,
198,
31,
9288,
477,
1324,
13907,
7,
10227,
8264,
75,
3477,
414,
13,
2550,
62,
67,
13221,
415,
62,
30482,
672,
666,
7,
8899,
828,
58,
17,
1539,
16,
1539,
17,
1539,
16,
8183,
8,
198,
198,
10227,
8264,
75,
3477,
414,
13,
19119,
62,
9521,
0,
7,
8899,
17414,
16,
1539,
16,
13,
38430,
17,
1539,
17,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
26933,
15,
13,
20,
11,
15,
13,
20,
46570,
58,
16,
13,
20,
11,
16,
13,
20,
12962,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
26933,
15,
13,
2425,
11,
15,
13,
1495,
46570,
58,
16,
13,
2425,
11,
16,
13,
1495,
12962,
198,
31,
9288,
477,
1324,
13907,
7,
10227,
8264,
75,
3477,
414,
13,
30482,
672,
666,
7,
8899,
828,
58,
16,
1539,
16,
8183,
8,
198,
31,
9288,
5572,
8264,
75,
3477,
414,
13,
67,
13221,
415,
62,
30482,
672,
666,
7,
8899,
8,
15139,
230,
352,
13,
15,
198,
198,
8899,
796,
5572,
8264,
75,
3477,
414,
13,
28780,
13912,
7,
17,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
29992,
43,
17414,
12,
16,
1539,
12,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
29992,
49,
17414,
10,
16,
1539,
10,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
87,
43,
17414,
12,
16,
1539,
12,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
87,
49,
17414,
10,
16,
1539,
10,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
6649,
3008,
17414,
16,
1539,
16,
8183,
8,
198,
10227,
8264,
75,
3477,
414,
13,
19119,
62,
9521,
0,
7,
8899,
17414,
15,
1539,
15,
13,
38430,
16,
1539,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
87,
43,
17414,
15,
1539,
15,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
87,
49,
17414,
16,
1539,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
6649,
3008,
17414,
15,
13,
20,
11,
15,
13,
20,
12962,
198,
198,
3524,
796,
4225,
2100,
14253,
7,
16,
492,
17,
11,
18,
492,
20,
8,
198,
10227,
8264,
75,
3477,
414,
13,
19119,
62,
9521,
0,
7,
8899,
11,
3524,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
87,
43,
17414,
16,
1539,
18,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
87,
49,
17414,
17,
1539,
20,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
6649,
3008,
17414,
15,
13,
20,
11,
16,
8183,
8,
198,
198,
8899,
796,
5572,
8264,
75,
3477,
414,
13,
28780,
13912,
26933,
16,
1539,
17,
13,
38430,
17,
1539,
19,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
29992,
43,
17414,
12,
16,
1539,
12,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
29992,
49,
17414,
16,
1539,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
87,
43,
17414,
16,
1539,
17,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
87,
49,
17414,
17,
1539,
19,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
10227,
8264,
75,
3477,
414,
13,
30482,
672,
666,
7,
8899,
828,
58,
15,
13,
20,
11,
16,
8183,
8,
198,
31,
9288,
5572,
8264,
75,
3477,
414,
13,
67,
13221,
415,
62,
30482,
672,
666,
7,
8899,
8,
15139,
230,
657,
13,
20,
198,
198,
29992,
796,
4225,
2100,
14253,
32590,
16,
492,
16,
11,
17,
8,
198,
87,
796,
4225,
2100,
14253,
7,
15,
492,
16,
11,
17,
8,
198,
8899,
796,
5572,
8264,
75,
3477,
414,
13,
28780,
13912,
7,
29992,
11,
87,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
29992,
43,
17414,
12,
16,
1539,
12,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
29992,
49,
17414,
16,
1539,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
87,
43,
17414,
15,
1539,
15,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
87,
49,
17414,
16,
1539,
16,
8183,
8,
198,
198,
8899,
796,
5572,
8264,
75,
3477,
414,
13,
28780,
13912,
7,
9492,
2100,
14253,
7,
15,
492,
17,
11,
16,
492,
17,
4008,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
29992,
43,
17414,
12,
16,
1539,
12,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
29992,
49,
17414,
16,
1539,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
87,
43,
17414,
15,
1539,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
8899,
13,
87,
49,
17414,
17,
1539,
17,
8183,
8,
628,
198,
69,
31803,
796,
5572,
8264,
75,
3477,
414,
13,
35790,
62,
3846,
62,
38942,
368,
1686,
7,
17,
8,
198,
31,
9288,
477,
1324,
13907,
7,
69,
31803,
58,
16,
16151,
12,
16,
13,
15,
828,
58,
12,
16,
1539,
12,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
69,
31803,
58,
16,
16151,
10,
16,
13,
15,
828,
58,
10,
16,
1539,
12,
16,
8183,
8,
198,
198,
31,
9288,
477,
1324,
13907,
7,
69,
31803,
58,
17,
16151,
12,
16,
13,
15,
828,
58,
10,
16,
1539,
12,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
69,
31803,
58,
17,
16151,
10,
16,
13,
15,
828,
58,
10,
16,
1539,
10,
16,
8183,
8,
198,
198,
31,
9288,
477,
1324,
13907,
7,
69,
31803,
58,
18,
16151,
12,
16,
13,
15,
828,
58,
12,
16,
1539,
10,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
69,
31803,
58,
18,
16151,
10,
16,
13,
15,
828,
58,
10,
16,
1539,
10,
16,
8183,
8,
198,
198,
31,
9288,
477,
1324,
13907,
7,
69,
31803,
58,
19,
16151,
12,
16,
13,
15,
828,
58,
12,
16,
1539,
12,
16,
8183,
8,
198,
31,
9288,
477,
1324,
13907,
7,
69,
31803,
58,
19,
16151,
10,
16,
13,
15,
828,
58,
12,
16,
1539,
10,
16,
8183,
8,
198
] | 1.91922 | 1,795 |
struct BlockIndices
i1::UnitRange{Int}
i2::UnitRange{Int}
isdiag::Bool
end
# Remove isdiag field from comparison for dict
Base.isequal(b1::BlockIndices, b2::BlockIndices) = b1.i1 == b2.i1 && b1.i2 == b2.i2
Base.hash(b::BlockIndices, h::UInt) = hash((b.i1, b.i2), h)
"""
SparseBlocks
A type for speeding up expressions like the following:
A[rows, cols] .= data
A[rows, cols] .+= data
where `A` is a `SparseMatrixCSC` and `rows` and `cols` are `UnitRange`s. The
`data` is usually a `Matrix` but will work with any `AbstractArray` or
collection that supports broadcasting.
The key assumption is that the sparsity in `A` is known and fixed, specified by
a list of "blocks," or a chunk of consecutive rows and columns, addressable by
two `UnitRange` objects.
Usage consists of two phases: 1) initialization, where the sparsity structure is
specified, and 2) usage, where the precomputed data in this struct is used to
speed up indexing operations.
## Initialization
To specify the sparsity structure, use [`addblock!`](@ref). For example, we could
do the following:
sb = SparseBlocks(10,10) # blocks for a 10x10 sparse matrix
addblock!(sb, 1:2, 1:2) # nonzeros block in top left corner
addblock!(sb, 1:3, 8:10) # nonzeros block in top right corner
After adding all of our blocks, we initialize the sparsity structure via
[`initialize!`](@ref):
A = spzeros(10,10)
initialize!(sb, A)
After calling `initialize!`, the matrix `A` will have the correct number of nonzero
entries. The speed of the indexing operations is given by using cached conversions
from the entries of each block to the storage location in the nonzeros vector of `A`,
so it's critical that the sparsity structure of `A` does not change!
## Usage
Once initialized, we can use the cached information in this object to speed up
writing to our sparse matrix `A`. Basic usage is as simple as wrapping our indices
with an indexing call to our `SparseBlocks` object:
A[sb[1:2, 1:2]] .= randn(2,2)
Note that these indices must exactly match one of the argument pairs passed to
[`addblock`](@ref). For best performance, you can cache the [`SparseBlockIndex`](@ref)
returned from this object:
inds = sb[1:2, 1:2] # cache this somewhere for future indexing calls
A[inds] .= randn(2,2)
All of these methods avoid dynamic memory allocations and are about 5-20x faster
indexing directly into the sparse matrix.
"""
struct SparseBlocks
n::Int
m::Int
inds::Dict{BlockIndices,Matrix{Int}}
SparseBlocks(n,m) = new(n,m,Dict{BlockIndices,Matrix{Int}}())
end
"""
addblock!(blocks, rows, cols)
Add a nonzero block for the sparse matrix, spanning the block defined by
consecutive `rows` and `cols` ranges. All calls to `addblock!` should be
made before calling [`initialize!`](@ref).
"""
function addblock!(blocks::SparseBlocks, i1::UnitRange, i2::UnitRange, isdiag::Bool=false)
if i1.start < 1 || i1.stop > blocks.n || i2.start < 1 || i2.stop > blocks.m
throw(BoundsError(spzeros(blocks.n, blocks.m), (i1, i2)))
end
block = BlockIndices(i1, i2, isdiag)
if isdiag
blocks.inds[block] = zeros(Int, min(length(i1), length(i2)), 1)
else
blocks.inds[block] = zeros(Int, length(i1), length(i2))
end
blocks
end
"""
initialize!(blocks::SparseBlocks, A::SparseMatrixCSC)
Initialize the sparsity structure specified by `blocks` (via previous calls
to [`addblock!`](@ref)). Writes epsilon values to the nonzero blocks in `A`
to initialize the data storage for the sparse matrix. The indices into this
storage is computed and stored in `blocks`.
"""
function initialize!(blocks::SparseBlocks, A::SparseMatrixCSC{T}) where T
n,m = blocks.n, blocks.m
if size(A) != (n,m)
throw(DimensionMismatch("Dimension of sparse matrix doesn't match expected size of ($n,$m)."))
end
@assert size(A) == (blocks.n, blocks.m)
for block in keys(blocks.inds)
if block.isdiag
for (i,j) in zip(block.i1, block.i2)
A[i,j] = eps(T)
end
else
A[block.i1, block.i2] .= eps(T)
end
end
inds = blocks.inds
for (block,inds) in pairs(blocks.inds)
rows = block.i1
cols = block.i2
n = length(rows)
if block.isdiag
for (j,(r,c)) in enumerate(zip(rows, cols))
nzind = getnzind(A, r, c)
if !isempty(nzind)
inds[j] = nzind[1]
end
end
else
for (j,col) in enumerate(cols)
nzind = getnzind(A, rows[1], col)
if !isempty(nzind)
inds[:,j] .= nzind[1] - 1 .+ (1:n)
end
end
end
end
blocks
end
# Get the index into the nonzero vector for the given row and column
function getnzind(A,row,col)
rows = view(A.rowval, nzrange(A,col))
istart = searchsorted(rows, row) .+ A.colptr[col] .- 1
return istart
end
"""
SparseBlockIndex
A custom index for sparse arrays with a fixed sparsity structure, especially for
those whose nonzeros appear as dense blocks. This is created by indexing
into a [`SparseBlocks`] object, using indices to one of the cached blocks.
This object can then be used as a index for those same indices, creating a
[`SparseBlockView`](@ref) object that efficiently maps cartesian indices
into the nonzeros vector of the sparse matrix.
"""
struct SparseBlockIndex
block::BlockIndices
nzinds::Matrix{Int}
end
function Base.getindex(blocks::SparseBlocks, i1::UnitRange, i2::UnitRange)
block0 = BlockIndices(i1, i2, false)
block = getkey(blocks.inds, block0, nothing)
if isnothing(block)
throw(KeyError((i1, i2)))
end
SparseBlockIndex(block, blocks.inds[block])
end
"""
SparseBlockView
A custom view into a sparse matrix with known sparsity, and whose nonzero entries
appears as dense blocks. Can be used a normal array, where operations on the elements
write and read directly from the nonzeros vector of the sparse matrix.
"""
struct SparseBlockView{Tv,Ti} <: AbstractMatrix{Tv}
data::SparseMatrixCSC{Tv,Ti}
block::SparseBlockIndex
end
# Needed to support expressions like A[B] .= data
Broadcast.dotview(A::AbstractSparseMatrix, block::SparseBlockIndex) = SparseBlockView(A, block)
# Define this type when indexing into a SparseMatrixCSC with a SparseBlockIndex
Base.getindex(A::AbstractSparseMatrix, block::SparseBlockIndex) = SparseBlockView(A, block)
# Array interface
Base.size(B::SparseBlockView) = size(B.block.nzinds)
Base.getindex(B::SparseBlockView, index) = getindex(B.data.nzval, B.block.nzinds[index])
Base.getindex(B::SparseBlockView, I::Vararg{Int,2}) = getindex(B.data.nzval, B.block.nzinds[I...])
Base.setindex!(B::SparseBlockView, v, index) = setindex!(B.data.nzval, v, B.block.nzinds[index])
Base.setindex!(B::SparseBlockView, v, I::Vararg{Int,2}) = setindex!(B.data.nzval, v, B.block.nzinds[I...])
Base.IndexStyle(::SparseBlockView) = IndexLinear()
# Broadcasting interface
struct SparseViewStyle <: Broadcast.BroadcastStyle end
Base.BroadcastStyle(::Type{<:SparseBlockView}) = SparseViewStyle()
# Always use the new broadcasting style over others
Base.BroadcastStyle(::SparseViewStyle, ::Broadcast.BroadcastStyle) = SparseViewStyle()
# Handle generic expressions like B .= f.(arg)
function Broadcast.materialize!(B::SparseBlockView, bc::Broadcast.Broadcasted{Broadcast.DefaultMatrixStyle})
for i in eachindex(bc)
B[i] = bc[i]
end
B
end
# Handle generic expressions like B .= f.(B, g.(args...))
function Broadcast.materialize!(B::SparseBlockView, bc::Broadcast.Broadcasted{SparseViewStyle})
for i in eachindex(bc)
B[i] = bc.f(B[i], bc[i])
end
B
end
# Specialization of B .= data::AbstractMatrix
function Broadcast.materialize!(B::SparseBlockView, bc::Broadcast.Broadcasted{Broadcast.DefaultMatrixStyle,Nothing,typeof(identity),<:Tuple{<:AbstractMatrix}})
data = bc.args[1]
for i in eachindex(B)
B[i] = data[i]
end
B
end
# Specialization of B .= f.(B, data::AbstractMatrix)
# which includes B .+= data::AbstractMatrix and variants
function Broadcast.materialize!(B::SparseBlockView, bc::Broadcast.Broadcasted{SparseViewStyle,Nothing,<:Any,<:Tuple{<:SparseBlockView,<:AbstractArray}})
data = bc.args[2]
for i in eachindex(B)
B[i] = bc.f(B[i], data[i])
end
B
end
# Specialization of B .= D::Diagonal
function Broadcast.materialize!(B::SparseBlockView, bc::Broadcast.Broadcasted{<:LinearAlgebra.StructuredMatrixStyle{<:Diagonal}, Nothing, typeof(identity), <:Tuple{<:Diagonal}})
D = bc.args[1]
if B.block.block.isdiag
for i in eachindex(B)
B[i] = D.diag[i]
end
else
for i = 1:minimum(size(B))
B[i,i] = D.diag[i]
end
end
end
function Broadcast.materialize!(B::SparseBlockView, bc::Broadcast.Broadcasted{SparseViewStyle,Nothing,<:Any,<:Tuple{<:SparseBlockView,<:Diagonal}})
D = bc.args[2]
f = bc.f
if B.block.block.isdiag
for i in eachindex(B)
B[i] = f(B[i], D.diag[i])
end
else
for i = 1:minimum(size(B))
B[i,i] = f(B[i], D.diag[i])
end
end
end
# Specialize B' .= bc
function Broadcast.materialize!(B::Adjoint{T, <:SparseBlockView{T}}, bc::Broadcast.Broadcasted{Broadcast.DefaultMatrixStyle,Nothing,typeof(identity),<:Tuple{<:AbstractMatrix}}) where T
data = bc.args[1]
for i in eachindex(bc)
it = CartesianIndex(i[2], i[1])
B.parent[it] = data[i]
end
B
end
# Specialize B = UpperTriangular(data)
function Broadcast.materialize!(B::SparseBlockView, bc::Broadcast.Broadcasted{<:LinearAlgebra.StructuredMatrixStyle{<:UpperTriangular}})
for r = 1:size(B,1)
for c = r:size(B,2)
i = CartesianIndex(r,c)
B[r,c] = bc[i]
end
end
end
# Specialize B = LowerTriangular(data)
function Broadcast.materialize!(B::SparseBlockView, bc::Broadcast.Broadcasted{<:LinearAlgebra.StructuredMatrixStyle{<:LowerTriangular}})
for c = 1:size(B,2)
for r = c:size(B,1)
i = CartesianIndex(r,c)
B[r,c] = bc[i]
end
end
end | [
198,
7249,
9726,
5497,
1063,
198,
220,
220,
220,
1312,
16,
3712,
26453,
17257,
90,
5317,
92,
198,
220,
220,
220,
1312,
17,
3712,
26453,
17257,
90,
5317,
92,
198,
220,
220,
220,
318,
10989,
363,
3712,
33,
970,
198,
437,
198,
198,
2,
17220,
318,
10989,
363,
2214,
422,
7208,
329,
8633,
198,
14881,
13,
786,
13255,
7,
65,
16,
3712,
12235,
5497,
1063,
11,
275,
17,
3712,
12235,
5497,
1063,
8,
796,
275,
16,
13,
72,
16,
6624,
275,
17,
13,
72,
16,
11405,
275,
16,
13,
72,
17,
6624,
275,
17,
13,
72,
17,
198,
14881,
13,
17831,
7,
65,
3712,
12235,
5497,
1063,
11,
289,
3712,
52,
5317,
8,
796,
12234,
19510,
65,
13,
72,
16,
11,
275,
13,
72,
17,
828,
289,
8,
198,
198,
37811,
198,
220,
220,
220,
1338,
17208,
45356,
198,
198,
32,
2099,
329,
26347,
510,
14700,
588,
262,
1708,
25,
628,
220,
220,
220,
317,
58,
8516,
11,
951,
82,
60,
764,
28,
1366,
198,
220,
220,
220,
317,
58,
8516,
11,
951,
82,
60,
764,
47932,
1366,
198,
198,
3003,
4600,
32,
63,
318,
257,
4600,
50,
29572,
46912,
34,
6173,
63,
290,
4600,
8516,
63,
290,
4600,
4033,
82,
63,
389,
4600,
26453,
17257,
63,
82,
13,
383,
220,
198,
63,
7890,
63,
318,
3221,
257,
4600,
46912,
63,
475,
481,
670,
351,
597,
4600,
23839,
19182,
63,
393,
220,
198,
43681,
326,
6971,
22978,
13,
198,
198,
464,
1994,
13196,
318,
326,
262,
599,
45826,
287,
4600,
32,
63,
318,
1900,
290,
5969,
11,
7368,
416,
220,
198,
64,
1351,
286,
366,
27372,
553,
393,
257,
16058,
286,
12785,
15274,
290,
15180,
11,
2209,
540,
416,
220,
198,
11545,
4600,
26453,
17257,
63,
5563,
13,
198,
198,
28350,
10874,
286,
734,
21164,
25,
352,
8,
37588,
11,
810,
262,
599,
45826,
4645,
318,
220,
198,
23599,
11,
290,
362,
8,
8748,
11,
810,
262,
662,
785,
17128,
1366,
287,
428,
2878,
318,
973,
284,
220,
198,
12287,
510,
6376,
278,
4560,
13,
198,
198,
2235,
20768,
1634,
198,
2514,
11986,
262,
599,
45826,
4645,
11,
779,
685,
63,
2860,
9967,
0,
63,
16151,
31,
5420,
737,
1114,
1672,
11,
356,
714,
198,
4598,
262,
1708,
25,
628,
220,
220,
220,
264,
65,
796,
1338,
17208,
45356,
7,
940,
11,
940,
8,
220,
1303,
7021,
329,
257,
838,
87,
940,
29877,
17593,
198,
220,
220,
220,
751,
9967,
0,
7,
36299,
11,
352,
25,
17,
11,
352,
25,
17,
8,
220,
220,
1303,
1729,
9107,
418,
2512,
287,
1353,
1364,
5228,
198,
220,
220,
220,
751,
9967,
0,
7,
36299,
11,
352,
25,
18,
11,
807,
25,
940,
8,
220,
1303,
1729,
9107,
418,
2512,
287,
1353,
826,
5228,
198,
198,
3260,
4375,
477,
286,
674,
7021,
11,
356,
41216,
262,
599,
45826,
4645,
2884,
220,
198,
58,
63,
36733,
1096,
0,
63,
16151,
31,
5420,
2599,
628,
220,
220,
220,
317,
796,
599,
9107,
418,
7,
940,
11,
940,
8,
198,
220,
220,
220,
41216,
0,
7,
36299,
11,
317,
8,
198,
198,
3260,
4585,
4600,
36733,
1096,
0,
47671,
262,
17593,
4600,
32,
63,
481,
423,
262,
3376,
1271,
286,
1729,
22570,
220,
198,
298,
1678,
13,
383,
2866,
286,
262,
6376,
278,
4560,
318,
1813,
416,
1262,
39986,
32626,
220,
198,
6738,
262,
12784,
286,
1123,
2512,
284,
262,
6143,
4067,
287,
262,
1729,
9107,
418,
15879,
286,
4600,
32,
47671,
198,
568,
340,
338,
4688,
326,
262,
599,
45826,
4645,
286,
4600,
32,
63,
857,
407,
1487,
0,
198,
198,
2235,
29566,
198,
7454,
23224,
11,
356,
460,
779,
262,
39986,
1321,
287,
428,
2134,
284,
2866,
510,
220,
198,
16502,
284,
674,
29877,
17593,
4600,
32,
44646,
14392,
8748,
318,
355,
2829,
355,
27074,
674,
36525,
198,
4480,
281,
6376,
278,
869,
284,
674,
4600,
50,
29572,
45356,
63,
2134,
25,
628,
220,
220,
220,
317,
58,
36299,
58,
16,
25,
17,
11,
352,
25,
17,
11907,
764,
28,
43720,
77,
7,
17,
11,
17,
8,
198,
198,
6425,
326,
777,
36525,
1276,
3446,
2872,
530,
286,
262,
4578,
14729,
3804,
284,
220,
198,
58,
63,
2860,
9967,
63,
16151,
31,
5420,
737,
1114,
1266,
2854,
11,
345,
460,
12940,
262,
685,
63,
50,
29572,
12235,
15732,
63,
16151,
31,
5420,
8,
198,
7783,
276,
422,
428,
2134,
25,
628,
220,
220,
220,
773,
82,
796,
264,
65,
58,
16,
25,
17,
11,
352,
25,
17,
60,
220,
1303,
12940,
428,
7382,
329,
2003,
6376,
278,
3848,
198,
220,
220,
220,
317,
58,
521,
82,
60,
764,
28,
43720,
77,
7,
17,
11,
17,
8,
198,
198,
3237,
286,
777,
5050,
3368,
8925,
4088,
49157,
290,
389,
546,
642,
12,
1238,
87,
5443,
220,
198,
9630,
278,
3264,
656,
262,
29877,
17593,
13,
198,
37811,
198,
7249,
1338,
17208,
45356,
198,
220,
220,
220,
299,
3712,
5317,
198,
220,
220,
220,
285,
3712,
5317,
198,
220,
220,
220,
773,
82,
3712,
35,
713,
90,
12235,
5497,
1063,
11,
46912,
90,
5317,
11709,
198,
220,
220,
220,
1338,
17208,
45356,
7,
77,
11,
76,
8,
796,
649,
7,
77,
11,
76,
11,
35,
713,
90,
12235,
5497,
1063,
11,
46912,
90,
5317,
11709,
28955,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
751,
9967,
0,
7,
27372,
11,
15274,
11,
951,
82,
8,
198,
198,
4550,
257,
1729,
22570,
2512,
329,
262,
29877,
17593,
11,
32557,
262,
2512,
5447,
416,
198,
220,
220,
12785,
4600,
8516,
63,
290,
4600,
4033,
82,
63,
16069,
13,
1439,
3848,
284,
4600,
2860,
9967,
0,
63,
815,
307,
220,
198,
220,
220,
925,
878,
4585,
685,
63,
36733,
1096,
0,
63,
16151,
31,
5420,
737,
198,
37811,
198,
8818,
751,
9967,
0,
7,
27372,
3712,
50,
29572,
45356,
11,
1312,
16,
3712,
26453,
17257,
11,
1312,
17,
3712,
26453,
17257,
11,
318,
10989,
363,
3712,
33,
970,
28,
9562,
8,
198,
220,
220,
220,
611,
1312,
16,
13,
9688,
1279,
352,
8614,
1312,
16,
13,
11338,
1875,
7021,
13,
77,
8614,
1312,
17,
13,
9688,
1279,
352,
8614,
1312,
17,
13,
11338,
1875,
7021,
13,
76,
198,
220,
220,
220,
220,
220,
220,
220,
3714,
7,
33,
3733,
12331,
7,
2777,
9107,
418,
7,
27372,
13,
77,
11,
7021,
13,
76,
828,
357,
72,
16,
11,
1312,
17,
22305,
198,
220,
220,
220,
886,
198,
220,
220,
220,
2512,
796,
9726,
5497,
1063,
7,
72,
16,
11,
1312,
17,
11,
318,
10989,
363,
8,
198,
220,
220,
220,
611,
318,
10989,
363,
198,
220,
220,
220,
220,
220,
220,
220,
7021,
13,
521,
82,
58,
9967,
60,
796,
1976,
27498,
7,
5317,
11,
949,
7,
13664,
7,
72,
16,
828,
4129,
7,
72,
17,
36911,
352,
8,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
7021,
13,
521,
82,
58,
9967,
60,
796,
1976,
27498,
7,
5317,
11,
4129,
7,
72,
16,
828,
4129,
7,
72,
17,
4008,
198,
220,
220,
220,
886,
198,
220,
220,
220,
7021,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
41216,
0,
7,
27372,
3712,
50,
29572,
45356,
11,
317,
3712,
50,
29572,
46912,
34,
6173,
8,
198,
198,
24243,
1096,
262,
599,
45826,
4645,
7368,
416,
4600,
27372,
63,
357,
8869,
2180,
3848,
198,
1462,
685,
63,
2860,
9967,
0,
63,
16151,
31,
5420,
29720,
12257,
274,
304,
862,
33576,
3815,
284,
262,
1729,
22570,
7021,
287,
4600,
32,
63,
220,
198,
1462,
41216,
262,
1366,
6143,
329,
262,
29877,
17593,
13,
383,
36525,
656,
428,
198,
35350,
318,
29231,
290,
8574,
287,
4600,
27372,
44646,
198,
37811,
198,
8818,
41216,
0,
7,
27372,
3712,
50,
29572,
45356,
11,
317,
3712,
50,
29572,
46912,
34,
6173,
90,
51,
30072,
810,
309,
198,
220,
220,
220,
299,
11,
76,
796,
7021,
13,
77,
11,
7021,
13,
76,
198,
220,
220,
220,
611,
2546,
7,
32,
8,
14512,
357,
77,
11,
76,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3714,
7,
29271,
3004,
44,
1042,
963,
7203,
29271,
3004,
286,
29877,
17593,
1595,
470,
2872,
2938,
2546,
286,
7198,
77,
11,
3,
76,
21387,
4008,
198,
220,
220,
220,
886,
198,
220,
220,
220,
2488,
30493,
2546,
7,
32,
8,
6624,
357,
27372,
13,
77,
11,
7021,
13,
76,
8,
198,
220,
220,
220,
329,
2512,
287,
8251,
7,
27372,
13,
521,
82,
8,
220,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2512,
13,
9409,
72,
363,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
357,
72,
11,
73,
8,
287,
19974,
7,
9967,
13,
72,
16,
11,
2512,
13,
72,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
58,
72,
11,
73,
60,
796,
304,
862,
7,
51,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
58,
9967,
13,
72,
16,
11,
2512,
13,
72,
17,
60,
764,
28,
304,
862,
7,
51,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
773,
82,
796,
7021,
13,
521,
82,
198,
220,
220,
220,
329,
357,
9967,
11,
521,
82,
8,
287,
14729,
7,
27372,
13,
521,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
15274,
796,
2512,
13,
72,
16,
198,
220,
220,
220,
220,
220,
220,
220,
951,
82,
796,
2512,
13,
72,
17,
198,
220,
220,
220,
220,
220,
220,
220,
299,
796,
4129,
7,
8516,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2512,
13,
9409,
72,
363,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
357,
73,
11,
7,
81,
11,
66,
4008,
287,
27056,
378,
7,
13344,
7,
8516,
11,
951,
82,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
89,
521,
796,
651,
27305,
521,
7,
32,
11,
374,
11,
269,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5145,
271,
28920,
7,
27305,
521,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
773,
82,
58,
73,
60,
796,
299,
89,
521,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
357,
73,
11,
4033,
8,
287,
27056,
378,
7,
4033,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
89,
521,
796,
651,
27305,
521,
7,
32,
11,
15274,
58,
16,
4357,
951,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5145,
271,
28920,
7,
27305,
521,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
773,
82,
58,
45299,
73,
60,
764,
28,
299,
89,
521,
58,
16,
60,
532,
352,
764,
10,
357,
16,
25,
77,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
7021,
198,
437,
198,
198,
2,
3497,
262,
6376,
656,
262,
1729,
22570,
15879,
329,
262,
1813,
5752,
290,
5721,
198,
8818,
651,
27305,
521,
7,
32,
11,
808,
11,
4033,
8,
198,
220,
220,
220,
15274,
796,
1570,
7,
32,
13,
808,
2100,
11,
299,
89,
9521,
7,
32,
11,
4033,
4008,
198,
220,
220,
220,
318,
83,
433,
796,
2989,
82,
9741,
7,
8516,
11,
5752,
8,
764,
10,
317,
13,
4033,
20692,
58,
4033,
60,
764,
12,
352,
198,
220,
220,
220,
1441,
318,
83,
433,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
1338,
17208,
12235,
15732,
198,
198,
32,
2183,
6376,
329,
29877,
26515,
351,
257,
5969,
599,
45826,
4645,
11,
2592,
329,
220,
198,
220,
220,
220,
883,
3025,
1729,
9107,
418,
1656,
355,
15715,
7021,
13,
770,
318,
2727,
416,
6376,
278,
220,
198,
220,
220,
220,
656,
257,
685,
63,
50,
29572,
45356,
63,
60,
2134,
11,
1262,
36525,
284,
530,
286,
262,
39986,
7021,
13,
198,
198,
1212,
2134,
460,
788,
307,
973,
355,
257,
6376,
329,
883,
976,
36525,
11,
4441,
257,
220,
198,
220,
220,
220,
685,
63,
50,
29572,
12235,
7680,
63,
16151,
31,
5420,
8,
2134,
326,
18306,
8739,
6383,
35610,
36525,
220,
198,
220,
220,
220,
656,
262,
1729,
9107,
418,
15879,
286,
262,
29877,
17593,
13,
198,
37811,
198,
7249,
1338,
17208,
12235,
15732,
198,
220,
220,
220,
2512,
3712,
12235,
5497,
1063,
198,
220,
220,
220,
299,
89,
521,
82,
3712,
46912,
90,
5317,
92,
198,
437,
198,
198,
8818,
7308,
13,
1136,
9630,
7,
27372,
3712,
50,
29572,
45356,
11,
1312,
16,
3712,
26453,
17257,
11,
1312,
17,
3712,
26453,
17257,
8,
198,
220,
220,
220,
2512,
15,
796,
9726,
5497,
1063,
7,
72,
16,
11,
1312,
17,
11,
3991,
8,
198,
220,
220,
220,
2512,
796,
651,
2539,
7,
27372,
13,
521,
82,
11,
2512,
15,
11,
2147,
8,
198,
220,
220,
220,
611,
318,
22366,
7,
9967,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3714,
7,
9218,
12331,
19510,
72,
16,
11,
1312,
17,
22305,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1338,
17208,
12235,
15732,
7,
9967,
11,
7021,
13,
521,
82,
58,
9967,
12962,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
1338,
17208,
12235,
7680,
198,
198,
32,
2183,
1570,
656,
257,
29877,
17593,
351,
1900,
599,
45826,
11,
290,
3025,
1729,
22570,
12784,
220,
198,
1324,
4127,
355,
15715,
7021,
13,
1680,
307,
973,
257,
3487,
7177,
11,
810,
4560,
319,
262,
4847,
198,
13564,
290,
1100,
3264,
422,
262,
1729,
9107,
418,
15879,
286,
262,
29877,
17593,
13,
198,
37811,
198,
7249,
1338,
17208,
12235,
7680,
90,
51,
85,
11,
40533,
92,
1279,
25,
27741,
46912,
90,
51,
85,
92,
198,
220,
220,
220,
1366,
3712,
50,
29572,
46912,
34,
6173,
90,
51,
85,
11,
40533,
92,
198,
220,
220,
220,
2512,
3712,
50,
29572,
12235,
15732,
198,
437,
198,
198,
2,
10664,
276,
284,
1104,
14700,
588,
317,
58,
33,
60,
764,
28,
1366,
198,
30507,
2701,
13,
26518,
1177,
7,
32,
3712,
23839,
50,
29572,
46912,
11,
2512,
3712,
50,
29572,
12235,
15732,
8,
796,
1338,
17208,
12235,
7680,
7,
32,
11,
2512,
8,
198,
198,
2,
2896,
500,
428,
2099,
618,
6376,
278,
656,
257,
1338,
17208,
46912,
34,
6173,
351,
257,
1338,
17208,
12235,
15732,
198,
14881,
13,
1136,
9630,
7,
32,
3712,
23839,
50,
29572,
46912,
11,
2512,
3712,
50,
29572,
12235,
15732,
8,
796,
1338,
17208,
12235,
7680,
7,
32,
11,
2512,
8,
198,
198,
2,
15690,
7071,
198,
14881,
13,
7857,
7,
33,
3712,
50,
29572,
12235,
7680,
8,
796,
2546,
7,
33,
13,
9967,
13,
27305,
521,
82,
8,
198,
14881,
13,
1136,
9630,
7,
33,
3712,
50,
29572,
12235,
7680,
11,
6376,
8,
796,
651,
9630,
7,
33,
13,
7890,
13,
27305,
2100,
11,
347,
13,
9967,
13,
27305,
521,
82,
58,
9630,
12962,
198,
14881,
13,
1136,
9630,
7,
33,
3712,
50,
29572,
12235,
7680,
11,
314,
3712,
19852,
853,
90,
5317,
11,
17,
30072,
796,
651,
9630,
7,
33,
13,
7890,
13,
27305,
2100,
11,
347,
13,
9967,
13,
27305,
521,
82,
58,
40,
986,
12962,
198,
14881,
13,
2617,
9630,
0,
7,
33,
3712,
50,
29572,
12235,
7680,
11,
410,
11,
6376,
8,
796,
900,
9630,
0,
7,
33,
13,
7890,
13,
27305,
2100,
11,
410,
11,
347,
13,
9967,
13,
27305,
521,
82,
58,
9630,
12962,
198,
14881,
13,
2617,
9630,
0,
7,
33,
3712,
50,
29572,
12235,
7680,
11,
410,
11,
314,
3712,
19852,
853,
90,
5317,
11,
17,
30072,
796,
900,
9630,
0,
7,
33,
13,
7890,
13,
27305,
2100,
11,
410,
11,
347,
13,
9967,
13,
27305,
521,
82,
58,
40,
986,
12962,
198,
14881,
13,
15732,
21466,
7,
3712,
50,
29572,
12235,
7680,
8,
796,
12901,
14993,
451,
3419,
198,
198,
2,
32250,
7071,
198,
7249,
1338,
17208,
7680,
21466,
1279,
25,
44244,
13,
30507,
2701,
21466,
886,
198,
14881,
13,
30507,
2701,
21466,
7,
3712,
6030,
90,
27,
25,
50,
29572,
12235,
7680,
30072,
796,
1338,
17208,
7680,
21466,
3419,
198,
198,
2,
16622,
779,
262,
649,
22978,
3918,
625,
1854,
198,
14881,
13,
30507,
2701,
21466,
7,
3712,
50,
29572,
7680,
21466,
11,
7904,
30507,
2701,
13,
30507,
2701,
21466,
8,
796,
1338,
17208,
7680,
21466,
3419,
198,
198,
2,
33141,
14276,
14700,
588,
347,
764,
28,
277,
12195,
853,
8,
198,
8818,
44244,
13,
33665,
1096,
0,
7,
33,
3712,
50,
29572,
12235,
7680,
11,
47125,
3712,
30507,
2701,
13,
30507,
2701,
276,
90,
30507,
2701,
13,
19463,
46912,
21466,
30072,
198,
220,
220,
220,
329,
1312,
287,
1123,
9630,
7,
15630,
8,
198,
220,
220,
220,
220,
220,
220,
220,
347,
58,
72,
60,
796,
47125,
58,
72,
60,
198,
220,
220,
220,
886,
198,
220,
220,
220,
347,
198,
437,
198,
198,
2,
33141,
14276,
14700,
588,
347,
764,
28,
277,
12195,
33,
11,
308,
12195,
22046,
986,
4008,
198,
8818,
44244,
13,
33665,
1096,
0,
7,
33,
3712,
50,
29572,
12235,
7680,
11,
47125,
3712,
30507,
2701,
13,
30507,
2701,
276,
90,
50,
29572,
7680,
21466,
30072,
198,
220,
220,
220,
329,
1312,
287,
1123,
9630,
7,
15630,
8,
198,
220,
220,
220,
220,
220,
220,
220,
347,
58,
72,
60,
796,
47125,
13,
69,
7,
33,
58,
72,
4357,
47125,
58,
72,
12962,
198,
220,
220,
220,
886,
198,
220,
220,
220,
347,
198,
437,
198,
198,
2,
6093,
1634,
286,
347,
764,
28,
1366,
3712,
23839,
46912,
198,
8818,
44244,
13,
33665,
1096,
0,
7,
33,
3712,
50,
29572,
12235,
7680,
11,
47125,
3712,
30507,
2701,
13,
30507,
2701,
276,
90,
30507,
2701,
13,
19463,
46912,
21466,
11,
18465,
11,
4906,
1659,
7,
738,
414,
828,
27,
25,
51,
29291,
90,
27,
25,
23839,
46912,
11709,
8,
198,
220,
220,
220,
1366,
796,
47125,
13,
22046,
58,
16,
60,
198,
220,
220,
220,
329,
1312,
287,
1123,
9630,
7,
33,
8,
198,
220,
220,
220,
220,
220,
220,
220,
347,
58,
72,
60,
796,
1366,
58,
72,
60,
220,
198,
220,
220,
220,
886,
198,
220,
220,
220,
347,
198,
437,
198,
198,
2,
6093,
1634,
286,
347,
764,
28,
277,
12195,
33,
11,
1366,
3712,
23839,
46912,
8,
198,
2,
220,
220,
543,
3407,
347,
764,
47932,
1366,
3712,
23839,
46912,
290,
17670,
198,
8818,
44244,
13,
33665,
1096,
0,
7,
33,
3712,
50,
29572,
12235,
7680,
11,
47125,
3712,
30507,
2701,
13,
30507,
2701,
276,
90,
50,
29572,
7680,
21466,
11,
18465,
11,
27,
25,
7149,
11,
27,
25,
51,
29291,
90,
27,
25,
50,
29572,
12235,
7680,
11,
27,
25,
23839,
19182,
11709,
8,
198,
220,
220,
220,
1366,
796,
47125,
13,
22046,
58,
17,
60,
198,
220,
220,
220,
329,
1312,
287,
1123,
9630,
7,
33,
8,
198,
220,
220,
220,
220,
220,
220,
220,
347,
58,
72,
60,
796,
47125,
13,
69,
7,
33,
58,
72,
4357,
1366,
58,
72,
12962,
198,
220,
220,
220,
886,
198,
220,
220,
220,
347,
198,
437,
198,
198,
2,
6093,
1634,
286,
347,
764,
28,
360,
3712,
18683,
27923,
198,
8818,
44244,
13,
33665,
1096,
0,
7,
33,
3712,
50,
29572,
12235,
7680,
11,
47125,
3712,
30507,
2701,
13,
30507,
2701,
276,
90,
27,
25,
14993,
451,
2348,
29230,
13,
44909,
1522,
46912,
21466,
90,
27,
25,
18683,
27923,
5512,
10528,
11,
2099,
1659,
7,
738,
414,
828,
1279,
25,
51,
29291,
90,
27,
25,
18683,
27923,
11709,
8,
198,
220,
220,
220,
360,
796,
47125,
13,
22046,
58,
16,
60,
198,
220,
220,
220,
611,
347,
13,
9967,
13,
9967,
13,
9409,
72,
363,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
1123,
9630,
7,
33,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
347,
58,
72,
60,
796,
360,
13,
10989,
363,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
796,
352,
25,
39504,
7,
7857,
7,
33,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
347,
58,
72,
11,
72,
60,
796,
360,
13,
10989,
363,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
437,
198,
198,
8818,
44244,
13,
33665,
1096,
0,
7,
33,
3712,
50,
29572,
12235,
7680,
11,
47125,
3712,
30507,
2701,
13,
30507,
2701,
276,
90,
50,
29572,
7680,
21466,
11,
18465,
11,
27,
25,
7149,
11,
27,
25,
51,
29291,
90,
27,
25,
50,
29572,
12235,
7680,
11,
27,
25,
18683,
27923,
11709,
8,
198,
220,
220,
220,
360,
796,
47125,
13,
22046,
58,
17,
60,
198,
220,
220,
220,
277,
796,
47125,
13,
69,
198,
220,
220,
220,
611,
347,
13,
9967,
13,
9967,
13,
9409,
72,
363,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
1123,
9630,
7,
33,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
347,
58,
72,
60,
796,
277,
7,
33,
58,
72,
4357,
360,
13,
10989,
363,
58,
72,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
796,
352,
25,
39504,
7,
7857,
7,
33,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
347,
58,
72,
11,
72,
60,
796,
277,
7,
33,
58,
72,
4357,
360,
13,
10989,
363,
58,
72,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
437,
198,
198,
2,
6093,
1096,
347,
6,
764,
28,
47125,
198,
8818,
44244,
13,
33665,
1096,
0,
7,
33,
3712,
2782,
73,
1563,
90,
51,
11,
1279,
25,
50,
29572,
12235,
7680,
90,
51,
92,
5512,
47125,
3712,
30507,
2701,
13,
30507,
2701,
276,
90,
30507,
2701,
13,
19463,
46912,
21466,
11,
18465,
11,
4906,
1659,
7,
738,
414,
828,
27,
25,
51,
29291,
90,
27,
25,
23839,
46912,
11709,
8,
810,
309,
198,
220,
220,
220,
1366,
796,
47125,
13,
22046,
58,
16,
60,
198,
220,
220,
220,
329,
1312,
287,
1123,
9630,
7,
15630,
8,
198,
220,
220,
220,
220,
220,
220,
220,
340,
796,
13690,
35610,
15732,
7,
72,
58,
17,
4357,
1312,
58,
16,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
347,
13,
8000,
58,
270,
60,
796,
1366,
58,
72,
60,
198,
220,
220,
220,
886,
198,
220,
220,
220,
347,
198,
437,
198,
198,
2,
6093,
1096,
347,
796,
20390,
14824,
21413,
7,
7890,
8,
198,
8818,
44244,
13,
33665,
1096,
0,
7,
33,
3712,
50,
29572,
12235,
7680,
11,
47125,
3712,
30507,
2701,
13,
30507,
2701,
276,
90,
27,
25,
14993,
451,
2348,
29230,
13,
44909,
1522,
46912,
21466,
90,
27,
25,
52,
2848,
14824,
21413,
11709,
8,
198,
220,
220,
220,
329,
374,
796,
352,
25,
7857,
7,
33,
11,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
269,
796,
374,
25,
7857,
7,
33,
11,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
796,
13690,
35610,
15732,
7,
81,
11,
66,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
347,
58,
81,
11,
66,
60,
796,
47125,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
437,
198,
198,
2,
6093,
1096,
347,
796,
16048,
14824,
21413,
7,
7890,
8,
198,
8818,
44244,
13,
33665,
1096,
0,
7,
33,
3712,
50,
29572,
12235,
7680,
11,
47125,
3712,
30507,
2701,
13,
30507,
2701,
276,
90,
27,
25,
14993,
451,
2348,
29230,
13,
44909,
1522,
46912,
21466,
90,
27,
25,
31426,
14824,
21413,
11709,
8,
198,
220,
220,
220,
329,
269,
796,
352,
25,
7857,
7,
33,
11,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
374,
796,
269,
25,
7857,
7,
33,
11,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
796,
13690,
35610,
15732,
7,
81,
11,
66,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
347,
58,
81,
11,
66,
60,
796,
47125,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
437
] | 2.481339 | 4,153 |
using OffsetArrays
using StaticArrays
using DataStructures
export pgbf, cgbf, contract, addbf!, PGBF, CGBF, build_basis,eri_fetcher, Shell, Basis
export m2ao, shell_indices,nao
"""
PGBF(expn,xyz,I,J,K,norm)
Create a primitive Gaussian basis function
g(x,y,z) = norm * (x-x0)^I (y-y0)^J (z-z0)^K exp(-expn*r^2)
The function parameters `xyz` correspond to [x0,y0,z0].
"""
mutable struct PGBF
expn::Float64
xyz::SVector{3,Float64}
I::Int64
J::Int64
K::Int64
norm::Float64
end
"""
pgbf(expn,x=0,y=0,z=0,I=0,J=0,K=0,norm=1)
Helper function to create a normalized PGBF with some optional
defaults set.
"""
function pgbf(expn,x=0.0,y=0.0,z=0.0,I=0,J=0,K=0,norm=1)
p = PGBF(expn,SA[x,y,z],I,J,K,norm)
normalize!(p)
return p
end
function amplitude(bf::PGBF,x,y,z)
dx,dy,dz = dxyz = bf.xyz-SA[x,y,z]
r2 = dist2(dxyz)
return bf.norm*(dx^bf.I)*(dy^bf.J)*(dz^bf.K)*exp(-bf.expn*r2)
end
(bf::PGBF)(x,y,z) = amplitude(bf::PGBF,x,y,z)
function normalize!(pbf::PGBF)
pbf.norm /= sqrt(overlap(pbf,pbf))
end
"""
CGBF(xyz,I,J,K,norm,[pbgfs],[coefs])
Create a contracted Gaussian basis function made of
the functions in [pgbfs] with coefficients [coefs].
Also track the origin `xyz` and powers `I,J,K`.
"""
mutable struct CGBF
xyz::SVector{3,Float64}
I::Int64
J::Int64
K::Int64
norm::Float64
pgbfs::Vector{PGBF}
coefs::Vector{Float64}
end
"""
cgbf(expn,x=0,y=0,z=0,I=0,J=0,K=0,norm=1)
Helper function to create a CGBF with optional defaults.
"""
cgbf(x=0.0,y=0.0,z=0.0,I=0,J=0,K=0) = CGBF(SA[x,y,z],I,J,K,1.0,[],[])
amplitude(bf::CGBF,x,y,z) = bf.norm*sum(c*amplitude(pbf,x,y,z) for (c,pbf) in primitives(bf))
(bf::CGBF)(x,y,z) = amplitude(bf::CGBF,x,y,z)
function normalize!(bf::CGBF)
bf.norm /= sqrt(overlap(bf,bf))
end
primitives(a::CGBF) = zip(a.coefs,a.pgbfs)
function addbf!(cbf::CGBF,expn,coef)
Base.push!(cbf.pgbfs,pgbf(expn,cbf.xyz...,cbf.I,cbf.J,cbf.K))
Base.push!(cbf.coefs,coef)
normalize!(cbf)
end
contract(f,a::CGBF,b::CGBF) = a.norm*b.norm*sum(ca*cb*f(abf,bbf) for (ca,abf) in primitives(a) for (cb,bbf) in primitives(b))
function contract(f,a::CGBF,b::CGBF,c::CGBF,d::CGBF)
s = 0
for (ca,abf) in primitives(a)
for (cb,bbf) in primitives(b)
for (cc,cbf) in primitives(c)
for (cd,dbf) in primitives(d)
s += ca*cb*cc*cd*f(abf,bbf,cbf,dbf)
end
end
end
end
return a.norm*b.norm*c.norm*d.norm*s
end
function shells(atoms::Vector{Atom},name="sto3g")
data = basis_data[name]
shs = Shell[]
for atom in atoms
for (sym,primlist) in data[atom.atno]
L = lvalue[sym]
expns = [expn for (expn,coef) in primlist]
coefs = [coef for (expn,coef) in primlist]
bfs = CGBF[]
for (I,J,K) in shell_indices[L]
cbf = cgbf(atom.xyz...,I,J,K)
push!(bfs,cbf)
for (expn,coef) in zip(expns,coefs)
addbf!(cbf,expn,coef)
end
end
push!(shs,Shell(atom.xyz,lvalue[sym],expns,coefs,bfs))
end
end
return shs
end
function build_basis(atoms::Vector{Atom},name="sto3g")
shs = shells(atoms,name)
bfs = CGBF[]
ishs = Int[]
mshs = Int[]
for (ish,sh) in enumerate(shs)
for (msh,(I,J,K)) in enumerate(shell_indices[sh.L])
cbf = cgbf(sh.xyz...,I,J,K)
push!(bfs,cbf)
push!(ishs,ish)
push!(mshs,msh)
for (expn,coef) in zip(sh.expns,sh.coefs)
addbf!(cbf,expn,coef)
end
end
end
return Basis(bfs,shs,ishs,mshs)
end
"""
Shell(xyz,L,expns,coeffs)
Structure for a basis function shell, containing multiple
CGBFs of different angular momenta.
"""
mutable struct Shell
xyz::SVector{3,Float64}
L::Int
expns::Vector{Float64}
coefs::Vector{Float64}
cgbfs::Vector{CGBF}
end
nbf(sh::Shell) = length(shell_indices(sh.L))
function pgbfs(sh::Shell)
x,y,z = sh.xyz
pgbfs = PGBF[]
for (I,J,K) in shell_indices[sh.L]
for (expn,coef) in zip(sh.expns,sh.coefs)
push!(pgbfs,pgbf(expn,x,y,z,I,J,K))
end
end
return pgbfs
end
"""
Basis(cgbfs,shells,ishell,mshell)
Structure to hold a basis set, with info about shells and other data
"""
mutable struct Basis # subset of AbstractVector{CGBF}?
cgbfs::Vector{CGBF}
shells::Vector{Shell}
ishell::Vector{Int64} # Which shell corresponds to bf i
mshell::Vector{Int64} # Which m-value (px,dxy, etc.) corresponds to bf i
end
Base.size(b::Basis) = (length(b.cgbfs),)
Base.length(b::Basis) = length(b.cgbfs)
Base.iterate(b::Basis,i::Int) = iterate(b.cgbfs,i)
Base.iterate(b::Basis) = iterate(b.cgbfs)
Base.getindex(b::Basis, i::Int) = b.cgbfs[i]
nbf(b::Basis) = length(b.cgbfs)
nshells(b::Basis) = length(b.shells)
"""
eri_fetcher
Compute all of the required ijkl terms that go into an ERI
record, and compute the required calls to hrr, and how to
unpack the results into the record.
eri_fetcher returns a dictionary such that the integral structure
may be formed via:
```
fetcher[ishell,jshell,kshell,lshell] = (ijkl,hi,hj,hk,hl)
hrrs = hrr(ishell,jshell,kshell,lshell)
ints[ijkl] = hrrs[hi,hj,hk,hl]
```
"""
function eri_fetcher(bfs::Basis)
fetcher = DefaultOrderedDict{NTuple{4, Int}, Vector{NTuple{5, Int}}}(Vector{NTuple{5, Int}}[])
for (index,ijkl) in enumerate(iiterator(length(bfs)))
i,j,k,l = ijkl
li,mi = bfs.ishell[i],bfs.mshell[i]
lj,mj = bfs.ishell[j],bfs.mshell[j]
lk,mk = bfs.ishell[k],bfs.mshell[k]
ll,ml = bfs.ishell[l],bfs.mshell[l]
push!(fetcher[li,lj,lk,ll],(index,mi,mj,mk,ml))
end
return fetcher
end
function eri_fetcher(shs::Vector{Shell})
fetcher = DefaultOrderedDict{NTuple{4, Int}, Vector{NTuple{5, Int}}}(Vector{NTuple{5, Int}}[])
nsh = length(shs)
ijk2lm = make_ijk2lm()
i = 0
index = 0
for (ish,shi) in enumerate(shs)
shi = shs[ish]
for ibf in shi.cgbfs
i += 1
mi = ijk2lm[ibf.I,ibf.J,ibf.K][2]
j = 0
for (jsh,shj) in enumerate(take(shs,ish))
for jbf in shj.cgbfs
j += 1
if j > i break end
mj = ijk2lm[jbf.I,jbf.J,jbf.K][2]
k = 0
for (ksh,shk) in enumerate(shs)
for kbf in shk.cgbfs
k += 1
mk = ijk2lm[kbf.I,kbf.J,kbf.K][2]
l = 0
for (lsh,shl) in enumerate(take(shs,ksh))
@inbounds for lbf in shl.cgbfs
l += 1
if l > k break end
if k*l > i*j break end
ml = ijk2lm[lbf.I,lbf.J,lbf.K][2]
index += 1
push!(fetcher[ish,jsh,ksh,lsh],(index,mi,mj,mk,ml))
end # lbf
end # lsh
end # kbf
end # ksh
end # jbf
end # jsh
end # ibf
end # ish
return fetcher
end
# shell_indices map from a shell l-value to the Cartesian version of m-values that are the
# powers of the Cartesian Gaussian basis functions.
#
# If desired, we can also invert shell_indices to map IJK triplets to l,m pairs:
# IJK2lm = Dict(IJK =>(l,m) for l in 0:4 for (m,IJK) in enumerate(shell_indices[l]))
const shell_indices = Dict(
0 => [MVector(0,0,0)], # 1
1 => [MVector(1,0,0),MVector(0,1,0),MVector(0,0,1)], # 3
2 => [MVector(2,0,0),MVector(1,1,0),MVector(1,0,1),MVector(0,2,0),MVector(0,1,1),MVector(0,0,2)],
3 => [MVector(3,0,0),MVector(2,1,0),MVector(2,0,1),
MVector(1,2,0),MVector(1,0,2),MVector(1,1,1),
MVector(0,3,0),MVector(0,2,1),MVector(0,1,2),MVector(0,0,3)], # 10
4 => [MVector(4,0,0),MVector(3,1,0),MVector(3,0,1),MVector(2,2,0),MVector(2,1,1),MVector(2,0,2),
MVector(1,3,0),MVector(1,2,1),MVector(1,1,2),MVector(1,0,3),
MVector(0,4,0),MVector(0,3,1),MVector(0,2,2),MVector(0,1,3),MVector(0,0,4)] # 15
)
llabel = Dict(0=>"s",1=>"p",2=>"d",3=>"f",4=>"g",5=>"h")
lvalue = merge(Dict((v,k) for (k,v) in llabel),Dict((uppercase(v),k) for (k,v) in llabel))
bflabel(bf) = llabel[bf.I+bf.J+bf.K]*bfpow("x",bf.I)*bfpow("y",bf.J)*bfpow("z",bf.K)
function bfpow(s,j)
if j == 0
return ""
elseif j == 1
return s
end
return "$s$j"
end
"make_m2ao - Make map between a sequential list of (mx,my,mz) values and ao indices"
function make_m2ao(lmax=4)
m2ao = Dict{Vector{Int64}, Int64}()
iao = 0
for l in 0:lmax
for ms in shell_indices[l]
iao += 1
m2ao[ms] = iao
end
end
return m2ao
end
function make_ao2m(lmax=4)
ao2m = MVector{3, Int64}[]
for l in 0:lmax
for ms in shell_indices[l]
push!(ao2m,ms)
end
end
return ao2m
end
const m2ao = make_m2ao()
const ao2m = make_ao2m()
"make_nao - Number of AOs for system with l shells"
make_nao(l) = sum(length(shell_indices[i]) for i in 0:l)
const nao = OffsetArray([make_nao(l) for l in 0:4],0:4)
# Data functions and tables over basis functions
# todo: keep a constant of maxao or something
# and use it to construct tables
function make_shift_index()
n = length(ao2m)
shift_index = zeros(Int,n,3)
for a in 1:n
m = ao2m[a]
for i in 1:3
if m[i] == 0
shift_index[a,i] = 0
else
mm = copy(m)
mm[i] -= 1
am = m2ao[mm]
shift_index[a,i] = am
end
end
end
return shift_index
end
const shift_index = make_shift_index()
function make_shift_direction()
n = length(ao2m)
shift_direction = zeros(Int,n)
for a in 1:n
shift_direction[a] = argmax(ao2m[a])
end
return shift_direction
end
const shift_direction = make_shift_direction()
function make_shell_number()
n = length(ao2m)
shell_number = zeros(Int,n)
for a in 1:n
shell_number[a] = sum(ao2m[a])
end
return shell_number
end
const shell_number = make_shell_number()
function make_shift_index_plus()
n = length(ao2m)
maxsh = shell_number[n]
shift_index = zeros(Int,n,3)
for a in 1:n
m = ao2m[a]
for i in 1:3
if sum(m) == maxsh
shift_index[a,i] = 0
else
mm = copy(m)
mm[i] += 1
am = m2ao[mm]
shift_index[a,i] = am
end
end
end
return shift_index
end
const shift_index_plus = make_shift_index_plus()
function make_ijk2lm(maxl=4)
ijk2lm = Dict{NTuple{3,Int},NTuple{2,Int}}()
for l in 0:maxl
for (m,(i,j,k)) in enumerate(shell_indices[l])
ijk2lm[i,j,k] = (l,m)
end
end
return ijk2lm
end
| [
3500,
3242,
2617,
3163,
20477,
198,
3500,
36125,
3163,
20477,
198,
3500,
6060,
44909,
942,
198,
39344,
23241,
19881,
11,
269,
70,
19881,
11,
2775,
11,
751,
19881,
28265,
350,
4579,
37,
11,
327,
4579,
37,
11,
1382,
62,
12093,
271,
11,
33442,
62,
34045,
2044,
11,
17537,
11,
6455,
271,
198,
39344,
285,
17,
5488,
11,
7582,
62,
521,
1063,
11,
2616,
78,
198,
198,
37811,
198,
220,
220,
220,
350,
4579,
37,
7,
11201,
77,
11,
5431,
89,
11,
40,
11,
41,
11,
42,
11,
27237,
8,
198,
198,
16447,
257,
20049,
12822,
31562,
4308,
2163,
220,
198,
220,
220,
220,
308,
7,
87,
11,
88,
11,
89,
8,
796,
2593,
1635,
357,
87,
12,
87,
15,
8,
61,
40,
357,
88,
12,
88,
15,
8,
61,
41,
357,
89,
12,
89,
15,
8,
61,
42,
1033,
32590,
11201,
77,
9,
81,
61,
17,
8,
198,
464,
2163,
10007,
4600,
5431,
89,
63,
6053,
284,
685,
87,
15,
11,
88,
15,
11,
89,
15,
4083,
198,
37811,
198,
76,
18187,
2878,
350,
4579,
37,
198,
220,
220,
220,
1033,
77,
3712,
43879,
2414,
198,
220,
220,
220,
2124,
45579,
3712,
50,
38469,
90,
18,
11,
43879,
2414,
92,
198,
220,
220,
220,
314,
3712,
5317,
2414,
198,
220,
220,
220,
449,
3712,
5317,
2414,
198,
220,
220,
220,
509,
3712,
5317,
2414,
198,
220,
220,
220,
2593,
3712,
43879,
2414,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
23241,
19881,
7,
11201,
77,
11,
87,
28,
15,
11,
88,
28,
15,
11,
89,
28,
15,
11,
40,
28,
15,
11,
41,
28,
15,
11,
42,
28,
15,
11,
27237,
28,
16,
8,
198,
198,
47429,
2163,
284,
2251,
257,
39279,
350,
4579,
37,
351,
617,
11902,
198,
12286,
82,
900,
13,
220,
220,
220,
220,
198,
37811,
198,
8818,
23241,
19881,
7,
11201,
77,
11,
87,
28,
15,
13,
15,
11,
88,
28,
15,
13,
15,
11,
89,
28,
15,
13,
15,
11,
40,
28,
15,
11,
41,
28,
15,
11,
42,
28,
15,
11,
27237,
28,
16,
8,
198,
220,
220,
220,
279,
796,
350,
4579,
37,
7,
11201,
77,
11,
4090,
58,
87,
11,
88,
11,
89,
4357,
40,
11,
41,
11,
42,
11,
27237,
8,
198,
220,
220,
220,
3487,
1096,
0,
7,
79,
8,
198,
220,
220,
220,
1441,
279,
198,
437,
198,
198,
8818,
37188,
7,
19881,
3712,
47,
4579,
37,
11,
87,
11,
88,
11,
89,
8,
198,
220,
220,
220,
44332,
11,
9892,
11,
67,
89,
796,
288,
5431,
89,
796,
275,
69,
13,
5431,
89,
12,
4090,
58,
87,
11,
88,
11,
89,
60,
198,
220,
220,
220,
374,
17,
796,
1233,
17,
7,
67,
5431,
89,
8,
198,
220,
220,
220,
1441,
275,
69,
13,
27237,
9,
7,
34350,
61,
19881,
13,
40,
27493,
7,
9892,
61,
19881,
13,
41,
27493,
7,
67,
89,
61,
19881,
13,
42,
27493,
11201,
32590,
19881,
13,
11201,
77,
9,
81,
17,
8,
198,
437,
198,
7,
19881,
3712,
47,
4579,
37,
5769,
87,
11,
88,
11,
89,
8,
796,
37188,
7,
19881,
3712,
47,
4579,
37,
11,
87,
11,
88,
11,
89,
8,
198,
198,
8818,
3487,
1096,
0,
7,
79,
19881,
3712,
47,
4579,
37,
8,
198,
220,
220,
220,
279,
19881,
13,
27237,
1220,
28,
19862,
17034,
7,
2502,
37796,
7,
79,
19881,
11,
79,
19881,
4008,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
327,
4579,
37,
7,
5431,
89,
11,
40,
11,
41,
11,
42,
11,
27237,
17414,
79,
35904,
9501,
38430,
1073,
891,
82,
12962,
198,
198,
16447,
257,
23407,
12822,
31562,
4308,
2163,
925,
286,
220,
198,
1169,
5499,
287,
685,
6024,
65,
9501,
60,
351,
44036,
685,
1073,
891,
82,
4083,
198,
7583,
2610,
262,
8159,
4600,
5431,
89,
63,
290,
5635,
4600,
40,
11,
41,
11,
42,
44646,
198,
37811,
198,
76,
18187,
2878,
327,
4579,
37,
198,
220,
220,
220,
2124,
45579,
3712,
50,
38469,
90,
18,
11,
43879,
2414,
92,
198,
220,
220,
220,
314,
3712,
5317,
2414,
198,
220,
220,
220,
449,
3712,
5317,
2414,
198,
220,
220,
220,
509,
3712,
5317,
2414,
198,
220,
220,
220,
2593,
3712,
43879,
2414,
198,
220,
220,
220,
279,
22296,
9501,
3712,
38469,
90,
47,
4579,
37,
92,
198,
220,
220,
220,
763,
891,
82,
3712,
38469,
90,
43879,
2414,
92,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
269,
70,
19881,
7,
11201,
77,
11,
87,
28,
15,
11,
88,
28,
15,
11,
89,
28,
15,
11,
40,
28,
15,
11,
41,
28,
15,
11,
42,
28,
15,
11,
27237,
28,
16,
8,
198,
198,
47429,
2163,
284,
2251,
257,
327,
4579,
37,
351,
11902,
26235,
13,
198,
37811,
198,
66,
70,
19881,
7,
87,
28,
15,
13,
15,
11,
88,
28,
15,
13,
15,
11,
89,
28,
15,
13,
15,
11,
40,
28,
15,
11,
41,
28,
15,
11,
42,
28,
15,
8,
796,
327,
4579,
37,
7,
4090,
58,
87,
11,
88,
11,
89,
4357,
40,
11,
41,
11,
42,
11,
16,
13,
15,
17414,
38430,
12962,
198,
198,
321,
489,
3984,
7,
19881,
3712,
34,
4579,
37,
11,
87,
11,
88,
11,
89,
8,
796,
275,
69,
13,
27237,
9,
16345,
7,
66,
9,
321,
489,
3984,
7,
79,
19881,
11,
87,
11,
88,
11,
89,
8,
329,
357,
66,
11,
79,
19881,
8,
287,
2684,
20288,
7,
19881,
4008,
198,
7,
19881,
3712,
34,
4579,
37,
5769,
87,
11,
88,
11,
89,
8,
796,
37188,
7,
19881,
3712,
34,
4579,
37,
11,
87,
11,
88,
11,
89,
8,
198,
198,
8818,
3487,
1096,
0,
7,
19881,
3712,
34,
4579,
37,
8,
198,
220,
220,
220,
275,
69,
13,
27237,
1220,
28,
19862,
17034,
7,
2502,
37796,
7,
19881,
11,
19881,
4008,
198,
437,
198,
198,
19795,
20288,
7,
64,
3712,
34,
4579,
37,
8,
796,
19974,
7,
64,
13,
1073,
891,
82,
11,
64,
13,
6024,
65,
9501,
8,
198,
198,
8818,
751,
19881,
0,
7,
66,
19881,
3712,
34,
4579,
37,
11,
11201,
77,
11,
1073,
891,
8,
198,
220,
220,
220,
7308,
13,
14689,
0,
7,
66,
19881,
13,
6024,
65,
9501,
11,
6024,
19881,
7,
11201,
77,
11,
66,
19881,
13,
5431,
89,
986,
11,
66,
19881,
13,
40,
11,
66,
19881,
13,
41,
11,
66,
19881,
13,
42,
4008,
198,
220,
220,
220,
7308,
13,
14689,
0,
7,
66,
19881,
13,
1073,
891,
82,
11,
1073,
891,
8,
198,
220,
220,
220,
3487,
1096,
0,
7,
66,
19881,
8,
198,
437,
198,
198,
28484,
7,
69,
11,
64,
3712,
34,
4579,
37,
11,
65,
3712,
34,
4579,
37,
8,
796,
257,
13,
27237,
9,
65,
13,
27237,
9,
16345,
7,
6888,
9,
21101,
9,
69,
7,
397,
69,
11,
11848,
69,
8,
329,
357,
6888,
11,
397,
69,
8,
287,
2684,
20288,
7,
64,
8,
329,
357,
21101,
11,
11848,
69,
8,
287,
2684,
20288,
7,
65,
4008,
198,
8818,
2775,
7,
69,
11,
64,
3712,
34,
4579,
37,
11,
65,
3712,
34,
4579,
37,
11,
66,
3712,
34,
4579,
37,
11,
67,
3712,
34,
4579,
37,
8,
198,
220,
220,
220,
264,
796,
657,
198,
220,
220,
220,
329,
357,
6888,
11,
397,
69,
8,
287,
2684,
20288,
7,
64,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
357,
21101,
11,
11848,
69,
8,
287,
2684,
20288,
7,
65,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
357,
535,
11,
66,
19881,
8,
287,
2684,
20288,
7,
66,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
357,
10210,
11,
9945,
69,
8,
287,
2684,
20288,
7,
67,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
15853,
1275,
9,
21101,
9,
535,
9,
10210,
9,
69,
7,
397,
69,
11,
11848,
69,
11,
66,
19881,
11,
9945,
69,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
257,
13,
27237,
9,
65,
13,
27237,
9,
66,
13,
27237,
9,
67,
13,
27237,
9,
82,
198,
437,
198,
198,
8818,
19679,
7,
265,
3150,
3712,
38469,
90,
2953,
296,
5512,
3672,
2625,
301,
78,
18,
70,
4943,
198,
220,
220,
220,
1366,
796,
4308,
62,
7890,
58,
3672,
60,
198,
220,
220,
220,
427,
82,
796,
17537,
21737,
198,
220,
220,
220,
329,
22037,
287,
23235,
198,
220,
220,
220,
220,
220,
220,
220,
329,
357,
37047,
11,
19795,
4868,
8,
287,
1366,
58,
37696,
13,
265,
3919,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
406,
796,
300,
8367,
58,
37047,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1033,
5907,
796,
685,
11201,
77,
329,
357,
11201,
77,
11,
1073,
891,
8,
287,
2684,
4868,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
763,
891,
82,
796,
685,
1073,
891,
329,
357,
11201,
77,
11,
1073,
891,
8,
287,
2684,
4868,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
9501,
796,
327,
4579,
37,
21737,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
357,
40,
11,
41,
11,
42,
8,
287,
7582,
62,
521,
1063,
58,
43,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
19881,
796,
269,
70,
19881,
7,
37696,
13,
5431,
89,
986,
11,
40,
11,
41,
11,
42,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
65,
9501,
11,
66,
19881,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
357,
11201,
77,
11,
1073,
891,
8,
287,
19974,
7,
11201,
5907,
11,
1073,
891,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
751,
19881,
0,
7,
66,
19881,
11,
11201,
77,
11,
1073,
891,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
1477,
82,
11,
23248,
7,
37696,
13,
5431,
89,
11,
75,
8367,
58,
37047,
4357,
11201,
5907,
11,
1073,
891,
82,
11,
65,
9501,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
427,
82,
198,
437,
198,
198,
8818,
1382,
62,
12093,
271,
7,
265,
3150,
3712,
38469,
90,
2953,
296,
5512,
3672,
2625,
301,
78,
18,
70,
4943,
198,
220,
220,
220,
427,
82,
796,
19679,
7,
265,
3150,
11,
3672,
8,
198,
220,
220,
220,
275,
9501,
796,
327,
4579,
37,
21737,
198,
220,
220,
220,
318,
11994,
796,
2558,
21737,
198,
220,
220,
220,
285,
1477,
82,
796,
2558,
21737,
198,
220,
220,
220,
329,
357,
680,
11,
1477,
8,
287,
27056,
378,
7,
1477,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
357,
907,
71,
11,
7,
40,
11,
41,
11,
42,
4008,
287,
27056,
378,
7,
29149,
62,
521,
1063,
58,
1477,
13,
43,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
19881,
796,
269,
70,
19881,
7,
1477,
13,
5431,
89,
986,
11,
40,
11,
41,
11,
42,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
65,
9501,
11,
66,
19881,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
680,
82,
11,
680,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
907,
11994,
11,
907,
71,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
357,
11201,
77,
11,
1073,
891,
8,
287,
19974,
7,
1477,
13,
11201,
5907,
11,
1477,
13,
1073,
891,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
751,
19881,
0,
7,
66,
19881,
11,
11201,
77,
11,
1073,
891,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
6455,
271,
7,
65,
9501,
11,
1477,
82,
11,
680,
82,
11,
907,
11994,
8,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
17537,
7,
5431,
89,
11,
43,
11,
11201,
5907,
11,
1073,
14822,
82,
8,
198,
198,
1273,
5620,
329,
257,
4308,
2163,
7582,
11,
7268,
3294,
198,
34,
4579,
42388,
286,
1180,
32558,
2589,
64,
13,
220,
220,
220,
220,
220,
220,
220,
220,
198,
37811,
198,
76,
18187,
2878,
17537,
198,
220,
220,
220,
2124,
45579,
3712,
50,
38469,
90,
18,
11,
43879,
2414,
92,
198,
220,
220,
220,
406,
3712,
5317,
198,
220,
220,
220,
1033,
5907,
3712,
38469,
90,
43879,
2414,
92,
198,
220,
220,
220,
763,
891,
82,
3712,
38469,
90,
43879,
2414,
92,
198,
220,
220,
220,
269,
22296,
9501,
3712,
38469,
90,
34,
4579,
37,
92,
198,
437,
198,
77,
19881,
7,
1477,
3712,
23248,
8,
796,
4129,
7,
29149,
62,
521,
1063,
7,
1477,
13,
43,
4008,
198,
8818,
279,
22296,
9501,
7,
1477,
3712,
23248,
8,
198,
220,
220,
220,
2124,
11,
88,
11,
89,
796,
427,
13,
5431,
89,
198,
220,
220,
220,
279,
22296,
9501,
796,
350,
4579,
37,
21737,
198,
220,
220,
220,
329,
357,
40,
11,
41,
11,
42,
8,
287,
7582,
62,
521,
1063,
58,
1477,
13,
43,
60,
198,
220,
220,
220,
220,
220,
220,
220,
329,
357,
11201,
77,
11,
1073,
891,
8,
287,
19974,
7,
1477,
13,
11201,
5907,
11,
1477,
13,
1073,
891,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
6024,
65,
9501,
11,
6024,
19881,
7,
11201,
77,
11,
87,
11,
88,
11,
89,
11,
40,
11,
41,
11,
42,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
279,
22296,
9501,
198,
437,
628,
198,
37811,
198,
220,
220,
220,
6455,
271,
7,
66,
22296,
9501,
11,
29149,
82,
11,
271,
12758,
11,
907,
12758,
8,
198,
198,
1273,
5620,
284,
1745,
257,
4308,
900,
11,
351,
7508,
546,
19679,
290,
584,
1366,
198,
37811,
198,
76,
18187,
2878,
6455,
271,
1303,
24637,
286,
27741,
38469,
90,
34,
4579,
37,
92,
30,
198,
220,
220,
220,
269,
22296,
9501,
3712,
38469,
90,
34,
4579,
37,
92,
198,
220,
220,
220,
19679,
3712,
38469,
90,
23248,
92,
198,
220,
220,
220,
318,
12758,
3712,
38469,
90,
5317,
2414,
92,
1303,
9022,
7582,
24866,
284,
275,
69,
1312,
198,
220,
220,
220,
285,
29149,
3712,
38469,
90,
5317,
2414,
92,
1303,
9022,
285,
12,
8367,
357,
8416,
11,
67,
5431,
11,
3503,
2014,
24866,
284,
275,
69,
1312,
198,
437,
198,
14881,
13,
7857,
7,
65,
3712,
15522,
271,
8,
796,
357,
13664,
7,
65,
13,
66,
22296,
9501,
828,
8,
198,
14881,
13,
13664,
7,
65,
3712,
15522,
271,
8,
796,
4129,
7,
65,
13,
66,
22296,
9501,
8,
198,
14881,
13,
2676,
378,
7,
65,
3712,
15522,
271,
11,
72,
3712,
5317,
8,
796,
11629,
378,
7,
65,
13,
66,
22296,
9501,
11,
72,
8,
198,
14881,
13,
2676,
378,
7,
65,
3712,
15522,
271,
8,
796,
11629,
378,
7,
65,
13,
66,
22296,
9501,
8,
198,
14881,
13,
1136,
9630,
7,
65,
3712,
15522,
271,
11,
1312,
3712,
5317,
8,
796,
275,
13,
66,
22296,
9501,
58,
72,
60,
198,
77,
19881,
7,
65,
3712,
15522,
271,
8,
796,
4129,
7,
65,
13,
66,
22296,
9501,
8,
198,
5907,
12758,
82,
7,
65,
3712,
15522,
271,
8,
796,
4129,
7,
65,
13,
29149,
82,
8,
198,
198,
37811,
198,
220,
1931,
72,
62,
34045,
2044,
198,
198,
7293,
1133,
477,
286,
262,
2672,
1312,
73,
41582,
2846,
326,
467,
656,
281,
412,
7112,
198,
22105,
11,
290,
24061,
262,
2672,
3848,
284,
289,
21062,
11,
290,
703,
284,
220,
198,
403,
8002,
262,
2482,
656,
262,
1700,
13,
198,
198,
33442,
62,
34045,
2044,
5860,
257,
22155,
884,
326,
262,
19287,
4645,
198,
11261,
307,
7042,
2884,
25,
198,
15506,
63,
220,
198,
220,
220,
220,
11351,
2044,
58,
271,
12758,
11,
73,
29149,
11,
591,
12758,
11,
75,
29149,
60,
796,
357,
2926,
41582,
11,
5303,
11,
71,
73,
11,
71,
74,
11,
18519,
8,
198,
220,
220,
220,
39436,
3808,
796,
289,
21062,
7,
271,
12758,
11,
73,
29149,
11,
591,
12758,
11,
75,
29149,
8,
198,
220,
220,
220,
493,
82,
58,
2926,
41582,
60,
796,
39436,
3808,
58,
5303,
11,
71,
73,
11,
71,
74,
11,
18519,
60,
198,
15506,
63,
220,
220,
220,
220,
198,
37811,
198,
8818,
1931,
72,
62,
34045,
2044,
7,
65,
9501,
3712,
15522,
271,
8,
198,
220,
220,
220,
11351,
2044,
796,
15161,
35422,
1068,
35,
713,
90,
11251,
29291,
90,
19,
11,
2558,
5512,
20650,
90,
11251,
29291,
90,
20,
11,
2558,
42535,
7,
38469,
90,
11251,
29291,
90,
20,
11,
2558,
11709,
58,
12962,
198,
220,
220,
220,
329,
357,
9630,
11,
2926,
41582,
8,
287,
27056,
378,
7,
72,
48727,
7,
13664,
7,
65,
9501,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
11,
73,
11,
74,
11,
75,
796,
1312,
73,
41582,
198,
220,
220,
220,
220,
220,
220,
220,
7649,
11,
11632,
796,
275,
9501,
13,
271,
12758,
58,
72,
4357,
65,
9501,
13,
907,
12758,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
300,
73,
11,
76,
73,
796,
275,
9501,
13,
271,
12758,
58,
73,
4357,
65,
9501,
13,
907,
12758,
58,
73,
60,
198,
220,
220,
220,
220,
220,
220,
220,
300,
74,
11,
28015,
796,
275,
9501,
13,
271,
12758,
58,
74,
4357,
65,
9501,
13,
907,
12758,
58,
74,
60,
198,
220,
220,
220,
220,
220,
220,
220,
32660,
11,
4029,
796,
275,
9501,
13,
271,
12758,
58,
75,
4357,
65,
9501,
13,
907,
12758,
58,
75,
60,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
34045,
2044,
58,
4528,
11,
75,
73,
11,
75,
74,
11,
297,
4357,
7,
9630,
11,
11632,
11,
76,
73,
11,
28015,
11,
4029,
4008,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
11351,
2044,
198,
437,
198,
198,
8818,
1931,
72,
62,
34045,
2044,
7,
1477,
82,
3712,
38469,
90,
23248,
30072,
198,
220,
220,
220,
11351,
2044,
796,
15161,
35422,
1068,
35,
713,
90,
11251,
29291,
90,
19,
11,
2558,
5512,
20650,
90,
11251,
29291,
90,
20,
11,
2558,
42535,
7,
38469,
90,
11251,
29291,
90,
20,
11,
2558,
11709,
58,
12962,
198,
220,
220,
220,
299,
1477,
796,
4129,
7,
1477,
82,
8,
198,
220,
220,
220,
1312,
73,
74,
17,
75,
76,
796,
787,
62,
45961,
17,
75,
76,
3419,
628,
220,
220,
220,
1312,
796,
657,
198,
220,
220,
220,
6376,
796,
657,
198,
220,
220,
220,
329,
357,
680,
11,
44019,
8,
287,
27056,
378,
7,
1477,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
427,
72,
796,
427,
82,
58,
680,
60,
198,
220,
220,
220,
220,
220,
220,
220,
329,
24283,
69,
287,
427,
72,
13,
66,
22296,
9501,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21504,
796,
1312,
73,
74,
17,
75,
76,
58,
571,
69,
13,
40,
11,
571,
69,
13,
41,
11,
571,
69,
13,
42,
7131,
17,
60,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
474,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
357,
73,
1477,
11,
1477,
73,
8,
287,
27056,
378,
7,
20657,
7,
1477,
82,
11,
680,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
474,
19881,
287,
427,
73,
13,
66,
22296,
9501,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
474,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
474,
1875,
1312,
2270,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
73,
796,
1312,
73,
74,
17,
75,
76,
58,
73,
19881,
13,
40,
11,
73,
19881,
13,
41,
11,
73,
19881,
13,
42,
7131,
17,
60,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
357,
50133,
11,
1477,
74,
8,
287,
27056,
378,
7,
1477,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
479,
19881,
287,
427,
74,
13,
66,
22296,
9501,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33480,
796,
1312,
73,
74,
17,
75,
76,
58,
74,
19881,
13,
40,
11,
74,
19881,
13,
41,
11,
74,
19881,
13,
42,
7131,
17,
60,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
357,
75,
1477,
11,
1477,
75,
8,
287,
27056,
378,
7,
20657,
7,
1477,
82,
11,
50133,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
259,
65,
3733,
329,
18360,
69,
287,
427,
75,
13,
66,
22296,
9501,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
300,
1875,
479,
2270,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
479,
9,
75,
1875,
1312,
9,
73,
2270,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25962,
796,
1312,
73,
74,
17,
75,
76,
58,
75,
19881,
13,
40,
11,
75,
19881,
13,
41,
11,
75,
19881,
13,
42,
7131,
17,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
34045,
2044,
58,
680,
11,
73,
1477,
11,
50133,
11,
75,
1477,
4357,
7,
9630,
11,
11632,
11,
76,
73,
11,
28015,
11,
4029,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
1303,
18360,
69,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
1303,
300,
1477,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
1303,
479,
19881,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
1303,
479,
1477,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
1303,
474,
19881,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
1303,
474,
1477,
628,
220,
220,
220,
220,
220,
220,
220,
886,
1303,
24283,
69,
198,
220,
220,
220,
886,
1303,
318,
71,
198,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
1441,
11351,
2044,
198,
437,
198,
198,
2,
7582,
62,
521,
1063,
3975,
422,
257,
7582,
300,
12,
8367,
284,
262,
13690,
35610,
2196,
286,
285,
12,
27160,
326,
389,
262,
220,
198,
2,
220,
220,
5635,
286,
262,
13690,
35610,
12822,
31562,
4308,
5499,
13,
198,
2,
220,
198,
2,
1002,
10348,
11,
356,
460,
635,
287,
1851,
7582,
62,
521,
1063,
284,
3975,
314,
41,
42,
15055,
912,
284,
300,
11,
76,
14729,
25,
198,
2,
314,
41,
42,
17,
75,
76,
796,
360,
713,
7,
23852,
42,
5218,
7,
75,
11,
76,
8,
329,
300,
287,
657,
25,
19,
329,
357,
76,
11,
23852,
42,
8,
287,
27056,
378,
7,
29149,
62,
521,
1063,
58,
75,
60,
4008,
198,
9979,
7582,
62,
521,
1063,
796,
360,
713,
7,
198,
220,
220,
220,
657,
5218,
685,
44,
38469,
7,
15,
11,
15,
11,
15,
8,
4357,
1303,
352,
198,
220,
220,
220,
352,
5218,
685,
44,
38469,
7,
16,
11,
15,
11,
15,
828,
44,
38469,
7,
15,
11,
16,
11,
15,
828,
44,
38469,
7,
15,
11,
15,
11,
16,
8,
4357,
1303,
513,
198,
220,
220,
220,
362,
5218,
685,
44,
38469,
7,
17,
11,
15,
11,
15,
828,
44,
38469,
7,
16,
11,
16,
11,
15,
828,
44,
38469,
7,
16,
11,
15,
11,
16,
828,
44,
38469,
7,
15,
11,
17,
11,
15,
828,
44,
38469,
7,
15,
11,
16,
11,
16,
828,
44,
38469,
7,
15,
11,
15,
11,
17,
8,
4357,
198,
220,
220,
220,
513,
5218,
685,
44,
38469,
7,
18,
11,
15,
11,
15,
828,
44,
38469,
7,
17,
11,
16,
11,
15,
828,
44,
38469,
7,
17,
11,
15,
11,
16,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32947,
9250,
7,
16,
11,
17,
11,
15,
828,
44,
38469,
7,
16,
11,
15,
11,
17,
828,
44,
38469,
7,
16,
11,
16,
11,
16,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32947,
9250,
7,
15,
11,
18,
11,
15,
828,
44,
38469,
7,
15,
11,
17,
11,
16,
828,
44,
38469,
7,
15,
11,
16,
11,
17,
828,
44,
38469,
7,
15,
11,
15,
11,
18,
8,
4357,
1303,
838,
198,
220,
220,
220,
604,
5218,
685,
44,
38469,
7,
19,
11,
15,
11,
15,
828,
44,
38469,
7,
18,
11,
16,
11,
15,
828,
44,
38469,
7,
18,
11,
15,
11,
16,
828,
44,
38469,
7,
17,
11,
17,
11,
15,
828,
44,
38469,
7,
17,
11,
16,
11,
16,
828,
44,
38469,
7,
17,
11,
15,
11,
17,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32947,
9250,
7,
16,
11,
18,
11,
15,
828,
44,
38469,
7,
16,
11,
17,
11,
16,
828,
44,
38469,
7,
16,
11,
16,
11,
17,
828,
44,
38469,
7,
16,
11,
15,
11,
18,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32947,
9250,
7,
15,
11,
19,
11,
15,
828,
44,
38469,
7,
15,
11,
18,
11,
16,
828,
44,
38469,
7,
15,
11,
17,
11,
17,
828,
44,
38469,
7,
15,
11,
16,
11,
18,
828,
44,
38469,
7,
15,
11,
15,
11,
19,
15437,
1303,
1315,
198,
8,
198,
198,
297,
9608,
796,
360,
713,
7,
15,
14804,
1,
82,
1600,
16,
14804,
1,
79,
1600,
17,
14804,
1,
67,
1600,
18,
14804,
1,
69,
1600,
19,
14804,
1,
70,
1600,
20,
14804,
1,
71,
4943,
198,
75,
8367,
796,
20121,
7,
35,
713,
19510,
85,
11,
74,
8,
329,
357,
74,
11,
85,
8,
287,
32660,
9608,
828,
35,
713,
19510,
7211,
2798,
589,
7,
85,
828,
74,
8,
329,
357,
74,
11,
85,
8,
287,
32660,
9608,
4008,
198,
198,
65,
2704,
9608,
7,
19881,
8,
796,
32660,
9608,
58,
19881,
13,
40,
10,
19881,
13,
41,
10,
19881,
13,
42,
60,
9,
19881,
79,
322,
7203,
87,
1600,
19881,
13,
40,
27493,
19881,
79,
322,
7203,
88,
1600,
19881,
13,
41,
27493,
19881,
79,
322,
7203,
89,
1600,
19881,
13,
42,
8,
198,
8818,
275,
46428,
322,
7,
82,
11,
73,
8,
220,
198,
197,
361,
474,
6624,
657,
198,
197,
197,
7783,
13538,
198,
197,
17772,
361,
474,
6624,
352,
198,
197,
197,
7783,
264,
198,
197,
437,
198,
197,
7783,
17971,
82,
3,
73,
1,
198,
437,
197,
198,
198,
1,
15883,
62,
76,
17,
5488,
532,
6889,
3975,
1022,
257,
35582,
1351,
286,
357,
36802,
11,
1820,
11,
76,
89,
8,
3815,
290,
257,
78,
36525,
1,
198,
8818,
787,
62,
76,
17,
5488,
7,
75,
9806,
28,
19,
8,
198,
220,
220,
220,
285,
17,
5488,
796,
360,
713,
90,
38469,
90,
5317,
2414,
5512,
2558,
2414,
92,
3419,
198,
220,
220,
220,
220,
13481,
796,
657,
198,
220,
220,
220,
329,
300,
287,
657,
25,
75,
9806,
198,
220,
220,
220,
220,
220,
220,
220,
329,
13845,
287,
7582,
62,
521,
1063,
58,
75,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13481,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
17,
5488,
58,
907,
60,
796,
220,
13481,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
285,
17,
5488,
198,
437,
198,
8818,
787,
62,
5488,
17,
76,
7,
75,
9806,
28,
19,
8,
198,
220,
220,
220,
257,
78,
17,
76,
796,
32947,
9250,
90,
18,
11,
2558,
2414,
92,
21737,
198,
220,
220,
220,
329,
300,
287,
657,
25,
75,
9806,
198,
220,
220,
220,
220,
220,
220,
220,
329,
13845,
287,
7582,
62,
521,
1063,
58,
75,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
5488,
17,
76,
11,
907,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
257,
78,
17,
76,
198,
437,
198,
198,
9979,
285,
17,
5488,
796,
787,
62,
76,
17,
5488,
3419,
198,
9979,
257,
78,
17,
76,
796,
787,
62,
5488,
17,
76,
3419,
198,
198,
1,
15883,
62,
2616,
78,
532,
7913,
286,
317,
16748,
329,
1080,
351,
300,
19679,
1,
198,
15883,
62,
2616,
78,
7,
75,
8,
796,
2160,
7,
13664,
7,
29149,
62,
521,
1063,
58,
72,
12962,
329,
1312,
287,
657,
25,
75,
8,
198,
9979,
299,
5488,
796,
3242,
2617,
19182,
26933,
15883,
62,
2616,
78,
7,
75,
8,
329,
300,
287,
657,
25,
19,
4357,
15,
25,
19,
8,
198,
198,
2,
6060,
5499,
290,
8893,
625,
4308,
5499,
198,
2,
284,
4598,
25,
1394,
257,
6937,
286,
3509,
5488,
393,
1223,
198,
2,
290,
779,
340,
284,
5678,
8893,
198,
8818,
787,
62,
30846,
62,
9630,
3419,
198,
220,
220,
220,
299,
796,
4129,
7,
5488,
17,
76,
8,
198,
220,
220,
220,
6482,
62,
9630,
796,
1976,
27498,
7,
5317,
11,
77,
11,
18,
8,
198,
220,
220,
220,
329,
257,
287,
352,
25,
77,
198,
220,
220,
220,
220,
220,
220,
220,
285,
796,
257,
78,
17,
76,
58,
64,
60,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
352,
25,
18,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
285,
58,
72,
60,
6624,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6482,
62,
9630,
58,
64,
11,
72,
60,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8085,
796,
4866,
7,
76,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8085,
58,
72,
60,
48185,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
716,
796,
285,
17,
5488,
58,
3020,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6482,
62,
9630,
58,
64,
11,
72,
60,
796,
716,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
6482,
62,
9630,
198,
437,
198,
9979,
6482,
62,
9630,
796,
787,
62,
30846,
62,
9630,
3419,
198,
198,
8818,
787,
62,
30846,
62,
37295,
3419,
198,
220,
220,
220,
299,
796,
4129,
7,
5488,
17,
76,
8,
198,
220,
220,
220,
6482,
62,
37295,
796,
1976,
27498,
7,
5317,
11,
77,
8,
198,
220,
220,
220,
329,
257,
287,
352,
25,
77,
198,
220,
220,
220,
220,
220,
220,
220,
6482,
62,
37295,
58,
64,
60,
796,
1822,
9806,
7,
5488,
17,
76,
58,
64,
12962,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
6482,
62,
37295,
198,
437,
198,
9979,
6482,
62,
37295,
796,
787,
62,
30846,
62,
37295,
3419,
198,
198,
8818,
787,
62,
29149,
62,
17618,
3419,
198,
220,
220,
220,
299,
796,
4129,
7,
5488,
17,
76,
8,
198,
220,
220,
220,
7582,
62,
17618,
796,
1976,
27498,
7,
5317,
11,
77,
8,
198,
220,
220,
220,
329,
257,
287,
352,
25,
77,
198,
220,
220,
220,
220,
220,
220,
220,
7582,
62,
17618,
58,
64,
60,
796,
2160,
7,
5488,
17,
76,
58,
64,
12962,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
7582,
62,
17618,
198,
437,
198,
9979,
7582,
62,
17618,
796,
787,
62,
29149,
62,
17618,
3419,
198,
198,
8818,
787,
62,
30846,
62,
9630,
62,
9541,
3419,
198,
220,
220,
220,
299,
796,
4129,
7,
5488,
17,
76,
8,
198,
220,
220,
220,
3509,
1477,
796,
7582,
62,
17618,
58,
77,
60,
198,
220,
220,
220,
6482,
62,
9630,
796,
1976,
27498,
7,
5317,
11,
77,
11,
18,
8,
198,
220,
220,
220,
329,
257,
287,
352,
25,
77,
198,
220,
220,
220,
220,
220,
220,
220,
285,
796,
257,
78,
17,
76,
58,
64,
60,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
352,
25,
18,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2160,
7,
76,
8,
6624,
3509,
1477,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6482,
62,
9630,
58,
64,
11,
72,
60,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8085,
796,
4866,
7,
76,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8085,
58,
72,
60,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
716,
796,
285,
17,
5488,
58,
3020,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6482,
62,
9630,
58,
64,
11,
72,
60,
796,
716,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
6482,
62,
9630,
198,
437,
198,
9979,
6482,
62,
9630,
62,
9541,
796,
787,
62,
30846,
62,
9630,
62,
9541,
3419,
198,
198,
8818,
787,
62,
45961,
17,
75,
76,
7,
9806,
75,
28,
19,
8,
198,
220,
220,
220,
1312,
73,
74,
17,
75,
76,
796,
360,
713,
90,
11251,
29291,
90,
18,
11,
5317,
5512,
11251,
29291,
90,
17,
11,
5317,
11709,
3419,
198,
220,
220,
220,
329,
300,
287,
657,
25,
9806,
75,
198,
220,
220,
220,
220,
220,
220,
220,
329,
357,
76,
11,
7,
72,
11,
73,
11,
74,
4008,
287,
27056,
378,
7,
29149,
62,
521,
1063,
58,
75,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
73,
74,
17,
75,
76,
58,
72,
11,
73,
11,
74,
60,
796,
357,
75,
11,
76,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
1312,
73,
74,
17,
75,
76,
198,
437,
198
] | 1.779658 | 6,322 |
export Domain, SegmentDomain, tocanonical, fromcanonical, fromcanonicalD, ∂
export chebyshevpoints, fourierpoints, isambiguous, arclength
export components, component, ncomponents
# add indexing for all spaces, not just DirectSumSpace
# mimicking scalar vs vector
# prectype gives the precision, including for Vec
prectype(::Type{D}) where {D<:Domain} = float(eltype(eltype(D)))
prectype(d::Domain) = prectype(typeof(d))
#TODO: bivariate AnyDomain
struct AnyDomain <: Domain{UnsetNumber} end
struct EmptyDomain <: Domain{Nothing} end
isambiguous(::AnyDomain) = true
dimension(::AnyDomain) = 1
complexlength(::AnyDomain) = NaN
arclength(::AnyDomain) = NaN
arclength(::EmptyDomain) = false
arclength(::DomainSets.EmptySpace) = false
isempty(::AnyDomain) = false
reverseorientation(a::Union{AnyDomain,EmptyDomain}) = a
canonicaldomain(a::Union{AnyDomain,EmptyDomain}) = a
indomain(x::Domain,::EmptyDomain) = false
convert(::Type{Domain{T}}, ::AnyDomain) where T = Domain(T)
union(::AnyDomain, d::Domain) = d
union(d::Domain, ::AnyDomain) = d
union(::EmptyDomain, ::EmptyDomain) = EmptyDomain()
union(::EmptyDomain, a::Domain) = a
union(a::Domain, ::EmptyDomain) = a
##General routines
isempty(::EmptyDomain) = true
## Interval DomainSets
abstract type SegmentDomain{T} <: Domain{T} end
abstract type AbstractSegment{T} <: SegmentDomain{T} end
const IntervalOrSegment{T} = Union{AbstractInterval{T}, AbstractSegment{T}}
const IntervalOrSegmentDomain{T} = Union{AbstractInterval{T}, SegmentDomain{T}}
canonicaldomain(d::IntervalOrSegmentDomain) = ChebyshevInterval{real(prectype(d))}()
domainscompatible(a,b) = domainscompatible(domain(a),domain(b))
domainscompatible(a::Domain,b::Domain) = isambiguous(a) || isambiguous(b) ||
isapprox(a,b)
##TODO: Should fromcanonical be fromcanonical!?
#TODO consider moving these
leftendpoint(d::IntervalOrSegmentDomain{T}) where {T} = fromcanonical(d,-one(eltype(T)))
rightendpoint(d::IntervalOrSegmentDomain{T}) where {T} = fromcanonical(d,one(eltype(T)))
indomain(x,::AnyDomain) = true
function indomain(x,d::SegmentDomain)
T=float(real(prectype(d)))
y=tocanonical(d,x)
ry=real(y)
iy=imag(y)
sc=norm(fromcanonicalD(d,ry<-1 ? -one(ry) : (ry>1 ? one(ry) : ry))) # scale based on stretch of map on projection to interal
dy=fromcanonical(d,y)
# TODO: use isapprox once keywords are fast
((isinf(norm(dy)) && isinf(norm(x))) || norm(dy-x) ≤ 1000eps(T)*max(norm(x),1)) &&
-one(T)-100eps(T)/sc ≤ ry ≤ one(T)+100eps(T)/sc &&
-100eps(T)/sc ≤ iy ≤ 100eps(T)/sc
end
ncomponents(s::Domain) = 1
components(s::Domain) = [s]
function components(s::Domain,k)
k ≠ 1 && throw(BoundsError())
s
end
issubcomponent(a::Domain,b::Domain) = a in components(b)
##### canoncial
"""
canonicaldomain(d)
returns a domain which we map to for operations. For example,
the canonical domain for an interval [a,b] is [-1,1]
"""
function canonicaldomain end
"""
tocanonical(d, x)
maps the point `x` in `d` to a point in `canonical(d,x)`
"""
function tocanonical end
issubset(a::Domain,b::Domain) = a==b
## conveninece routines
ones(d::Domain) = ones(prectype(d),Space(d))
zeros(d::Domain) = zeros(prectype(d),Space(d))
function commondomain(P::AbstractVector)
ret = AnyDomain()
for op in P
d = domain(op)
@assert ret == AnyDomain() || d == AnyDomain() || ret == d
if d != AnyDomain()
ret = d
end
end
ret
end
commondomain(P::AbstractVector,g::AbstractArray{T}) where {T<:Number} = commondomain(P)
commondomain(P::AbstractVector,g) = commondomain([P;g])
domain(::Number) = AnyDomain()
## rand
rand(d::IntervalOrSegmentDomain,k...) = fromcanonical.(Ref(d),2rand(k...)-1)
checkpoints(d::IntervalOrSegmentDomain) = fromcanonical.(Ref(d),[-0.823972,0.01,0.3273484])
## boundary
boundary(d::SegmentDomain) = [leftendpoint(d),rightendpoint(d)] #TODO: Points domain
## map domains
# we auto vectorize arguments
tocanonical(d::Domain,x,y,z...) = tocanonical(d,Vec(x,y,z...))
fromcanonical(d::Domain,x,y,z...) = fromcanonical(d,Vec(x,y,z...))
mappoint(d1::Domain,d2::Domain,x...) = fromcanonical(d2,tocanonical(d1,x...))
invfromcanonicalD(d::Domain,x...) = 1/fromcanonicalD(d,x...)
## domains in higher dimensions
## sorting
# we sort spaces lexigraphically by default
for OP in (:<,:(<=),:>,:(>=),:(isless))
@eval $OP(a::Domain,b::Domain)=$OP(string(a),string(b))
end
## Other special domains
struct PositiveIntegers <: Domain{Int} end
struct Integers <: Domain{Int} end
const ℕ = PositiveIntegers()
const ℤ = Integers()
| [
198,
198,
39344,
20021,
11,
1001,
5154,
43961,
11,
284,
49883,
605,
11,
422,
49883,
605,
11,
422,
49883,
605,
35,
11,
18872,
224,
198,
39344,
1125,
48209,
258,
85,
13033,
11,
46287,
5277,
13033,
11,
318,
4131,
29709,
11,
610,
565,
3286,
198,
39344,
6805,
11,
7515,
11,
299,
5589,
3906,
628,
628,
198,
2,
751,
6376,
278,
329,
477,
9029,
11,
407,
655,
4128,
13065,
14106,
198,
2,
17007,
7958,
16578,
283,
3691,
15879,
198,
198,
2,
662,
310,
2981,
3607,
262,
15440,
11,
1390,
329,
38692,
198,
79,
2554,
2981,
7,
3712,
6030,
90,
35,
30072,
810,
1391,
35,
27,
25,
43961,
92,
796,
12178,
7,
417,
4906,
7,
417,
4906,
7,
35,
22305,
198,
79,
2554,
2981,
7,
67,
3712,
43961,
8,
796,
662,
310,
2981,
7,
4906,
1659,
7,
67,
4008,
198,
198,
2,
51,
3727,
46,
25,
275,
42524,
4377,
43961,
198,
7249,
4377,
43961,
1279,
25,
20021,
90,
3118,
2617,
15057,
92,
886,
198,
7249,
33523,
43961,
1279,
25,
20021,
90,
18465,
92,
886,
198,
198,
271,
4131,
29709,
7,
3712,
7149,
43961,
8,
796,
2081,
198,
46156,
7,
3712,
7149,
43961,
8,
796,
352,
198,
198,
41887,
13664,
7,
3712,
7149,
43961,
8,
796,
11013,
45,
198,
283,
565,
3286,
7,
3712,
7149,
43961,
8,
796,
11013,
45,
198,
283,
565,
3286,
7,
3712,
40613,
43961,
8,
796,
3991,
198,
283,
565,
3286,
7,
3712,
43961,
50,
1039,
13,
40613,
14106,
8,
796,
3991,
198,
198,
271,
28920,
7,
3712,
7149,
43961,
8,
796,
3991,
198,
198,
50188,
13989,
341,
7,
64,
3712,
38176,
90,
7149,
43961,
11,
40613,
43961,
30072,
796,
257,
198,
198,
49883,
605,
27830,
7,
64,
3712,
38176,
90,
7149,
43961,
11,
40613,
43961,
30072,
796,
257,
198,
198,
521,
296,
391,
7,
87,
3712,
43961,
11,
3712,
40613,
43961,
8,
796,
3991,
198,
198,
1102,
1851,
7,
3712,
6030,
90,
43961,
90,
51,
92,
5512,
7904,
7149,
43961,
8,
810,
309,
796,
20021,
7,
51,
8,
628,
198,
24592,
7,
3712,
7149,
43961,
11,
288,
3712,
43961,
8,
796,
288,
198,
24592,
7,
67,
3712,
43961,
11,
7904,
7149,
43961,
8,
796,
288,
198,
198,
24592,
7,
3712,
40613,
43961,
11,
7904,
40613,
43961,
8,
796,
33523,
43961,
3419,
198,
24592,
7,
3712,
40613,
43961,
11,
257,
3712,
43961,
8,
796,
257,
198,
24592,
7,
64,
3712,
43961,
11,
7904,
40613,
43961,
8,
796,
257,
198,
198,
2235,
12218,
31878,
198,
271,
28920,
7,
3712,
40613,
43961,
8,
796,
2081,
628,
198,
2235,
4225,
2100,
20021,
50,
1039,
198,
198,
397,
8709,
2099,
1001,
5154,
43961,
90,
51,
92,
1279,
25,
20021,
90,
51,
92,
886,
198,
397,
8709,
2099,
27741,
41030,
434,
90,
51,
92,
1279,
25,
1001,
5154,
43961,
90,
51,
92,
886,
198,
9979,
4225,
2100,
5574,
41030,
434,
90,
51,
92,
796,
4479,
90,
23839,
9492,
2100,
90,
51,
5512,
27741,
41030,
434,
90,
51,
11709,
198,
9979,
4225,
2100,
5574,
41030,
434,
43961,
90,
51,
92,
796,
4479,
90,
23839,
9492,
2100,
90,
51,
5512,
1001,
5154,
43961,
90,
51,
11709,
198,
198,
49883,
605,
27830,
7,
67,
3712,
9492,
2100,
5574,
41030,
434,
43961,
8,
796,
2580,
48209,
258,
85,
9492,
2100,
90,
5305,
7,
79,
2554,
2981,
7,
67,
4008,
92,
3419,
198,
198,
3438,
1299,
38532,
7,
64,
11,
65,
8,
796,
18209,
38532,
7,
27830,
7,
64,
828,
27830,
7,
65,
4008,
198,
3438,
1299,
38532,
7,
64,
3712,
43961,
11,
65,
3712,
43961,
8,
796,
318,
4131,
29709,
7,
64,
8,
8614,
318,
4131,
29709,
7,
65,
8,
8614,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
1324,
13907,
7,
64,
11,
65,
8,
198,
198,
2235,
51,
3727,
46,
25,
10358,
422,
49883,
605,
307,
422,
49883,
605,
22857,
198,
198,
2,
51,
3727,
46,
2074,
3867,
777,
198,
9464,
437,
4122,
7,
67,
3712,
9492,
2100,
5574,
41030,
434,
43961,
90,
51,
30072,
810,
1391,
51,
92,
796,
422,
49883,
605,
7,
67,
12095,
505,
7,
417,
4906,
7,
51,
22305,
198,
3506,
437,
4122,
7,
67,
3712,
9492,
2100,
5574,
41030,
434,
43961,
90,
51,
30072,
810,
1391,
51,
92,
796,
422,
49883,
605,
7,
67,
11,
505,
7,
417,
4906,
7,
51,
22305,
198,
198,
521,
296,
391,
7,
87,
11,
3712,
7149,
43961,
8,
796,
2081,
198,
8818,
773,
296,
391,
7,
87,
11,
67,
3712,
41030,
434,
43961,
8,
198,
220,
220,
220,
309,
28,
22468,
7,
5305,
7,
79,
2554,
2981,
7,
67,
22305,
198,
220,
220,
220,
331,
28,
40301,
36902,
605,
7,
67,
11,
87,
8,
198,
220,
220,
220,
374,
88,
28,
5305,
7,
88,
8,
198,
220,
220,
220,
1312,
88,
28,
48466,
7,
88,
8,
198,
220,
220,
220,
629,
28,
27237,
7,
6738,
49883,
605,
35,
7,
67,
11,
563,
27,
12,
16,
5633,
532,
505,
7,
563,
8,
1058,
357,
563,
29,
16,
5633,
530,
7,
563,
8,
1058,
374,
88,
22305,
220,
1303,
5046,
1912,
319,
7539,
286,
3975,
319,
20128,
284,
987,
282,
198,
220,
220,
220,
20268,
28,
6738,
49883,
605,
7,
67,
11,
88,
8,
198,
220,
220,
220,
1303,
16926,
46,
25,
779,
318,
1324,
13907,
1752,
26286,
389,
3049,
198,
220,
220,
220,
14808,
271,
10745,
7,
27237,
7,
9892,
4008,
11405,
318,
10745,
7,
27237,
7,
87,
22305,
8614,
220,
2593,
7,
9892,
12,
87,
8,
41305,
8576,
25386,
7,
51,
27493,
9806,
7,
27237,
7,
87,
828,
16,
4008,
11405,
198,
220,
220,
220,
220,
220,
220,
220,
532,
505,
7,
51,
13219,
3064,
25386,
7,
51,
20679,
1416,
41305,
374,
88,
41305,
530,
7,
51,
47762,
3064,
25386,
7,
51,
20679,
1416,
11405,
198,
220,
220,
220,
220,
220,
220,
220,
532,
3064,
25386,
7,
51,
20679,
1416,
41305,
1312,
88,
41305,
1802,
25386,
7,
51,
20679,
1416,
198,
437,
198,
198,
77,
5589,
3906,
7,
82,
3712,
43961,
8,
796,
352,
198,
5589,
3906,
7,
82,
3712,
43961,
8,
796,
685,
82,
60,
198,
8818,
6805,
7,
82,
3712,
43961,
11,
74,
8,
198,
220,
220,
220,
479,
15139,
254,
1849,
16,
11405,
3714,
7,
33,
3733,
12331,
28955,
198,
220,
220,
220,
264,
198,
437,
198,
198,
747,
549,
42895,
7,
64,
3712,
43961,
11,
65,
3712,
43961,
8,
796,
257,
287,
6805,
7,
65,
8,
628,
198,
4242,
2,
18061,
2413,
198,
37811,
198,
220,
220,
220,
40091,
27830,
7,
67,
8,
198,
198,
7783,
82,
257,
7386,
543,
356,
3975,
284,
329,
4560,
13,
1114,
1672,
11,
198,
1169,
40091,
7386,
329,
281,
16654,
685,
64,
11,
65,
60,
318,
25915,
16,
11,
16,
60,
198,
37811,
198,
8818,
40091,
27830,
886,
628,
198,
37811,
198,
220,
220,
220,
284,
49883,
605,
7,
67,
11,
2124,
8,
198,
198,
31803,
262,
966,
4600,
87,
63,
287,
4600,
67,
63,
284,
257,
966,
287,
4600,
49883,
605,
7,
67,
11,
87,
8,
63,
198,
37811,
198,
8818,
284,
49883,
605,
886,
198,
198,
747,
549,
2617,
7,
64,
3712,
43961,
11,
65,
3712,
43961,
8,
796,
257,
855,
65,
628,
198,
2235,
7292,
500,
344,
31878,
198,
198,
1952,
7,
67,
3712,
43961,
8,
796,
3392,
7,
79,
2554,
2981,
7,
67,
828,
14106,
7,
67,
4008,
198,
9107,
418,
7,
67,
3712,
43961,
8,
796,
1976,
27498,
7,
79,
2554,
2981,
7,
67,
828,
14106,
7,
67,
4008,
628,
198,
8818,
725,
623,
296,
391,
7,
47,
3712,
23839,
38469,
8,
198,
220,
220,
220,
1005,
796,
4377,
43961,
3419,
628,
220,
220,
220,
329,
1034,
287,
350,
198,
220,
220,
220,
220,
220,
220,
220,
288,
796,
7386,
7,
404,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
30493,
1005,
6624,
4377,
43961,
3419,
8614,
288,
6624,
4377,
43961,
3419,
8614,
1005,
6624,
288,
628,
220,
220,
220,
220,
220,
220,
220,
611,
288,
14512,
4377,
43961,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1005,
796,
288,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1005,
198,
437,
198,
198,
785,
6327,
296,
391,
7,
47,
3712,
23839,
38469,
11,
70,
3712,
23839,
19182,
90,
51,
30072,
810,
1391,
51,
27,
25,
15057,
92,
796,
725,
623,
296,
391,
7,
47,
8,
198,
785,
6327,
296,
391,
7,
47,
3712,
23839,
38469,
11,
70,
8,
796,
725,
623,
296,
391,
26933,
47,
26,
70,
12962,
628,
198,
27830,
7,
3712,
15057,
8,
796,
4377,
43961,
3419,
628,
198,
2235,
43720,
628,
198,
25192,
7,
67,
3712,
9492,
2100,
5574,
41030,
434,
43961,
11,
74,
23029,
796,
422,
49883,
605,
12195,
8134,
7,
67,
828,
17,
25192,
7,
74,
986,
13219,
16,
8,
628,
198,
9122,
13033,
7,
67,
3712,
9492,
2100,
5574,
41030,
434,
43961,
8,
796,
422,
49883,
605,
12195,
8134,
7,
67,
828,
58,
12,
15,
13,
23,
23516,
4761,
11,
15,
13,
486,
11,
15,
13,
34159,
2682,
5705,
12962,
198,
198,
2235,
18645,
198,
198,
7784,
560,
7,
67,
3712,
41030,
434,
43961,
8,
796,
685,
9464,
437,
4122,
7,
67,
828,
3506,
437,
4122,
7,
67,
15437,
1303,
51,
3727,
46,
25,
11045,
7386,
628,
628,
198,
198,
2235,
3975,
18209,
198,
2,
356,
8295,
15879,
1096,
7159,
198,
40301,
36902,
605,
7,
67,
3712,
43961,
11,
87,
11,
88,
11,
89,
23029,
796,
284,
49883,
605,
7,
67,
11,
53,
721,
7,
87,
11,
88,
11,
89,
986,
4008,
198,
6738,
49883,
605,
7,
67,
3712,
43961,
11,
87,
11,
88,
11,
89,
23029,
796,
422,
49883,
605,
7,
67,
11,
53,
721,
7,
87,
11,
88,
11,
89,
986,
4008,
628,
198,
76,
1324,
1563,
7,
67,
16,
3712,
43961,
11,
67,
17,
3712,
43961,
11,
87,
23029,
796,
422,
49883,
605,
7,
67,
17,
11,
40301,
36902,
605,
7,
67,
16,
11,
87,
986,
4008,
198,
16340,
6738,
49883,
605,
35,
7,
67,
3712,
43961,
11,
87,
23029,
796,
352,
14,
6738,
49883,
605,
35,
7,
67,
11,
87,
23029,
628,
198,
198,
2235,
18209,
287,
2440,
15225,
628,
198,
2235,
29407,
198,
2,
356,
3297,
9029,
31191,
45920,
1146,
416,
4277,
198,
198,
1640,
13349,
287,
357,
25,
27,
11,
37498,
27,
28,
828,
25,
22330,
37498,
29,
28,
828,
37498,
271,
1203,
4008,
198,
220,
220,
220,
2488,
18206,
720,
3185,
7,
64,
3712,
43961,
11,
65,
3712,
43961,
8,
43641,
3185,
7,
8841,
7,
64,
828,
8841,
7,
65,
4008,
198,
437,
628,
198,
2235,
3819,
2041,
18209,
198,
198,
7249,
33733,
34500,
364,
1279,
25,
20021,
90,
5317,
92,
886,
198,
7249,
15995,
364,
1279,
25,
20021,
90,
5317,
92,
886,
198,
198,
9979,
2343,
226,
243,
796,
33733,
34500,
364,
3419,
198,
9979,
2343,
226,
97,
796,
15995,
364,
3419,
198
] | 2.579621 | 1,796 |
cluster = [1 1 1 1; 2 2 3 3; 4 4 5 5]
X = Array(reshape(1:24, 2, 3, 4))
@testset "pool" begin
@testset "GlobalPool" begin
glb_cltr = [1 1 1 1; 1 1 1 1; 1 1 1 1]
p = GlobalPool(:add, 3, 4)
@test p(X) == sumpool(glb_cltr, X)
end
@testset "LocalPool" begin
p = LocalPool(:add, cluster)
@test p(X) == sumpool(cluster, X)
end
@testset "TopKPool" begin
N = 10
k, in_channel = 4, 7
X = rand(in_channel, N)
for T = [Bool, Float64]
adj = rand(T, N, N)
p = TopKPool(adj, k, in_channel)
@test eltype(p.p) === Float32
@test size(p.p) == (in_channel,)
@test eltype(p.Ã) === T
@test size(p.Ã) == (k, k)
y = p(X)
@test size(y) == (in_channel, k)
end
end
end
| [
565,
5819,
796,
685,
16,
352,
352,
352,
26,
362,
362,
513,
513,
26,
604,
604,
642,
642,
60,
198,
55,
796,
15690,
7,
3447,
1758,
7,
16,
25,
1731,
11,
362,
11,
513,
11,
604,
4008,
198,
198,
31,
9288,
2617,
366,
7742,
1,
2221,
198,
220,
220,
220,
2488,
9288,
2617,
366,
22289,
27201,
1,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
1278,
65,
62,
565,
2213,
796,
685,
16,
352,
352,
352,
26,
352,
352,
352,
352,
26,
352,
352,
352,
352,
60,
198,
220,
220,
220,
220,
220,
220,
220,
279,
796,
8060,
27201,
7,
25,
2860,
11,
513,
11,
604,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
279,
7,
55,
8,
6624,
264,
931,
970,
7,
4743,
65,
62,
565,
2213,
11,
1395,
8,
198,
220,
220,
220,
886,
628,
220,
220,
220,
2488,
9288,
2617,
366,
14565,
27201,
1,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
279,
796,
10714,
27201,
7,
25,
2860,
11,
13946,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
279,
7,
55,
8,
6624,
264,
931,
970,
7,
565,
5819,
11,
1395,
8,
198,
220,
220,
220,
886,
628,
220,
220,
220,
2488,
9288,
2617,
366,
9126,
42,
27201,
1,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
399,
796,
838,
198,
220,
220,
220,
220,
220,
220,
220,
479,
11,
287,
62,
17620,
796,
604,
11,
767,
198,
220,
220,
220,
220,
220,
220,
220,
1395,
796,
43720,
7,
259,
62,
17620,
11,
399,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
309,
796,
685,
33,
970,
11,
48436,
2414,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9224,
796,
43720,
7,
51,
11,
399,
11,
399,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
796,
5849,
42,
27201,
7,
41255,
11,
479,
11,
287,
62,
17620,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
1288,
4906,
7,
79,
13,
79,
8,
24844,
48436,
2624,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
2546,
7,
79,
13,
79,
8,
6624,
357,
259,
62,
17620,
35751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
1288,
4906,
7,
79,
13,
32,
136,
225,
8,
24844,
309,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
2546,
7,
79,
13,
32,
136,
225,
8,
6624,
357,
74,
11,
479,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
796,
279,
7,
55,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
2546,
7,
88,
8,
6624,
357,
259,
62,
17620,
11,
479,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
437,
198
] | 1.737705 | 488 |
blockvalid(x, v) = count(isequal(v), x) ≤ 1
function backtrack!(x)
pos = findfirst(isequal(0), x)
isa(pos, Nothing) && return true
iloc = 3div(pos[1]-1, 3) .+ (1:3)
jloc = 3div(pos[2]-1, 3) .+ (1:3)
for k in 1:9
x[pos] = k
blockvalid(view(x, pos[1], :), k) || continue
blockvalid(view(x, :, pos[2]), k) || continue
blockvalid(view(x, iloc, jloc), k) || continue
backtrack!(x) && return true
end
x[pos] = 0
return false
end
function ssolve(lines, i)
t = [lines[10i-j][k] - '0' for j in 8:-1:0, k in 1:9]
backtrack!(t)
sum([100, 10, 1] .* t[1, 1:3])
end
lines = readlines("p096_sudoku.txt")
@time sum(ssolve(lines, i) for i in 1:50)
@time sum(ssolve(lines, i) for i in 1:50)
| [
9967,
12102,
7,
87,
11,
410,
8,
796,
954,
7,
786,
13255,
7,
85,
828,
2124,
8,
41305,
352,
198,
198,
8818,
736,
11659,
0,
7,
87,
8,
198,
220,
220,
220,
1426,
796,
1064,
11085,
7,
786,
13255,
7,
15,
828,
2124,
8,
198,
220,
220,
220,
318,
64,
7,
1930,
11,
10528,
8,
11405,
1441,
2081,
198,
220,
220,
220,
4229,
420,
796,
513,
7146,
7,
1930,
58,
16,
45297,
16,
11,
513,
8,
764,
10,
357,
16,
25,
18,
8,
198,
220,
220,
220,
474,
17946,
796,
513,
7146,
7,
1930,
58,
17,
45297,
16,
11,
513,
8,
764,
10,
357,
16,
25,
18,
8,
198,
220,
220,
220,
329,
479,
287,
352,
25,
24,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
58,
1930,
60,
796,
479,
198,
220,
220,
220,
220,
220,
220,
220,
2512,
12102,
7,
1177,
7,
87,
11,
1426,
58,
16,
4357,
1058,
828,
479,
8,
8614,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
2512,
12102,
7,
1177,
7,
87,
11,
1058,
11,
1426,
58,
17,
46570,
479,
8,
8614,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
2512,
12102,
7,
1177,
7,
87,
11,
4229,
420,
11,
474,
17946,
828,
479,
8,
8614,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
736,
11659,
0,
7,
87,
8,
11405,
1441,
2081,
198,
220,
220,
220,
886,
198,
220,
220,
220,
2124,
58,
1930,
60,
796,
657,
198,
220,
220,
220,
1441,
3991,
198,
437,
198,
198,
8818,
37786,
6442,
7,
6615,
11,
1312,
8,
198,
220,
220,
220,
256,
796,
685,
6615,
58,
940,
72,
12,
73,
7131,
74,
60,
532,
705,
15,
6,
329,
474,
287,
807,
21912,
16,
25,
15,
11,
479,
287,
352,
25,
24,
60,
198,
220,
220,
220,
736,
11659,
0,
7,
83,
8,
198,
220,
220,
220,
2160,
26933,
3064,
11,
838,
11,
352,
60,
764,
9,
256,
58,
16,
11,
352,
25,
18,
12962,
198,
437,
198,
198,
6615,
796,
1100,
6615,
7203,
79,
2931,
21,
62,
82,
463,
11601,
13,
14116,
4943,
198,
31,
2435,
2160,
7,
824,
6442,
7,
6615,
11,
1312,
8,
329,
1312,
287,
352,
25,
1120,
8,
198,
31,
2435,
2160,
7,
824,
6442,
7,
6615,
11,
1312,
8,
329,
1312,
287,
352,
25,
1120,
8,
198
] | 1.989529 | 382 |
abstract type RegressionType end
struct OLS
robust::Bool
function OLS(robust=true)
new(robust)
end
end
| [
397,
8709,
2099,
3310,
2234,
6030,
886,
198,
198,
7249,
440,
6561,
198,
220,
220,
220,
12373,
3712,
33,
970,
628,
220,
220,
220,
2163,
440,
6561,
7,
22609,
436,
28,
7942,
8,
198,
220,
220,
220,
220,
220,
220,
220,
649,
7,
22609,
436,
8,
198,
220,
220,
220,
886,
198,
437,
220,
628
] | 2.309091 | 55 |
geneCols = Dict{String,Symbol}(
"aliases" => :GeneSymbolAlias,
"symbol" => :OfficialGeneSymbol,
"region" => :GeneRegion,
"regionStart" => :GeneStart,
"regionEnd" => :GeneEnd,
"id" => :EnsemblGeneId,
"version" => :EnsemblGeneVersion,
"biotype" => :EnsemblGeneBiotype,
"name" => :GeneName
);
transcriptCols = Dict{String,Symbol}(
"region" => :TranscriptRegion,
"regionStart" => :TranscriptStart,
"regionEnd" => :TranscriptEnd,
"id" => :EnsemblTranscriptId,
"version" => :EnsemblTranscriptVersion,
"biotype" => :EnsemblTranscriptBiotype
);
proteinCols = Dict{String,Symbol}(
"id" => :EnsemblProteinId,
"version" => :EnsemblProteinVersion
);
elTypeDict = Dict{String, Union}(
# "aliases" => Vector{String},
"aliases" => Union{String, Missing},
"symbol" => Union{String, Missing},
"region" => Union{String, Missing},
"regionStart" => Union{Int, Missing},
"regionEnd" => Union{Int, Missing},
"id" => Union{String, Missing},
"version" => Union{Int, Missing},
"biotype" => Union{String, Missing},
"name" => Union{String, Missing}
);
function parseGngJson(json::Array{Any,1})
#########################
# Count number or rows and create columns
# In the case of the columns only look at the first entry
# First four columns are inputDB, inputID, targetID and targetDB
nCols = 4;
colNames = Symbol["InputId", "InputSourceDb", "TargetId", "TargetDb"];
colNamesUnstack = Symbol["InputId", "InputSourceDb"];
colElTypes = Union[Union{String, Missing}, Union{String, Missing}, Union{String, Missing}, Union{String, Missing}];
# Gene column names and types
map(i->haskey(geneCols,i) && (push!(colNames, geneCols[i]),
push!(colNamesUnstack, geneCols[i]),
push!(colElTypes, elTypeDict[i])), keys(json[1]["row"][1]["gene"]))
# Transcript:
# Dict{String,Any} with 4 entries:
# "peptide" => Dict{String,Any}(Pair{String,Any}("id", "ENSP00000381185"),Pair{String,Any}("targetIds", Any[Dict{String,Any}(Pair{String,Any}("dbName", "UniProtKB/TrEMBL"),Pair{String,Any}("id", "A0A024R2B3"))]),Pair{String,A…
# "id" => "ENST00000398117"
# "targetIds" => Any[]
# "region" => "18"
map(i->haskey(transcriptCols,i) && (push!(colNames, transcriptCols[i]),
push!(colNamesUnstack, transcriptCols[i]),
push!(colElTypes, elTypeDict[i])), keys(json[1]["row"][1]["gene"]["transcript"][1]))
# number of cols minus 1 because of targetIds, e.g.:
# Dict{String,Any} with 3 entries:
# "id" => "ENSP00000381185"
# "targetIds" => Any[Dict{String,Any}(Pair{String,Any}("dbName", "UniProtKB/TrEMBL"),Pair{String,Any}("id", "A0A024R2B3"))]
# "version" => 1
map(i->haskey(proteinCols,i) && (push!(colNames, proteinCols[i]),
push!(colNamesUnstack, proteinCols[i]),
push!(colElTypes, elTypeDict[i])), keys(json[1]["row"][1]["gene"]["transcript"][1]["peptide"]))
##################
# Rows
nRows = 0;
for entry in json
# For each gene entry
# nRows += 1;
# Number of external gene identifiers
gene = entry["row"][1]["gene"];
nRows += (length(gene["targetIds"]) * length(gene["transcript"]));
for transcript in gene["transcript"]
# Transcript:
# Dict{String,Any} with 4 entries:
# "peptide" => Dict{String,Any}(Pair{String,Any}("id", "ENSP00000381185"),Pair{String,Any}("targetIds", Any[Dict{String,Any}(Pair{String,Any}("dbName", "UniProtKB/TrEMBL"),Pair{String,Any}("id", "A0A024R2B3"))]),Pair{String,A…
# "id" => "ENST00000398117"
# "targetIds" => Any[]
# "region" => "18"
nRows += length(transcript["targetIds"]);
# Peptide:
# Dict{String,Any} with 3 entries:
# "id" => "ENSP00000381185"
# "targetIds" => Any[Dict{String,Any}(Pair{String,Any}("dbName", "UniProtKB/TrEMBL"),Pair{String,Any}("id", "A0A024R2B3"))]
# "version" => 1
nRows += length(transcript["peptide"]["targetIds"]);
end
# println(entry["row"][1])
end
nRows
x = DataFrames.DataFrame(
colElTypes,
colNames,
nRows
# 100
);
lowG = 1;
highG = 1;
lowT = 1;
highT = 1;
for entry in json
# For each gene entry
lowT = lowG;
highT = lowT;
highG = lowG;
# Number of external gene identifiers
gene = entry["row"][1]["gene"];
externalIds = String[];
externalDbs = String[];
# In the case of external IDs add entries to arrays
!isempty(gene["targetIds"]) && map(i->(push!(externalIds, i["id"]), push!(externalDbs, i["dbName"])), gene["targetIds"]);
externalGeneIds = copy(externalIds);
externalGeneDbs = copy(externalDbs);
# nRows += length(gene["targetIds"])
for transcript in gene["transcript"]
# In the case of external IDs add entries to arrays
!isempty(transcript["targetIds"]) && map(i->(push!(externalIds, i["id"]), push!(externalDbs, i["dbName"])), transcript["targetIds"]);
peptide = transcript["peptide"];
!isempty(peptide["targetIds"]) && map(i->(push!(externalIds, i["id"]), push!(externalDbs, i["dbName"])), peptide["targetIds"]);
highT += (length(externalIds) - 1);
# for
# map(i->haskey(geneCols,i) && (push!(colNames, geneCols[i]), push!(colElTypes, elTypeDict[i])), keys(json[1]["row"][1]["gene"]))
# for epEntry in transcript["peptide"]["targetIds"]
map(key->haskey(transcriptCols,key) && (x[transcriptCols[key]][lowT:highT] = transcript[key]), keys(transcript))
map(key->haskey(proteinCols,key) && (x[proteinCols[key]][lowT:highT] = peptide[key]), keys(peptide))
# map(key->haskey(geneCols,key) && (println("col: $(geneCols[key]) = $(gene[key])")), keys(gene))
# map(key->haskey(geneCols,key) && (println("$(collect(lowT:highT)) -> $(fill(gene[key], high))")), keys(gene))
x[:TargetId][lowT:highT] = externalIds;
x[:TargetDb][lowT:highT] = externalDbs;
externalIds = copy(externalGeneIds);
externalDbs = copy(externalGeneDbs);
# x[low,:EnsemblGeneId] = gene["id"];
# x[low,:EnsemblTranscriptId] = transcript["id"];
# x[low,:EnsemblProteinId] = peptide["id"];
# println("[$i] : $externalId, $externalDb")
# println.("enspId: $(transcript["peptide"]["id"]) -> $(transcript["peptide"]["targetIds"])")
lowT = highT + 1;
highT = lowT;
end
highG = highT-1;
# Fill in gene information
for (key, value) in gene
if haskey(geneCols, key) && !isempty(value)
val = value;
if key == "aliases"
val = join(value, ",");
end
x[geneCols[key]][lowG:highG] = val;
end
end
# map(key->haskey(geneCols,key) && (x[geneCols[key]][lowG:highG] = fill(join(gene[key], ","), (highG - lowG + 1))), keys(gene));
x[:InputId][lowG:highG] = entry["row"][1]["inputId"];
x[:InputSourceDb][lowG:highG] = entry["row"][1]["inputDb"];
lowG = highG + 1;
end
x
return x;
end
function unstackDf(x::D, keyCols::S = Vector{Symbol}(), keyColsElType::T = Vector{DataType}()) where {
D<:DataFrames.DataFrame,
S<:Vector{Symbol},
T<:Vector{DataType}}
if isempty(keyCols)
keyCols = names(x)[map(i->!in(i,["TargetId", "TargetDb"]), collect(String,names(x)))];
keyColsElType = DataFrames.eltypes(x)[map(i->!in(i,["TargetId", "TargetDb"]), collect(String,names(x)))];
elseif length(keyCols != length(keyColsElType))
error("keyCols and keyColsElType have to be of same length.!");
end
colNames = copy(keyCols);
colElTypes = copy(keyColsElType);
append!(colNames, DataFrames.identifier.(collect(unique(x[:TargetDb]))));
append!(colElTypes, fill(Union{String, Missing}, (length(colNames) - length(keyCols))));
nRows = DataFrames.nrow(unique(x[keyCols]));
xDf = DataFrames.DataFrame(
colElTypes,
colNames,
nRows
);
sortByCols = copy(keyCols);
push!(sortByCols, :TargetDb);
sort!(x, cols = sortByCols);
idx = 0;
key = "";
for row in DataFrames.eachrow(x)
keyCurr = join(map(i->i[2], row[keyCols]));
if key != keyCurr
idx += 1;
key = keyCurr;
map(i->xDf[idx,i[1]] = i[2], row[keyCols]);
end
colId = DataFrames.identifier(row[:TargetDb])
xDf[idx, colId] = DataFrames.ismissing(xDf[idx, colId]) ?
row[:TargetId] :
xDf[idx, colId] * "," * row[:TargetId];
end
return xDf;
end
| [
198,
70,
1734,
5216,
82,
796,
360,
713,
90,
10100,
11,
13940,
23650,
92,
7,
198,
220,
220,
366,
7344,
1386,
1,
5218,
1058,
39358,
13940,
23650,
40489,
11,
198,
220,
220,
366,
1837,
23650,
1,
5218,
1058,
28529,
39358,
13940,
23650,
11,
198,
220,
220,
366,
36996,
1,
5218,
1058,
39358,
47371,
11,
198,
220,
220,
366,
36996,
10434,
1,
5218,
1058,
39358,
10434,
11,
198,
220,
220,
366,
36996,
12915,
1,
5218,
1058,
39358,
12915,
11,
198,
220,
220,
366,
312,
1,
5218,
1058,
4834,
4428,
75,
39358,
7390,
11,
198,
220,
220,
366,
9641,
1,
5218,
1058,
4834,
4428,
75,
39358,
14815,
11,
198,
220,
220,
366,
65,
5151,
2981,
1,
5218,
1058,
4834,
4428,
75,
39358,
33,
5151,
2981,
11,
198,
220,
220,
366,
3672,
1,
5218,
1058,
39358,
5376,
198,
1776,
198,
7645,
6519,
5216,
82,
796,
360,
713,
90,
10100,
11,
13940,
23650,
92,
7,
198,
220,
220,
366,
36996,
1,
5218,
1058,
8291,
6519,
47371,
11,
198,
220,
220,
366,
36996,
10434,
1,
5218,
1058,
8291,
6519,
10434,
11,
198,
220,
220,
366,
36996,
12915,
1,
5218,
1058,
8291,
6519,
12915,
11,
198,
220,
220,
366,
312,
1,
5218,
1058,
4834,
4428,
75,
8291,
6519,
7390,
11,
198,
220,
220,
366,
9641,
1,
5218,
1058,
4834,
4428,
75,
8291,
6519,
14815,
11,
198,
220,
220,
366,
65,
5151,
2981,
1,
5218,
1058,
4834,
4428,
75,
8291,
6519,
33,
5151,
2981,
198,
1776,
198,
48693,
5216,
82,
796,
360,
713,
90,
10100,
11,
13940,
23650,
92,
7,
198,
220,
220,
366,
312,
1,
5218,
1058,
4834,
4428,
75,
47,
35574,
7390,
11,
198,
220,
220,
366,
9641,
1,
5218,
1058,
4834,
4428,
75,
47,
35574,
14815,
198,
1776,
198,
417,
6030,
35,
713,
796,
360,
713,
90,
10100,
11,
4479,
92,
7,
198,
220,
220,
1303,
366,
7344,
1386,
1,
5218,
20650,
90,
10100,
5512,
198,
220,
220,
366,
7344,
1386,
1,
5218,
4479,
90,
10100,
11,
25639,
5512,
198,
220,
220,
366,
1837,
23650,
1,
5218,
4479,
90,
10100,
11,
25639,
5512,
198,
220,
220,
366,
36996,
1,
5218,
4479,
90,
10100,
11,
25639,
5512,
198,
220,
220,
366,
36996,
10434,
1,
5218,
4479,
90,
5317,
11,
25639,
5512,
198,
220,
220,
366,
36996,
12915,
1,
5218,
4479,
90,
5317,
11,
25639,
5512,
198,
220,
220,
366,
312,
1,
5218,
4479,
90,
10100,
11,
25639,
5512,
198,
220,
220,
366,
9641,
1,
5218,
4479,
90,
5317,
11,
25639,
5512,
198,
220,
220,
366,
65,
5151,
2981,
1,
5218,
4479,
90,
10100,
11,
25639,
5512,
198,
220,
220,
366,
3672,
1,
5218,
4479,
90,
10100,
11,
25639,
92,
198,
1776,
628,
198,
8818,
21136,
38,
782,
41,
1559,
7,
17752,
3712,
19182,
90,
7149,
11,
16,
30072,
198,
220,
220,
198,
220,
220,
1303,
14468,
7804,
198,
220,
220,
1303,
2764,
1271,
393,
15274,
290,
2251,
15180,
198,
220,
220,
1303,
220,
554,
262,
1339,
286,
262,
15180,
691,
804,
379,
262,
717,
5726,
198,
220,
220,
1303,
220,
3274,
1440,
15180,
389,
5128,
11012,
11,
5128,
2389,
11,
2496,
2389,
290,
2496,
11012,
198,
220,
220,
299,
5216,
82,
796,
604,
26,
198,
220,
220,
951,
36690,
796,
38357,
14692,
20560,
7390,
1600,
366,
20560,
7416,
43832,
1600,
366,
21745,
7390,
1600,
366,
21745,
43832,
8973,
26,
198,
220,
220,
951,
36690,
3118,
25558,
796,
38357,
14692,
20560,
7390,
1600,
366,
20560,
7416,
43832,
8973,
26,
198,
220,
220,
951,
9527,
31431,
796,
4479,
58,
38176,
90,
10100,
11,
25639,
5512,
4479,
90,
10100,
11,
25639,
5512,
4479,
90,
10100,
11,
25639,
5512,
4479,
90,
10100,
11,
25639,
92,
11208,
198,
220,
220,
1303,
13005,
5721,
3891,
290,
3858,
198,
220,
220,
3975,
7,
72,
3784,
10134,
2539,
7,
70,
1734,
5216,
82,
11,
72,
8,
11405,
357,
14689,
0,
7,
4033,
36690,
11,
9779,
5216,
82,
58,
72,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
4033,
36690,
3118,
25558,
11,
9779,
5216,
82,
58,
72,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
4033,
9527,
31431,
11,
1288,
6030,
35,
713,
58,
72,
12962,
828,
8251,
7,
17752,
58,
16,
7131,
1,
808,
1,
7131,
16,
7131,
1,
70,
1734,
8973,
4008,
198,
220,
220,
1303,
42978,
25,
198,
220,
220,
1303,
360,
713,
90,
10100,
11,
7149,
92,
351,
604,
12784,
25,
198,
220,
220,
1303,
366,
431,
457,
485,
1,
220,
220,
5218,
360,
713,
90,
10100,
11,
7149,
92,
7,
47,
958,
90,
10100,
11,
7149,
92,
7203,
312,
1600,
366,
1677,
4303,
20483,
2548,
1157,
5332,
12340,
47,
958,
90,
10100,
11,
7149,
92,
7203,
16793,
7390,
82,
1600,
4377,
58,
35,
713,
90,
10100,
11,
7149,
92,
7,
47,
958,
90,
10100,
11,
7149,
92,
7203,
9945,
5376,
1600,
366,
3118,
72,
19703,
22764,
14,
2898,
3620,
9148,
12340,
47,
958,
90,
10100,
11,
7149,
92,
7203,
312,
1600,
366,
32,
15,
32,
40839,
49,
17,
33,
18,
48774,
46570,
47,
958,
90,
10100,
11,
32,
1399,
198,
220,
220,
1303,
366,
312,
1,
220,
220,
220,
220,
220,
220,
220,
5218,
366,
1677,
2257,
20483,
31952,
17657,
1,
198,
220,
220,
1303,
366,
16793,
7390,
82,
1,
5218,
4377,
21737,
198,
220,
220,
1303,
366,
36996,
1,
220,
220,
220,
5218,
366,
1507,
1,
198,
220,
220,
3975,
7,
72,
3784,
10134,
2539,
7,
7645,
6519,
5216,
82,
11,
72,
8,
11405,
357,
14689,
0,
7,
4033,
36690,
11,
14687,
5216,
82,
58,
72,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
4033,
36690,
3118,
25558,
11,
14687,
5216,
82,
58,
72,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
4033,
9527,
31431,
11,
1288,
6030,
35,
713,
58,
72,
12962,
828,
8251,
7,
17752,
58,
16,
7131,
1,
808,
1,
7131,
16,
7131,
1,
70,
1734,
1,
7131,
1,
7645,
6519,
1,
7131,
16,
60,
4008,
198,
220,
220,
1303,
1271,
286,
951,
82,
20208,
352,
780,
286,
2496,
7390,
82,
11,
304,
13,
70,
11207,
198,
220,
220,
1303,
360,
713,
90,
10100,
11,
7149,
92,
351,
513,
12784,
25,
198,
220,
220,
1303,
366,
312,
1,
220,
220,
220,
220,
220,
220,
220,
5218,
366,
1677,
4303,
20483,
2548,
1157,
5332,
1,
198,
220,
220,
1303,
366,
16793,
7390,
82,
1,
5218,
4377,
58,
35,
713,
90,
10100,
11,
7149,
92,
7,
47,
958,
90,
10100,
11,
7149,
92,
7203,
9945,
5376,
1600,
366,
3118,
72,
19703,
22764,
14,
2898,
3620,
9148,
12340,
47,
958,
90,
10100,
11,
7149,
92,
7203,
312,
1600,
366,
32,
15,
32,
40839,
49,
17,
33,
18,
48774,
60,
198,
220,
220,
1303,
366,
9641,
1,
220,
220,
5218,
352,
198,
220,
220,
3975,
7,
72,
3784,
10134,
2539,
7,
48693,
5216,
82,
11,
72,
8,
11405,
357,
14689,
0,
7,
4033,
36690,
11,
7532,
5216,
82,
58,
72,
46570,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
4033,
36690,
3118,
25558,
11,
7532,
5216,
82,
58,
72,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
4033,
9527,
31431,
11,
1288,
6030,
35,
713,
58,
72,
12962,
828,
8251,
7,
17752,
58,
16,
7131,
1,
808,
1,
7131,
16,
7131,
1,
70,
1734,
1,
7131,
1,
7645,
6519,
1,
7131,
16,
7131,
1,
431,
457,
485,
8973,
4008,
198,
220,
220,
1303,
14468,
2,
198,
220,
220,
1303,
371,
1666,
198,
220,
220,
299,
49,
1666,
796,
657,
26,
198,
220,
220,
329,
5726,
287,
33918,
198,
220,
220,
220,
220,
220,
1303,
1114,
1123,
9779,
5726,
198,
220,
220,
220,
220,
220,
1303,
299,
49,
1666,
15853,
352,
26,
198,
220,
220,
220,
220,
220,
1303,
7913,
286,
7097,
9779,
42814,
198,
220,
220,
220,
220,
220,
9779,
796,
5726,
14692,
808,
1,
7131,
16,
7131,
1,
70,
1734,
8973,
26,
198,
220,
220,
220,
220,
220,
299,
49,
1666,
15853,
357,
13664,
7,
70,
1734,
14692,
16793,
7390,
82,
8973,
8,
1635,
4129,
7,
70,
1734,
14692,
7645,
6519,
8973,
18125,
198,
220,
220,
220,
220,
220,
329,
14687,
287,
9779,
14692,
7645,
6519,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
42978,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
360,
713,
90,
10100,
11,
7149,
92,
351,
604,
12784,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
366,
431,
457,
485,
1,
220,
220,
5218,
360,
713,
90,
10100,
11,
7149,
92,
7,
47,
958,
90,
10100,
11,
7149,
92,
7203,
312,
1600,
366,
1677,
4303,
20483,
2548,
1157,
5332,
12340,
47,
958,
90,
10100,
11,
7149,
92,
7203,
16793,
7390,
82,
1600,
4377,
58,
35,
713,
90,
10100,
11,
7149,
92,
7,
47,
958,
90,
10100,
11,
7149,
92,
7203,
9945,
5376,
1600,
366,
3118,
72,
19703,
22764,
14,
2898,
3620,
9148,
12340,
47,
958,
90,
10100,
11,
7149,
92,
7203,
312,
1600,
366,
32,
15,
32,
40839,
49,
17,
33,
18,
48774,
46570,
47,
958,
90,
10100,
11,
32,
1399,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
366,
312,
1,
220,
220,
220,
220,
220,
220,
220,
5218,
366,
1677,
2257,
20483,
31952,
17657,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
366,
16793,
7390,
82,
1,
5218,
4377,
21737,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
366,
36996,
1,
220,
220,
220,
5218,
366,
1507,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
299,
49,
1666,
15853,
4129,
7,
7645,
6519,
14692,
16793,
7390,
82,
8973,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2631,
457,
485,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
360,
713,
90,
10100,
11,
7149,
92,
351,
513,
12784,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
366,
312,
1,
220,
220,
220,
220,
220,
220,
220,
5218,
366,
1677,
4303,
20483,
2548,
1157,
5332,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
366,
16793,
7390,
82,
1,
5218,
4377,
58,
35,
713,
90,
10100,
11,
7149,
92,
7,
47,
958,
90,
10100,
11,
7149,
92,
7203,
9945,
5376,
1600,
366,
3118,
72,
19703,
22764,
14,
2898,
3620,
9148,
12340,
47,
958,
90,
10100,
11,
7149,
92,
7203,
312,
1600,
366,
32,
15,
32,
40839,
49,
17,
33,
18,
48774,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
366,
9641,
1,
220,
220,
5218,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
299,
49,
1666,
15853,
4129,
7,
7645,
6519,
14692,
431,
457,
485,
1,
7131,
1,
16793,
7390,
82,
8973,
1776,
198,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
1303,
44872,
7,
13000,
14692,
808,
1,
7131,
16,
12962,
198,
220,
220,
886,
198,
220,
220,
299,
49,
1666,
628,
198,
220,
220,
2124,
796,
6060,
35439,
13,
6601,
19778,
7,
198,
220,
220,
220,
220,
220,
951,
9527,
31431,
11,
198,
220,
220,
220,
220,
220,
951,
36690,
11,
198,
220,
220,
220,
220,
220,
299,
49,
1666,
198,
220,
220,
220,
220,
220,
1303,
1802,
198,
220,
220,
5619,
628,
220,
220,
1877,
38,
796,
352,
26,
198,
220,
220,
1029,
38,
796,
352,
26,
198,
220,
220,
1877,
51,
796,
352,
26,
198,
220,
220,
1029,
51,
796,
352,
26,
198,
220,
220,
329,
5726,
287,
33918,
198,
220,
220,
220,
220,
220,
1303,
1114,
1123,
9779,
5726,
198,
220,
220,
220,
220,
220,
1877,
51,
796,
1877,
38,
26,
198,
220,
220,
220,
220,
220,
1029,
51,
796,
1877,
51,
26,
198,
220,
220,
220,
220,
220,
1029,
38,
796,
1877,
38,
26,
198,
220,
220,
220,
220,
220,
1303,
7913,
286,
7097,
9779,
42814,
198,
220,
220,
220,
220,
220,
9779,
796,
5726,
14692,
808,
1,
7131,
16,
7131,
1,
70,
1734,
8973,
26,
198,
220,
220,
220,
220,
220,
7097,
7390,
82,
796,
10903,
58,
11208,
198,
220,
220,
220,
220,
220,
7097,
35,
1443,
796,
10903,
58,
11208,
198,
220,
220,
220,
220,
220,
1303,
554,
262,
1339,
286,
7097,
32373,
751,
12784,
284,
26515,
198,
220,
220,
220,
220,
220,
5145,
271,
28920,
7,
70,
1734,
14692,
16793,
7390,
82,
8973,
8,
11405,
3975,
7,
72,
3784,
7,
14689,
0,
7,
22615,
7390,
82,
11,
1312,
14692,
312,
8973,
828,
4574,
0,
7,
22615,
35,
1443,
11,
1312,
14692,
9945,
5376,
8973,
36911,
9779,
14692,
16793,
7390,
82,
8973,
1776,
198,
220,
220,
220,
220,
220,
7097,
39358,
7390,
82,
796,
4866,
7,
22615,
7390,
82,
1776,
198,
220,
220,
220,
220,
220,
7097,
39358,
35,
1443,
796,
4866,
7,
22615,
35,
1443,
1776,
198,
220,
220,
220,
220,
220,
1303,
299,
49,
1666,
15853,
4129,
7,
70,
1734,
14692,
16793,
7390,
82,
8973,
8,
198,
220,
220,
220,
220,
220,
329,
14687,
287,
9779,
14692,
7645,
6519,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
554,
262,
1339,
286,
7097,
32373,
751,
12784,
284,
26515,
198,
220,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
28920,
7,
7645,
6519,
14692,
16793,
7390,
82,
8973,
8,
11405,
3975,
7,
72,
3784,
7,
14689,
0,
7,
22615,
7390,
82,
11,
1312,
14692,
312,
8973,
828,
4574,
0,
7,
22615,
35,
1443,
11,
1312,
14692,
9945,
5376,
8973,
36911,
14687,
14692,
16793,
7390,
82,
8973,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
220,
34337,
485,
796,
14687,
14692,
431,
457,
485,
8973,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
28920,
7,
431,
457,
485,
14692,
16793,
7390,
82,
8973,
8,
11405,
3975,
7,
72,
3784,
7,
14689,
0,
7,
22615,
7390,
82,
11,
1312,
14692,
312,
8973,
828,
4574,
0,
7,
22615,
35,
1443,
11,
1312,
14692,
9945,
5376,
8973,
36911,
34337,
485,
14692,
16793,
7390,
82,
8973,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1029,
51,
15853,
357,
13664,
7,
22615,
7390,
82,
8,
532,
352,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
329,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3975,
7,
72,
3784,
10134,
2539,
7,
70,
1734,
5216,
82,
11,
72,
8,
11405,
357,
14689,
0,
7,
4033,
36690,
11,
9779,
5216,
82,
58,
72,
46570,
4574,
0,
7,
4033,
9527,
31431,
11,
1288,
6030,
35,
713,
58,
72,
12962,
828,
8251,
7,
17752,
58,
16,
7131,
1,
808,
1,
7131,
16,
7131,
1,
70,
1734,
8973,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
329,
2462,
30150,
287,
14687,
14692,
431,
457,
485,
1,
7131,
1,
16793,
7390,
82,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
3975,
7,
2539,
3784,
10134,
2539,
7,
7645,
6519,
5216,
82,
11,
2539,
8,
11405,
357,
87,
58,
7645,
6519,
5216,
82,
58,
2539,
60,
7131,
9319,
51,
25,
8929,
51,
60,
796,
14687,
58,
2539,
46570,
8251,
7,
7645,
6519,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
3975,
7,
2539,
3784,
10134,
2539,
7,
48693,
5216,
82,
11,
2539,
8,
11405,
357,
87,
58,
48693,
5216,
82,
58,
2539,
60,
7131,
9319,
51,
25,
8929,
51,
60,
796,
34337,
485,
58,
2539,
46570,
8251,
7,
431,
457,
485,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3975,
7,
2539,
3784,
10134,
2539,
7,
70,
1734,
5216,
82,
11,
2539,
8,
11405,
357,
35235,
7203,
4033,
25,
29568,
70,
1734,
5216,
82,
58,
2539,
12962,
796,
29568,
70,
1734,
58,
2539,
12962,
4943,
828,
8251,
7,
70,
1734,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3975,
7,
2539,
3784,
10134,
2539,
7,
70,
1734,
5216,
82,
11,
2539,
8,
11405,
357,
35235,
7203,
3,
7,
33327,
7,
9319,
51,
25,
8929,
51,
4008,
4613,
29568,
20797,
7,
70,
1734,
58,
2539,
4357,
1029,
4008,
4943,
828,
8251,
7,
70,
1734,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
58,
25,
21745,
7390,
7131,
9319,
51,
25,
8929,
51,
60,
796,
7097,
7390,
82,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
58,
25,
21745,
43832,
7131,
9319,
51,
25,
8929,
51,
60,
796,
7097,
35,
1443,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
7097,
7390,
82,
796,
4866,
7,
22615,
39358,
7390,
82,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
220,
7097,
35,
1443,
796,
4866,
7,
22615,
39358,
35,
1443,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2124,
58,
9319,
11,
25,
4834,
4428,
75,
39358,
7390,
60,
796,
9779,
14692,
312,
8973,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2124,
58,
9319,
11,
25,
4834,
4428,
75,
8291,
6519,
7390,
60,
796,
14687,
14692,
312,
8973,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2124,
58,
9319,
11,
25,
4834,
4428,
75,
47,
35574,
7390,
60,
796,
34337,
485,
14692,
312,
8973,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
44872,
7203,
58,
3,
72,
60,
1058,
720,
22615,
7390,
11,
720,
22615,
43832,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
44872,
13,
7203,
641,
79,
7390,
25,
29568,
7645,
6519,
14692,
431,
457,
485,
1,
7131,
1,
312,
8973,
8,
4613,
29568,
7645,
6519,
14692,
431,
457,
485,
1,
7131,
1,
16793,
7390,
82,
8973,
8,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1877,
51,
796,
1029,
51,
1343,
352,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1029,
51,
796,
1877,
51,
26,
198,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
1029,
38,
796,
1029,
51,
12,
16,
26,
198,
220,
220,
220,
220,
220,
1303,
27845,
287,
9779,
1321,
198,
220,
220,
220,
220,
220,
329,
357,
2539,
11,
1988,
8,
287,
9779,
198,
220,
220,
220,
220,
220,
220,
220,
220,
611,
468,
2539,
7,
70,
1734,
5216,
82,
11,
1994,
8,
11405,
5145,
271,
28920,
7,
8367,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1188,
796,
1988,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1994,
6624,
366,
7344,
1386,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1188,
796,
4654,
7,
8367,
11,
366,
553,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
58,
70,
1734,
5216,
82,
58,
2539,
60,
7131,
9319,
38,
25,
8929,
38,
60,
796,
1188,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
1303,
3975,
7,
2539,
3784,
10134,
2539,
7,
70,
1734,
5216,
82,
11,
2539,
8,
11405,
357,
87,
58,
70,
1734,
5216,
82,
58,
2539,
60,
7131,
9319,
38,
25,
8929,
38,
60,
796,
6070,
7,
22179,
7,
70,
1734,
58,
2539,
4357,
366,
553,
828,
357,
8929,
38,
532,
1877,
38,
1343,
352,
4008,
828,
8251,
7,
70,
1734,
18125,
198,
220,
220,
220,
220,
220,
2124,
58,
25,
20560,
7390,
7131,
9319,
38,
25,
8929,
38,
60,
796,
5726,
14692,
808,
1,
7131,
16,
7131,
1,
15414,
7390,
8973,
26,
198,
220,
220,
220,
220,
220,
2124,
58,
25,
20560,
7416,
43832,
7131,
9319,
38,
25,
8929,
38,
60,
796,
5726,
14692,
808,
1,
7131,
16,
7131,
1,
15414,
43832,
8973,
26,
198,
220,
220,
220,
220,
220,
1877,
38,
796,
1029,
38,
1343,
352,
26,
198,
220,
220,
886,
198,
220,
220,
2124,
628,
220,
220,
1441,
2124,
26,
198,
220,
220,
220,
198,
437,
198,
198,
8818,
15014,
441,
35,
69,
7,
87,
3712,
35,
11,
1994,
5216,
82,
3712,
50,
796,
20650,
90,
13940,
23650,
92,
22784,
1994,
5216,
82,
9527,
6030,
3712,
51,
796,
20650,
90,
6601,
6030,
92,
28955,
810,
1391,
198,
220,
220,
360,
27,
25,
6601,
35439,
13,
6601,
19778,
11,
198,
220,
220,
311,
27,
25,
38469,
90,
13940,
23650,
5512,
198,
220,
220,
309,
27,
25,
38469,
90,
6601,
6030,
11709,
198,
220,
220,
220,
198,
220,
220,
611,
318,
28920,
7,
2539,
5216,
82,
8,
198,
220,
220,
220,
220,
220,
1994,
5216,
82,
796,
3891,
7,
87,
38381,
8899,
7,
72,
3784,
0,
259,
7,
72,
11,
14692,
21745,
7390,
1600,
366,
21745,
43832,
8973,
828,
2824,
7,
10100,
11,
14933,
7,
87,
22305,
11208,
198,
220,
220,
220,
220,
220,
1994,
5216,
82,
9527,
6030,
796,
6060,
35439,
13,
417,
19199,
7,
87,
38381,
8899,
7,
72,
3784,
0,
259,
7,
72,
11,
14692,
21745,
7390,
1600,
366,
21745,
43832,
8973,
828,
2824,
7,
10100,
11,
14933,
7,
87,
22305,
11208,
198,
220,
220,
2073,
361,
4129,
7,
2539,
5216,
82,
14512,
4129,
7,
2539,
5216,
82,
9527,
6030,
4008,
198,
220,
220,
220,
220,
220,
4049,
7203,
2539,
5216,
82,
290,
1994,
5216,
82,
9527,
6030,
423,
284,
307,
286,
976,
4129,
13,
2474,
1776,
198,
220,
220,
886,
198,
220,
220,
951,
36690,
796,
4866,
7,
2539,
5216,
82,
1776,
198,
220,
220,
951,
9527,
31431,
796,
4866,
7,
2539,
5216,
82,
9527,
6030,
1776,
198,
220,
220,
220,
198,
220,
220,
24443,
0,
7,
4033,
36690,
11,
6060,
35439,
13,
738,
7483,
12195,
33327,
7,
34642,
7,
87,
58,
25,
21745,
43832,
60,
4008,
18125,
198,
220,
220,
24443,
0,
7,
4033,
9527,
31431,
11,
6070,
7,
38176,
90,
10100,
11,
25639,
5512,
357,
13664,
7,
4033,
36690,
8,
532,
4129,
7,
2539,
5216,
82,
4008,
18125,
198,
220,
220,
299,
49,
1666,
796,
6060,
35439,
13,
77,
808,
7,
34642,
7,
87,
58,
2539,
5216,
82,
12962,
1776,
628,
220,
220,
2124,
35,
69,
796,
6060,
35439,
13,
6601,
19778,
7,
198,
220,
220,
220,
220,
220,
951,
9527,
31431,
11,
198,
220,
220,
220,
220,
220,
951,
36690,
11,
198,
220,
220,
220,
220,
220,
299,
49,
1666,
198,
220,
220,
5619,
198,
220,
220,
3297,
3886,
5216,
82,
796,
4866,
7,
2539,
5216,
82,
1776,
198,
220,
220,
4574,
0,
7,
30619,
3886,
5216,
82,
11,
1058,
21745,
43832,
1776,
198,
220,
220,
3297,
0,
7,
87,
11,
951,
82,
796,
3297,
3886,
5216,
82,
1776,
198,
220,
220,
4686,
87,
796,
657,
26,
198,
220,
220,
1994,
796,
366,
8172,
198,
220,
220,
329,
5752,
287,
6060,
35439,
13,
27379,
808,
7,
87,
8,
198,
220,
220,
220,
220,
220,
1994,
26628,
81,
796,
4654,
7,
8899,
7,
72,
3784,
72,
58,
17,
4357,
5752,
58,
2539,
5216,
82,
12962,
1776,
198,
220,
220,
220,
220,
220,
611,
1994,
14512,
1994,
26628,
81,
198,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
87,
15853,
352,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
796,
1994,
26628,
81,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
3975,
7,
72,
3784,
87,
35,
69,
58,
312,
87,
11,
72,
58,
16,
11907,
796,
1312,
58,
17,
4357,
5752,
58,
2539,
5216,
82,
36563,
198,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
951,
7390,
796,
6060,
35439,
13,
738,
7483,
7,
808,
58,
25,
21745,
43832,
12962,
198,
220,
220,
220,
220,
220,
2124,
35,
69,
58,
312,
87,
11,
951,
7390,
60,
796,
6060,
35439,
13,
1042,
747,
278,
7,
87,
35,
69,
58,
312,
87,
11,
951,
7390,
12962,
5633,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5752,
58,
25,
21745,
7390,
60,
1058,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
35,
69,
58,
312,
87,
11,
951,
7390,
60,
1635,
366,
553,
1635,
5752,
58,
25,
21745,
7390,
11208,
198,
220,
220,
886,
198,
220,
220,
1441,
2124,
35,
69,
26,
198,
437,
198
] | 2.120162 | 4,186 |
using Documenter
using MERAKit
makedocs(sitename = "MERAKit.jl", modules = [MERAKit])
deploydocs(repo = "github.com/mhauru/MERAKit.jl.git")
| [
3500,
16854,
263,
198,
3500,
34482,
10206,
270,
198,
198,
76,
4335,
420,
82,
7,
48937,
12453,
796,
366,
29296,
10206,
270,
13,
20362,
1600,
13103,
796,
685,
29296,
10206,
270,
12962,
198,
2934,
1420,
31628,
7,
260,
7501,
796,
366,
12567,
13,
785,
14,
76,
71,
2899,
84,
14,
29296,
10206,
270,
13,
20362,
13,
18300,
4943,
198
] | 2.389831 | 59 |
__precompile__()
module CoordinateTransformations
using StaticArrays
using Rotations
export RotMatrix, Quat, SpQuat, AngleAxis, RodriguesVec,
RotX, RotY, RotZ,
RotXY, RotYX, RotZX, RotXZ, RotYZ, RotZY,
RotXYX, RotYXY, RotZXZ, RotXZX, RotYZY, RotZYZ,
RotXYZ, RotYXZ, RotZXY, RotXZY, RotYZX, RotZYX
# Core methods
export compose, ∘, transform_deriv, transform_deriv_params
export Transformation, IdentityTransformation
# 2D coordinate systems and their transformations
export Polar
export PolarFromCartesian, CartesianFromPolar
# 3D coordinate systems and their transformations
export Spherical, Cylindrical
export SphericalFromCartesian, CartesianFromSpherical,
CylindricalFromCartesian, CartesianFromCylindrical,
CylindricalFromSpherical, SphericalFromCylindrical
# Common transformations
export AbstractAffineMap
export AffineMap, LinearMap, Translation
include("core.jl")
include("coordinatesystems.jl")
include("affine.jl")
# Deprecations
export transform
Base.@deprecate_binding AbstractTransformation Transformation
Base.@deprecate transform(transformation::Transformation, x) transformation(x)
end # module
| [
834,
3866,
5589,
576,
834,
3419,
198,
198,
21412,
22819,
4559,
41762,
602,
198,
198,
3500,
36125,
3163,
20477,
198,
198,
3500,
18481,
602,
198,
39344,
18481,
46912,
11,
2264,
265,
11,
1338,
4507,
265,
11,
42375,
31554,
271,
11,
16114,
947,
53,
721,
11,
198,
220,
220,
220,
220,
220,
220,
18481,
55,
11,
18481,
56,
11,
18481,
57,
11,
198,
220,
220,
220,
220,
220,
220,
18481,
34278,
11,
18481,
56,
55,
11,
18481,
40692,
11,
18481,
55,
57,
11,
18481,
56,
57,
11,
18481,
57,
56,
11,
198,
220,
220,
220,
220,
220,
220,
18481,
34278,
55,
11,
18481,
56,
34278,
11,
18481,
40692,
57,
11,
18481,
55,
40692,
11,
18481,
56,
57,
56,
11,
18481,
57,
56,
57,
11,
198,
220,
220,
220,
220,
220,
220,
18481,
34278,
57,
11,
18481,
56,
55,
57,
11,
18481,
57,
34278,
11,
18481,
55,
57,
56,
11,
18481,
56,
40692,
11,
18481,
57,
56,
55,
198,
198,
2,
7231,
5050,
198,
39344,
36664,
11,
18872,
246,
11,
6121,
62,
1082,
452,
11,
6121,
62,
1082,
452,
62,
37266,
198,
39344,
49127,
11,
27207,
8291,
1161,
198,
198,
2,
362,
35,
20435,
3341,
290,
511,
38226,
198,
39344,
32909,
198,
39344,
32909,
4863,
43476,
35610,
11,
13690,
35610,
4863,
47,
6192,
198,
198,
2,
513,
35,
20435,
3341,
290,
511,
38226,
198,
39344,
1338,
37910,
11,
327,
2645,
521,
8143,
198,
39344,
1338,
37910,
4863,
43476,
35610,
11,
13690,
35610,
4863,
4561,
37910,
11,
198,
220,
220,
220,
220,
220,
220,
327,
2645,
521,
8143,
4863,
43476,
35610,
11,
13690,
35610,
4863,
34,
2645,
521,
8143,
11,
198,
220,
220,
220,
220,
220,
220,
327,
2645,
521,
8143,
4863,
4561,
37910,
11,
1338,
37910,
4863,
34,
2645,
521,
8143,
198,
198,
2,
8070,
38226,
198,
39344,
27741,
35191,
500,
13912,
198,
39344,
6708,
500,
13912,
11,
44800,
13912,
11,
33322,
198,
198,
17256,
7203,
7295,
13,
20362,
4943,
198,
17256,
7203,
37652,
17540,
6781,
82,
13,
20362,
4943,
198,
17256,
7203,
2001,
500,
13,
20362,
4943,
198,
198,
2,
2129,
8344,
602,
198,
39344,
6121,
198,
14881,
13,
31,
10378,
8344,
378,
62,
30786,
27741,
8291,
1161,
49127,
198,
14881,
13,
31,
10378,
8344,
378,
6121,
7,
7645,
1161,
3712,
8291,
1161,
11,
2124,
8,
13389,
7,
87,
8,
198,
198,
437,
1303,
8265,
198
] | 3.025974 | 385 |
using Manifolds, Manopt, Test, ManifoldsBase
using Random
Random.seed!(42)
# Test the additional manifold functions
#
@testset "Additional Manifold functions" begin
@testset "mid point & reflect" begin
M = Sphere(2)
p = [1.0, 0.0, 0.0]
q = [0.0, 1.0, 0.0]
r = mid_point(M,p,q)
r2 = similar(r)
mid_point!(M,r2,p,q)
r3 = shortest_geodesic(M,p,q,0.5)
r4 = mid_point(M,p,q,q)
@test isapprox(M,r,r2)
@test isapprox(M,r2,r3)
@test isapprox(M,r3,r4)
r5 = similar(r4)
mid_point!(M,r5,p,q,q)
@test isapprox(M,r4,r5)
r4 = mid_point(M,p,-p,q)
r5 = similar(r4)
mid_point!(M,r5,p,-p,q)
@test isapprox(M,r4,q)
@test isapprox(M,r4,r5)
@test isapprox(M,reflect(M,p,q),-q)
f = x->x
@test reflect(M,f,q) == q
M2 = Euclidean(2)
p2 = [1.0, 0.0]
q2 = [0.0, 1.0]
s = mid_point(M2,p2,q2)
s2 = similar(s)
mid_point!(M2,s2,p2,q2)
@test s==s2
@test s==(p2+q2)/2
s = mid_point(M2,p2,q2,s)
@test s==s2
s2 = similar(s)
mid_point!(M2,s2,p2,q2,s)
@test s==s2
end
@testset "random" begin
Mc = Circle()
pc = random_point(Mc)
@test is_manifold_point(Mc, pc, true)
Xc = random_tangent(Mc,pc)
@test is_tangent_vector(Mc, pc, Xc, true)
Me = Euclidean(3)
pe = random_point(Me)
@test is_manifold_point(Me, pe, true)
Xe = random_tangent(Me,pe)
@test is_tangent_vector(Me, pe, Xe, true)
Mg = Grassmann(3,2)
pg = random_point(Mg)
@test is_manifold_point(Mg, pg, true)
Xg = random_tangent(Mg,pg)
@test is_tangent_vector(Mg, pg, Xg, true; atol=10^(-14))
Mp = ProductManifold(Mg,Me)
pp = random_point(Mp)
@test is_manifold_point(Mp, pp, true)
Xp = random_tangent(Mp,pp)
@test is_tangent_vector(Mp, pp, Xp,true; atol=10^(-15))
Mp2 = PowerManifold(Me, NestedPowerRepresentation(),4)
pp2 = random_point(Mp2)
@test is_manifold_point(Mp2,pp2)
Xp2 = random_tangent(Mp2,pp2)
@test is_tangent_vector(Mp2,pp2,Xp2)
Mp3 = PowerManifold(Me, ArrayPowerRepresentation(), 4)
pp3 = random_point(Mp3)
@test is_manifold_point(Mp3,pp3)
Xp3 = random_tangent(Mp3,pp3)
@test is_tangent_vector(Mp3,pp3,Xp3)
Mr = Rotations(3)
pr = random_point(Mr)
@test is_manifold_point(Mr,pr)
Xr = random_tangent(Mr,pr)
@test is_tangent_vector(Mr,pr,Xr)
Mspd = SymmetricPositiveDefinite(3)
pspd = random_point(Mspd)
@test is_manifold_point(Mspd,pspd;atol=10^(-14))
Xspd = random_tangent(Mspd,pspd)
@test is_tangent_vector(Mspd,pspd,Xspd, true; atol=10^(-15))
Xspd2 = random_tangent(Mspd,pspd, Val(:Rician))
@test is_tangent_vector(Mspd,pspd,Xspd2,true;atol=10^(-15))
Mst = Stiefel(3,2)
pst = random_point(Mst)
@test is_manifold_point(Mst, pst, true)
Msp = Sphere(2)
psp = random_point(Msp)
@test is_manifold_point(Msp, psp, true)
Xsp = random_tangent(Msp,psp)
@test is_tangent_vector(Msp,psp,Xsp,true;atol=10^(-15))
Mh = Hyperbolic(2)
ph = [0.0,0.0,1.0]
Xh = random_tangent(Mh, ph)
@test is_tangent_vector(Mh, ph, Xh, true)
end
end | [
3500,
1869,
361,
10119,
11,
1869,
8738,
11,
6208,
11,
1869,
361,
10119,
14881,
198,
198,
3500,
14534,
198,
29531,
13,
28826,
0,
7,
3682,
8,
198,
2,
6208,
262,
3224,
48048,
5499,
198,
2,
198,
31,
9288,
2617,
366,
17699,
1869,
361,
727,
5499,
1,
2221,
198,
220,
220,
220,
2488,
9288,
2617,
366,
13602,
966,
1222,
4079,
1,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
337,
796,
31798,
7,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
279,
796,
685,
16,
13,
15,
11,
657,
13,
15,
11,
657,
13,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
10662,
796,
685,
15,
13,
15,
11,
352,
13,
15,
11,
657,
13,
15,
60,
628,
220,
220,
220,
220,
220,
220,
220,
374,
796,
3095,
62,
4122,
7,
44,
11,
79,
11,
80,
8,
198,
220,
220,
220,
220,
220,
220,
220,
374,
17,
796,
2092,
7,
81,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3095,
62,
4122,
0,
7,
44,
11,
81,
17,
11,
79,
11,
80,
8,
198,
220,
220,
220,
220,
220,
220,
220,
374,
18,
796,
35581,
62,
469,
4147,
291,
7,
44,
11,
79,
11,
80,
11,
15,
13,
20,
8,
198,
220,
220,
220,
220,
220,
220,
220,
374,
19,
796,
3095,
62,
4122,
7,
44,
11,
79,
11,
80,
11,
80,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
1324,
13907,
7,
44,
11,
81,
11,
81,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
1324,
13907,
7,
44,
11,
81,
17,
11,
81,
18,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
1324,
13907,
7,
44,
11,
81,
18,
11,
81,
19,
8,
198,
220,
220,
220,
220,
220,
220,
220,
374,
20,
796,
2092,
7,
81,
19,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3095,
62,
4122,
0,
7,
44,
11,
81,
20,
11,
79,
11,
80,
11,
80,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
1324,
13907,
7,
44,
11,
81,
19,
11,
81,
20,
8,
628,
220,
220,
220,
220,
220,
220,
220,
374,
19,
796,
3095,
62,
4122,
7,
44,
11,
79,
12095,
79,
11,
80,
8,
198,
220,
220,
220,
220,
220,
220,
220,
374,
20,
796,
2092,
7,
81,
19,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3095,
62,
4122,
0,
7,
44,
11,
81,
20,
11,
79,
12095,
79,
11,
80,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
1324,
13907,
7,
44,
11,
81,
19,
11,
80,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
1324,
13907,
7,
44,
11,
81,
19,
11,
81,
20,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
1324,
13907,
7,
44,
11,
35051,
7,
44,
11,
79,
11,
80,
828,
12,
80,
8,
198,
220,
220,
220,
220,
220,
220,
220,
277,
796,
2124,
3784,
87,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
4079,
7,
44,
11,
69,
11,
80,
8,
6624,
10662,
628,
220,
220,
220,
220,
220,
220,
220,
337,
17,
796,
48862,
485,
272,
7,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
279,
17,
796,
685,
16,
13,
15,
11,
657,
13,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
10662,
17,
796,
685,
15,
13,
15,
11,
352,
13,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
264,
796,
3095,
62,
4122,
7,
44,
17,
11,
79,
17,
11,
80,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
264,
17,
796,
2092,
7,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3095,
62,
4122,
0,
7,
44,
17,
11,
82,
17,
11,
79,
17,
11,
80,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
264,
855,
82,
17,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
264,
855,
7,
79,
17,
10,
80,
17,
20679,
17,
198,
220,
220,
220,
220,
220,
220,
220,
264,
796,
3095,
62,
4122,
7,
44,
17,
11,
79,
17,
11,
80,
17,
11,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
264,
855,
82,
17,
198,
220,
220,
220,
220,
220,
220,
220,
264,
17,
796,
2092,
7,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3095,
62,
4122,
0,
7,
44,
17,
11,
82,
17,
11,
79,
17,
11,
80,
17,
11,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
264,
855,
82,
17,
628,
220,
220,
220,
886,
198,
220,
220,
220,
2488,
9288,
2617,
366,
25120,
1,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
1982,
796,
16291,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
40653,
796,
4738,
62,
4122,
7,
9742,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
805,
361,
727,
62,
4122,
7,
9742,
11,
40653,
11,
2081,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1395,
66,
796,
4738,
62,
83,
648,
298,
7,
9742,
11,
14751,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
83,
648,
298,
62,
31364,
7,
9742,
11,
40653,
11,
1395,
66,
11,
2081,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2185,
796,
48862,
485,
272,
7,
18,
8,
198,
220,
220,
220,
220,
220,
220,
220,
613,
796,
4738,
62,
4122,
7,
5308,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
805,
361,
727,
62,
4122,
7,
5308,
11,
613,
11,
2081,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1395,
68,
796,
4738,
62,
83,
648,
298,
7,
5308,
11,
431,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
83,
648,
298,
62,
31364,
7,
5308,
11,
613,
11,
1395,
68,
11,
2081,
8,
628,
220,
220,
220,
220,
220,
220,
220,
337,
70,
796,
19062,
9038,
7,
18,
11,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
23241,
796,
4738,
62,
4122,
7,
44,
70,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
805,
361,
727,
62,
4122,
7,
44,
70,
11,
23241,
11,
2081,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1395,
70,
796,
4738,
62,
83,
648,
298,
7,
44,
70,
11,
6024,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
83,
648,
298,
62,
31364,
7,
44,
70,
11,
23241,
11,
1395,
70,
11,
2081,
26,
379,
349,
28,
940,
61,
32590,
1415,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
337,
79,
796,
8721,
5124,
361,
727,
7,
44,
70,
11,
5308,
8,
198,
220,
220,
220,
220,
220,
220,
220,
9788,
796,
4738,
62,
4122,
7,
28861,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
805,
361,
727,
62,
4122,
7,
28861,
11,
9788,
11,
2081,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1395,
79,
796,
4738,
62,
83,
648,
298,
7,
28861,
11,
381,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
83,
648,
298,
62,
31364,
7,
28861,
11,
9788,
11,
1395,
79,
11,
7942,
26,
379,
349,
28,
940,
61,
32590,
1314,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
337,
79,
17,
796,
4333,
5124,
361,
727,
7,
5308,
11,
399,
7287,
13434,
40171,
341,
22784,
19,
8,
198,
220,
220,
220,
220,
220,
220,
220,
9788,
17,
796,
4738,
62,
4122,
7,
28861,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
805,
361,
727,
62,
4122,
7,
28861,
17,
11,
381,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1395,
79,
17,
796,
4738,
62,
83,
648,
298,
7,
28861,
17,
11,
381,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
83,
648,
298,
62,
31364,
7,
28861,
17,
11,
381,
17,
11,
55,
79,
17,
8,
628,
220,
220,
220,
220,
220,
220,
220,
337,
79,
18,
796,
4333,
5124,
361,
727,
7,
5308,
11,
15690,
13434,
40171,
341,
22784,
604,
8,
198,
220,
220,
220,
220,
220,
220,
220,
9788,
18,
796,
4738,
62,
4122,
7,
28861,
18,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
805,
361,
727,
62,
4122,
7,
28861,
18,
11,
381,
18,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1395,
79,
18,
796,
4738,
62,
83,
648,
298,
7,
28861,
18,
11,
381,
18,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
83,
648,
298,
62,
31364,
7,
28861,
18,
11,
381,
18,
11,
55,
79,
18,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1770,
796,
18481,
602,
7,
18,
8,
198,
220,
220,
220,
220,
220,
220,
220,
778,
796,
4738,
62,
4122,
7,
5246,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
805,
361,
727,
62,
4122,
7,
5246,
11,
1050,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1395,
81,
796,
4738,
62,
83,
648,
298,
7,
5246,
11,
1050,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
83,
648,
298,
62,
31364,
7,
5246,
11,
1050,
11,
55,
81,
8,
628,
220,
220,
220,
220,
220,
220,
220,
337,
2777,
67,
796,
1632,
3020,
19482,
21604,
1800,
7469,
9504,
7,
18,
8,
198,
220,
220,
220,
220,
220,
220,
220,
279,
2777,
67,
796,
4738,
62,
4122,
7,
44,
2777,
67,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
805,
361,
727,
62,
4122,
7,
44,
2777,
67,
11,
862,
30094,
26,
265,
349,
28,
940,
61,
32590,
1415,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1395,
2777,
67,
796,
4738,
62,
83,
648,
298,
7,
44,
2777,
67,
11,
862,
30094,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
83,
648,
298,
62,
31364,
7,
44,
2777,
67,
11,
862,
30094,
11,
55,
2777,
67,
11,
2081,
26,
379,
349,
28,
940,
61,
32590,
1314,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1395,
2777,
67,
17,
796,
4738,
62,
83,
648,
298,
7,
44,
2777,
67,
11,
862,
30094,
11,
3254,
7,
25,
49,
6749,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
83,
648,
298,
62,
31364,
7,
44,
2777,
67,
11,
862,
30094,
11,
55,
2777,
67,
17,
11,
7942,
26,
265,
349,
28,
940,
61,
32590,
1314,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
337,
301,
796,
520,
2086,
417,
7,
18,
11,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
279,
301,
796,
4738,
62,
4122,
7,
44,
301,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
805,
361,
727,
62,
4122,
7,
44,
301,
11,
279,
301,
11,
2081,
8,
628,
220,
220,
220,
220,
220,
220,
220,
337,
2777,
796,
31798,
7,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
279,
2777,
796,
4738,
62,
4122,
7,
44,
2777,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
805,
361,
727,
62,
4122,
7,
44,
2777,
11,
279,
2777,
11,
2081,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1395,
2777,
796,
4738,
62,
83,
648,
298,
7,
44,
2777,
11,
862,
79,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
83,
648,
298,
62,
31364,
7,
44,
2777,
11,
862,
79,
11,
55,
2777,
11,
7942,
26,
265,
349,
28,
940,
61,
32590,
1314,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
337,
71,
796,
15079,
65,
4160,
7,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
872,
796,
685,
15,
13,
15,
11,
15,
13,
15,
11,
16,
13,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1395,
71,
796,
4738,
62,
83,
648,
298,
7,
44,
71,
11,
872,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
318,
62,
83,
648,
298,
62,
31364,
7,
44,
71,
11,
872,
11,
1395,
71,
11,
2081,
8,
198,
220,
220,
220,
886,
198,
437
] | 1.69927 | 2,055 |
using Documenter
push!(LOAD_PATH,"../src/")
using BasesAndSamples
makedocs(
sitename = "BasesAndSamples.jl Documentation",
format = Documenter.HTML(),
modules = [BasesAndSamples]
)
# Documenter can also automatically deploy documentation to gh-pages.
# See "Hosting Documentation" and deploydocs() in the Documenter manual
# for more information.
deploydocs(
repo = "github.com/nanleij/BasesAndSamples.jl.git",
devbranch="main"
)
| [
3500,
16854,
263,
198,
14689,
0,
7,
35613,
62,
34219,
553,
40720,
10677,
14,
4943,
198,
3500,
347,
1386,
1870,
50,
12629,
198,
198,
76,
4335,
420,
82,
7,
198,
220,
220,
220,
1650,
12453,
796,
366,
33,
1386,
1870,
50,
12629,
13,
20362,
43925,
1600,
198,
220,
220,
220,
5794,
796,
16854,
263,
13,
28656,
22784,
198,
220,
220,
220,
13103,
796,
685,
33,
1386,
1870,
50,
12629,
60,
198,
8,
198,
198,
2,
16854,
263,
460,
635,
6338,
6061,
10314,
284,
24997,
12,
31126,
13,
198,
2,
4091,
366,
17932,
278,
43925,
1,
290,
6061,
31628,
3419,
287,
262,
16854,
263,
10107,
198,
2,
329,
517,
1321,
13,
198,
2934,
1420,
31628,
7,
198,
220,
220,
220,
29924,
796,
366,
12567,
13,
785,
14,
12647,
293,
2926,
14,
33,
1386,
1870,
50,
12629,
13,
20362,
13,
18300,
1600,
198,
220,
220,
220,
1614,
1671,
3702,
2625,
12417,
1,
198,
8,
198
] | 2.954248 | 153 |
import GreyDecision.GreyNumbers: GreyNumber
import GreyDecision.Utility: makeminmax
import LinearAlgebra: det
@testset "Transpose" begin
x = [
GreyNumber(5.0) GreyNumber(3.0) GreyNumber(-2.0);
GreyNumber(-8.0) GreyNumber(6.0) GreyNumber(1.0);
GreyNumber(10.0) GreyNumber(7.0) GreyNumber(13.0)
]
xt = transpose(x)
@test size(xt) == size(x)
@test xt[1, 2] == x[2, 1]
@test xt[1, 3] == x[3, 1]
@test xt[1, 1] == x[1, 1]
@test xt[2, 2] == x[2, 2]
@test xt[3, 3] == x[3, 3]
end
@testset "det(x)" begin
x = [
GreyNumber(5.0) GreyNumber(3.0) GreyNumber(-2.0);
GreyNumber(-8.0) GreyNumber(6.0) GreyNumber(1.0);
GreyNumber(10.0) GreyNumber(7.0) GreyNumber(13.0)
]
y = [
5.0 3.0 -2.0;
-8.0 6.0 1.0;
10.0 7.0 13.0
]
xdet = det(transpose(x) * x)
ydet = det(transpose(y) * y)
@test ydet == xdet.a
@test ydet == xdet.b
end
@testset "inv(x)" begin
atol = 0.001
x = [
GreyNumber(5.0) GreyNumber(3.0) GreyNumber(-2.0);
GreyNumber(-8.0) GreyNumber(6.0) GreyNumber(1.0);
GreyNumber(10.0) GreyNumber(7.0) GreyNumber(13.0)
]
xtx = transpose(x) * x
invxyx = inv(xtx)
result = invxyx * xtx
@test isapprox(result[1,1].a, 1.0, atol = atol)
@test isapprox(result[2,2].a, 1.0, atol = atol)
@test isapprox(result[3,3].a, 1.0, atol = atol)
@test isapprox(result[1,2].a, 0.0, atol = atol)
@test isapprox(result[1,3].a, 0.0, atol = atol)
@test isapprox(result[2,1].a, 0.0, atol = atol)
@test isapprox(result[2,3].a, 0.0, atol = atol)
@test isapprox(result[3,1].a, 0.0, atol = atol)
@test isapprox(result[3,2].a, 0.0, atol = atol)
end | [
11748,
13980,
10707,
1166,
13,
49141,
49601,
25,
13980,
15057,
198,
11748,
13980,
10707,
1166,
13,
18274,
879,
25,
787,
1084,
9806,
198,
11748,
44800,
2348,
29230,
25,
1062,
628,
198,
31,
9288,
2617,
366,
8291,
3455,
1,
2221,
198,
220,
220,
220,
2124,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
13980,
15057,
7,
20,
13,
15,
8,
13980,
15057,
7,
18,
13,
15,
8,
13980,
15057,
32590,
17,
13,
15,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
13980,
15057,
32590,
23,
13,
15,
8,
13980,
15057,
7,
21,
13,
15,
8,
13980,
15057,
7,
16,
13,
15,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
13980,
15057,
7,
940,
13,
15,
8,
13980,
15057,
7,
22,
13,
15,
8,
13980,
15057,
7,
1485,
13,
15,
8,
198,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
742,
796,
1007,
3455,
7,
87,
8,
628,
220,
220,
220,
2488,
9288,
2546,
7,
742,
8,
6624,
2546,
7,
87,
8,
198,
220,
220,
220,
2488,
9288,
220,
742,
58,
16,
11,
362,
60,
6624,
2124,
58,
17,
11,
352,
60,
198,
220,
220,
220,
2488,
9288,
220,
742,
58,
16,
11,
513,
60,
6624,
2124,
58,
18,
11,
352,
60,
198,
220,
220,
220,
2488,
9288,
220,
742,
58,
16,
11,
352,
60,
6624,
2124,
58,
16,
11,
352,
60,
198,
220,
220,
220,
2488,
9288,
220,
742,
58,
17,
11,
362,
60,
6624,
2124,
58,
17,
11,
362,
60,
198,
220,
220,
220,
2488,
9288,
220,
742,
58,
18,
11,
513,
60,
6624,
2124,
58,
18,
11,
513,
60,
198,
437,
198,
198,
31,
9288,
2617,
366,
15255,
7,
87,
16725,
2221,
198,
220,
220,
220,
2124,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
13980,
15057,
7,
20,
13,
15,
8,
13980,
15057,
7,
18,
13,
15,
8,
13980,
15057,
32590,
17,
13,
15,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
13980,
15057,
32590,
23,
13,
15,
8,
13980,
15057,
7,
21,
13,
15,
8,
13980,
15057,
7,
16,
13,
15,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
13980,
15057,
7,
940,
13,
15,
8,
13980,
15057,
7,
22,
13,
15,
8,
13980,
15057,
7,
1485,
13,
15,
8,
198,
220,
220,
220,
2361,
198,
220,
220,
220,
331,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
642,
13,
15,
513,
13,
15,
532,
17,
13,
15,
26,
198,
220,
220,
220,
220,
220,
220,
220,
532,
23,
13,
15,
718,
13,
15,
352,
13,
15,
26,
198,
220,
220,
220,
220,
220,
220,
220,
838,
13,
15,
767,
13,
15,
1511,
13,
15,
198,
220,
220,
220,
2361,
198,
220,
220,
220,
2124,
15255,
796,
1062,
7,
7645,
3455,
7,
87,
8,
1635,
2124,
8,
220,
198,
220,
220,
220,
331,
15255,
796,
1062,
7,
7645,
3455,
7,
88,
8,
1635,
331,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
2488,
9288,
331,
15255,
6624,
2124,
15255,
13,
64,
220,
198,
220,
220,
220,
2488,
9288,
331,
15255,
6624,
2124,
15255,
13,
65,
198,
437,
198,
198,
31,
9288,
2617,
366,
16340,
7,
87,
16725,
2221,
198,
220,
220,
220,
379,
349,
796,
657,
13,
8298,
198,
220,
220,
220,
220,
2124,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
13980,
15057,
7,
20,
13,
15,
8,
13980,
15057,
7,
18,
13,
15,
8,
13980,
15057,
32590,
17,
13,
15,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
13980,
15057,
32590,
23,
13,
15,
8,
13980,
15057,
7,
21,
13,
15,
8,
13980,
15057,
7,
16,
13,
15,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
13980,
15057,
7,
940,
13,
15,
8,
13980,
15057,
7,
22,
13,
15,
8,
13980,
15057,
7,
1485,
13,
15,
8,
198,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
742,
87,
796,
1007,
3455,
7,
87,
8,
1635,
2124,
220,
198,
220,
220,
220,
800,
5431,
87,
796,
800,
7,
742,
87,
8,
198,
220,
220,
220,
1255,
796,
800,
5431,
87,
1635,
220,
742,
87,
198,
220,
220,
220,
220,
198,
220,
220,
220,
2488,
9288,
318,
1324,
13907,
7,
20274,
58,
16,
11,
16,
4083,
64,
11,
352,
13,
15,
11,
379,
349,
796,
379,
349,
8,
198,
220,
220,
220,
2488,
9288,
318,
1324,
13907,
7,
20274,
58,
17,
11,
17,
4083,
64,
11,
352,
13,
15,
11,
379,
349,
796,
379,
349,
8,
198,
220,
220,
220,
2488,
9288,
318,
1324,
13907,
7,
20274,
58,
18,
11,
18,
4083,
64,
11,
352,
13,
15,
11,
379,
349,
796,
379,
349,
8,
198,
220,
220,
220,
2488,
9288,
318,
1324,
13907,
7,
20274,
58,
16,
11,
17,
4083,
64,
11,
657,
13,
15,
11,
379,
349,
796,
379,
349,
8,
198,
220,
220,
220,
2488,
9288,
318,
1324,
13907,
7,
20274,
58,
16,
11,
18,
4083,
64,
11,
657,
13,
15,
11,
379,
349,
796,
379,
349,
8,
198,
220,
220,
220,
2488,
9288,
318,
1324,
13907,
7,
20274,
58,
17,
11,
16,
4083,
64,
11,
657,
13,
15,
11,
379,
349,
796,
379,
349,
8,
198,
220,
220,
220,
2488,
9288,
318,
1324,
13907,
7,
20274,
58,
17,
11,
18,
4083,
64,
11,
657,
13,
15,
11,
379,
349,
796,
379,
349,
8,
198,
220,
220,
220,
2488,
9288,
318,
1324,
13907,
7,
20274,
58,
18,
11,
16,
4083,
64,
11,
657,
13,
15,
11,
379,
349,
796,
379,
349,
8,
198,
220,
220,
220,
2488,
9288,
318,
1324,
13907,
7,
20274,
58,
18,
11,
17,
4083,
64,
11,
657,
13,
15,
11,
379,
349,
796,
379,
349,
8,
198,
220,
220,
220,
220,
198,
437
] | 1.861702 | 940 |
include("../src/experiments/0_setup.jl")
import DataFrames.DataFrame
using DataFrames, CSV
using FastGroupBy
using Base.Threads
K = 100
tries = vcat([Int(2^k-1) for k = 7:31], 3_000_000_000)
for N in tries
println(N)
if N < 2_000_000
by = nothing; val = nothing; gc()
srand(1)
by = rand(Int64(1):Int64(round(N/K)), N);
val = rand(Int32(1):Int32(5), N);
sp = @elapsed sumby_sortperm(by, val)
CSV.write(string("benchmark/out/64/sp$N $(replace(string(now()),":","")).csv"),DataFrame(sp = sp))
end
by = nothing; val = nothing; gc()
srand(1)
by = rand(Int64(1):Int64(round(N/K)), N);
val = rand(Int32(1):Int32(5), N);
srs = @elapsed sumby_multi_rs(by, val)
CSV.write(string("benchmark/out/64/mrs$N $(replace(string(now()),":","")).csv"),DataFrame(srs = srs))
if N < 2_000_000_000
by = nothing; val = nothing; gc()
srand(1)
by = rand(Int64(1):Int64(round(N/K)), N);
val = rand(Int32(1):Int32(5), N);
srg = @elapsed sumby_radixgroup(by, val)
CSV.write(string("benchmark/out/64/srg$N $(replace(string(now()),":","")).csv"),DataFrame(srg = srg))
end
by = nothing; val = nothing; gc()
srand(1)
by = rand(Int64(1):Int64(round(N/K)), N);
val = rand(Int32(1):Int32(5), N);
srs = @elapsed sumby_radixsort(by, val)
CSV.write(string("benchmark/out/64/srs$N $(replace(string(now()),":","")).csv"),DataFrame(srs = srs))
end
tries = vcat([Int(2^k-1) for k = 7:31], 3_000_000_000)
for N in tries
println(N)
if N < 400_000
by = nothing; val = nothing; gc()
srand(1)
by = rand(Int32(1):Int32(round(N/K)), N);
val = rand(Int32(1):Int32(5), N);
sp = @elapsed sumby_sortperm(by, val)
CSV.write(string("benchmark/out/sp$N $(replace(string(now()),":","")).csv"),DataFrame(sp = sp))
end
by = nothing; val = nothing; gc()
srand(1)
by = rand(Int32(1):Int32(round(N/K)), N);
val = rand(Int32(1):Int32(5), N);
srs = @elapsed sumby_multi_rs(by, val)
CSV.write(string("benchmark/out/mrs$N $(replace(string(now()),":","")).csv"),DataFrame(srs = srs))
if N < 2_000_000_000
by = nothing; val = nothing; gc()
srand(1)
by = rand(Int32(1):Int32(round(N/K)), N);
val = rand(Int32(1):Int32(5), N);
srg = @elapsed sumby_radixgroup(by, val)
CSV.write(string("benchmark/out/srg$N $(replace(string(now()),":","")).csv"),DataFrame(srg = srg))
end
by = nothing; val = nothing; gc()
srand(1)
by = rand(Int32(1):Int32(round(N/K)), N);
val = rand(Int32(1):Int32(5), N);
srs = @elapsed sumby_radixsort(by, val)
CSV.write(string("benchmark/out/srs$N $(replace(string(now()),":","")).csv"),DataFrame(srs = srs))
end
| [
17256,
7203,
40720,
10677,
14,
23100,
6800,
14,
15,
62,
40406,
13,
20362,
4943,
198,
11748,
6060,
35439,
13,
6601,
19778,
198,
3500,
6060,
35439,
11,
44189,
198,
3500,
12549,
13247,
3886,
198,
3500,
7308,
13,
16818,
82,
198,
42,
796,
1802,
628,
198,
83,
1678,
796,
410,
9246,
26933,
5317,
7,
17,
61,
74,
12,
16,
8,
329,
479,
796,
767,
25,
3132,
4357,
513,
62,
830,
62,
830,
62,
830,
8,
198,
1640,
399,
287,
8404,
198,
220,
220,
220,
44872,
7,
45,
8,
198,
220,
220,
220,
611,
399,
1279,
362,
62,
830,
62,
830,
198,
220,
220,
220,
220,
220,
220,
220,
416,
796,
2147,
26,
1188,
796,
2147,
26,
308,
66,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
19677,
392,
7,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
416,
796,
43720,
7,
5317,
2414,
7,
16,
2599,
5317,
2414,
7,
744,
7,
45,
14,
42,
36911,
399,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
1188,
796,
43720,
7,
5317,
2624,
7,
16,
2599,
5317,
2624,
7,
20,
828,
399,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
599,
220,
796,
2488,
417,
28361,
2160,
1525,
62,
30619,
16321,
7,
1525,
11,
1188,
8,
198,
220,
220,
220,
220,
220,
220,
220,
44189,
13,
13564,
7,
8841,
7203,
26968,
4102,
14,
448,
14,
2414,
14,
2777,
3,
45,
29568,
33491,
7,
8841,
7,
2197,
3419,
27267,
25,
2430,
4943,
737,
40664,
12340,
6601,
19778,
7,
2777,
796,
599,
4008,
198,
220,
220,
220,
886,
628,
220,
220,
220,
416,
796,
2147,
26,
1188,
796,
2147,
26,
308,
66,
3419,
198,
220,
220,
220,
19677,
392,
7,
16,
8,
198,
220,
220,
220,
416,
796,
43720,
7,
5317,
2414,
7,
16,
2599,
5317,
2414,
7,
744,
7,
45,
14,
42,
36911,
399,
1776,
198,
220,
220,
220,
1188,
796,
43720,
7,
5317,
2624,
7,
16,
2599,
5317,
2624,
7,
20,
828,
399,
1776,
198,
220,
220,
220,
264,
3808,
796,
2488,
417,
28361,
2160,
1525,
62,
41684,
62,
3808,
7,
1525,
11,
1188,
8,
198,
220,
220,
220,
44189,
13,
13564,
7,
8841,
7203,
26968,
4102,
14,
448,
14,
2414,
14,
76,
3808,
3,
45,
29568,
33491,
7,
8841,
7,
2197,
3419,
27267,
25,
2430,
4943,
737,
40664,
12340,
6601,
19778,
7,
82,
3808,
796,
264,
3808,
4008,
628,
220,
220,
220,
611,
399,
1279,
362,
62,
830,
62,
830,
62,
830,
198,
220,
220,
220,
220,
220,
220,
220,
416,
796,
2147,
26,
1188,
796,
2147,
26,
308,
66,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
19677,
392,
7,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
416,
796,
43720,
7,
5317,
2414,
7,
16,
2599,
5317,
2414,
7,
744,
7,
45,
14,
42,
36911,
399,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
1188,
796,
43720,
7,
5317,
2624,
7,
16,
2599,
5317,
2624,
7,
20,
828,
399,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
19677,
70,
796,
2488,
417,
28361,
2160,
1525,
62,
6335,
844,
8094,
7,
1525,
11,
1188,
8,
198,
220,
220,
220,
220,
220,
220,
220,
44189,
13,
13564,
7,
8841,
7203,
26968,
4102,
14,
448,
14,
2414,
14,
27891,
70,
3,
45,
29568,
33491,
7,
8841,
7,
2197,
3419,
27267,
25,
2430,
4943,
737,
40664,
12340,
6601,
19778,
7,
27891,
70,
796,
19677,
70,
4008,
198,
220,
220,
220,
886,
628,
220,
220,
220,
416,
796,
2147,
26,
1188,
796,
2147,
26,
308,
66,
3419,
198,
220,
220,
220,
19677,
392,
7,
16,
8,
198,
220,
220,
220,
416,
796,
43720,
7,
5317,
2414,
7,
16,
2599,
5317,
2414,
7,
744,
7,
45,
14,
42,
36911,
399,
1776,
198,
220,
220,
220,
1188,
796,
43720,
7,
5317,
2624,
7,
16,
2599,
5317,
2624,
7,
20,
828,
399,
1776,
198,
220,
220,
220,
264,
3808,
796,
2488,
417,
28361,
2160,
1525,
62,
6335,
844,
30619,
7,
1525,
11,
1188,
8,
198,
220,
220,
220,
44189,
13,
13564,
7,
8841,
7203,
26968,
4102,
14,
448,
14,
2414,
14,
82,
3808,
3,
45,
29568,
33491,
7,
8841,
7,
2197,
3419,
27267,
25,
2430,
4943,
737,
40664,
12340,
6601,
19778,
7,
82,
3808,
796,
264,
3808,
4008,
198,
437,
628,
198,
83,
1678,
796,
410,
9246,
26933,
5317,
7,
17,
61,
74,
12,
16,
8,
329,
479,
796,
767,
25,
3132,
4357,
513,
62,
830,
62,
830,
62,
830,
8,
198,
1640,
399,
287,
8404,
198,
220,
220,
220,
44872,
7,
45,
8,
198,
220,
220,
220,
611,
399,
1279,
7337,
62,
830,
198,
220,
220,
220,
220,
220,
220,
220,
416,
796,
2147,
26,
1188,
796,
2147,
26,
308,
66,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
19677,
392,
7,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
416,
796,
43720,
7,
5317,
2624,
7,
16,
2599,
5317,
2624,
7,
744,
7,
45,
14,
42,
36911,
399,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
1188,
796,
43720,
7,
5317,
2624,
7,
16,
2599,
5317,
2624,
7,
20,
828,
399,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
599,
220,
796,
2488,
417,
28361,
2160,
1525,
62,
30619,
16321,
7,
1525,
11,
1188,
8,
198,
220,
220,
220,
220,
220,
220,
220,
44189,
13,
13564,
7,
8841,
7203,
26968,
4102,
14,
448,
14,
2777,
3,
45,
29568,
33491,
7,
8841,
7,
2197,
3419,
27267,
25,
2430,
4943,
737,
40664,
12340,
6601,
19778,
7,
2777,
796,
599,
4008,
198,
220,
220,
220,
886,
628,
220,
220,
220,
416,
796,
2147,
26,
1188,
796,
2147,
26,
308,
66,
3419,
198,
220,
220,
220,
19677,
392,
7,
16,
8,
198,
220,
220,
220,
416,
796,
43720,
7,
5317,
2624,
7,
16,
2599,
5317,
2624,
7,
744,
7,
45,
14,
42,
36911,
399,
1776,
198,
220,
220,
220,
1188,
796,
43720,
7,
5317,
2624,
7,
16,
2599,
5317,
2624,
7,
20,
828,
399,
1776,
198,
220,
220,
220,
264,
3808,
796,
2488,
417,
28361,
2160,
1525,
62,
41684,
62,
3808,
7,
1525,
11,
1188,
8,
198,
220,
220,
220,
44189,
13,
13564,
7,
8841,
7203,
26968,
4102,
14,
448,
14,
76,
3808,
3,
45,
29568,
33491,
7,
8841,
7,
2197,
3419,
27267,
25,
2430,
4943,
737,
40664,
12340,
6601,
19778,
7,
82,
3808,
796,
264,
3808,
4008,
628,
220,
220,
220,
611,
399,
1279,
362,
62,
830,
62,
830,
62,
830,
198,
220,
220,
220,
220,
220,
220,
220,
416,
796,
2147,
26,
1188,
796,
2147,
26,
308,
66,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
19677,
392,
7,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
416,
796,
43720,
7,
5317,
2624,
7,
16,
2599,
5317,
2624,
7,
744,
7,
45,
14,
42,
36911,
399,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
1188,
796,
43720,
7,
5317,
2624,
7,
16,
2599,
5317,
2624,
7,
20,
828,
399,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
19677,
70,
796,
2488,
417,
28361,
2160,
1525,
62,
6335,
844,
8094,
7,
1525,
11,
1188,
8,
198,
220,
220,
220,
220,
220,
220,
220,
44189,
13,
13564,
7,
8841,
7203,
26968,
4102,
14,
448,
14,
27891,
70,
3,
45,
29568,
33491,
7,
8841,
7,
2197,
3419,
27267,
25,
2430,
4943,
737,
40664,
12340,
6601,
19778,
7,
27891,
70,
796,
19677,
70,
4008,
198,
220,
220,
220,
886,
628,
220,
220,
220,
416,
796,
2147,
26,
1188,
796,
2147,
26,
308,
66,
3419,
198,
220,
220,
220,
19677,
392,
7,
16,
8,
198,
220,
220,
220,
416,
796,
43720,
7,
5317,
2624,
7,
16,
2599,
5317,
2624,
7,
744,
7,
45,
14,
42,
36911,
399,
1776,
198,
220,
220,
220,
1188,
796,
43720,
7,
5317,
2624,
7,
16,
2599,
5317,
2624,
7,
20,
828,
399,
1776,
198,
220,
220,
220,
264,
3808,
796,
2488,
417,
28361,
2160,
1525,
62,
6335,
844,
30619,
7,
1525,
11,
1188,
8,
198,
220,
220,
220,
44189,
13,
13564,
7,
8841,
7203,
26968,
4102,
14,
448,
14,
82,
3808,
3,
45,
29568,
33491,
7,
8841,
7,
2197,
3419,
27267,
25,
2430,
4943,
737,
40664,
12340,
6601,
19778,
7,
82,
3808,
796,
264,
3808,
4008,
198,
437,
198
] | 2.077094 | 1,349 |
using FedDCD
include("./PrimalMethods.jl")
include("./DualMethods.jl")
# Softmax for mnist
fileTrain = "data/mnist.scale"
fileTest = "data/mnist.scale.t"
λ = 1e-2
participationRate = 0.3
localLr = 1e-2
numRounds = 100
# - FedAvg
μ = 0.0
RunFedAvgAndProx(
fileTrain,
fileTest,
λ,
μ,
participationRate,
localLr,
numRounds,
"results/exp1/FedAvg_logReg_mnist_lambda1e-2.txt"
)
# - FedProx
μ = 1e-4
RunFedAvgAndProx(
fileTrain,
fileTest,
λ,
μ,
participationRate,
localLr,
numRounds,
"results/exp1/FedProx_logReg_mnist_lambda1e-2.txt"
)
# - Scaffold
RunScaffold(
fileTrain,
fileTest,
λ,
participationRate,
localLr,
numRounds,
"results/exp1/Scaffold_logReg_mnist_lambda1e-2.txt"
)
# Softmax for rcv1
fileTrain = "data/rcv1_train.binary"
fileTest = "data/rcv1_train.binary"
λ = 1e-3
participationRate = 0.3
localLr = 1e-1
numRounds = 100
# - FedAvg
μ = 0.0
RunFedAvgAndProx(
fileTrain,
fileTest,
λ,
μ,
participationRate,
localLr,
numRounds,
"results/exp1/FedAvg_logReg_rcv1_lambda1e-2.txt"
)
# - FedProx
μ = 1e-4
RunFedAvgAndProx(
fileTrain,
fileTest,
λ,
μ,
participationRate,
localLr,
numRounds,
"results/exp1/FedProx_logReg_rcv1_lambda1e-2.txt"
)
# - Scaffold
RunScaffold(
fileTrain,
fileTest,
λ,
participationRate,
localLr,
numRounds,
"results/exp1/Scaffold_logReg_rcv1_lambda1e-2.txt"
)
# Softmax + MLP for mnist
fileTrain = "data/mnist.scale"
fileTest = "data/mnist.scale.t"
λ = 1e-2
participationRate = 0.3
localLr = 1e-2
numRounds = 100
# - FedAvg
μ = 0.0
# - FedAvg
RunFedAvgAndProxNN(
fileTrain,
fileTest,
λ,
μ,
participationRate,
localLr,
numRounds,
"results/exp1/FedAvg_MLP_mnist_lambda1e-2.txt"
)
# - FedProx
μ = 1e-4
RunFedAvgAndProxNN(
fileTrain,
fileTest,
λ,
μ,
participationRate,
localLr,
numRounds,
"results/exp1/FedProx_MLP_mnist_lambda1e-2.txt"
)
# - Scaffold
RunScaffoldNN(
fileTrain,
fileTest,
λ,
participationRate,
localLr,
numRounds,
"results/exp1/Scaffold_MLP_mnist_lambda1e-2.txt"
)
# Softmax for mnist
fileTrain = "data/mnist.scale"
fileTest = "data/mnist.scale.t"
λ = 1e-2
participationRate = 0.1
localLr = 1e-3
numRounds = 500
# - FedAvg
μ = 0.0
RunFedAvgAndProx(
fileTrain,
fileTest,
λ,
μ,
participationRate,
localLr,
numRounds,
"results/exp2/FedAvg_logReg_mnist_lambda1e-2_tau1e-1.txt"
)
# - FedProx
μ = 1e-4
RunFedAvgAndProx(
fileTrain,
fileTest,
λ,
μ,
participationRate,
localLr,
numRounds,
"results/exp2/FedProx_logReg_mnist_lambda1e-2_tau1e-1.txt"
)
# - Scaffold
RunScaffold(
fileTrain,
fileTest,
λ,
participationRate,
localLr,
numRounds,
"results/exp2/Scaffold_logReg_mnist_lambda1e-2_tau1e-1.txt"
)
# Softmax for rcv1
fileTrain = "data/rcv1_train.binary"
fileTest = "data/rcv1_train.binary"
λ = 1e-3
participationRate = 0.1
localLr = 1e-1
numRounds = 500
# - FedAvg
μ = 0.0
RunFedAvgAndProx(
fileTrain,
fileTest,
λ,
μ,
participationRate,
localLr,
numRounds,
"results/exp2/FedAvg_logReg_rcv1_lambda1e-2_tau1e-1.txt"
)
# - FedProx
μ = 1e-4
RunFedAvgAndProx(
fileTrain,
fileTest,
λ,
μ,
participationRate,
localLr,
numRounds,
"results/exp2/FedProx_logReg_rcv1_lambda1e-2_tau1e-1.txt"
)
# - Scaffold
RunScaffold(
fileTrain,
fileTest,
λ,
participationRate,
localLr,
numRounds,
"results/exp2/Scaffold_logReg_rcv1_lambda1e-2_tau1e-1.txt"
)
# Softmax + MLP for mnist
fileTrain = "data/mnist.scale"
fileTest = "data/mnist.scale.t"
λ = 1e-2
participationRate = 0.1
localLr = 1e-2
numRounds = 500
# - FedAvg
μ = 0.0
# - FedAvg
RunFedAvgAndProxNN(
fileTrain,
fileTest,
λ,
μ,
participationRate,
localLr,
numRounds,
"results/exp2/FedAvg_MLP_mnist_lambda1e-2_tau1e-1.txt"
)
# - FedProx
μ = 1e-4
RunFedAvgAndProxNN(
fileTrain,
fileTest,
λ,
μ,
participationRate,
localLr,
numRounds,
"results/exp2/FedProx_MLP_mnist_lambda1e-2_tau1e-1.txt"
)
# - Scaffold
RunScaffoldNN(
fileTrain,
fileTest,
λ,
participationRate,
localLr,
numRounds,
"results/exp2/Scaffold_MLP_mnist_lambda1e-2_tau1e-1.txt"
)
#######################################################################################################
##################################
# Participation rate = 0.05
##################################
# Softmax for mnist
fileTrain = "data/mnist.scale"
fileTest = "data/mnist.scale.t"
λ = 1e-2
participationRate = 0.05
localLr = 1e-3
numRounds = 1000
# - FedAvg
μ = 0.0
RunFedAvgAndProx(
fileTrain,
fileTest,
λ,
μ,
participationRate,
localLr,
numRounds,
"results/exp2/FedAvg_logReg_mnist_lambda1e-2_tau5e-2.txt"
)
# - FedProx
μ = 1e-4
RunFedAvgAndProx(
fileTrain,
fileTest,
λ,
μ,
participationRate,
localLr,
numRounds,
"results/exp2/FedProx_logReg_mnist_lambda1e-2_tau5e-2.txt"
)
# - Scaffold
RunScaffold(
fileTrain,
fileTest,
λ,
participationRate,
localLr,
numRounds,
"results/exp2/Scaffold_logReg_mnist_lambda1e-2_tau5e-2.txt"
)
# Softmax for rcv1
fileTrain = "data/rcv1_train.binary"
fileTest = "data/rcv1_train.binary"
λ = 1e-3
participationRate = 0.05
localLr = 1e-1
numRounds = 1000
# - FedAvg
μ = 0.0
RunFedAvgAndProx(
fileTrain,
fileTest,
λ,
μ,
participationRate,
localLr,
numRounds,
"results/exp2/FedAvg_logReg_rcv1_lambda1e-2_tau5e-2.txt"
)
# - FedProx
μ = 1e-4
RunFedAvgAndProx(
fileTrain,
fileTest,
λ,
μ,
participationRate,
localLr,
numRounds,
"results/exp2/FedProx_logReg_rcv1_lambda1e-2_tau5e-2.txt"
)
# - Scaffold
RunScaffold(
fileTrain,
fileTest,
λ,
participationRate,
localLr,
numRounds,
"results/exp2/Scaffold_logReg_rcv1_lambda1e-2_tau5e-2.txt"
)
# Softmax + MLP for mnist
fileTrain = "data/mnist.scale"
fileTest = "data/mnist.scale.t"
λ = 1e-2
participationRate = 0.05
localLr = 1e-2
numRounds = 1000
# - FedAvg
μ = 0.0
# - FedAvg
RunFedAvgAndProxNN(
fileTrain,
fileTest,
λ,
μ,
participationRate,
localLr,
numRounds,
"results/exp2/FedAvg_MLP_mnist_lambda1e-2_tau5e-2.txt"
)
# - FedProx
μ = 1e-4
RunFedAvgAndProxNN(
fileTrain,
fileTest,
λ,
μ,
participationRate,
localLr,
numRounds,
"results/exp2/FedProx_MLP_mnist_lambda1e-2_tau5e-2.txt"
)
# - Scaffold
RunScaffoldNN(
fileTrain,
fileTest,
λ,
participationRate,
localLr,
numRounds,
"results/exp2/Scaffold_MLP_mnist_lambda1e-2_tau5e-2.txt"
)
# Softmax for mnist
fileTrain = "data/mnist.scale"
fileTest = "data/mnist.scale.t"
λ = 1e-2
participationRate = 0.3
localLr = 1e-2
numRounds = 100
# Experiment 2
# rcv1
# τ = 0.3
RunFedDCD(
"data/rcv1_train.binary",
"data/rcv1_train.binary",
1e-3,
0.3,
0.1,
100,
"results/exp2/FedDCD_rcv1_lambda1e-3_tau3e-1.txt"
)
RunAccFedDCD(
"data/rcv1_train.binary",
"data/rcv1_train.binary",
1e-3,
0.3,
0.1,
100,
"results/exp2/AccFedDCD_rcv1_lambda1e-3_tau3e-1.txt"
)
# τ = 0.1
RunFedDCD(
"data/rcv1_train.binary",
"data/rcv1_train.binary",
1e-3,
0.1,
0.1,
500,
"results/exp2/FedDCD_rcv1_lambda1e-3_tau1e-1.txt"
)
RunAccFedDCD(
"data/rcv1_train.binary",
"data/rcv1_train.binary",
1e-3,
0.1,
0.1,
500,
"results/exp2/AccFedDCD_rcv1_lambda1e-3_tau1e-1.txt"
)
# τ = 0.05
RunFedDCD(
"data/rcv1_train.binary",
"data/rcv1_train.binary",
1e-3,
0.05,
0.1,
1000,
"results/exp2/FedDCD_rcv1_lambda1e-3_tau5e-2.txt"
)
RunAccFedDCD(
"data/rcv1_train.binary",
"data/rcv1_train.binary",
1e-3,
0.05,
0.1,
1000,
"results/exp2/AccFedDCD_rcv1_lambda1e-3_tau5e-2.txt"
)
# mnist
# τ = 0.3
RunFedDCDNN(
"data/mnist.scale",
"data/mnist.scale.t",
1e-2,
0.3,
0.1,
100,
"results/exp2/FedDCD_mnist_lambda1e-2_tau3e-1.txt"
)
RunAccFedDCDNN(
"data/mnist.scale",
"data/mnist.scale.t",
1e-2,
0.3,
0.1,
100,
"results/exp2/AccFedDCD_mnist_lambda1e-2_tau3e-1.txt"
)
# τ = 0.1
RunFedDCDNN(
"data/mnist.scale",
"data/mnist.scale.t",
1e-2,
0.1,
0.1,
500,
"results/exp2/FedDCD_mnist_lambda1e-2_tau1e-1.txt"
)
RunAccFedDCDNN(
"data/mnist.scale",
"data/mnist.scale.t",
1e-2,
0.1,
0.1,
500,
"results/exp2/AccFedDCD_mnist_lambda1e-2_tau1e-1.txt"
)
# τ = 0.05
RunFedDCDNN(
"data/mnist.scale",
"data/mnist.scale.t",
1e-2,
0.05,
0.1,
1000,
"results/exp2/FedDCD_mnist_lambda1e-2_tau5e-2.txt"
)
RunAccFedDCDNN(
"data/mnist.scale",
"data/mnist.scale.t",
1e-2,
0.05,
0.1,
1000,
"results/exp2/AccFedDCD_mnist_lambda1e-2_tau5e-2.txt"
)
| [
3500,
10169,
35,
8610,
198,
17256,
7,
1911,
14,
23828,
282,
46202,
13,
20362,
4943,
198,
17256,
7,
1911,
14,
36248,
46202,
13,
20362,
4943,
198,
198,
2,
8297,
9806,
329,
285,
77,
396,
198,
7753,
44077,
796,
366,
7890,
14,
10295,
396,
13,
9888,
1,
198,
7753,
14402,
796,
366,
7890,
14,
10295,
396,
13,
9888,
13,
83,
1,
198,
39377,
796,
352,
68,
12,
17,
198,
48013,
341,
32184,
796,
657,
13,
18,
198,
12001,
43,
81,
796,
352,
68,
12,
17,
198,
22510,
49,
3733,
796,
1802,
198,
2,
532,
10169,
48997,
198,
34703,
796,
657,
13,
15,
198,
198,
10987,
42268,
48997,
1870,
2964,
87,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
18919,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
16,
14,
42268,
48997,
62,
6404,
8081,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
198,
2,
532,
10169,
2964,
87,
198,
34703,
796,
352,
68,
12,
19,
198,
198,
10987,
42268,
48997,
1870,
2964,
87,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
18919,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
16,
14,
42268,
2964,
87,
62,
6404,
8081,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
198,
2,
532,
1446,
2001,
727,
198,
10987,
3351,
2001,
727,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
16,
14,
3351,
2001,
727,
62,
6404,
8081,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
13,
14116,
1,
198,
8,
628,
198,
2,
8297,
9806,
329,
374,
33967,
16,
198,
7753,
44077,
796,
366,
7890,
14,
6015,
85,
16,
62,
27432,
13,
39491,
1,
198,
7753,
14402,
796,
366,
7890,
14,
6015,
85,
16,
62,
27432,
13,
39491,
1,
198,
39377,
796,
352,
68,
12,
18,
198,
48013,
341,
32184,
796,
657,
13,
18,
198,
12001,
43,
81,
796,
352,
68,
12,
16,
198,
22510,
49,
3733,
796,
1802,
198,
2,
532,
10169,
48997,
198,
34703,
796,
657,
13,
15,
198,
198,
10987,
42268,
48997,
1870,
2964,
87,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
18919,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
16,
14,
42268,
48997,
62,
6404,
8081,
62,
6015,
85,
16,
62,
50033,
16,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
198,
2,
532,
10169,
2964,
87,
198,
34703,
796,
352,
68,
12,
19,
198,
198,
10987,
42268,
48997,
1870,
2964,
87,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
18919,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
16,
14,
42268,
2964,
87,
62,
6404,
8081,
62,
6015,
85,
16,
62,
50033,
16,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
198,
2,
532,
1446,
2001,
727,
198,
10987,
3351,
2001,
727,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
16,
14,
3351,
2001,
727,
62,
6404,
8081,
62,
6015,
85,
16,
62,
50033,
16,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
198,
2,
8297,
9806,
1343,
10373,
47,
329,
285,
77,
396,
198,
7753,
44077,
796,
366,
7890,
14,
10295,
396,
13,
9888,
1,
198,
7753,
14402,
796,
366,
7890,
14,
10295,
396,
13,
9888,
13,
83,
1,
198,
39377,
796,
352,
68,
12,
17,
198,
48013,
341,
32184,
796,
657,
13,
18,
198,
12001,
43,
81,
796,
352,
68,
12,
17,
198,
22510,
49,
3733,
796,
1802,
198,
2,
532,
10169,
48997,
198,
34703,
796,
657,
13,
15,
198,
198,
2,
532,
10169,
48997,
198,
10987,
42268,
48997,
1870,
2964,
87,
6144,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
18919,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
16,
14,
42268,
48997,
62,
5805,
47,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
198,
2,
532,
10169,
2964,
87,
198,
198,
34703,
796,
352,
68,
12,
19,
198,
10987,
42268,
48997,
1870,
2964,
87,
6144,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
18919,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
16,
14,
42268,
2964,
87,
62,
5805,
47,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
198,
2,
532,
1446,
2001,
727,
198,
10987,
3351,
2001,
727,
6144,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
16,
14,
3351,
2001,
727,
62,
5805,
47,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
198,
2,
8297,
9806,
329,
285,
77,
396,
198,
7753,
44077,
796,
366,
7890,
14,
10295,
396,
13,
9888,
1,
198,
7753,
14402,
796,
366,
7890,
14,
10295,
396,
13,
9888,
13,
83,
1,
198,
39377,
796,
352,
68,
12,
17,
198,
48013,
341,
32184,
796,
657,
13,
16,
198,
12001,
43,
81,
796,
352,
68,
12,
18,
198,
22510,
49,
3733,
796,
5323,
198,
2,
532,
10169,
48997,
198,
34703,
796,
657,
13,
15,
198,
198,
10987,
42268,
48997,
1870,
2964,
87,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
18919,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
42268,
48997,
62,
6404,
8081,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
16,
68,
12,
16,
13,
14116,
1,
198,
8,
198,
198,
2,
532,
10169,
2964,
87,
198,
34703,
796,
352,
68,
12,
19,
198,
198,
10987,
42268,
48997,
1870,
2964,
87,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
18919,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
42268,
2964,
87,
62,
6404,
8081,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
16,
68,
12,
16,
13,
14116,
1,
198,
8,
198,
198,
2,
532,
1446,
2001,
727,
198,
10987,
3351,
2001,
727,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
3351,
2001,
727,
62,
6404,
8081,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
16,
68,
12,
16,
13,
14116,
1,
198,
8,
628,
198,
2,
8297,
9806,
329,
374,
33967,
16,
198,
7753,
44077,
796,
366,
7890,
14,
6015,
85,
16,
62,
27432,
13,
39491,
1,
198,
7753,
14402,
796,
366,
7890,
14,
6015,
85,
16,
62,
27432,
13,
39491,
1,
198,
39377,
796,
352,
68,
12,
18,
198,
48013,
341,
32184,
796,
657,
13,
16,
198,
12001,
43,
81,
796,
352,
68,
12,
16,
198,
22510,
49,
3733,
796,
5323,
198,
2,
532,
10169,
48997,
198,
34703,
796,
657,
13,
15,
198,
198,
10987,
42268,
48997,
1870,
2964,
87,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
18919,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
42268,
48997,
62,
6404,
8081,
62,
6015,
85,
16,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
16,
68,
12,
16,
13,
14116,
1,
198,
8,
198,
198,
2,
532,
10169,
2964,
87,
198,
34703,
796,
352,
68,
12,
19,
198,
198,
10987,
42268,
48997,
1870,
2964,
87,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
18919,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
42268,
2964,
87,
62,
6404,
8081,
62,
6015,
85,
16,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
16,
68,
12,
16,
13,
14116,
1,
198,
8,
198,
198,
2,
532,
1446,
2001,
727,
198,
10987,
3351,
2001,
727,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
3351,
2001,
727,
62,
6404,
8081,
62,
6015,
85,
16,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
16,
68,
12,
16,
13,
14116,
1,
198,
8,
198,
198,
2,
8297,
9806,
1343,
10373,
47,
329,
285,
77,
396,
198,
7753,
44077,
796,
366,
7890,
14,
10295,
396,
13,
9888,
1,
198,
7753,
14402,
796,
366,
7890,
14,
10295,
396,
13,
9888,
13,
83,
1,
198,
39377,
796,
352,
68,
12,
17,
198,
48013,
341,
32184,
796,
657,
13,
16,
198,
12001,
43,
81,
796,
352,
68,
12,
17,
198,
22510,
49,
3733,
796,
5323,
198,
2,
532,
10169,
48997,
198,
34703,
796,
657,
13,
15,
198,
198,
2,
532,
10169,
48997,
198,
10987,
42268,
48997,
1870,
2964,
87,
6144,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
18919,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
42268,
48997,
62,
5805,
47,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
16,
68,
12,
16,
13,
14116,
1,
198,
8,
198,
198,
2,
532,
10169,
2964,
87,
198,
198,
34703,
796,
352,
68,
12,
19,
198,
10987,
42268,
48997,
1870,
2964,
87,
6144,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
18919,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
42268,
2964,
87,
62,
5805,
47,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
16,
68,
12,
16,
13,
14116,
1,
198,
8,
198,
198,
2,
532,
1446,
2001,
727,
198,
10987,
3351,
2001,
727,
6144,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
3351,
2001,
727,
62,
5805,
47,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
16,
68,
12,
16,
13,
14116,
1,
198,
8,
628,
198,
29113,
29113,
29113,
4242,
21017,
198,
29113,
2235,
198,
2,
220,
220,
220,
220,
34408,
2494,
796,
657,
13,
2713,
198,
29113,
2235,
198,
2,
8297,
9806,
329,
285,
77,
396,
198,
7753,
44077,
796,
366,
7890,
14,
10295,
396,
13,
9888,
1,
198,
7753,
14402,
796,
366,
7890,
14,
10295,
396,
13,
9888,
13,
83,
1,
198,
39377,
796,
352,
68,
12,
17,
198,
48013,
341,
32184,
796,
657,
13,
2713,
198,
12001,
43,
81,
796,
352,
68,
12,
18,
198,
22510,
49,
3733,
796,
8576,
198,
2,
532,
10169,
48997,
198,
34703,
796,
657,
13,
15,
198,
198,
10987,
42268,
48997,
1870,
2964,
87,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
18919,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
42268,
48997,
62,
6404,
8081,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
20,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
198,
2,
532,
10169,
2964,
87,
198,
34703,
796,
352,
68,
12,
19,
198,
198,
10987,
42268,
48997,
1870,
2964,
87,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
18919,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
42268,
2964,
87,
62,
6404,
8081,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
20,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
198,
2,
532,
1446,
2001,
727,
198,
10987,
3351,
2001,
727,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
3351,
2001,
727,
62,
6404,
8081,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
20,
68,
12,
17,
13,
14116,
1,
198,
8,
628,
198,
2,
8297,
9806,
329,
374,
33967,
16,
198,
7753,
44077,
796,
366,
7890,
14,
6015,
85,
16,
62,
27432,
13,
39491,
1,
198,
7753,
14402,
796,
366,
7890,
14,
6015,
85,
16,
62,
27432,
13,
39491,
1,
198,
39377,
796,
352,
68,
12,
18,
198,
48013,
341,
32184,
796,
657,
13,
2713,
198,
12001,
43,
81,
796,
352,
68,
12,
16,
198,
22510,
49,
3733,
796,
8576,
198,
2,
532,
10169,
48997,
198,
34703,
796,
657,
13,
15,
198,
198,
10987,
42268,
48997,
1870,
2964,
87,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
18919,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
42268,
48997,
62,
6404,
8081,
62,
6015,
85,
16,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
20,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
198,
2,
532,
10169,
2964,
87,
198,
34703,
796,
352,
68,
12,
19,
198,
198,
10987,
42268,
48997,
1870,
2964,
87,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
18919,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
42268,
2964,
87,
62,
6404,
8081,
62,
6015,
85,
16,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
20,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
198,
2,
532,
1446,
2001,
727,
198,
10987,
3351,
2001,
727,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
3351,
2001,
727,
62,
6404,
8081,
62,
6015,
85,
16,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
20,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
198,
2,
8297,
9806,
1343,
10373,
47,
329,
285,
77,
396,
198,
7753,
44077,
796,
366,
7890,
14,
10295,
396,
13,
9888,
1,
198,
7753,
14402,
796,
366,
7890,
14,
10295,
396,
13,
9888,
13,
83,
1,
198,
39377,
796,
352,
68,
12,
17,
198,
48013,
341,
32184,
796,
657,
13,
2713,
198,
12001,
43,
81,
796,
352,
68,
12,
17,
198,
22510,
49,
3733,
796,
8576,
198,
2,
532,
10169,
48997,
198,
34703,
796,
657,
13,
15,
198,
198,
2,
532,
10169,
48997,
198,
10987,
42268,
48997,
1870,
2964,
87,
6144,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
18919,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
42268,
48997,
62,
5805,
47,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
20,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
198,
2,
532,
10169,
2964,
87,
198,
198,
34703,
796,
352,
68,
12,
19,
198,
10987,
42268,
48997,
1870,
2964,
87,
6144,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
18919,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
42268,
2964,
87,
62,
5805,
47,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
20,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
198,
2,
532,
1446,
2001,
727,
198,
10987,
3351,
2001,
727,
6144,
7,
198,
220,
220,
220,
2393,
44077,
11,
198,
220,
220,
220,
2393,
14402,
11,
198,
220,
220,
220,
7377,
119,
11,
198,
220,
220,
220,
10270,
32184,
11,
198,
220,
220,
220,
1957,
43,
81,
11,
198,
220,
220,
220,
997,
49,
3733,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
3351,
2001,
727,
62,
5805,
47,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
20,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
198,
2,
8297,
9806,
329,
285,
77,
396,
198,
7753,
44077,
796,
366,
7890,
14,
10295,
396,
13,
9888,
1,
198,
7753,
14402,
796,
366,
7890,
14,
10295,
396,
13,
9888,
13,
83,
1,
198,
39377,
796,
352,
68,
12,
17,
198,
48013,
341,
32184,
796,
657,
13,
18,
198,
12001,
43,
81,
796,
352,
68,
12,
17,
198,
22510,
49,
3733,
796,
1802,
628,
198,
2,
29544,
362,
198,
2,
220,
220,
374,
33967,
16,
198,
2,
220,
220,
220,
220,
220,
220,
46651,
796,
657,
13,
18,
198,
10987,
42268,
35,
8610,
7,
198,
220,
220,
220,
366,
7890,
14,
6015,
85,
16,
62,
27432,
13,
39491,
1600,
198,
220,
220,
220,
366,
7890,
14,
6015,
85,
16,
62,
27432,
13,
39491,
1600,
198,
220,
220,
220,
352,
68,
12,
18,
11,
198,
220,
220,
220,
657,
13,
18,
11,
198,
220,
220,
220,
657,
13,
16,
11,
198,
220,
220,
220,
1802,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
42268,
35,
8610,
62,
6015,
85,
16,
62,
50033,
16,
68,
12,
18,
62,
83,
559,
18,
68,
12,
16,
13,
14116,
1,
198,
8,
198,
10987,
17320,
42268,
35,
8610,
7,
198,
220,
220,
220,
366,
7890,
14,
6015,
85,
16,
62,
27432,
13,
39491,
1600,
198,
220,
220,
220,
366,
7890,
14,
6015,
85,
16,
62,
27432,
13,
39491,
1600,
198,
220,
220,
220,
352,
68,
12,
18,
11,
198,
220,
220,
220,
657,
13,
18,
11,
198,
220,
220,
220,
657,
13,
16,
11,
198,
220,
220,
220,
1802,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
17320,
42268,
35,
8610,
62,
6015,
85,
16,
62,
50033,
16,
68,
12,
18,
62,
83,
559,
18,
68,
12,
16,
13,
14116,
1,
198,
8,
198,
2,
220,
220,
220,
220,
220,
220,
46651,
796,
657,
13,
16,
198,
10987,
42268,
35,
8610,
7,
198,
220,
220,
220,
366,
7890,
14,
6015,
85,
16,
62,
27432,
13,
39491,
1600,
198,
220,
220,
220,
366,
7890,
14,
6015,
85,
16,
62,
27432,
13,
39491,
1600,
198,
220,
220,
220,
352,
68,
12,
18,
11,
198,
220,
220,
220,
657,
13,
16,
11,
198,
220,
220,
220,
657,
13,
16,
11,
198,
220,
220,
220,
5323,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
42268,
35,
8610,
62,
6015,
85,
16,
62,
50033,
16,
68,
12,
18,
62,
83,
559,
16,
68,
12,
16,
13,
14116,
1,
198,
8,
198,
10987,
17320,
42268,
35,
8610,
7,
198,
220,
220,
220,
366,
7890,
14,
6015,
85,
16,
62,
27432,
13,
39491,
1600,
198,
220,
220,
220,
366,
7890,
14,
6015,
85,
16,
62,
27432,
13,
39491,
1600,
198,
220,
220,
220,
352,
68,
12,
18,
11,
198,
220,
220,
220,
657,
13,
16,
11,
198,
220,
220,
220,
657,
13,
16,
11,
198,
220,
220,
220,
5323,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
17320,
42268,
35,
8610,
62,
6015,
85,
16,
62,
50033,
16,
68,
12,
18,
62,
83,
559,
16,
68,
12,
16,
13,
14116,
1,
198,
8,
198,
2,
220,
220,
220,
220,
220,
220,
46651,
796,
657,
13,
2713,
198,
10987,
42268,
35,
8610,
7,
198,
220,
220,
220,
366,
7890,
14,
6015,
85,
16,
62,
27432,
13,
39491,
1600,
198,
220,
220,
220,
366,
7890,
14,
6015,
85,
16,
62,
27432,
13,
39491,
1600,
198,
220,
220,
220,
352,
68,
12,
18,
11,
198,
220,
220,
220,
657,
13,
2713,
11,
198,
220,
220,
220,
657,
13,
16,
11,
198,
220,
220,
220,
8576,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
42268,
35,
8610,
62,
6015,
85,
16,
62,
50033,
16,
68,
12,
18,
62,
83,
559,
20,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
10987,
17320,
42268,
35,
8610,
7,
198,
220,
220,
220,
366,
7890,
14,
6015,
85,
16,
62,
27432,
13,
39491,
1600,
198,
220,
220,
220,
366,
7890,
14,
6015,
85,
16,
62,
27432,
13,
39491,
1600,
198,
220,
220,
220,
352,
68,
12,
18,
11,
198,
220,
220,
220,
657,
13,
2713,
11,
198,
220,
220,
220,
657,
13,
16,
11,
198,
220,
220,
220,
8576,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
17320,
42268,
35,
8610,
62,
6015,
85,
16,
62,
50033,
16,
68,
12,
18,
62,
83,
559,
20,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
198,
2,
220,
220,
285,
77,
396,
198,
2,
220,
220,
220,
220,
220,
220,
46651,
796,
657,
13,
18,
198,
10987,
42268,
35,
8610,
6144,
7,
198,
220,
220,
220,
366,
7890,
14,
10295,
396,
13,
9888,
1600,
198,
220,
220,
220,
366,
7890,
14,
10295,
396,
13,
9888,
13,
83,
1600,
198,
220,
220,
220,
352,
68,
12,
17,
11,
198,
220,
220,
220,
657,
13,
18,
11,
198,
220,
220,
220,
657,
13,
16,
11,
198,
220,
220,
220,
1802,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
42268,
35,
8610,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
18,
68,
12,
16,
13,
14116,
1,
198,
8,
198,
10987,
17320,
42268,
35,
8610,
6144,
7,
198,
220,
220,
220,
366,
7890,
14,
10295,
396,
13,
9888,
1600,
198,
220,
220,
220,
366,
7890,
14,
10295,
396,
13,
9888,
13,
83,
1600,
198,
220,
220,
220,
352,
68,
12,
17,
11,
198,
220,
220,
220,
657,
13,
18,
11,
198,
220,
220,
220,
657,
13,
16,
11,
198,
220,
220,
220,
1802,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
17320,
42268,
35,
8610,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
18,
68,
12,
16,
13,
14116,
1,
198,
8,
198,
2,
220,
220,
220,
220,
220,
220,
46651,
796,
657,
13,
16,
198,
10987,
42268,
35,
8610,
6144,
7,
198,
220,
220,
220,
366,
7890,
14,
10295,
396,
13,
9888,
1600,
198,
220,
220,
220,
366,
7890,
14,
10295,
396,
13,
9888,
13,
83,
1600,
198,
220,
220,
220,
352,
68,
12,
17,
11,
198,
220,
220,
220,
657,
13,
16,
11,
198,
220,
220,
220,
657,
13,
16,
11,
198,
220,
220,
220,
5323,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
42268,
35,
8610,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
16,
68,
12,
16,
13,
14116,
1,
198,
8,
198,
10987,
17320,
42268,
35,
8610,
6144,
7,
198,
220,
220,
220,
366,
7890,
14,
10295,
396,
13,
9888,
1600,
198,
220,
220,
220,
366,
7890,
14,
10295,
396,
13,
9888,
13,
83,
1600,
198,
220,
220,
220,
352,
68,
12,
17,
11,
198,
220,
220,
220,
657,
13,
16,
11,
198,
220,
220,
220,
657,
13,
16,
11,
198,
220,
220,
220,
5323,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
17320,
42268,
35,
8610,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
16,
68,
12,
16,
13,
14116,
1,
198,
8,
198,
2,
220,
220,
220,
220,
220,
220,
46651,
796,
657,
13,
2713,
198,
10987,
42268,
35,
8610,
6144,
7,
198,
220,
220,
220,
366,
7890,
14,
10295,
396,
13,
9888,
1600,
198,
220,
220,
220,
366,
7890,
14,
10295,
396,
13,
9888,
13,
83,
1600,
198,
220,
220,
220,
352,
68,
12,
17,
11,
198,
220,
220,
220,
657,
13,
2713,
11,
198,
220,
220,
220,
657,
13,
16,
11,
198,
220,
220,
220,
8576,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
42268,
35,
8610,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
20,
68,
12,
17,
13,
14116,
1,
198,
8,
198,
10987,
17320,
42268,
35,
8610,
6144,
7,
198,
220,
220,
220,
366,
7890,
14,
10295,
396,
13,
9888,
1600,
198,
220,
220,
220,
366,
7890,
14,
10295,
396,
13,
9888,
13,
83,
1600,
198,
220,
220,
220,
352,
68,
12,
17,
11,
198,
220,
220,
220,
657,
13,
2713,
11,
198,
220,
220,
220,
657,
13,
16,
11,
198,
220,
220,
220,
8576,
11,
198,
220,
220,
220,
366,
43420,
14,
11201,
17,
14,
17320,
42268,
35,
8610,
62,
10295,
396,
62,
50033,
16,
68,
12,
17,
62,
83,
559,
20,
68,
12,
17,
13,
14116,
1,
198,
8,
628
] | 1.887915 | 4,791 |
#
# Recursive Fourier Propagation for BoostFractor
#
# V: 2019-08-06
#
# Stefan Knirck
#
export dancer, dance_intro, cheerleader
"""
Propagates the fields through the system
* `amin`: Mimum (local) amplitude of a field, in order to be propagated
* `nmax`: Maximum number of beam iteration steps, directly equivalent to how many boundaries a beam 'sees' at most
* `bdry`: SetupBoundaries-Objekt, containing all relevant geometrical information (disk positions, epsilon, etc)
* `f`: Frequency
* `prop`: Propagator Function to use. Standard is propagator()
* `reflect`: If nothing (standar value), the axion-induced signal is computed.
If set, this field defines a beam, for which the reflected beam will be calculated
* `Xset`, `Yset`: Explicitly set the coordinate system for the fields
* `returnsum`: If false, the out-propagating contributions after each iteration will be returned, without summing.
* `immediatesum`: If false, the out-propagating contributions will be saved and summed up at the end.
"""
function dancer(amin, nmax, sbdry::SetupBoundaries, coords::CoordinateSystem; f=10.0e9, prop=propagator, emit=nothing, reflect=nothing, diskR=0.1, returnsum=true, immediatesum=true)
# Make dancer swallow the same SetupBoundaries object as cheerleader and transformer
bdry = deepcopy(sbdry)
bdry.eps = bdry.eps[2:end]
bdry.distance = bdry.distance[2:end]
bdry.relative_tilt_x = bdry.relative_tilt_x[2:end]
bdry.relative_tilt_y = bdry.relative_tilt_y[2:end]
bdry.relative_surfaces = bdry.relative_surfaces[2:end,:,:]
append!(bdry.r, 0.0)
rightmoving = 1
leftmoving = 2
fields = Array{Complex{Float64}}(zeros(length(bdry.distance), 2, length(coords.X), length(coords.Y)))
#fields = SharedArray(Complex{Float64}, length(bdry.distance), 2, length(coords.X), length(coords.Y))
# number of regions -----^ ^ ^
# number of propagation directions -------^ ^
# dimensions of the fields at each position -------------^
# Pre-allocate memory
if immediatesum
Eout = Array{Complex{Float64}}(zeros(length(coords.X), length(coords.Y),1))
else
Eout = Array{Complex{Float64}}(zeros(length(coords.X), length(coords.Y),nmax+1))
end
# TODO: propagation through and emission from last bdry to the right
if reflect === nothing
if emit === nothing
fields = dance_intro(bdry,coords;diskR=diskR)
else
fields = emit
end
# Eout =
else
fields[length(bdry.distance), leftmoving, :, :] = reflect
# Eout =
end
lambda = wavelength(f)
n = 0 # Iteration Count
a = 1.0 # Maximum Field Amplitude in the iteration
# The measure of music (Takt) .... da capo al fine
while n <= nmax && a >= amin
# The "legs" of the dancer dancing in parallel
# @sync is important to make sure that the outer loop waits for the inner one to finish...
#@sync @parallel
for i in 1:1:length(bdry.r)
# The beats
# Move left leg (rightmoving)
if i > 1
# In place propagate left leg:
fields[i-1,rightmoving,:,:] = prop(fields[i-1,rightmoving,:,:], bdry.distance[i-1], diskR, bdry.eps[i-1], bdry.relative_tilt_x[i-1], bdry.relative_tilt_y[i-1], bdry.relative_surfaces[i-1,:,:], lambda, coords)
end
# Move right leg (leftmoving)
if i < length(bdry.r)
fields[i,leftmoving,:,:] = prop(fields[i,leftmoving,:,:], bdry.distance[i], diskR, bdry.eps[i], bdry.relative_tilt_x[i], bdry.relative_tilt_y[i], bdry.relative_surfaces[i,:,:], lambda, coords)
end
# Reflection & Transmission
if i == 1 # Leftmost case
fields[i, leftmoving,:,:] .*= -bdry.r[i]
# The right-moving does not exist and about the transmitted one we dont care (yet)
elseif i == length(bdry.r) # Rightmost case
# The rightmoving is transmitted to Eout (yeah! that'll be our result!)
# old version without pre-allocation
#Eout = cat(3,Eout, (1+bdry.r[i])*fields[i-1, rightmoving,:,:])
# with pre-allocated array:
if immediatesum
Eout[:,:,1] .+= (1+bdry.r[i]).*fields[i-1, rightmoving,:,:]
else
Eout[:,:,n+1] = (1+bdry.r[i]).*fields[i-1, rightmoving,:,:]
end
# And reflected as well.
fields[i-1, rightmoving,:,:] .*= bdry.r[i]
else # Standard Case
# field(i-1) = transmit(field(i)) + reflect(field(i-1))
# field(i) = transmit(field(i-1)) + reflect(field(i))
# Basically the above, but as much in-place as possible
# Always the field on the left gets a copy
FieldArrivedLeft = copy(fields[i-1, rightmoving,:,:])
# Then we in-place update it
fields[i-1, rightmoving,:,:] .*= bdry.r[i]
fields[i-1, rightmoving,:,:] .+= (1-bdry.r[i]).*fields[i, leftmoving,:,:]
# Then we in-place update the other one with the previously made backup
fields[i, leftmoving,:,:] .*= -bdry.r[i]
fields[i, leftmoving,:,:] .+= (1+bdry.r[i]).*FieldArrivedLeft
end
end
# Now the directions have changed
lmv = copy(leftmoving)
leftmoving = rightmoving
rightmoving = lmv
# a is the maximum field that still occurs in the system
if amin != 0
a = maximum(abs.(fields))
end
# n is the iteration count
n += 1
end
# Dance Outro
# The summation at the end is to give the opportunity to intelligently sum
# since different rays might have very different orders of magnitude
# The other reason is, that we are able to return the different components
# such that we can get immediate access to less accurate results
# TODO: See if Julia is really using the most intelligent summing strategy
if returnsum
return sum(reverse(Eout, dims = 3), dims = 3)[:,:,1]
else
return Eout
end
end
"""
dance_intro(bdry::SetupBoundaries, X, Y; bfield=nothing, velocity_x=0, f=10e9,diskR=0.1)
Initialize EM fields. Can include velocity effects.
"""
function dance_intro(bdry::SetupBoundaries, coords::CoordinateSystem; bfield=nothing, velocity_x=0, f=10e9,diskR=0.1)
# Initialize the variable we want to return
fields_initial = Array{Complex{Float64}}(zeros(length(bdry.distance), 2, length(coords.X), length(coords.Y)))
# Inaccuracies of the emitted fields, BField and Velocity Effects ###################
if bfield === nothing
# Make sure that there is only emission on the disk surfaces
bfield = [x^2 + y^2 > diskR^2 ? 0.0 : 1.0 for z in ones(length(bdry.distance)+1), x in coords.X, y in coords.Y]
end
if velocity_x != 0
lambda = wavelength(f)
Ma_PerMeter = 2pi/lambda # k = 2pi/lambda (c/f = lambda)
bfield .*= [exp(-1im*Ma_PerMeter*(-velocity_x)*x) for z in ones(length(bdry.distance)+1), x in coords.X, y in coords.Y]
end
####################################################################################
# Iterate over the gaps and initialize the emissions from them #####################
# This implements Theoretical Foundations (arxiv: 1612.07057) (3.3)
for n in 1:length(bdry.distance)
ax_rightmoving = 0
if n == 1
if bdry.r[1] == 1
ax_rightmoving = -1.0
else #TODO
ax_rightmoving = 0
end
else
# Right-Moving in that gap
eps_i = bdry.eps[n-1]
eps_m = bdry.eps[n]
denominator = eps_i * sqrt(eps_m) + eps_m * sqrt(eps_i)
#ax_i = sqrt(eps_i) * (1 - eps_m/eps_i) / denominator + 0im
ax_rightmoving = sqrt(eps_m) * (1 - eps_i/eps_m) / denominator +0.0im
end
# Left-Moving in that gap
eps_i = bdry.eps[n]
eps_m = (n == length(bdry.distance)) ? 1 : bdry.eps[n+1] # Rightmost epsilon is 1.
denominator = eps_i * sqrt(eps_m) + eps_m * sqrt(eps_i)
ax_leftmoving = sqrt(eps_i) * (1 - eps_m/eps_i) / denominator +0.0im
#ax_m = sqrt(eps_m) * (1 - eps_i/eps_m) / denominator +0.0im
# Fill the initial array
fields_initial[n,1,:,:] = [1.0*ax_rightmoving + 0.0im for x in coords.X, y in coords.Y] .* bfield[n,:,:]
fields_initial[n,2,:,:] = [1.0*ax_leftmoving + 0.0im for x in coords.X, y in coords.Y] .* bfield[n+1,:,:]
end
return fields_initial
end
"""
cheerleader(amin, nmax, bdry::SetupBoundaries; f=10.0e9, prop=propagator, emit=nothing, reflect=nothing, Xset=X, Yset=Y, diskR=0.1, returnboth=false)
New Recursive Fourier Propagation implementation.
# Arguments:
- `amin`: Mimum (local) amplitude of a field, in order to be propagated
- `nmax`: Maximum number of beam iteration steps, directly equivalent to how many boundaries a beam 'sees' at most
- `bdry::SetupBoundaries`: Properties of dielectric boundaries
- `f::Float64` ```> 0```: Frequency of EM radiation
- `prop`: Propagator Function to use. Standard is propagator().
- `emit`: Explicitly set the axion-induced fields emitted from each boundary (to the left and to the right).
If ``nothing`` fields are initialized according to uniform,
homogeneous external B-field with zero axion velocity.
- `reflect`: If `nothing` (standar value), the axion-induced signal is computed.
If set, this field defines a beam, for which the reflected beam will be calculated
- `Xset` and `Yset`: Explicitly set the coordinate system for the fields
- `diskR`: Radius of dielectric disk
- `returnboth::Bool`: If `true` cheerleader returns fields leaving on left and right.
If `false` only returns fields leaving on right.
See [`dancer`](@ref) for old version.
"""
function cheerleader(amin, nmax, bdry::SetupBoundaries, coords::CoordinateSystem; f=10.0e9, prop=propagator, emit=nothing, reflect=nothing, diskR=0.1, returnboth=false)
# Before speed of light was 3e8 here, but this means an error at the permil level, i.e. order ~20MHz at 20GHz,
# if fixing lambda to 1.5 cm, one gets a shift of roughly 10MHz
lambda = wavelength(f)
# Pre-allocate memory
# Note that fields[0,:,:] contains the fields leaving the system on the left
# and fields[length(bdry.distance)+1,:,:] the fields leaving on the right
#fields = OffsetArray(::Array{Complex{Float64}}}, 0:length(bdry.distance)+1, 1:length(X), 1:length(Y))
fields = Array{Complex{Float64}}(zeros( length(bdry.distance)+2, length(coords.X), length(coords.Y)))
# number of regions + 2 outporpagating --^ ^
# dimensions of the fields at each position ------------------------------^
# In a next step this could/should be generalized in the SetupBoundaries structure..
reflectivities_leftmoving = -bdry.r
reflectivities_rightmoving = bdry.r
transmissivities_leftmoving = 1 .- bdry.r
transmissivities_rightmoving = 1 .+ bdry.r
### Indexing of arrays, note the specific indexing of the regions, different from dancer()!.
#Boundaries: [ 1, 2, 3, 4 ]
# ####### | | | | #######
# # <-- # | | | | # --> #
# ####### | | | | #######
#Regions: [ 1 , 2 , 3 , 4 , 5 ]
# emit in this function expects for each region left- and right-propagating fields.
# Note that this is different from dancer() since here we do not take the mirror
# explicit, such that also a transmissivity can be calculated
# TODO: propagation through and emission from last bdry to the right
if reflect === nothing
if emit === nothing
emit = Array{Complex{Float64}}(zeros(length(bdry.distance), 2, length(coords.X), length(coords.Y)))
# we may reuse the dance_intro-function in the standard case
bdrycpy = deepcopy(bdry)
bdrycpy.distance = bdrycpy.distance[2:end]
bdrycpy.eps = bdrycpy.eps[2:end]
emit[2:end,:,:,:] = dance_intro(bdrycpy,coords,diskR=diskR)
end
else
emit = Array{Complex{Float64}}(zeros(length(bdry.distance), 2, length(coords.X), length(coords.Y)))
# This should be right like this, it is explicitly taken care of at the bottom...
emit[length(bdry.distance), 2, :, :] = reflect
end
# Initialize fields ........................................
# Add everything which is emitted to the right
fields = copy(emit[:,1,:,:])
# Push forward the fields rightmoving...
for i in 2:1:length(bdry.distance)-1
# Propagate to the right
fields[i,:,:] = prop(fields[i,:,:], bdry.distance[i], diskR, bdry.eps[i], bdry.relative_tilt_x[i], bdry.relative_tilt_y[i], bdry.relative_surfaces[i,:,:], lambda, coords)
# Reflect and Transmit
fields[i+1,:,:] .+= transmissivities_rightmoving[i].*fields[i,:,:]
fields[i,:,:] .*= reflectivities_rightmoving[i]
end
# Add everything which is emitted to the left (except last gap)
fields[1:length(bdry.distance)-1,:,:] .+= emit[1:length(bdry.distance)-1,2,:,:]
#fields .+= emit[:,2,:,:]
# The last gap is not supposed to contain left-propagating stuff,
# so we have to treat it explicitly (not elegant, but ok)
let i = length(bdry.distance)-1
# Transmit
fields[i,:,:] .+= transmissivities_leftmoving[i].*emit[i+1,2,:,:]
# Reflect
fields[i+1,:,:] .+= reflectivities_leftmoving[i].*emit[i+1,2,:,:]
end
# Main iterations ...............................................
n = 0 # Iteration Count
a = 1.0 # Maximum Field Amplitude in the iteration
while n <= nmax && a >= amin
# Iterate over regions
# The first region explicitly
let i = 1
# Do NOT Propagate to the fields in the current gap to the right
# Region 1 always contains left-moving fields.
# Propagate to the fields in the next gap to the left
fields[i+1,:,:] = prop(fields[i+1,:,:], bdry.distance[i+1], diskR, bdry.eps[i+1], bdry.relative_tilt_x[i+1], bdry.relative_tilt_y[i+1], bdry.relative_surfaces[i+1,:,:], lambda, coords)
# Reflect and Transmit
# No backup copy needed since nothing is coming from the i = 1 region
# Transmit
fields[i,:,:] .+= transmissivities_leftmoving[i].*fields[i+1,:,:]
# Reflect
fields[i+1,:,:] .*= reflectivities_leftmoving[i]
end
# Push forward...
for i in 2:1:length(bdry.distance)-2
# Propagate to the fields in the current gap to the right
fields[i,:,:] = prop(fields[i,:,:], bdry.distance[i], diskR, bdry.eps[i], bdry.relative_tilt_x[i], bdry.relative_tilt_y[i], bdry.relative_surfaces[i,:,:], lambda, coords)
# Propagate to the fields in the next gap to the left
fields[i+1,:,:] = prop(fields[i+1,:,:], bdry.distance[i+1], diskR, bdry.eps[i+1], bdry.relative_tilt_x[i+1], bdry.relative_tilt_y[i+1], bdry.relative_surfaces[i+1,:,:], lambda, coords)
# Reflect and Transmit
fields_next_gap_copy = copy(fields[i+1,:,:])
fields[i+1,:,:] .*= reflectivities_leftmoving[i]
fields[i+1,:,:] .+= transmissivities_rightmoving[i].*fields[i,:,:]
fields[i,:,:] .*= reflectivities_rightmoving[i]
fields[i,:,:] .+= transmissivities_leftmoving[i].*fields_next_gap_copy
end
let i = length(bdry.distance)-1
# Propagate to the fields in the current gap to the right
fields[i,:,:] = prop(fields[i,:,:], bdry.distance[i], diskR, bdry.eps[i], bdry.relative_tilt_x[i], bdry.relative_tilt_y[i], bdry.relative_surfaces[i,:,:], lambda, coords)
# DO NOT Propagate to the fields in the next gap to the left
# Since it only contains fields propagating to the right
# Reflect and Transmit
fields[i+1,:,:] .+= transmissivities_rightmoving[i].*fields[i,:,:]
fields[i,:,:] .*= reflectivities_rightmoving[i]
end
# The last region always contains right-moving fields and is automatically added up correctly
# Check convergence
if amin != 0
a = maximum(abs.(fields))
end
# n is the iteration count
n += 1
end
if returnboth
return fields[1,:,:], fields[length(bdry.distance),:,:]
else
return fields[length(bdry.distance),:,:]
end
end
| [
2,
198,
2,
3311,
30753,
34296,
5277,
8772,
363,
341,
329,
19835,
37,
40450,
198,
2,
198,
2,
569,
25,
13130,
12,
2919,
12,
3312,
198,
2,
198,
2,
28842,
6102,
343,
694,
198,
2,
198,
198,
39344,
38619,
11,
9280,
62,
600,
305,
11,
14042,
27940,
198,
198,
37811,
198,
24331,
363,
689,
262,
7032,
832,
262,
1080,
198,
198,
9,
4600,
5669,
63,
25,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
337,
2847,
357,
12001,
8,
37188,
286,
257,
2214,
11,
287,
1502,
284,
307,
8928,
515,
198,
9,
4600,
77,
9806,
63,
25,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
22246,
1271,
286,
15584,
24415,
4831,
11,
3264,
7548,
284,
703,
867,
13215,
257,
15584,
705,
325,
274,
6,
379,
749,
198,
9,
4600,
17457,
563,
63,
25,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31122,
49646,
3166,
12,
49201,
988,
83,
11,
7268,
477,
5981,
4903,
908,
8143,
1321,
357,
39531,
6116,
11,
304,
862,
33576,
11,
3503,
8,
198,
9,
4600,
69,
63,
25,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31902,
198,
9,
4600,
22930,
63,
25,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8772,
363,
1352,
15553,
284,
779,
13,
8997,
318,
8928,
1352,
3419,
198,
9,
4600,
35051,
63,
25,
220,
220,
220,
220,
220,
220,
220,
1002,
2147,
357,
1481,
283,
1988,
828,
262,
7877,
295,
12,
17223,
6737,
318,
29231,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1002,
900,
11,
428,
2214,
15738,
257,
15584,
11,
329,
543,
262,
12548,
15584,
481,
307,
10488,
198,
9,
4600,
55,
2617,
47671,
4600,
56,
2617,
63,
25,
220,
220,
11884,
306,
900,
262,
20435,
1080,
329,
262,
7032,
198,
9,
4600,
7783,
16345,
63,
25,
220,
220,
220,
220,
220,
1002,
3991,
11,
262,
503,
12,
22930,
363,
803,
9284,
706,
1123,
24415,
481,
307,
4504,
11,
1231,
2160,
2229,
13,
198,
9,
4600,
320,
2379,
689,
388,
63,
25,
220,
220,
1002,
3991,
11,
262,
503,
12,
22930,
363,
803,
9284,
481,
307,
7448,
290,
32794,
510,
379,
262,
886,
13,
198,
37811,
198,
8818,
38619,
7,
5669,
11,
299,
9806,
11,
264,
17457,
563,
3712,
40786,
49646,
3166,
11,
763,
3669,
3712,
7222,
45480,
11964,
26,
277,
28,
940,
13,
15,
68,
24,
11,
2632,
28,
22930,
363,
1352,
11,
27588,
28,
22366,
11,
4079,
28,
22366,
11,
11898,
49,
28,
15,
13,
16,
11,
5860,
388,
28,
7942,
11,
2729,
689,
388,
28,
7942,
8,
628,
220,
220,
220,
1303,
6889,
38619,
26633,
262,
976,
31122,
49646,
3166,
2134,
355,
14042,
27940,
290,
47385,
198,
220,
220,
220,
275,
39140,
796,
2769,
30073,
7,
82,
17457,
563,
8,
198,
220,
220,
220,
275,
39140,
13,
25386,
796,
275,
39140,
13,
25386,
58,
17,
25,
437,
60,
198,
220,
220,
220,
275,
39140,
13,
30246,
796,
275,
39140,
13,
30246,
58,
17,
25,
437,
60,
198,
220,
220,
220,
275,
39140,
13,
43762,
62,
83,
2326,
62,
87,
796,
275,
39140,
13,
43762,
62,
83,
2326,
62,
87,
58,
17,
25,
437,
60,
198,
220,
220,
220,
275,
39140,
13,
43762,
62,
83,
2326,
62,
88,
796,
275,
39140,
13,
43762,
62,
83,
2326,
62,
88,
58,
17,
25,
437,
60,
198,
220,
220,
220,
275,
39140,
13,
43762,
62,
11793,
32186,
796,
275,
39140,
13,
43762,
62,
11793,
32186,
58,
17,
25,
437,
11,
45299,
47715,
198,
220,
220,
220,
24443,
0,
7,
17457,
563,
13,
81,
11,
657,
13,
15,
8,
628,
220,
220,
220,
826,
31462,
796,
352,
198,
220,
220,
220,
1364,
31462,
796,
362,
628,
220,
220,
220,
7032,
796,
15690,
90,
5377,
11141,
90,
43879,
2414,
11709,
7,
9107,
418,
7,
13664,
7,
17457,
563,
13,
30246,
828,
362,
11,
4129,
7,
1073,
3669,
13,
55,
828,
4129,
7,
1073,
3669,
13,
56,
22305,
198,
220,
220,
220,
1303,
25747,
796,
39403,
19182,
7,
5377,
11141,
90,
43879,
2414,
5512,
220,
4129,
7,
17457,
563,
13,
30246,
828,
362,
11,
4129,
7,
1073,
3669,
13,
55,
828,
4129,
7,
1073,
3669,
13,
56,
4008,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
286,
7652,
37404,
61,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10563,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10563,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
286,
43594,
11678,
35656,
61,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10563,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
15225,
286,
262,
7032,
379,
1123,
2292,
220,
32501,
61,
628,
220,
220,
220,
1303,
3771,
12,
439,
13369,
4088,
198,
220,
220,
220,
611,
2729,
689,
388,
198,
220,
220,
220,
220,
220,
220,
220,
412,
448,
796,
15690,
90,
5377,
11141,
90,
43879,
2414,
11709,
7,
9107,
418,
7,
13664,
7,
1073,
3669,
13,
55,
828,
4129,
7,
1073,
3669,
13,
56,
828,
16,
4008,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
412,
448,
796,
15690,
90,
5377,
11141,
90,
43879,
2414,
11709,
7,
9107,
418,
7,
13664,
7,
1073,
3669,
13,
55,
828,
4129,
7,
1073,
3669,
13,
56,
828,
77,
9806,
10,
16,
4008,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1303,
16926,
46,
25,
43594,
832,
290,
25592,
422,
938,
275,
39140,
284,
262,
826,
198,
220,
220,
220,
611,
4079,
24844,
2147,
198,
220,
220,
220,
220,
220,
220,
220,
611,
27588,
24844,
2147,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
796,
9280,
62,
600,
305,
7,
17457,
563,
11,
1073,
3669,
26,
39531,
49,
28,
39531,
49,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
796,
27588,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
412,
448,
796,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
13664,
7,
17457,
563,
13,
30246,
828,
1364,
31462,
11,
1058,
11,
1058,
60,
796,
4079,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
412,
448,
796,
198,
220,
220,
220,
886,
628,
220,
220,
220,
37456,
796,
28400,
7,
69,
8,
628,
220,
220,
220,
299,
796,
657,
220,
220,
1303,
40806,
341,
2764,
198,
220,
220,
220,
257,
796,
352,
13,
15,
1303,
22246,
7663,
44074,
3984,
287,
262,
24415,
628,
220,
220,
220,
1303,
383,
3953,
286,
2647,
357,
51,
461,
83,
8,
19424,
12379,
1451,
78,
435,
3734,
198,
220,
220,
220,
981,
299,
19841,
299,
9806,
11405,
257,
18189,
716,
259,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
383,
366,
1455,
82,
1,
286,
262,
38619,
15360,
287,
10730,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2488,
27261,
318,
1593,
284,
787,
1654,
326,
262,
12076,
9052,
28364,
329,
262,
8434,
530,
284,
5461,
986,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
31,
27261,
2488,
1845,
29363,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
352,
25,
16,
25,
13664,
7,
17457,
563,
13,
81,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
383,
17825,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
10028,
1364,
1232,
357,
3506,
31462,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1312,
1875,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
554,
1295,
47933,
1364,
1232,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
12,
16,
11,
3506,
31462,
11,
45299,
47715,
796,
2632,
7,
25747,
58,
72,
12,
16,
11,
3506,
31462,
11,
45299,
25,
4357,
275,
39140,
13,
30246,
58,
72,
12,
16,
4357,
11898,
49,
11,
275,
39140,
13,
25386,
58,
72,
12,
16,
4357,
275,
39140,
13,
43762,
62,
83,
2326,
62,
87,
58,
72,
12,
16,
4357,
275,
39140,
13,
43762,
62,
83,
2326,
62,
88,
58,
72,
12,
16,
4357,
275,
39140,
13,
43762,
62,
11793,
32186,
58,
72,
12,
16,
11,
45299,
25,
4357,
37456,
11,
763,
3669,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
10028,
826,
1232,
357,
9464,
31462,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1312,
1279,
4129,
7,
17457,
563,
13,
81,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
11,
9464,
31462,
11,
45299,
47715,
796,
2632,
7,
25747,
58,
72,
11,
9464,
31462,
11,
45299,
25,
4357,
275,
39140,
13,
30246,
58,
72,
4357,
11898,
49,
11,
275,
39140,
13,
25386,
58,
72,
4357,
275,
39140,
13,
43762,
62,
83,
2326,
62,
87,
58,
72,
4357,
275,
39140,
13,
43762,
62,
83,
2326,
62,
88,
58,
72,
4357,
275,
39140,
13,
43762,
62,
11793,
32186,
58,
72,
11,
45299,
25,
4357,
37456,
11,
763,
3669,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
6524,
1564,
1222,
41653,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1312,
6624,
352,
1303,
9578,
1712,
1339,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
11,
1364,
31462,
11,
45299,
47715,
764,
9,
28,
532,
17457,
563,
13,
81,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
383,
826,
12,
31462,
857,
407,
2152,
290,
546,
262,
18307,
530,
356,
17666,
1337,
357,
25907,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
1312,
6624,
4129,
7,
17457,
563,
13,
81,
8,
1303,
6498,
1712,
1339,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
383,
826,
31462,
318,
18307,
284,
412,
448,
357,
43669,
0,
326,
1183,
307,
674,
1255,
8133,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1468,
2196,
1231,
662,
12,
439,
5040,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
36,
448,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
3797,
7,
18,
11,
36,
448,
11,
357,
16,
10,
17457,
563,
13,
81,
58,
72,
12962,
9,
25747,
58,
72,
12,
16,
11,
826,
31462,
11,
45299,
25,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
351,
662,
12,
439,
10533,
7177,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2729,
689,
388,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
412,
448,
58,
45299,
45299,
16,
60,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
764,
47932,
357,
16,
10,
17457,
563,
13,
81,
58,
72,
35944,
9,
25747,
58,
72,
12,
16,
11,
826,
31462,
11,
45299,
47715,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
412,
448,
58,
45299,
45299,
77,
10,
16,
60,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
357,
16,
10,
17457,
563,
13,
81,
58,
72,
35944,
9,
25747,
58,
72,
12,
16,
11,
826,
31462,
11,
45299,
47715,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
843,
12548,
355,
880,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
12,
16,
11,
826,
31462,
11,
45299,
47715,
764,
9,
28,
275,
39140,
13,
81,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
1303,
8997,
8913,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2214,
7,
72,
12,
16,
8,
796,
21937,
7,
3245,
7,
72,
4008,
1343,
4079,
7,
3245,
7,
72,
12,
16,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2214,
7,
72,
8,
796,
21937,
7,
3245,
7,
72,
12,
16,
4008,
1343,
4079,
7,
3245,
7,
72,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
20759,
262,
2029,
11,
475,
355,
881,
287,
12,
5372,
355,
1744,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
16622,
262,
2214,
319,
262,
1364,
3011,
257,
4866,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7663,
3163,
36207,
18819,
796,
4866,
7,
25747,
58,
72,
12,
16,
11,
826,
31462,
11,
45299,
25,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3244,
356,
287,
12,
5372,
4296,
340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
12,
16,
11,
826,
31462,
11,
45299,
47715,
764,
9,
28,
275,
39140,
13,
81,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
12,
16,
11,
826,
31462,
11,
45299,
47715,
764,
47932,
357,
16,
12,
17457,
563,
13,
81,
58,
72,
35944,
9,
25747,
58,
72,
11,
1364,
31462,
11,
45299,
47715,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3244,
356,
287,
12,
5372,
4296,
262,
584,
530,
351,
262,
4271,
925,
11559,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
11,
1364,
31462,
11,
45299,
47715,
764,
9,
28,
532,
17457,
563,
13,
81,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
11,
1364,
31462,
11,
45299,
47715,
764,
47932,
357,
16,
10,
17457,
563,
13,
81,
58,
72,
35944,
9,
15878,
3163,
36207,
18819,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2735,
262,
11678,
423,
3421,
198,
220,
220,
220,
220,
220,
220,
220,
300,
76,
85,
796,
4866,
7,
9464,
31462,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1364,
31462,
796,
826,
31462,
198,
220,
220,
220,
220,
220,
220,
220,
826,
31462,
796,
300,
76,
85,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
257,
318,
262,
5415,
2214,
326,
991,
8833,
287,
262,
1080,
198,
220,
220,
220,
220,
220,
220,
220,
611,
716,
259,
14512,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
257,
796,
5415,
7,
8937,
12195,
25747,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
299,
318,
262,
24415,
954,
198,
220,
220,
220,
220,
220,
220,
220,
299,
15853,
352,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1303,
17349,
3806,
305,
198,
220,
220,
220,
1303,
383,
30114,
341,
379,
262,
886,
318,
284,
1577,
262,
3663,
284,
10878,
1473,
2160,
198,
220,
220,
220,
1303,
1201,
1180,
24823,
1244,
423,
845,
1180,
6266,
286,
14735,
198,
220,
220,
220,
1303,
383,
584,
1738,
318,
11,
326,
356,
389,
1498,
284,
1441,
262,
1180,
6805,
198,
220,
220,
220,
1303,
884,
326,
356,
460,
651,
7103,
1895,
284,
1342,
7187,
2482,
198,
220,
220,
220,
1303,
16926,
46,
25,
4091,
611,
22300,
318,
1107,
1262,
262,
749,
12661,
2160,
2229,
4811,
198,
220,
220,
220,
611,
5860,
388,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2160,
7,
50188,
7,
36,
448,
11,
5391,
82,
796,
513,
828,
5391,
82,
796,
513,
38381,
45299,
45299,
16,
60,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
412,
448,
198,
220,
220,
220,
886,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
9280,
62,
600,
305,
7,
17457,
563,
3712,
40786,
49646,
3166,
11,
1395,
11,
575,
26,
275,
3245,
28,
22366,
11,
15432,
62,
87,
28,
15,
11,
277,
28,
940,
68,
24,
11,
39531,
49,
28,
15,
13,
16,
8,
198,
198,
24243,
1096,
17228,
7032,
13,
1680,
2291,
15432,
3048,
13,
198,
37811,
198,
8818,
9280,
62,
600,
305,
7,
17457,
563,
3712,
40786,
49646,
3166,
11,
763,
3669,
3712,
7222,
45480,
11964,
26,
275,
3245,
28,
22366,
11,
15432,
62,
87,
28,
15,
11,
277,
28,
940,
68,
24,
11,
39531,
49,
28,
15,
13,
16,
8,
198,
220,
220,
220,
1303,
20768,
1096,
262,
7885,
356,
765,
284,
1441,
198,
220,
220,
220,
7032,
62,
36733,
796,
15690,
90,
5377,
11141,
90,
43879,
2414,
11709,
7,
9107,
418,
7,
13664,
7,
17457,
563,
13,
30246,
828,
362,
11,
4129,
7,
1073,
3669,
13,
55,
828,
4129,
7,
1073,
3669,
13,
56,
22305,
628,
220,
220,
220,
1303,
554,
4134,
333,
13433,
286,
262,
31234,
7032,
11,
347,
15878,
290,
43137,
17417,
1303,
14468,
2235,
198,
220,
220,
220,
611,
275,
3245,
24844,
2147,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
6889,
1654,
326,
612,
318,
691,
25592,
319,
262,
11898,
16649,
198,
220,
220,
220,
220,
220,
220,
220,
275,
3245,
796,
685,
87,
61,
17,
1343,
331,
61,
17,
1875,
11898,
49,
61,
17,
5633,
657,
13,
15,
1058,
352,
13,
15,
329,
1976,
287,
3392,
7,
13664,
7,
17457,
563,
13,
30246,
47762,
16,
828,
2124,
287,
763,
3669,
13,
55,
11,
331,
287,
763,
3669,
13,
56,
60,
198,
220,
220,
220,
886,
198,
220,
220,
220,
611,
15432,
62,
87,
14512,
657,
198,
220,
220,
220,
220,
220,
220,
220,
37456,
796,
28400,
7,
69,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6669,
62,
5990,
44,
2357,
796,
362,
14415,
14,
50033,
1303,
479,
796,
362,
14415,
14,
50033,
357,
66,
14,
69,
796,
37456,
8,
198,
220,
220,
220,
220,
220,
220,
220,
275,
3245,
764,
9,
28,
685,
11201,
32590,
16,
320,
9,
21467,
62,
5990,
44,
2357,
9,
32590,
626,
11683,
62,
87,
27493,
87,
8,
329,
1976,
287,
3392,
7,
13664,
7,
17457,
563,
13,
30246,
47762,
16,
828,
2124,
287,
763,
3669,
13,
55,
11,
331,
287,
763,
3669,
13,
56,
60,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1303,
29113,
29113,
14468,
21017,
628,
220,
220,
220,
1303,
40806,
378,
625,
262,
17332,
290,
41216,
262,
8971,
422,
606,
1303,
14468,
4242,
198,
220,
220,
220,
1303,
770,
23986,
383,
9997,
605,
4062,
602,
357,
283,
87,
452,
25,
1467,
1065,
13,
43509,
3553,
8,
357,
18,
13,
18,
8,
198,
220,
220,
220,
329,
299,
287,
352,
25,
13664,
7,
17457,
563,
13,
30246,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7877,
62,
3506,
31462,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
611,
299,
6624,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
275,
39140,
13,
81,
58,
16,
60,
6624,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7877,
62,
3506,
31462,
796,
532,
16,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
1303,
51,
3727,
46,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7877,
62,
3506,
31462,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
6498,
12,
33622,
287,
326,
7625,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
304,
862,
62,
72,
796,
275,
39140,
13,
25386,
58,
77,
12,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
304,
862,
62,
76,
796,
275,
39140,
13,
25386,
58,
77,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31457,
1352,
796,
304,
862,
62,
72,
1635,
19862,
17034,
7,
25386,
62,
76,
8,
1343,
304,
862,
62,
76,
1635,
19862,
17034,
7,
25386,
62,
72,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
897,
62,
72,
796,
19862,
17034,
7,
25386,
62,
72,
8,
1635,
357,
16,
532,
304,
862,
62,
76,
14,
25386,
62,
72,
8,
1220,
31457,
1352,
1343,
657,
320,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7877,
62,
3506,
31462,
796,
19862,
17034,
7,
25386,
62,
76,
8,
1635,
357,
16,
532,
304,
862,
62,
72,
14,
25386,
62,
76,
8,
1220,
31457,
1352,
1343,
15,
13,
15,
320,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
9578,
12,
33622,
287,
326,
7625,
198,
220,
220,
220,
220,
220,
220,
220,
304,
862,
62,
72,
796,
275,
39140,
13,
25386,
58,
77,
60,
198,
220,
220,
220,
220,
220,
220,
220,
304,
862,
62,
76,
796,
357,
77,
6624,
4129,
7,
17457,
563,
13,
30246,
4008,
5633,
352,
1058,
275,
39140,
13,
25386,
58,
77,
10,
16,
60,
1303,
6498,
1712,
304,
862,
33576,
318,
352,
13,
198,
220,
220,
220,
220,
220,
220,
220,
31457,
1352,
796,
304,
862,
62,
72,
1635,
19862,
17034,
7,
25386,
62,
76,
8,
1343,
304,
862,
62,
76,
1635,
19862,
17034,
7,
25386,
62,
72,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7877,
62,
9464,
31462,
796,
19862,
17034,
7,
25386,
62,
72,
8,
1635,
357,
16,
532,
304,
862,
62,
76,
14,
25386,
62,
72,
8,
1220,
31457,
1352,
1343,
15,
13,
15,
320,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
897,
62,
76,
796,
19862,
17034,
7,
25386,
62,
76,
8,
1635,
357,
16,
532,
304,
862,
62,
72,
14,
25386,
62,
76,
8,
1220,
31457,
1352,
1343,
15,
13,
15,
320,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
27845,
262,
4238,
7177,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
62,
36733,
58,
77,
11,
16,
11,
45299,
47715,
796,
685,
16,
13,
15,
9,
897,
62,
3506,
31462,
1343,
657,
13,
15,
320,
329,
2124,
287,
763,
3669,
13,
55,
11,
331,
287,
763,
3669,
13,
56,
60,
764,
9,
275,
3245,
58,
77,
11,
45299,
47715,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
62,
36733,
58,
77,
11,
17,
11,
45299,
47715,
796,
685,
16,
13,
15,
9,
897,
62,
9464,
31462,
1343,
657,
13,
15,
320,
329,
2124,
287,
763,
3669,
13,
55,
11,
331,
287,
763,
3669,
13,
56,
60,
764,
9,
275,
3245,
58,
77,
10,
16,
11,
45299,
47715,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1441,
7032,
62,
36733,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
14042,
27940,
7,
5669,
11,
299,
9806,
11,
275,
39140,
3712,
40786,
49646,
3166,
26,
277,
28,
940,
13,
15,
68,
24,
11,
2632,
28,
22930,
363,
1352,
11,
27588,
28,
22366,
11,
4079,
28,
22366,
11,
1395,
2617,
28,
55,
11,
575,
2617,
28,
56,
11,
11898,
49,
28,
15,
13,
16,
11,
1441,
16885,
28,
9562,
8,
198,
198,
3791,
3311,
30753,
34296,
5277,
8772,
363,
341,
7822,
13,
198,
198,
2,
20559,
2886,
25,
198,
12,
4600,
5669,
63,
25,
337,
2847,
357,
12001,
8,
37188,
286,
257,
2214,
11,
287,
1502,
284,
307,
8928,
515,
198,
12,
4600,
77,
9806,
63,
25,
22246,
1271,
286,
15584,
24415,
4831,
11,
3264,
7548,
284,
703,
867,
13215,
257,
15584,
705,
325,
274,
6,
379,
749,
198,
12,
4600,
17457,
563,
3712,
40786,
49646,
3166,
63,
25,
24946,
286,
4656,
801,
1173,
13215,
198,
12,
4600,
69,
3712,
43879,
2414,
63,
7559,
63,
29,
657,
15506,
63,
25,
31902,
286,
17228,
11881,
198,
12,
4600,
22930,
63,
25,
8772,
363,
1352,
15553,
284,
779,
13,
8997,
318,
8928,
1352,
22446,
198,
12,
4600,
368,
270,
63,
25,
220,
11884,
306,
900,
262,
7877,
295,
12,
17223,
7032,
31234,
422,
1123,
18645,
357,
1462,
262,
1364,
290,
284,
262,
826,
737,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1002,
7559,
22366,
15506,
7032,
389,
23224,
1864,
284,
8187,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3488,
32269,
7097,
347,
12,
3245,
351,
6632,
7877,
295,
15432,
13,
198,
12,
4600,
35051,
63,
25,
1002,
4600,
22366,
63,
357,
1481,
283,
1988,
828,
262,
7877,
295,
12,
17223,
6737,
318,
29231,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1002,
900,
11,
428,
2214,
15738,
257,
15584,
11,
329,
543,
262,
12548,
15584,
481,
307,
10488,
198,
12,
4600,
55,
2617,
63,
290,
4600,
56,
2617,
63,
25,
11884,
306,
900,
262,
20435,
1080,
329,
262,
7032,
198,
12,
4600,
39531,
49,
63,
25,
48838,
286,
4656,
801,
1173,
11898,
198,
12,
4600,
7783,
16885,
3712,
33,
970,
63,
25,
1002,
4600,
7942,
63,
14042,
27940,
5860,
7032,
4305,
319,
1364,
290,
826,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1002,
4600,
9562,
63,
691,
5860,
7032,
4305,
319,
826,
13,
198,
198,
6214,
685,
63,
67,
8250,
63,
16151,
31,
5420,
8,
329,
1468,
2196,
13,
198,
37811,
198,
8818,
14042,
27940,
7,
5669,
11,
299,
9806,
11,
275,
39140,
3712,
40786,
49646,
3166,
11,
763,
3669,
3712,
7222,
45480,
11964,
26,
277,
28,
940,
13,
15,
68,
24,
11,
2632,
28,
22930,
363,
1352,
11,
27588,
28,
22366,
11,
4079,
28,
22366,
11,
11898,
49,
28,
15,
13,
16,
11,
1441,
16885,
28,
9562,
8,
628,
220,
220,
220,
1303,
7413,
2866,
286,
1657,
373,
513,
68,
23,
994,
11,
475,
428,
1724,
281,
4049,
379,
262,
9943,
346,
1241,
11,
1312,
13,
68,
13,
1502,
5299,
1238,
25983,
379,
1160,
23741,
11,
198,
220,
220,
220,
1303,
611,
18682,
37456,
284,
352,
13,
20,
12067,
11,
530,
3011,
257,
6482,
286,
7323,
838,
25983,
198,
220,
220,
220,
37456,
796,
28400,
7,
69,
8,
628,
220,
220,
220,
1303,
3771,
12,
439,
13369,
4088,
198,
220,
220,
220,
1303,
5740,
326,
7032,
58,
15,
11,
45299,
47715,
4909,
262,
7032,
4305,
262,
1080,
319,
262,
1364,
198,
220,
220,
220,
1303,
290,
7032,
58,
13664,
7,
17457,
563,
13,
30246,
47762,
16,
11,
45299,
47715,
262,
7032,
4305,
319,
262,
826,
198,
220,
220,
220,
1303,
25747,
796,
3242,
2617,
19182,
7,
3712,
19182,
90,
5377,
11141,
90,
43879,
2414,
11709,
5512,
657,
25,
13664,
7,
17457,
563,
13,
30246,
47762,
16,
11,
352,
25,
13664,
7,
55,
828,
352,
25,
13664,
7,
56,
4008,
198,
220,
220,
220,
7032,
796,
15690,
90,
5377,
11141,
90,
43879,
2414,
11709,
7,
9107,
418,
7,
220,
220,
220,
220,
4129,
7,
17457,
563,
13,
30246,
47762,
17,
11,
4129,
7,
1073,
3669,
13,
55,
828,
4129,
7,
1073,
3669,
13,
56,
22305,
198,
220,
220,
220,
1303,
1271,
286,
7652,
1343,
362,
503,
1819,
79,
363,
803,
1377,
61,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10563,
198,
220,
220,
220,
1303,
15225,
286,
262,
7032,
379,
1123,
2292,
34400,
26171,
61,
628,
220,
220,
220,
1303,
554,
257,
1306,
2239,
428,
714,
14,
21754,
307,
38284,
287,
262,
31122,
49646,
3166,
4645,
492,
198,
220,
220,
220,
4079,
28720,
62,
9464,
31462,
796,
220,
532,
17457,
563,
13,
81,
198,
220,
220,
220,
4079,
28720,
62,
3506,
31462,
796,
275,
39140,
13,
81,
198,
220,
220,
220,
1007,
3927,
28720,
62,
9464,
31462,
796,
352,
764,
12,
275,
39140,
13,
81,
198,
220,
220,
220,
1007,
3927,
28720,
62,
3506,
31462,
796,
352,
764,
10,
275,
39140,
13,
81,
628,
220,
220,
220,
44386,
12901,
278,
286,
26515,
11,
3465,
262,
2176,
6376,
278,
286,
262,
7652,
11,
1180,
422,
38619,
3419,
43179,
198,
220,
220,
220,
1303,
49646,
3166,
25,
220,
220,
220,
220,
685,
352,
11,
220,
220,
220,
220,
220,
362,
11,
220,
220,
220,
220,
220,
513,
11,
220,
220,
220,
220,
220,
604,
2361,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
46424,
2235,
930,
220,
220,
220,
220,
220,
220,
930,
220,
220,
220,
220,
220,
220,
930,
220,
220,
220,
220,
220,
220,
930,
220,
220,
46424,
2235,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1279,
438,
1303,
930,
220,
220,
220,
220,
220,
220,
930,
220,
220,
220,
220,
220,
220,
930,
220,
220,
220,
220,
220,
220,
930,
220,
220,
1303,
14610,
1303,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
46424,
2235,
930,
220,
220,
220,
220,
220,
220,
930,
220,
220,
220,
220,
220,
220,
930,
220,
220,
220,
220,
220,
220,
930,
220,
220,
46424,
2235,
198,
220,
220,
220,
1303,
8081,
507,
25,
220,
220,
220,
685,
220,
352,
220,
837,
220,
220,
362,
220,
220,
837,
220,
220,
513,
220,
220,
837,
220,
220,
604,
220,
220,
837,
220,
220,
642,
220,
2361,
628,
198,
220,
220,
220,
1303,
27588,
287,
428,
2163,
13423,
329,
1123,
3814,
1364,
12,
290,
826,
12,
22930,
363,
803,
7032,
13,
198,
220,
220,
220,
1303,
5740,
326,
428,
318,
1180,
422,
38619,
3419,
1201,
994,
356,
466,
407,
1011,
262,
10162,
198,
220,
220,
220,
1303,
7952,
11,
884,
326,
635,
257,
1007,
3927,
3458,
460,
307,
10488,
628,
198,
220,
220,
220,
1303,
16926,
46,
25,
43594,
832,
290,
25592,
422,
938,
275,
39140,
284,
262,
826,
198,
220,
220,
220,
611,
4079,
24844,
2147,
198,
220,
220,
220,
220,
220,
220,
220,
611,
27588,
24844,
2147,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27588,
796,
15690,
90,
5377,
11141,
90,
43879,
2414,
11709,
7,
9107,
418,
7,
13664,
7,
17457,
563,
13,
30246,
828,
362,
11,
4129,
7,
1073,
3669,
13,
55,
828,
4129,
7,
1073,
3669,
13,
56,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
356,
743,
32349,
262,
9280,
62,
600,
305,
12,
8818,
287,
262,
3210,
1339,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
39140,
66,
9078,
796,
2769,
30073,
7,
17457,
563,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
39140,
66,
9078,
13,
30246,
796,
275,
39140,
66,
9078,
13,
30246,
58,
17,
25,
437,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
39140,
66,
9078,
13,
25386,
796,
275,
39140,
66,
9078,
13,
25386,
58,
17,
25,
437,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27588,
58,
17,
25,
437,
11,
45299,
45299,
47715,
796,
9280,
62,
600,
305,
7,
17457,
563,
66,
9078,
11,
1073,
3669,
11,
39531,
49,
28,
39531,
49,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
27588,
796,
15690,
90,
5377,
11141,
90,
43879,
2414,
11709,
7,
9107,
418,
7,
13664,
7,
17457,
563,
13,
30246,
828,
362,
11,
4129,
7,
1073,
3669,
13,
55,
828,
4129,
7,
1073,
3669,
13,
56,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
770,
815,
307,
826,
588,
428,
11,
340,
318,
11777,
2077,
1337,
286,
379,
262,
4220,
986,
198,
220,
220,
220,
220,
220,
220,
220,
27588,
58,
13664,
7,
17457,
563,
13,
30246,
828,
362,
11,
1058,
11,
1058,
60,
796,
4079,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1303,
20768,
1096,
7032,
220,
8864,
2109,
628,
220,
220,
220,
1303,
3060,
2279,
543,
318,
31234,
284,
262,
826,
198,
220,
220,
220,
7032,
796,
4866,
7,
368,
270,
58,
45299,
16,
11,
45299,
25,
12962,
628,
220,
220,
220,
1303,
23691,
2651,
262,
7032,
826,
31462,
986,
198,
220,
220,
220,
329,
1312,
287,
362,
25,
16,
25,
13664,
7,
17457,
563,
13,
30246,
13219,
16,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
8772,
37861,
284,
262,
826,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
11,
45299,
47715,
796,
2632,
7,
25747,
58,
72,
11,
45299,
25,
4357,
275,
39140,
13,
30246,
58,
72,
4357,
11898,
49,
11,
275,
39140,
13,
25386,
58,
72,
4357,
275,
39140,
13,
43762,
62,
83,
2326,
62,
87,
58,
72,
4357,
275,
39140,
13,
43762,
62,
83,
2326,
62,
88,
58,
72,
4357,
275,
39140,
13,
43762,
62,
11793,
32186,
58,
72,
11,
45299,
25,
4357,
37456,
11,
763,
3669,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
36901,
290,
3602,
2781,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
10,
16,
11,
45299,
47715,
764,
47932,
1007,
3927,
28720,
62,
3506,
31462,
58,
72,
4083,
9,
25747,
58,
72,
11,
45299,
47715,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
11,
45299,
47715,
220,
220,
764,
9,
28,
4079,
28720,
62,
3506,
31462,
58,
72,
60,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1303,
3060,
2279,
543,
318,
31234,
284,
262,
1364,
357,
16341,
938,
7625,
8,
198,
220,
220,
220,
7032,
58,
16,
25,
13664,
7,
17457,
563,
13,
30246,
13219,
16,
11,
45299,
47715,
764,
47932,
27588,
58,
16,
25,
13664,
7,
17457,
563,
13,
30246,
13219,
16,
11,
17,
11,
45299,
47715,
198,
220,
220,
220,
1303,
25747,
764,
47932,
27588,
58,
45299,
17,
11,
45299,
47715,
628,
220,
220,
220,
1303,
383,
938,
7625,
318,
407,
4385,
284,
3994,
1364,
12,
22930,
363,
803,
3404,
11,
198,
220,
220,
220,
1303,
523,
356,
423,
284,
2190,
340,
11777,
357,
1662,
19992,
11,
475,
12876,
8,
198,
220,
220,
220,
1309,
1312,
796,
4129,
7,
17457,
563,
13,
30246,
13219,
16,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3602,
2781,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
11,
45299,
47715,
220,
220,
764,
47932,
1007,
3927,
28720,
62,
9464,
31462,
58,
72,
4083,
9,
368,
270,
58,
72,
10,
16,
11,
17,
11,
45299,
47715,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
36901,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
10,
16,
11,
45299,
47715,
764,
47932,
4079,
28720,
62,
9464,
31462,
58,
72,
4083,
9,
368,
270,
58,
72,
10,
16,
11,
17,
11,
45299,
47715,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1303,
8774,
34820,
220,
8864,
2109,
25780,
198,
220,
220,
220,
299,
796,
657,
220,
220,
1303,
40806,
341,
2764,
198,
220,
220,
220,
257,
796,
352,
13,
15,
1303,
22246,
7663,
44074,
3984,
287,
262,
24415,
628,
220,
220,
220,
981,
299,
19841,
299,
9806,
11405,
257,
18189,
716,
259,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
40806,
378,
625,
7652,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
383,
717,
3814,
11777,
198,
220,
220,
220,
220,
220,
220,
220,
1309,
1312,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2141,
5626,
8772,
37861,
284,
262,
7032,
287,
262,
1459,
7625,
284,
262,
826,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
17718,
352,
1464,
4909,
1364,
12,
31462,
7032,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
8772,
37861,
284,
262,
7032,
287,
262,
1306,
7625,
284,
262,
1364,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
10,
16,
11,
45299,
47715,
796,
2632,
7,
25747,
58,
72,
10,
16,
11,
45299,
25,
4357,
275,
39140,
13,
30246,
58,
72,
10,
16,
4357,
11898,
49,
11,
275,
39140,
13,
25386,
58,
72,
10,
16,
4357,
275,
39140,
13,
43762,
62,
83,
2326,
62,
87,
58,
72,
10,
16,
4357,
275,
39140,
13,
43762,
62,
83,
2326,
62,
88,
58,
72,
10,
16,
4357,
275,
39140,
13,
43762,
62,
11793,
32186,
58,
72,
10,
16,
11,
45299,
25,
4357,
37456,
11,
763,
3669,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
36901,
290,
3602,
2781,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1400,
11559,
4866,
2622,
1201,
2147,
318,
2406,
422,
262,
1312,
796,
352,
3814,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3602,
2781,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
11,
45299,
47715,
220,
220,
764,
47932,
1007,
3927,
28720,
62,
9464,
31462,
58,
72,
4083,
9,
25747,
58,
72,
10,
16,
11,
45299,
47715,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
36901,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
10,
16,
11,
45299,
47715,
764,
9,
28,
4079,
28720,
62,
9464,
31462,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
23691,
2651,
986,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
362,
25,
16,
25,
13664,
7,
17457,
563,
13,
30246,
13219,
17,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
8772,
37861,
284,
262,
7032,
287,
262,
1459,
7625,
284,
262,
826,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
11,
45299,
47715,
796,
2632,
7,
25747,
58,
72,
11,
45299,
25,
4357,
275,
39140,
13,
30246,
58,
72,
4357,
11898,
49,
11,
275,
39140,
13,
25386,
58,
72,
4357,
275,
39140,
13,
43762,
62,
83,
2326,
62,
87,
58,
72,
4357,
275,
39140,
13,
43762,
62,
83,
2326,
62,
88,
58,
72,
4357,
275,
39140,
13,
43762,
62,
11793,
32186,
58,
72,
11,
45299,
25,
4357,
37456,
11,
763,
3669,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
8772,
37861,
284,
262,
7032,
287,
262,
1306,
7625,
284,
262,
1364,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
10,
16,
11,
45299,
47715,
796,
2632,
7,
25747,
58,
72,
10,
16,
11,
45299,
25,
4357,
275,
39140,
13,
30246,
58,
72,
10,
16,
4357,
11898,
49,
11,
275,
39140,
13,
25386,
58,
72,
10,
16,
4357,
275,
39140,
13,
43762,
62,
83,
2326,
62,
87,
58,
72,
10,
16,
4357,
275,
39140,
13,
43762,
62,
83,
2326,
62,
88,
58,
72,
10,
16,
4357,
275,
39140,
13,
43762,
62,
11793,
32186,
58,
72,
10,
16,
11,
45299,
25,
4357,
37456,
11,
763,
3669,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
36901,
290,
3602,
2781,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
62,
19545,
62,
43554,
62,
30073,
796,
4866,
7,
25747,
58,
72,
10,
16,
11,
45299,
25,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
10,
16,
11,
45299,
47715,
764,
9,
28,
4079,
28720,
62,
9464,
31462,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
10,
16,
11,
45299,
47715,
764,
47932,
1007,
3927,
28720,
62,
3506,
31462,
58,
72,
4083,
9,
25747,
58,
72,
11,
45299,
47715,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
11,
45299,
47715,
220,
220,
764,
9,
28,
4079,
28720,
62,
3506,
31462,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
11,
45299,
47715,
220,
220,
764,
47932,
1007,
3927,
28720,
62,
9464,
31462,
58,
72,
4083,
9,
25747,
62,
19545,
62,
43554,
62,
30073,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
1309,
1312,
796,
4129,
7,
17457,
563,
13,
30246,
13219,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
8772,
37861,
284,
262,
7032,
287,
262,
1459,
7625,
284,
262,
826,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
11,
45299,
47715,
796,
2632,
7,
25747,
58,
72,
11,
45299,
25,
4357,
275,
39140,
13,
30246,
58,
72,
4357,
11898,
49,
11,
275,
39140,
13,
25386,
58,
72,
4357,
275,
39140,
13,
43762,
62,
83,
2326,
62,
87,
58,
72,
4357,
275,
39140,
13,
43762,
62,
83,
2326,
62,
88,
58,
72,
4357,
275,
39140,
13,
43762,
62,
11793,
32186,
58,
72,
11,
45299,
25,
4357,
37456,
11,
763,
3669,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
8410,
5626,
8772,
37861,
284,
262,
7032,
287,
262,
1306,
7625,
284,
262,
1364,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4619,
340,
691,
4909,
7032,
8928,
803,
284,
262,
826,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
36901,
290,
3602,
2781,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
10,
16,
11,
45299,
47715,
764,
47932,
1007,
3927,
28720,
62,
3506,
31462,
58,
72,
4083,
9,
25747,
58,
72,
11,
45299,
47715,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
72,
11,
45299,
47715,
220,
220,
764,
9,
28,
4079,
28720,
62,
3506,
31462,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
383,
938,
3814,
1464,
4909,
826,
12,
31462,
7032,
290,
318,
6338,
2087,
510,
9380,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
6822,
40826,
198,
220,
220,
220,
220,
220,
220,
220,
611,
716,
259,
14512,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
197,
64,
796,
5415,
7,
8937,
12195,
25747,
4008,
198,
197,
197,
437,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
299,
318,
262,
24415,
954,
198,
220,
220,
220,
220,
220,
220,
220,
299,
15853,
352,
198,
220,
220,
220,
886,
628,
198,
220,
220,
220,
611,
1441,
16885,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
7032,
58,
16,
11,
45299,
25,
4357,
7032,
58,
13664,
7,
17457,
563,
13,
30246,
828,
45299,
47715,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
7032,
58,
13664,
7,
17457,
563,
13,
30246,
828,
45299,
47715,
198,
220,
220,
220,
886,
198,
437,
198
] | 2.323689 | 7,362 |
"""A scirntific module (calculate exp(x))"""
module SCI
abstract type AbstractProblem end
struct Problem{T} <: AbstractProblem x::T end
abstract type AbstractAlgorithm end
struct Builtin <: AbstractAlgorithm end
Base.@kwdef struct Taylor <: AbstractAlgorithm n::Int = 10 end
default_algorithm(prob::Problem) = Builtin()
struct Solution{R, P<:AbstractProblem, A<:AbstractAlgorithm} result::R; prob::P; alg::A end
solve(prob::AbstractProblem) = solve(prob, default_algorithm(prob))
solve(prob::AbstractProblem, alg::Builtin) = Solution(exp(prob.x), prob, alg)
solve(prob::AbstractProblem, alg::Taylor) = Solution(sum(prob.x^k/factorial(k) for k in 0:alg.n), prob, alg)
using COM
COM.prettify(sol::Solution{R, P, A}) where {R, P<:AbstractProblem, A<:Builtin} = """
Problem: x = $(sol.prob.x)
Algorithm: builtin exp(x)
Result: $(sol.result)
"""
COM.prettify(sol::Solution{R, P, A}) where {R, P<:AbstractProblem, A<:Taylor} = """
Problem: x = $(sol.prob.x)
Algorithm: Taylor series of exp(x) upto degree $(sol.alg.n)
Result: $(sol.result)
"""
end
| [
37811,
32,
629,
343,
429,
811,
8265,
357,
9948,
3129,
378,
1033,
7,
87,
4008,
37811,
198,
21412,
6374,
40,
198,
198,
397,
8709,
2099,
27741,
40781,
886,
198,
7249,
20647,
90,
51,
92,
1279,
25,
27741,
40781,
2124,
3712,
51,
886,
198,
198,
397,
8709,
2099,
27741,
2348,
42289,
886,
198,
7249,
28477,
259,
1279,
25,
27741,
2348,
42289,
886,
198,
14881,
13,
31,
46265,
4299,
2878,
8121,
1279,
25,
27741,
2348,
42289,
299,
3712,
5317,
796,
838,
886,
198,
12286,
62,
282,
42289,
7,
1676,
65,
3712,
40781,
8,
796,
28477,
259,
3419,
198,
198,
7249,
28186,
90,
49,
11,
350,
27,
25,
23839,
40781,
11,
317,
27,
25,
23839,
2348,
42289,
92,
1255,
3712,
49,
26,
1861,
3712,
47,
26,
435,
70,
3712,
32,
886,
198,
82,
6442,
7,
1676,
65,
3712,
23839,
40781,
8,
796,
8494,
7,
1676,
65,
11,
4277,
62,
282,
42289,
7,
1676,
65,
4008,
198,
82,
6442,
7,
1676,
65,
3712,
23839,
40781,
11,
435,
70,
3712,
39582,
259,
8,
796,
28186,
7,
11201,
7,
1676,
65,
13,
87,
828,
1861,
11,
435,
70,
8,
198,
82,
6442,
7,
1676,
65,
3712,
23839,
40781,
11,
435,
70,
3712,
29907,
8,
796,
28186,
7,
16345,
7,
1676,
65,
13,
87,
61,
74,
14,
22584,
5132,
7,
74,
8,
329,
479,
287,
657,
25,
14016,
13,
77,
828,
1861,
11,
435,
70,
8,
198,
198,
3500,
9440,
198,
198,
9858,
13,
3866,
926,
1958,
7,
34453,
3712,
46344,
90,
49,
11,
350,
11,
317,
30072,
810,
1391,
49,
11,
350,
27,
25,
23839,
40781,
11,
317,
27,
25,
39582,
259,
92,
796,
37227,
198,
40781,
25,
220,
220,
2124,
796,
29568,
34453,
13,
1676,
65,
13,
87,
8,
198,
2348,
42289,
25,
3170,
259,
1033,
7,
87,
8,
198,
23004,
25,
220,
220,
220,
29568,
34453,
13,
20274,
8,
198,
37811,
198,
198,
9858,
13,
3866,
926,
1958,
7,
34453,
3712,
46344,
90,
49,
11,
350,
11,
317,
30072,
810,
1391,
49,
11,
350,
27,
25,
23839,
40781,
11,
317,
27,
25,
29907,
92,
796,
37227,
198,
40781,
25,
220,
220,
2124,
796,
29568,
34453,
13,
1676,
65,
13,
87,
8,
198,
2348,
42289,
25,
8121,
2168,
286,
1033,
7,
87,
8,
18529,
78,
4922,
29568,
34453,
13,
14016,
13,
77,
8,
198,
23004,
25,
220,
220,
220,
29568,
34453,
13,
20274,
8,
198,
37811,
198,
198,
437,
198
] | 2.681013 | 395 |
mutable struct Attribute
name::Symbol
value::String
Attribute(name::Symbol) = new(name, "")
end
const NULL_ATTRIBUTE = Attribute(:NULL)
mutable struct ChartType
concreteName::String
attributes::Vector{Attribute}
ancestors::Vector{ChartType}
ChartType(attributes::Vector{A}, ancestors::Vector{ChartType}=ChartType[]) where {A<:Attribute} = new("NONE", convert(Vector{Attribute}, attributes), ancestors)
ChartType(concreteName::String, attributes::Vector{A}, ancestors::Vector{ChartType}=ChartType[]) where {A<:Attribute} = new(concreteName, convert(Vector{Attribute}, attributes), ancestors)
end
function Base.deepcopy(chart_type::ChartType)
name = chart_type.concreteName
attributes = Vector{Attribute}(undef, length(chart_type.attributes))
for (i,a) in enumerate(chart_type.attributes)
attributes[i] = deepcopy(a)
end
ancestors = Vector{ChartType}(undef, length(chart_type.ancestors))
for (i,ancestor) in enumerate(chart_type.ancestors)
ancestors[i] = deepcopy(ancestor)
end
ChartType(name, attributes, ancestors)
end
function get_all_attributes(chart_type::ChartType)
retval = Attribute[]
for ancestor in chart_type.ancestors
append!(retval, get_all_attributes(ancestor))
end
append!(retval, chart_type.attributes)
retval
end
function Base.getindex(chart_type::ChartType, s::Symbol)
for a in chart_type.attributes
if a.name == s
return a
end
end
for ancestor in chart_type.ancestors
a = ancestor[s]
if a.name != :NULL
return a
end
end
NULL_ATTRIBUTE
end
function Base.setindex!(chart_type::ChartType, v::String, s::Symbol)
for a in chart_type.attributes
if a.name == s
a.value = v
return
end
end
for ancestor in chart_type.ancestors
a = ancestor[s]
if a.name != :NULL
a.value = v
return
end
end
end
const BaseChart = ChartType([Attribute(:width), Attribute(:height)])
const ColorChart = ChartType([Attribute(:colors), Attribute(:colorAccessor), Attribute(:colorDomain)])
const CoordinateGridChart = ChartType([Attribute(:zoomScale),
Attribute(:zoomOutRestrict), Attribute(:mouseZoomable),
Attribute(:x), Attribute(:xUnits),
Attribute(:xAxis), Attribute(:elasticX),
Attribute(:xAxisPadding), Attribute(:y),
Attribute(:yAxis), Attribute(:elasticY),
Attribute(:renderHorizontalGridLines), Attribute(:renderVerticalGridLines),
Attribute(:yAxisPadding), Attribute(:round),
Attribute(:keyAccessor), Attribute(:valueAccessor),
Attribute(:xAxisLabel), Attribute(:yAxisLabel)],
[BaseChart, ColorChart])
const AbstractBubbleChart = ChartType([Attribute(:r), Attribute(:radiusValueAccessor),
Attribute(:minRadiusWithLabel), Attribute(:maxBubbleRelativeSize)],
[ColorChart])
const WidgetChart = ChartType([Attribute(:dimension), Attribute(:group)])
# StackableChart = ChartType(false, [Attribute{}])
const PieChart = ChartType("pieChart",
[Attribute(:slicesCap), Attribute(:innerRadius),
Attribute(:radius), Attribute(:cx),
Attribute(:cy), Attribute(:minAngleForLabel)],
[ColorChart, BaseChart])
const BarChart = ChartType("barChart",
[Attribute(:centerBar), Attribute(:gap)],
[CoordinateGridChart]) # StackableChart
const LineChart = ChartType("lineChart",
[Attribute(:renderArea), Attribute(:dotRadius)],
[CoordinateGridChart]) # StackableChart
const RowChart = ChartType("rowChart",
[Attribute(:gap), Attribute(:elasticX),
Attribute(:labelOffsetX), Attribute(:labelOffsetY)],
[ColorChart, BaseChart])
const BubbleChart = ChartType("bubbleChart",
[Attribute(:elasticRadius)],
[AbstractBubbleChart, CoordinateGridChart])
const DataCountWidget = ChartType("dataCount",
Attribute[],
[WidgetChart])
const DataTableWidget = ChartType("dataTable",
[Attribute(:size), Attribute(:columns),
Attribute(:sortBy), Attribute(:order)],
[WidgetChart])
# DC Chart
mutable struct DCChart
group::Group
typ::ChartType
title::String
parent::String
function DCChart(
typ::ChartType,
group::Group;
title::String = "Chart for " * string(group.dim.name),
parent::String = @sprintf("chart_%06d", rand(0:999999)),
)
new(group, typ, title, parent)
end
end
function randomize_parent(chart::DCChart)
chart.parent = @sprintf("chart_%06d", rand(0:999999))
Union{}
end
function Base.write(io::IO, chart::DCChart, indent::Int)
tabbing = " "^indent
println(io, tabbing, "var ", chart.parent, " = dc.", chart.typ.concreteName, "(\"#", chart.parent, "\")") # TODO: add chart grouping
println(io, tabbing, " .dimension(", chart.group.dim.name, ")")
print(io, tabbing, " .group(", chart.group.name, ")")
attributes = get_all_attributes(chart.typ)
for (i,a) in enumerate(attributes)
if !isempty(a.value)
print(io, "\n", tabbing, " .", string(a.name), "(", a.value, ")")
end
end
println(io, ";")
end
# DC Widget
mutable struct DCWidget
typ::ChartType
parent::String
html::String
columns::Vector{Symbol}
group_results::Bool
function DCWidget(
typ::ChartType,
columns::Vector{Symbol} = Symbol[],
group_results::Bool = false,
html::String = "",
parent::String = @sprintf("chart_%06d", rand(0:999999)),
)
new(typ, parent, html, columns, group_results)
end
end
# Inelegant way to handle the two types of widgets. Change if time permits.
function randomize_parent(widget::DCWidget)
widget.parent = @sprintf("chart_%06d", rand(0:999999))
if widget.typ.concreteName == "dataCount"
widget.html = string("<div id=\"", widget.parent, """\"><span class="filter-count"></span> selected out of <span class="total-count"></span> records</div>""")
elseif widget.typ.concreteName == "dataTable"
html_str = IOBuffer()
if !widget.group_results
write(html_str, "
<style>
#", widget.parent, " .dc-table-group{display:none}
</style>")
end
write(html_str, "
<table class=\"table table-hover\" id=\"", widget.parent, "\">
<thead>
<tr>")
for key in widget.columns
write(html_str, "<th>", key, "</th>")
end
write(html_str, "</tr>
</thead>
</table>")
widget.html = String(take!(html_str))
end
Union{}
end
function Base.write(io::IO, chart::DCWidget, indent::Int)
tabbing = " "^indent
print(io, tabbing, "var ", chart.parent, " = dc.", chart.typ.concreteName, "(\"#", chart.parent, "\")") # TODO: add chart grouping
attributes = get_all_attributes(chart.typ)
for (i,a) in enumerate(attributes)
if !isempty(a.value)
print(io, "\n", tabbing, " .", string(a.name), "(", a.value, ")")
end
end
println(io, ";")
end
"""
can_infer_chart(arr::AbstractVector)
Whether chart inference is supported for the given array type.
"""
isna(x) = isa(x, Missing)
can_infer_chart(arr::AbstractVector) = !any(isna, arr)
can_infer_chart(arr::AbstractVector{I}) where {I<:Integer} = !any(isna, arr)
can_infer_chart(arr::AbstractVector{F}) where {F<:AbstractFloat} = !any(isna, arr) && !any(isinf, arr) && !any(isnan, arr)
can_infer_chart(arr::AbstractVector{S}) where {S<:AbstractString} = !any(isna, arr)
"""
infer_chart(arr::AbstractVector, group::Group)
Constructs a Chart suitable for the type in arr.
"""
infer_chart(arr::AbstractVector{R}, group::Group) where {R<:Real} = barchart(arr, group)
infer_chart(arr::AbstractVector{S}, group::Group) where {S<:AbstractString} = piechart(arr, group)
function scale_default(arr::AbstractVector{R}) where R<:Real
@sprintf("d3.scale.linear().domain([%d,%d])",
floor(Int, minimum(arr)),
ceil(Int, maximum(arr)))
end
function size_default!(chart::ChartType)
chart[:width] = "300.0"
chart[:height] = "225.0"
end
"""
barchart
Infer construction of a DC barchart based on the given group.
"""
function barchart(arr::AbstractVector{I}, group::Group) where I<:Integer
chart = deepcopy(BarChart)
size_default!(chart)
chart[:x] = scale_default(arr)
chart[:xUnits] = "dc.units.fp.precision(.0)"
DCChart(chart, group)
end
function barchart(arr::AbstractVector{F}, group::Group) where F<:AbstractFloat
chart = deepcopy(BarChart)
size_default!(chart)
chart[:centerBar] = "true"
chart[:x] = scale_default(arr)
chart[:xUnits] = "dc.units.fp.precision($(group.dim.bin_width))"
DCChart(chart, group)
end
"""
piechart
Infer construction of a DC piechart based on the given group.
"""
function piechart(arr::AbstractVector{S}, group::Group) where S<:AbstractString
chart = deepcopy(PieChart)
size_default!(chart)
chart[:radius] = string(parse(Float64, chart[:height].value)*0.4)
chart[:slicesCap] = "10"
DCChart(chart, group)
end
function piechart(arr::AbstractVector{I}, group::Group) where I<:Integer
chart = deepcopy(PieChart)
size_default!(chart)
DCChart(chart, group)
end
"""
linechart
Infer construction of a DC linechart based on the given group.
"""
function linechart(arr::AbstractVector{I}, group::Group) where I<:Integer
chart = deepcopy(LineChart)
size_default!(chart)
chart[:x] = scale_default(arr)
chart[:xUnits] = "dc.units.fp.precision(.0)"
DCChart(chart, group)
end
function linechart(arr::AbstractVector{F}, group::Group) where F<:AbstractFloat
chart = deepcopy(LineChart)
size_default!(chart)
chart[:x] = scale_default(arr)
chart[:xUnits] = "dc.units.fp.precision($(group.dim.bin_width))"
DCChart(chart, group)
end
"""
bubblechart
Construct an empty custom DC bubblechart.
"""
function bubblechart(group::Group)
chart = deepcopy(BubbleChart)
size_default!(chart)
DCChart(chart, group)
end
function _generate_accessor(col::Symbol)
if col == :DCCount
return "function (d) { return d.value.DCCount;}"
else
return string("function (d) { return d.value.", col, "_sum;}")
end
end
"""
bubbleChart
Construct a bubblechart using the given master grouping and sums given by
`x_col`, `y_col`, and `r_col` for x position, y position, and radius.
"""
function bubblechart(group::Group, x_col::Symbol, y_col::Symbol, r_col::Symbol)
chart = deepcopy(BubbleChart)
size_default!(chart)
chart[:width] = string(parse(Float64, chart[:width].value) * 1)
chart[:x] = "d3.scale.linear().domain([0,150])" # Will get overriden by elasticX
chart[:elasticX] = "true"
chart[:elasticY] = "true"
chart[:elasticRadius] = "true"
chart[:xAxisPadding] = "50"
chart[:yAxisPadding] = "50"
chart[:keyAccessor] = _generate_accessor(x_col)
chart[:valueAccessor] = _generate_accessor(y_col)
chart[:radiusValueAccessor] = _generate_accessor(r_col)
chart[:maxBubbleRelativeSize] = "0.2"
DCChart(chart, group)
end
"""
rowchart
Infer construction of a DC rowchart based on the given group.
"""
function rowchart(arr::AbstractVector{S}, group::Group) where S<:AbstractString
chart = deepcopy(RowChart)
size_default!(chart)
DCChart(chart, group)
end
function rowchart(arr::AbstractVector{I}, group::Group) where I<:Integer
chart = deepcopy(RowChart)
size_default!(chart)
DCChart(chart, group)
end
"""
datacountwidget
Construct a DC DataCountWidget.
"""
function datacountwidget()
chart = deepcopy(DataCountWidget)
chart[:dimension] = "cf"
chart[:group] = "all"
dcwidget = DCWidget(chart)
randomize_parent(dcwidget)
dcwidget
end
"""
datatablewidget
Construct a DC DataTableWidget.
"""
function datatablewidget(col::Symbol, columns::Vector{Symbol}, group_results::Bool=false)
chart = deepcopy(DataTableWidget)
chart[:dimension] = string(col)
if group_results
chart[:group] = string("function(d) {return d.", col, ";}")
else
chart[:group] = """function(d) {return "Showing All Results";}"""
end
col_str = IOBuffer()
print(col_str, "[\n")
for key in columns
print(col_str, "function(d) {return d.", key, ";},\n")
end
print(col_str, "]")
chart[:columns] = String(take!(col_str))
chart[:size] = "15"
dcwidget = DCWidget(chart, columns, group_results)
randomize_parent(dcwidget)
dcwidget
end
function datatablewidget(columns::Vector{Symbol})
datatablewidget(columns[1], columns, false)
end
#=
# Chart types
DataCountWidget <: BaseChart
DataTableWidget <: BaseChart
BubbleChart <: AbstractBubbleChart, CoordinateGridChart
CompositeChart <: CoordinateGridChart
GeoCloroplethChart <: ColorChart, BaseChart
BubbleOverlayChart <: AbstractBubbleChart, BaseChart
RowChart <: ColorChart, BaseChart
Legend
NumberDisplay <: BaseChart
=#
| [
76,
18187,
2878,
3460,
4163,
198,
197,
3672,
3712,
13940,
23650,
198,
197,
8367,
3712,
10100,
198,
197,
33682,
7,
3672,
3712,
13940,
23650,
8,
796,
649,
7,
3672,
11,
366,
4943,
198,
437,
198,
9979,
15697,
62,
1404,
5446,
9865,
37780,
796,
3460,
4163,
7,
25,
33991,
8,
198,
198,
76,
18187,
2878,
22086,
6030,
198,
197,
1102,
38669,
5376,
3712,
10100,
198,
197,
1078,
7657,
3712,
38469,
90,
33682,
92,
198,
197,
1192,
395,
669,
3712,
38469,
90,
45488,
6030,
92,
198,
197,
45488,
6030,
7,
1078,
7657,
3712,
38469,
90,
32,
5512,
18668,
3712,
38469,
90,
45488,
6030,
92,
28,
45488,
6030,
58,
12962,
810,
1391,
32,
27,
25,
33682,
92,
796,
649,
7203,
45,
11651,
1600,
10385,
7,
38469,
90,
33682,
5512,
12608,
828,
18668,
8,
198,
197,
45488,
6030,
7,
1102,
38669,
5376,
3712,
10100,
11,
12608,
3712,
38469,
90,
32,
5512,
18668,
3712,
38469,
90,
45488,
6030,
92,
28,
45488,
6030,
58,
12962,
810,
1391,
32,
27,
25,
33682,
92,
796,
649,
7,
1102,
38669,
5376,
11,
10385,
7,
38469,
90,
33682,
5512,
12608,
828,
18668,
8,
198,
437,
198,
8818,
7308,
13,
22089,
30073,
7,
40926,
62,
4906,
3712,
45488,
6030,
8,
198,
197,
3672,
796,
8262,
62,
4906,
13,
1102,
38669,
5376,
198,
197,
1078,
7657,
796,
20650,
90,
33682,
92,
7,
917,
891,
11,
4129,
7,
40926,
62,
4906,
13,
1078,
7657,
4008,
198,
197,
1640,
357,
72,
11,
64,
8,
287,
27056,
378,
7,
40926,
62,
4906,
13,
1078,
7657,
8,
198,
197,
197,
1078,
7657,
58,
72,
60,
796,
2769,
30073,
7,
64,
8,
198,
197,
437,
198,
197,
1192,
395,
669,
796,
20650,
90,
45488,
6030,
92,
7,
917,
891,
11,
4129,
7,
40926,
62,
4906,
13,
1192,
395,
669,
4008,
198,
197,
1640,
357,
72,
11,
1192,
395,
273,
8,
287,
27056,
378,
7,
40926,
62,
4906,
13,
1192,
395,
669,
8,
198,
197,
197,
1192,
395,
669,
58,
72,
60,
796,
2769,
30073,
7,
1192,
395,
273,
8,
198,
197,
437,
198,
197,
45488,
6030,
7,
3672,
11,
12608,
11,
18668,
8,
198,
437,
198,
8818,
651,
62,
439,
62,
1078,
7657,
7,
40926,
62,
4906,
3712,
45488,
6030,
8,
198,
197,
1186,
2100,
796,
3460,
4163,
21737,
198,
197,
1640,
31836,
287,
8262,
62,
4906,
13,
1192,
395,
669,
198,
197,
197,
33295,
0,
7,
1186,
2100,
11,
651,
62,
439,
62,
1078,
7657,
7,
1192,
395,
273,
4008,
198,
197,
437,
198,
197,
33295,
0,
7,
1186,
2100,
11,
8262,
62,
4906,
13,
1078,
7657,
8,
198,
197,
1186,
2100,
198,
437,
198,
8818,
7308,
13,
1136,
9630,
7,
40926,
62,
4906,
3712,
45488,
6030,
11,
264,
3712,
13940,
23650,
8,
198,
197,
1640,
257,
287,
8262,
62,
4906,
13,
1078,
7657,
198,
197,
197,
361,
257,
13,
3672,
6624,
264,
198,
197,
197,
197,
7783,
257,
198,
197,
197,
437,
198,
197,
437,
628,
197,
1640,
31836,
287,
8262,
62,
4906,
13,
1192,
395,
669,
198,
197,
197,
64,
796,
31836,
58,
82,
60,
198,
197,
197,
361,
257,
13,
3672,
14512,
1058,
33991,
198,
197,
197,
197,
7783,
257,
198,
197,
197,
437,
198,
197,
437,
628,
197,
33991,
62,
1404,
5446,
9865,
37780,
198,
437,
198,
8818,
7308,
13,
2617,
9630,
0,
7,
40926,
62,
4906,
3712,
45488,
6030,
11,
410,
3712,
10100,
11,
264,
3712,
13940,
23650,
8,
198,
197,
1640,
257,
287,
8262,
62,
4906,
13,
1078,
7657,
198,
197,
197,
361,
257,
13,
3672,
6624,
264,
198,
197,
197,
197,
64,
13,
8367,
796,
410,
198,
197,
197,
197,
7783,
198,
197,
197,
437,
198,
197,
437,
628,
197,
1640,
31836,
287,
8262,
62,
4906,
13,
1192,
395,
669,
198,
197,
197,
64,
796,
31836,
58,
82,
60,
198,
197,
197,
361,
257,
13,
3672,
14512,
1058,
33991,
198,
197,
197,
197,
64,
13,
8367,
796,
410,
198,
197,
197,
197,
7783,
198,
197,
197,
437,
198,
197,
437,
198,
437,
198,
198,
9979,
7308,
45488,
796,
22086,
6030,
26933,
33682,
7,
25,
10394,
828,
3460,
4163,
7,
25,
17015,
8,
12962,
198,
9979,
5315,
45488,
796,
22086,
6030,
26933,
33682,
7,
25,
4033,
669,
828,
3460,
4163,
7,
25,
8043,
15457,
273,
828,
3460,
4163,
7,
25,
8043,
43961,
8,
12962,
198,
9979,
22819,
4559,
41339,
45488,
796,
22086,
6030,
26933,
33682,
7,
25,
89,
4207,
29990,
828,
198,
197,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3460,
4163,
7,
25,
89,
4207,
7975,
19452,
2012,
828,
3460,
4163,
7,
25,
35888,
57,
4207,
540,
828,
198,
197,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3460,
4163,
7,
25,
87,
828,
3460,
4163,
7,
25,
87,
3118,
896,
828,
198,
197,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3460,
4163,
7,
25,
87,
31554,
271,
828,
3460,
4163,
7,
25,
417,
3477,
55,
828,
198,
197,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3460,
4163,
7,
25,
87,
31554,
271,
47,
26872,
828,
3460,
4163,
7,
25,
88,
828,
198,
197,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3460,
4163,
7,
25,
88,
31554,
271,
828,
3460,
4163,
7,
25,
417,
3477,
56,
828,
198,
197,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3460,
4163,
7,
25,
13287,
27991,
38342,
41339,
43,
1127,
828,
3460,
4163,
7,
25,
13287,
42369,
605,
41339,
43,
1127,
828,
198,
197,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3460,
4163,
7,
25,
88,
31554,
271,
47,
26872,
828,
3460,
4163,
7,
25,
744,
828,
198,
197,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3460,
4163,
7,
25,
2539,
15457,
273,
828,
3460,
4163,
7,
25,
8367,
15457,
273,
828,
198,
197,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3460,
4163,
7,
25,
87,
31554,
271,
33986,
828,
3460,
4163,
7,
25,
88,
31554,
271,
33986,
8,
4357,
198,
197,
197,
197,
197,
197,
197,
197,
197,
58,
14881,
45488,
11,
5315,
45488,
12962,
198,
9979,
27741,
33,
549,
903,
45488,
796,
22086,
6030,
26933,
33682,
7,
25,
81,
828,
3460,
4163,
7,
25,
42172,
11395,
15457,
273,
828,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
220,
220,
3460,
4163,
7,
25,
1084,
15546,
3754,
3152,
33986,
828,
3460,
4163,
7,
25,
9806,
33,
549,
903,
6892,
876,
10699,
8,
4357,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
685,
10258,
45488,
12962,
198,
9979,
370,
17484,
45488,
796,
22086,
6030,
26933,
33682,
7,
25,
46156,
828,
3460,
4163,
7,
25,
8094,
8,
12962,
198,
198,
2,
23881,
540,
45488,
796,
22086,
6030,
7,
9562,
11,
685,
33682,
90,
92,
12962,
198,
198,
9979,
21690,
45488,
796,
22086,
6030,
7203,
21749,
45488,
1600,
198,
197,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
33682,
7,
25,
82,
677,
274,
15610,
828,
3460,
4163,
7,
25,
5083,
15546,
3754,
828,
198,
197,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3460,
4163,
7,
25,
42172,
828,
3460,
4163,
7,
25,
66,
87,
828,
198,
197,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3460,
4163,
7,
25,
948,
828,
3460,
4163,
7,
25,
1084,
13450,
293,
1890,
33986,
8,
4357,
198,
197,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
10258,
45488,
11,
7308,
45488,
12962,
198,
9979,
2409,
45488,
796,
22086,
6030,
7203,
5657,
45488,
1600,
198,
197,
197,
197,
197,
197,
220,
197,
197,
197,
197,
197,
58,
33682,
7,
25,
16159,
10374,
828,
3460,
4163,
7,
25,
43554,
8,
4357,
198,
197,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
7222,
45480,
41339,
45488,
12962,
1303,
23881,
540,
45488,
198,
9979,
6910,
45488,
796,
22086,
6030,
7203,
1370,
45488,
1600,
198,
197,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
33682,
7,
25,
13287,
30547,
828,
3460,
4163,
7,
25,
26518,
15546,
3754,
8,
4357,
198,
197,
197,
197,
197,
197,
220,
220,
197,
197,
197,
197,
58,
7222,
45480,
41339,
45488,
12962,
1303,
23881,
540,
45488,
198,
9979,
11314,
45488,
796,
22086,
6030,
7203,
808,
45488,
1600,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
58,
33682,
7,
25,
43554,
828,
3460,
4163,
7,
25,
417,
3477,
55,
828,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
3460,
4163,
7,
25,
18242,
34519,
55,
828,
3460,
4163,
7,
25,
18242,
34519,
56,
8,
4357,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
58,
10258,
45488,
11,
7308,
45488,
12962,
198,
9979,
33691,
45488,
796,
22086,
6030,
7203,
46176,
903,
45488,
1600,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
58,
33682,
7,
25,
417,
3477,
15546,
3754,
8,
4357,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
58,
23839,
33,
549,
903,
45488,
11,
22819,
4559,
41339,
45488,
12962,
198,
9979,
6060,
12332,
38300,
796,
22086,
6030,
7203,
7890,
12332,
1600,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
33682,
58,
4357,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
58,
38300,
45488,
12962,
198,
9979,
6060,
10962,
38300,
796,
22086,
6030,
7203,
7890,
10962,
1600,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
58,
33682,
7,
25,
7857,
828,
3460,
4163,
7,
25,
28665,
82,
828,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
3460,
4163,
7,
25,
30619,
3886,
828,
3460,
4163,
7,
25,
2875,
8,
4357,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
58,
38300,
45488,
12962,
198,
198,
2,
6257,
22086,
198,
76,
18187,
2878,
6257,
45488,
198,
197,
8094,
3712,
13247,
198,
197,
28004,
3712,
45488,
6030,
198,
197,
7839,
3712,
10100,
198,
197,
8000,
3712,
10100,
628,
197,
8818,
6257,
45488,
7,
198,
197,
197,
28004,
3712,
45488,
6030,
11,
198,
197,
197,
8094,
3712,
13247,
26,
198,
197,
197,
7839,
3712,
10100,
796,
366,
45488,
329,
366,
1635,
4731,
7,
8094,
13,
27740,
13,
3672,
828,
198,
197,
197,
8000,
3712,
10100,
796,
2488,
82,
37435,
7203,
40926,
62,
4,
3312,
67,
1600,
43720,
7,
15,
25,
24214,
2079,
36911,
198,
197,
197,
8,
628,
197,
197,
3605,
7,
8094,
11,
2170,
11,
3670,
11,
2560,
8,
198,
197,
437,
198,
437,
198,
198,
8818,
4738,
1096,
62,
8000,
7,
40926,
3712,
9697,
45488,
8,
198,
197,
40926,
13,
8000,
796,
2488,
82,
37435,
7203,
40926,
62,
4,
3312,
67,
1600,
43720,
7,
15,
25,
24214,
2079,
4008,
198,
197,
38176,
90,
92,
198,
437,
198,
198,
8818,
7308,
13,
13564,
7,
952,
3712,
9399,
11,
8262,
3712,
9697,
45488,
11,
33793,
3712,
5317,
8,
198,
197,
8658,
4623,
796,
366,
220,
366,
61,
521,
298,
198,
197,
35235,
7,
952,
11,
7400,
4623,
11,
366,
7785,
33172,
8262,
13,
8000,
11,
366,
796,
30736,
33283,
8262,
13,
28004,
13,
1102,
38669,
5376,
11,
30629,
7879,
2,
1600,
8262,
13,
8000,
11,
37082,
4943,
4943,
1303,
16926,
46,
25,
751,
8262,
36115,
198,
197,
35235,
7,
952,
11,
7400,
4623,
11,
366,
220,
764,
46156,
7,
1600,
8262,
13,
8094,
13,
27740,
13,
3672,
11,
366,
8,
4943,
198,
197,
4798,
7,
952,
11,
7400,
4623,
11,
366,
220,
764,
8094,
7,
1600,
8262,
13,
8094,
13,
3672,
11,
366,
8,
4943,
628,
197,
1078,
7657,
796,
651,
62,
439,
62,
1078,
7657,
7,
40926,
13,
28004,
8,
198,
197,
1640,
357,
72,
11,
64,
8,
287,
27056,
378,
7,
1078,
7657,
8,
198,
197,
197,
361,
5145,
271,
28920,
7,
64,
13,
8367,
8,
198,
197,
197,
197,
4798,
7,
952,
11,
37082,
77,
1600,
7400,
4623,
11,
366,
220,
22135,
11,
4731,
7,
64,
13,
3672,
828,
30629,
1600,
257,
13,
8367,
11,
366,
8,
4943,
198,
197,
197,
437,
198,
197,
437,
198,
197,
35235,
7,
952,
11,
366,
26,
4943,
198,
437,
198,
198,
2,
6257,
370,
17484,
198,
76,
18187,
2878,
6257,
38300,
198,
197,
28004,
3712,
45488,
6030,
198,
197,
8000,
3712,
10100,
198,
197,
6494,
3712,
10100,
198,
197,
28665,
82,
3712,
38469,
90,
13940,
23650,
92,
198,
197,
8094,
62,
43420,
3712,
33,
970,
628,
197,
8818,
6257,
38300,
7,
198,
197,
197,
28004,
3712,
45488,
6030,
11,
198,
197,
197,
28665,
82,
3712,
38469,
90,
13940,
23650,
92,
796,
38357,
58,
4357,
198,
197,
197,
8094,
62,
43420,
3712,
33,
970,
796,
3991,
11,
198,
197,
197,
6494,
3712,
10100,
796,
366,
1600,
198,
197,
197,
8000,
3712,
10100,
796,
2488,
82,
37435,
7203,
40926,
62,
4,
3312,
67,
1600,
43720,
7,
15,
25,
24214,
2079,
36911,
198,
197,
197,
8,
628,
197,
197,
3605,
7,
28004,
11,
2560,
11,
27711,
11,
15180,
11,
1448,
62,
43420,
8,
198,
197,
437,
198,
437,
198,
198,
2,
554,
68,
1455,
415,
835,
284,
5412,
262,
734,
3858,
286,
40803,
13,
9794,
611,
640,
13892,
13,
198,
8818,
4738,
1096,
62,
8000,
7,
42655,
3712,
9697,
38300,
8,
198,
197,
42655,
13,
8000,
796,
2488,
82,
37435,
7203,
40926,
62,
4,
3312,
67,
1600,
43720,
7,
15,
25,
24214,
2079,
4008,
198,
197,
361,
26295,
13,
28004,
13,
1102,
38669,
5376,
6624,
366,
7890,
12332,
1,
198,
197,
197,
42655,
13,
6494,
796,
4731,
7203,
27,
7146,
4686,
17553,
1600,
26295,
13,
8000,
11,
37227,
59,
22039,
12626,
1398,
2625,
24455,
12,
9127,
23984,
12626,
29,
6163,
503,
286,
1279,
12626,
1398,
2625,
23350,
12,
9127,
23984,
12626,
29,
4406,
3556,
7146,
29,
15931,
4943,
198,
197,
17772,
361,
26295,
13,
28004,
13,
1102,
38669,
5376,
6624,
366,
7890,
10962,
1,
198,
197,
197,
6494,
62,
2536,
796,
314,
9864,
13712,
3419,
198,
197,
197,
361,
5145,
42655,
13,
8094,
62,
43420,
198,
197,
197,
197,
13564,
7,
6494,
62,
2536,
11,
366,
198,
197,
197,
197,
27,
7635,
29,
198,
197,
197,
197,
220,
1303,
1600,
26295,
13,
8000,
11,
366,
764,
17896,
12,
11487,
12,
8094,
90,
13812,
25,
23108,
92,
198,
197,
197,
197,
3556,
7635,
29,
4943,
198,
197,
197,
437,
198,
197,
197,
13564,
7,
6494,
62,
2536,
11,
366,
198,
197,
197,
197,
27,
11487,
1398,
17553,
11487,
3084,
12,
43753,
7879,
4686,
17553,
1600,
26295,
13,
8000,
11,
37082,
5320,
198,
197,
197,
197,
1279,
1169,
324,
29,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
2213,
29,
4943,
198,
197,
197,
1640,
1994,
287,
26295,
13,
28665,
82,
198,
220,
220,
220,
220,
197,
13564,
7,
6494,
62,
2536,
11,
33490,
400,
29,
1600,
1994,
11,
366,
3556,
400,
29,
4943,
198,
220,
220,
220,
197,
437,
198,
220,
220,
220,
3551,
7,
6494,
62,
2536,
11,
366,
3556,
2213,
29,
198,
220,
220,
220,
220,
220,
220,
220,
7359,
1169,
324,
29,
198,
220,
220,
220,
220,
220,
220,
220,
7359,
11487,
29,
4943,
198,
197,
197,
42655,
13,
6494,
796,
10903,
7,
20657,
0,
7,
6494,
62,
2536,
4008,
198,
197,
437,
198,
197,
38176,
90,
92,
198,
437,
198,
198,
8818,
7308,
13,
13564,
7,
952,
3712,
9399,
11,
8262,
3712,
9697,
38300,
11,
33793,
3712,
5317,
8,
198,
197,
8658,
4623,
796,
366,
220,
366,
61,
521,
298,
198,
197,
4798,
7,
952,
11,
7400,
4623,
11,
366,
7785,
33172,
8262,
13,
8000,
11,
366,
796,
30736,
33283,
8262,
13,
28004,
13,
1102,
38669,
5376,
11,
30629,
7879,
2,
1600,
8262,
13,
8000,
11,
37082,
4943,
4943,
1303,
16926,
46,
25,
751,
8262,
36115,
628,
197,
1078,
7657,
796,
651,
62,
439,
62,
1078,
7657,
7,
40926,
13,
28004,
8,
198,
197,
1640,
357,
72,
11,
64,
8,
287,
27056,
378,
7,
1078,
7657,
8,
198,
197,
197,
361,
5145,
271,
28920,
7,
64,
13,
8367,
8,
198,
197,
197,
197,
4798,
7,
952,
11,
37082,
77,
1600,
7400,
4623,
11,
366,
220,
22135,
11,
4731,
7,
64,
13,
3672,
828,
30629,
1600,
257,
13,
8367,
11,
366,
8,
4943,
198,
197,
197,
437,
198,
197,
437,
198,
197,
35235,
7,
952,
11,
366,
26,
4943,
198,
437,
198,
198,
37811,
198,
197,
5171,
62,
259,
2232,
62,
40926,
7,
3258,
3712,
23839,
38469,
8,
198,
198,
15354,
8262,
32278,
318,
4855,
329,
262,
1813,
7177,
2099,
13,
198,
37811,
198,
271,
2616,
7,
87,
8,
796,
318,
64,
7,
87,
11,
25639,
8,
198,
5171,
62,
259,
2232,
62,
40926,
7,
3258,
3712,
23839,
38469,
8,
796,
5145,
1092,
7,
271,
2616,
11,
5240,
8,
198,
5171,
62,
259,
2232,
62,
40926,
7,
3258,
3712,
23839,
38469,
90,
40,
30072,
810,
1391,
40,
27,
25,
46541,
92,
796,
5145,
1092,
7,
271,
2616,
11,
5240,
8,
198,
5171,
62,
259,
2232,
62,
40926,
7,
3258,
3712,
23839,
38469,
90,
37,
30072,
810,
1391,
37,
27,
25,
23839,
43879,
92,
796,
5145,
1092,
7,
271,
2616,
11,
5240,
8,
11405,
5145,
1092,
7,
271,
10745,
11,
5240,
8,
11405,
5145,
1092,
7,
271,
12647,
11,
5240,
8,
198,
5171,
62,
259,
2232,
62,
40926,
7,
3258,
3712,
23839,
38469,
90,
50,
30072,
810,
1391,
50,
27,
25,
23839,
10100,
92,
796,
5145,
1092,
7,
271,
2616,
11,
5240,
8,
198,
198,
37811,
198,
197,
259,
2232,
62,
40926,
7,
3258,
3712,
23839,
38469,
11,
1448,
3712,
13247,
8,
198,
198,
42316,
82,
257,
22086,
11080,
329,
262,
2099,
287,
5240,
13,
198,
37811,
198,
259,
2232,
62,
40926,
7,
3258,
3712,
23839,
38469,
90,
49,
5512,
1448,
3712,
13247,
8,
810,
1391,
49,
27,
25,
15633,
92,
796,
275,
998,
433,
7,
3258,
11,
1448,
8,
198,
259,
2232,
62,
40926,
7,
3258,
3712,
23839,
38469,
90,
50,
5512,
1448,
3712,
13247,
8,
810,
1391,
50,
27,
25,
23839,
10100,
92,
796,
2508,
40926,
7,
3258,
11,
1448,
8,
198,
198,
8818,
5046,
62,
12286,
7,
3258,
3712,
23839,
38469,
90,
49,
30072,
810,
371,
27,
25,
15633,
198,
197,
31,
82,
37435,
7203,
67,
18,
13,
9888,
13,
29127,
22446,
27830,
26933,
4,
67,
11,
4,
67,
12962,
1600,
198,
197,
197,
197,
197,
197,
220,
220,
220,
220,
4314,
7,
5317,
11,
5288,
7,
3258,
36911,
198,
197,
197,
197,
197,
197,
220,
220,
220,
220,
2906,
346,
7,
5317,
11,
5415,
7,
3258,
22305,
198,
437,
198,
8818,
2546,
62,
12286,
0,
7,
40926,
3712,
45488,
6030,
8,
198,
197,
40926,
58,
25,
10394,
60,
796,
366,
6200,
13,
15,
1,
198,
197,
40926,
58,
25,
17015,
60,
796,
366,
18182,
13,
15,
1,
198,
437,
198,
198,
37811,
198,
197,
65,
998,
433,
198,
198,
818,
2232,
5103,
286,
257,
6257,
275,
998,
433,
1912,
319,
262,
1813,
1448,
13,
198,
37811,
198,
8818,
275,
998,
433,
7,
3258,
3712,
23839,
38469,
90,
40,
5512,
1448,
3712,
13247,
8,
810,
314,
27,
25,
46541,
198,
197,
40926,
796,
2769,
30073,
7,
10374,
45488,
8,
198,
197,
7857,
62,
12286,
0,
7,
40926,
8,
198,
197,
40926,
58,
25,
87,
60,
796,
5046,
62,
12286,
7,
3258,
8,
198,
197,
40926,
58,
25,
87,
3118,
896,
60,
796,
366,
17896,
13,
41667,
13,
46428,
13,
3866,
16005,
7,
13,
15,
16725,
198,
197,
9697,
45488,
7,
40926,
11,
1448,
8,
198,
437,
198,
8818,
275,
998,
433,
7,
3258,
3712,
23839,
38469,
90,
37,
5512,
1448,
3712,
13247,
8,
810,
376,
27,
25,
23839,
43879,
198,
197,
40926,
796,
2769,
30073,
7,
10374,
45488,
8,
198,
197,
7857,
62,
12286,
0,
7,
40926,
8,
198,
197,
40926,
58,
25,
16159,
10374,
60,
796,
366,
7942,
1,
198,
197,
40926,
58,
25,
87,
60,
796,
5046,
62,
12286,
7,
3258,
8,
198,
197,
40926,
58,
25,
87,
3118,
896,
60,
796,
366,
17896,
13,
41667,
13,
46428,
13,
3866,
16005,
16763,
7,
8094,
13,
27740,
13,
8800,
62,
10394,
4008,
1,
198,
197,
9697,
45488,
7,
40926,
11,
1448,
8,
198,
437,
198,
198,
37811,
198,
197,
21749,
40926,
198,
198,
818,
2232,
5103,
286,
257,
6257,
2508,
40926,
1912,
319,
262,
1813,
1448,
13,
198,
37811,
198,
8818,
2508,
40926,
7,
3258,
3712,
23839,
38469,
90,
50,
5512,
1448,
3712,
13247,
8,
810,
311,
27,
25,
23839,
10100,
198,
197,
40926,
796,
2769,
30073,
7,
48223,
45488,
8,
198,
197,
7857,
62,
12286,
0,
7,
40926,
8,
198,
197,
40926,
58,
25,
42172,
60,
796,
4731,
7,
29572,
7,
43879,
2414,
11,
8262,
58,
25,
17015,
4083,
8367,
27493,
15,
13,
19,
8,
198,
197,
40926,
58,
25,
82,
677,
274,
15610,
60,
796,
366,
940,
1,
198,
197,
9697,
45488,
7,
40926,
11,
1448,
8,
198,
437,
198,
8818,
2508,
40926,
7,
3258,
3712,
23839,
38469,
90,
40,
5512,
1448,
3712,
13247,
8,
810,
314,
27,
25,
46541,
198,
197,
40926,
796,
2769,
30073,
7,
48223,
45488,
8,
198,
197,
7857,
62,
12286,
0,
7,
40926,
8,
198,
197,
9697,
45488,
7,
40926,
11,
1448,
8,
198,
437,
198,
198,
37811,
198,
197,
1370,
40926,
198,
198,
818,
2232,
5103,
286,
257,
6257,
1627,
40926,
1912,
319,
262,
1813,
1448,
13,
198,
37811,
198,
8818,
1627,
40926,
7,
3258,
3712,
23839,
38469,
90,
40,
5512,
1448,
3712,
13247,
8,
810,
314,
27,
25,
46541,
198,
197,
40926,
796,
2769,
30073,
7,
13949,
45488,
8,
198,
197,
7857,
62,
12286,
0,
7,
40926,
8,
198,
197,
40926,
58,
25,
87,
60,
796,
5046,
62,
12286,
7,
3258,
8,
198,
197,
40926,
58,
25,
87,
3118,
896,
60,
796,
366,
17896,
13,
41667,
13,
46428,
13,
3866,
16005,
7,
13,
15,
16725,
198,
197,
9697,
45488,
7,
40926,
11,
1448,
8,
198,
437,
198,
8818,
1627,
40926,
7,
3258,
3712,
23839,
38469,
90,
37,
5512,
1448,
3712,
13247,
8,
810,
376,
27,
25,
23839,
43879,
198,
197,
40926,
796,
2769,
30073,
7,
13949,
45488,
8,
198,
197,
7857,
62,
12286,
0,
7,
40926,
8,
198,
197,
40926,
58,
25,
87,
60,
796,
5046,
62,
12286,
7,
3258,
8,
198,
197,
40926,
58,
25,
87,
3118,
896,
60,
796,
366,
17896,
13,
41667,
13,
46428,
13,
3866,
16005,
16763,
7,
8094,
13,
27740,
13,
8800,
62,
10394,
4008,
1,
198,
197,
9697,
45488,
7,
40926,
11,
1448,
8,
198,
437,
198,
198,
37811,
198,
197,
46176,
903,
40926,
198,
198,
42316,
281,
6565,
2183,
6257,
14310,
40926,
13,
198,
37811,
198,
8818,
14310,
40926,
7,
8094,
3712,
13247,
8,
198,
197,
40926,
796,
2769,
30073,
7,
33,
549,
903,
45488,
8,
198,
197,
7857,
62,
12286,
0,
7,
40926,
8,
198,
197,
9697,
45488,
7,
40926,
11,
1448,
8,
198,
437,
198,
8818,
4808,
8612,
378,
62,
15526,
273,
7,
4033,
3712,
13940,
23650,
8,
198,
197,
361,
951,
6624,
1058,
35,
4093,
608,
198,
197,
197,
7783,
366,
8818,
357,
67,
8,
1391,
1441,
288,
13,
8367,
13,
35,
4093,
608,
26,
36786,
198,
197,
17772,
198,
197,
197,
7783,
4731,
7203,
8818,
357,
67,
8,
1391,
1441,
288,
13,
8367,
33283,
951,
11,
45434,
16345,
46956,
4943,
198,
197,
437,
198,
437,
198,
37811,
198,
197,
46176,
903,
45488,
198,
198,
42316,
257,
14310,
40926,
1262,
262,
1813,
4958,
36115,
290,
21784,
1813,
416,
198,
63,
87,
62,
4033,
47671,
4600,
88,
62,
4033,
47671,
290,
4600,
81,
62,
4033,
63,
329,
2124,
2292,
11,
331,
2292,
11,
290,
16874,
13,
198,
37811,
198,
8818,
14310,
40926,
7,
8094,
3712,
13247,
11,
2124,
62,
4033,
3712,
13940,
23650,
11,
331,
62,
4033,
3712,
13940,
23650,
11,
374,
62,
4033,
3712,
13940,
23650,
8,
198,
197,
40926,
796,
2769,
30073,
7,
33,
549,
903,
45488,
8,
198,
197,
7857,
62,
12286,
0,
7,
40926,
8,
198,
197,
40926,
58,
25,
10394,
60,
796,
4731,
7,
29572,
7,
43879,
2414,
11,
8262,
58,
25,
10394,
4083,
8367,
8,
1635,
352,
8,
198,
197,
40926,
58,
25,
87,
60,
796,
366,
67,
18,
13,
9888,
13,
29127,
22446,
27830,
26933,
15,
11,
8628,
12962,
1,
1303,
2561,
651,
625,
6058,
268,
416,
27468,
55,
198,
197,
40926,
58,
25,
417,
3477,
55,
60,
796,
366,
7942,
1,
198,
197,
40926,
58,
25,
417,
3477,
56,
60,
796,
366,
7942,
1,
198,
197,
40926,
58,
25,
417,
3477,
15546,
3754,
60,
796,
366,
7942,
1,
198,
197,
40926,
58,
25,
87,
31554,
271,
47,
26872,
60,
796,
366,
1120,
1,
198,
197,
40926,
58,
25,
88,
31554,
271,
47,
26872,
60,
796,
366,
1120,
1,
198,
197,
40926,
58,
25,
2539,
15457,
273,
60,
796,
4808,
8612,
378,
62,
15526,
273,
7,
87,
62,
4033,
8,
198,
197,
40926,
58,
25,
8367,
15457,
273,
60,
796,
4808,
8612,
378,
62,
15526,
273,
7,
88,
62,
4033,
8,
198,
197,
40926,
58,
25,
42172,
11395,
15457,
273,
60,
796,
4808,
8612,
378,
62,
15526,
273,
7,
81,
62,
4033,
8,
198,
197,
40926,
58,
25,
9806,
33,
549,
903,
6892,
876,
10699,
60,
796,
366,
15,
13,
17,
1,
198,
197,
9697,
45488,
7,
40926,
11,
1448,
8,
198,
437,
198,
198,
37811,
198,
197,
808,
40926,
198,
198,
818,
2232,
5103,
286,
257,
6257,
5752,
40926,
1912,
319,
262,
1813,
1448,
13,
198,
37811,
198,
8818,
5752,
40926,
7,
3258,
3712,
23839,
38469,
90,
50,
5512,
1448,
3712,
13247,
8,
810,
311,
27,
25,
23839,
10100,
198,
197,
40926,
796,
2769,
30073,
7,
25166,
45488,
8,
198,
197,
7857,
62,
12286,
0,
7,
40926,
8,
198,
197,
9697,
45488,
7,
40926,
11,
1448,
8,
198,
437,
198,
8818,
5752,
40926,
7,
3258,
3712,
23839,
38469,
90,
40,
5512,
1448,
3712,
13247,
8,
810,
314,
27,
25,
46541,
198,
197,
40926,
796,
2769,
30073,
7,
25166,
45488,
8,
198,
197,
7857,
62,
12286,
0,
7,
40926,
8,
198,
197,
9697,
45488,
7,
40926,
11,
1448,
8,
198,
437,
198,
198,
37811,
198,
197,
19608,
330,
608,
42655,
198,
198,
42316,
257,
6257,
6060,
12332,
38300,
13,
198,
37811,
198,
8818,
4818,
330,
608,
42655,
3419,
198,
197,
40926,
796,
2769,
30073,
7,
6601,
12332,
38300,
8,
198,
197,
40926,
58,
25,
46156,
60,
796,
366,
12993,
1,
198,
197,
40926,
58,
25,
8094,
60,
796,
366,
439,
1,
198,
197,
17896,
42655,
796,
6257,
38300,
7,
40926,
8,
198,
197,
25120,
1096,
62,
8000,
7,
17896,
42655,
8,
198,
197,
17896,
42655,
198,
437,
198,
198,
37811,
198,
197,
19608,
21156,
42655,
198,
198,
42316,
257,
6257,
6060,
10962,
38300,
13,
198,
37811,
198,
8818,
4818,
21156,
42655,
7,
4033,
3712,
13940,
23650,
11,
15180,
3712,
38469,
90,
13940,
23650,
5512,
1448,
62,
43420,
3712,
33,
970,
28,
9562,
8,
198,
197,
40926,
796,
2769,
30073,
7,
6601,
10962,
38300,
8,
198,
197,
40926,
58,
25,
46156,
60,
796,
4731,
7,
4033,
8,
198,
197,
361,
1448,
62,
43420,
198,
197,
197,
40926,
58,
25,
8094,
60,
796,
4731,
7203,
8818,
7,
67,
8,
1391,
7783,
288,
33283,
951,
11,
366,
46956,
4943,
198,
197,
17772,
198,
197,
197,
40926,
58,
25,
8094,
60,
796,
37227,
8818,
7,
67,
8,
1391,
7783,
366,
2484,
7855,
1439,
15691,
8172,
92,
37811,
198,
197,
437,
198,
197,
4033,
62,
2536,
796,
314,
9864,
13712,
3419,
198,
197,
4798,
7,
4033,
62,
2536,
11,
12878,
59,
77,
4943,
198,
197,
1640,
1994,
287,
15180,
198,
197,
197,
4798,
7,
4033,
62,
2536,
11,
366,
8818,
7,
67,
8,
1391,
7783,
288,
33283,
1994,
11,
366,
26,
5512,
59,
77,
4943,
198,
220,
886,
198,
220,
3601,
7,
4033,
62,
2536,
11,
366,
60,
4943,
198,
220,
8262,
58,
25,
28665,
82,
60,
796,
10903,
7,
20657,
0,
7,
4033,
62,
2536,
4008,
198,
220,
8262,
58,
25,
7857,
60,
796,
366,
1314,
1,
198,
220,
30736,
42655,
796,
6257,
38300,
7,
40926,
11,
15180,
11,
1448,
62,
43420,
8,
198,
220,
4738,
1096,
62,
8000,
7,
17896,
42655,
8,
198,
220,
30736,
42655,
198,
437,
198,
8818,
4818,
21156,
42655,
7,
28665,
82,
3712,
38469,
90,
13940,
23650,
30072,
198,
197,
19608,
21156,
42655,
7,
28665,
82,
58,
16,
4357,
15180,
11,
3991,
8,
198,
437,
198,
198,
2,
28,
198,
2,
22086,
3858,
198,
6601,
12332,
38300,
1279,
25,
7308,
45488,
198,
6601,
10962,
38300,
1279,
25,
7308,
45488,
198,
33,
549,
903,
45488,
1279,
25,
27741,
33,
549,
903,
45488,
11,
22819,
4559,
41339,
45488,
198,
5377,
1930,
578,
45488,
1279,
25,
22819,
4559,
41339,
45488,
198,
10082,
78,
2601,
273,
643,
400,
45488,
1279,
25,
5315,
45488,
11,
7308,
45488,
198,
33,
549,
903,
5886,
10724,
45488,
1279,
25,
27741,
33,
549,
903,
45488,
11,
7308,
45488,
198,
25166,
45488,
1279,
25,
5315,
45488,
11,
7308,
45488,
198,
21351,
198,
15057,
23114,
1279,
25,
7308,
45488,
198,
46249,
198
] | 2.539846 | 4,944 |
function _make_spectogram_gui()
popupmenu_spect = Menu()
popupmenu_spect_freq = MenuItem("Frequency Range")
popupmenu_spect_win = MenuItem("Window Size")
popupmenu_spect_overlap = MenuItem("Window Overlap")
push!(popupmenu_spect,popupmenu_spect_freq)
push!(popupmenu_spect,popupmenu_spect_win)
push!(popupmenu_spect,popupmenu_spect_overlap)
popupmenu_spect_freq_select=Menu(popupmenu_spect_freq)
if VERSION > v"0.7-"
spect_f_handles=Array{MenuItemLeaf}(undef,0)
else
spect_f_handles=Array{MenuItemLeaf}(0)
end
spect_f_options=[300; 1000; 3000; 7500; 15000]
push!(spect_f_handles,MenuItem(string(spect_f_options[1])))
push!(popupmenu_spect_freq_select,spect_f_handles[1])
for i=2:5
push!(spect_f_handles,MenuItem(spect_f_handles[i-1],string(spect_f_options[i])))
push!(popupmenu_spect_freq_select,spect_f_handles[i])
end
popupmenu_spect_win_select=Menu(popupmenu_spect_win)
if VERSION > v"0.7-"
spect_w_handles=Array{MenuItemLeaf}(undef,0)
else
spect_w_handles=Array{MenuItemLeaf}(0)
end
spect_w_options=[10; 50; 100]
push!(spect_w_handles,MenuItem(string(spect_w_options[1])))
push!(popupmenu_spect_win_select,spect_w_handles[1])
for i=2:3
push!(spect_w_handles,MenuItem(spect_w_handles[i-1],string(spect_w_options[i])))
push!(popupmenu_spect_win_select,spect_w_handles[i])
end
Gtk.showall(popupmenu_spect)
(spect_w_handles,spect_f_handles, popupmenu_spect)
end
function add_spect_callbacks(spect_f_handles,spect_w_handles,handles)
for i=1:5
signal_connect(spect_popup_freq_cb,spect_f_handles[i],"activate",Void,(),false,(handles,i-1))
end
for i=1:3
signal_connect(spect_popup_win_cb,spect_w_handles[i],"activate",Void,(),false,(handles,i-1))
end
nothing
end
function prepare_spectrogram(ctx,han)
myheight=height(ctx)
mywidth=width(ctx)
set_source_rgb(ctx,1.0,1.0,1.0)
move_to(ctx,50.0,myheight-35)
show_text(ctx,"-1")
move_to(ctx,50.0,myheight-35)
show_text(ctx,"-1.0")
move_to(ctx,(mywidth-50.0)/2+50,myheight-35)
show_text(ctx,"-0.5")
move_to(ctx,mywidth-20.0,myheight-35)
show_text(ctx,"0.0")
move_to(ctx,mywidth/2,myheight-20)
show_text(ctx,"Time (s)")
move_to(ctx,10.0,myheight-140)
rotate(ctx,-pi/2)
show_text(ctx,"Frequency")
identity_matrix(ctx)
move_to(ctx,35.0,myheight-50.0)
rotate(ctx,-pi/2)
show_text(ctx,"0.0")
identity_matrix(ctx)
move_to(ctx,35.0,myheight-50-125)
rotate(ctx,-pi/2)
show_text(ctx,string(round(Int64,han.spect.f_max*han.spect.f_div/2)))
identity_matrix(ctx)
nothing
end
function draw_spectrogram(rhd::RHD2000,han::Gui_Handles)
ctx=Gtk.getgc(han.c)
x=Gtk.cairo_surface(han.c)
data = ccall((:cairo_image_surface_get_data,Cairo._jl_libcairo),Ptr{UInt32},(Ptr{Void},),x.ptr)
c_h=round(Int64,height(ctx))
c_w=round(Int64,width(ctx))-50
for i=(size(rhd.v,1)+1):rhd.sr
han.v_s[i-SAMPLES_PER_DATA_BLOCK] = han.v_s[i]
end
count=1
if han.band_widgets.lfp_en[han.sc.spike]
for i=(rhd.sr-SAMPLES_PER_DATA_BLOCK+1):rhd.sr
han.v_s[i] = rhd.lfps[count,han.sc.spike]
count+=1
end
else
for i=(rhd.sr-SAMPLES_PER_DATA_BLOCK+1):rhd.sr
han.v_s[i] = rhd.v[count,han.sc.spike]
count+=1
end
end
plot_spectrogram(han.v_s,rhd.sr,han.spect)
in_w = han.spect.t_max
in_h = han.spect.f_max
scale_w = c_w / in_w
scale_h = 250 / in_h
mymin=minimum(han.spect.out)
mymax=maximum(han.spect.out)
myrange=mymax-mymin
rgb_mat = zeros(UInt32,in_h,in_w)
for h=1:in_h
for w=1:in_w
startround = (han.spect.out[h,w]-mymin)/myrange*255
myinput::UInt8 = (startround >= 255) ? 255 : floor(UInt8,startround)+1
myblue=jet_b[myinput]
mygreen=jet_g[myinput]
myred=jet_r[myinput]
rgb_mat[h,w] = 0
rgb_mat[h,w] |= myblue # blue
rgb_mat[h,w] |= (mygreen << 8) #green
rgb_mat[h,w] |= (myred << 16) #red
end
end
for h=1:250
for w=1:c_w
val = rgb_mat[ceil(Int,h/scale_h),ceil(Int,w/scale_w)]
unsafe_store!(data,val,(c_h-h-50)*(c_w+50)+w+50)
end
end
nothing
end
function plot_spectrogram(s,fs,spect)
S = spectrogram(s,spect.win_width_s,spect.win_overlap_s; fs=fs, window=hanning)
temp = power(S)
for i=1:spect.f_max
for j=1:spect.t_max
spect.out[i,j]=log10(temp[i,j])
end
end
nothing
end
function spect_popup_freq_cb(widget::Ptr,user_data::Tuple{Gui_Handles,Int64})
han, event_id = user_data
if event_id == 0
f_max = 300
elseif event_id == 1
f_max = 1000
elseif event_id == 2
f_max = 3000
elseif event_id == 3
f_max = 7500
else
f_max = 15000
end
han.spect = Spectrogram(han.spect.fs; win_width_t = han.spect.win_width_t, win_overlap_t = han.spect.win_overlap_t, f_max = f_max)
nothing
end
function spect_popup_win_cb(widget::Ptr,user_data::Tuple{Gui_Handles,Int64})
han, event_id = user_data
if event_id == 0
mywin = .01
elseif event_id == 1
mywin = .05
else
mywin = .1
end
han.spect = Spectrogram(han.spect.fs; win_width_t = mywin, win_overlap_t = han.spect.win_overlap_t, f_max = han.spect.f_max*han.spect.f_div)
nothing
end
| [
198,
8818,
4808,
15883,
62,
4443,
21857,
62,
48317,
3419,
628,
220,
220,
220,
46207,
26272,
62,
4443,
796,
21860,
3419,
198,
220,
220,
220,
46207,
26272,
62,
4443,
62,
19503,
80,
796,
21860,
7449,
7203,
37,
28707,
13667,
4943,
198,
220,
220,
220,
46207,
26272,
62,
4443,
62,
5404,
796,
21860,
7449,
7203,
27703,
12849,
4943,
198,
220,
220,
220,
46207,
26272,
62,
4443,
62,
2502,
37796,
796,
21860,
7449,
7203,
27703,
3827,
37796,
4943,
198,
220,
220,
220,
4574,
0,
7,
12924,
929,
26272,
62,
4443,
11,
12924,
929,
26272,
62,
4443,
62,
19503,
80,
8,
198,
220,
220,
220,
4574,
0,
7,
12924,
929,
26272,
62,
4443,
11,
12924,
929,
26272,
62,
4443,
62,
5404,
8,
198,
220,
220,
220,
4574,
0,
7,
12924,
929,
26272,
62,
4443,
11,
12924,
929,
26272,
62,
4443,
62,
2502,
37796,
8,
628,
220,
220,
220,
46207,
26272,
62,
4443,
62,
19503,
80,
62,
19738,
28,
23381,
7,
12924,
929,
26272,
62,
4443,
62,
19503,
80,
8,
198,
220,
220,
220,
611,
44156,
2849,
1875,
410,
1,
15,
13,
22,
21215,
198,
220,
220,
220,
220,
220,
220,
220,
5444,
62,
69,
62,
4993,
829,
28,
19182,
90,
23381,
7449,
3123,
1878,
92,
7,
917,
891,
11,
15,
8,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
5444,
62,
69,
62,
4993,
829,
28,
19182,
90,
23381,
7449,
3123,
1878,
92,
7,
15,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
5444,
62,
69,
62,
25811,
41888,
6200,
26,
8576,
26,
20343,
26,
767,
4059,
26,
1315,
830,
60,
628,
220,
220,
220,
4574,
0,
7,
4443,
62,
69,
62,
4993,
829,
11,
23381,
7449,
7,
8841,
7,
4443,
62,
69,
62,
25811,
58,
16,
60,
22305,
198,
220,
220,
220,
4574,
0,
7,
12924,
929,
26272,
62,
4443,
62,
19503,
80,
62,
19738,
11,
4443,
62,
69,
62,
4993,
829,
58,
16,
12962,
628,
220,
220,
220,
329,
1312,
28,
17,
25,
20,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
4443,
62,
69,
62,
4993,
829,
11,
23381,
7449,
7,
4443,
62,
69,
62,
4993,
829,
58,
72,
12,
16,
4357,
8841,
7,
4443,
62,
69,
62,
25811,
58,
72,
60,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
12924,
929,
26272,
62,
4443,
62,
19503,
80,
62,
19738,
11,
4443,
62,
69,
62,
4993,
829,
58,
72,
12962,
198,
220,
220,
220,
886,
628,
220,
220,
220,
46207,
26272,
62,
4443,
62,
5404,
62,
19738,
28,
23381,
7,
12924,
929,
26272,
62,
4443,
62,
5404,
8,
198,
220,
220,
220,
611,
44156,
2849,
1875,
410,
1,
15,
13,
22,
21215,
198,
220,
220,
220,
220,
220,
220,
220,
5444,
62,
86,
62,
4993,
829,
28,
19182,
90,
23381,
7449,
3123,
1878,
92,
7,
917,
891,
11,
15,
8,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
5444,
62,
86,
62,
4993,
829,
28,
19182,
90,
23381,
7449,
3123,
1878,
92,
7,
15,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
5444,
62,
86,
62,
25811,
41888,
940,
26,
2026,
26,
1802,
60,
628,
220,
220,
220,
4574,
0,
7,
4443,
62,
86,
62,
4993,
829,
11,
23381,
7449,
7,
8841,
7,
4443,
62,
86,
62,
25811,
58,
16,
60,
22305,
198,
220,
220,
220,
4574,
0,
7,
12924,
929,
26272,
62,
4443,
62,
5404,
62,
19738,
11,
4443,
62,
86,
62,
4993,
829,
58,
16,
12962,
628,
220,
220,
220,
329,
1312,
28,
17,
25,
18,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
4443,
62,
86,
62,
4993,
829,
11,
23381,
7449,
7,
4443,
62,
86,
62,
4993,
829,
58,
72,
12,
16,
4357,
8841,
7,
4443,
62,
86,
62,
25811,
58,
72,
60,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
12924,
929,
26272,
62,
4443,
62,
5404,
62,
19738,
11,
4443,
62,
86,
62,
4993,
829,
58,
72,
12962,
198,
220,
220,
220,
886,
628,
220,
220,
220,
402,
30488,
13,
12860,
439,
7,
12924,
929,
26272,
62,
4443,
8,
628,
220,
220,
220,
357,
4443,
62,
86,
62,
4993,
829,
11,
4443,
62,
69,
62,
4993,
829,
11,
46207,
26272,
62,
4443,
8,
198,
437,
198,
198,
8818,
751,
62,
4443,
62,
13345,
10146,
7,
4443,
62,
69,
62,
4993,
829,
11,
4443,
62,
86,
62,
4993,
829,
11,
4993,
829,
8,
628,
220,
220,
220,
329,
1312,
28,
16,
25,
20,
198,
220,
220,
220,
220,
220,
220,
220,
6737,
62,
8443,
7,
4443,
62,
12924,
929,
62,
19503,
80,
62,
21101,
11,
4443,
62,
69,
62,
4993,
829,
58,
72,
17241,
39022,
1600,
53,
1868,
11,
22784,
9562,
11,
7,
4993,
829,
11,
72,
12,
16,
4008,
198,
220,
220,
220,
886,
628,
220,
220,
220,
329,
1312,
28,
16,
25,
18,
198,
220,
220,
220,
220,
220,
220,
220,
6737,
62,
8443,
7,
4443,
62,
12924,
929,
62,
5404,
62,
21101,
11,
4443,
62,
86,
62,
4993,
829,
58,
72,
17241,
39022,
1600,
53,
1868,
11,
22784,
9562,
11,
7,
4993,
829,
11,
72,
12,
16,
4008,
198,
220,
220,
220,
886,
628,
220,
220,
220,
2147,
198,
437,
198,
198,
8818,
8335,
62,
4443,
39529,
7,
49464,
11,
7637,
8,
628,
220,
220,
220,
616,
17015,
28,
17015,
7,
49464,
8,
198,
220,
220,
220,
616,
10394,
28,
10394,
7,
49464,
8,
628,
220,
220,
220,
900,
62,
10459,
62,
81,
22296,
7,
49464,
11,
16,
13,
15,
11,
16,
13,
15,
11,
16,
13,
15,
8,
628,
220,
220,
220,
1445,
62,
1462,
7,
49464,
11,
1120,
13,
15,
11,
1820,
17015,
12,
2327,
8,
198,
220,
220,
220,
905,
62,
5239,
7,
49464,
553,
12,
16,
4943,
628,
220,
220,
220,
1445,
62,
1462,
7,
49464,
11,
1120,
13,
15,
11,
1820,
17015,
12,
2327,
8,
198,
220,
220,
220,
905,
62,
5239,
7,
49464,
553,
12,
16,
13,
15,
4943,
628,
220,
220,
220,
1445,
62,
1462,
7,
49464,
11,
7,
1820,
10394,
12,
1120,
13,
15,
20679,
17,
10,
1120,
11,
1820,
17015,
12,
2327,
8,
198,
220,
220,
220,
905,
62,
5239,
7,
49464,
553,
12,
15,
13,
20,
4943,
628,
220,
220,
220,
1445,
62,
1462,
7,
49464,
11,
1820,
10394,
12,
1238,
13,
15,
11,
1820,
17015,
12,
2327,
8,
198,
220,
220,
220,
905,
62,
5239,
7,
49464,
553,
15,
13,
15,
4943,
628,
220,
220,
220,
1445,
62,
1462,
7,
49464,
11,
1820,
10394,
14,
17,
11,
1820,
17015,
12,
1238,
8,
198,
220,
220,
220,
905,
62,
5239,
7,
49464,
553,
7575,
357,
82,
8,
4943,
628,
220,
220,
220,
1445,
62,
1462,
7,
49464,
11,
940,
13,
15,
11,
1820,
17015,
12,
15187,
8,
198,
220,
220,
220,
23064,
7,
49464,
12095,
14415,
14,
17,
8,
198,
220,
220,
220,
905,
62,
5239,
7,
49464,
553,
37,
28707,
4943,
198,
220,
220,
220,
5369,
62,
6759,
8609,
7,
49464,
8,
628,
220,
220,
220,
1445,
62,
1462,
7,
49464,
11,
2327,
13,
15,
11,
1820,
17015,
12,
1120,
13,
15,
8,
198,
220,
220,
220,
23064,
7,
49464,
12095,
14415,
14,
17,
8,
198,
220,
220,
220,
905,
62,
5239,
7,
49464,
553,
15,
13,
15,
4943,
198,
220,
220,
220,
5369,
62,
6759,
8609,
7,
49464,
8,
628,
220,
220,
220,
1445,
62,
1462,
7,
49464,
11,
2327,
13,
15,
11,
1820,
17015,
12,
1120,
12,
11623,
8,
198,
220,
220,
220,
23064,
7,
49464,
12095,
14415,
14,
17,
8,
198,
220,
220,
220,
905,
62,
5239,
7,
49464,
11,
8841,
7,
744,
7,
5317,
2414,
11,
7637,
13,
4443,
13,
69,
62,
9806,
9,
7637,
13,
4443,
13,
69,
62,
7146,
14,
17,
22305,
198,
220,
220,
220,
5369,
62,
6759,
8609,
7,
49464,
8,
628,
220,
220,
220,
2147,
198,
437,
198,
198,
8818,
3197,
62,
4443,
39529,
7,
17179,
67,
3712,
49,
10227,
11024,
11,
7637,
3712,
8205,
72,
62,
12885,
829,
8,
628,
220,
220,
220,
269,
17602,
28,
38,
30488,
13,
1136,
36484,
7,
7637,
13,
66,
8,
628,
220,
220,
220,
2124,
28,
38,
30488,
13,
66,
18131,
62,
42029,
7,
7637,
13,
66,
8,
198,
220,
220,
220,
1366,
796,
269,
13345,
19510,
25,
66,
18131,
62,
9060,
62,
42029,
62,
1136,
62,
7890,
11,
34,
18131,
13557,
20362,
62,
8019,
66,
18131,
828,
46745,
90,
52,
5317,
2624,
5512,
7,
46745,
90,
53,
1868,
5512,
828,
87,
13,
20692,
8,
628,
220,
220,
220,
269,
62,
71,
28,
744,
7,
5317,
2414,
11,
17015,
7,
49464,
4008,
198,
220,
220,
220,
269,
62,
86,
28,
744,
7,
5317,
2414,
11,
10394,
7,
49464,
4008,
12,
1120,
628,
220,
220,
220,
329,
1312,
16193,
7857,
7,
17179,
67,
13,
85,
11,
16,
47762,
16,
2599,
17179,
67,
13,
27891,
198,
220,
220,
220,
220,
220,
220,
220,
289,
272,
13,
85,
62,
82,
58,
72,
12,
49302,
6489,
1546,
62,
18973,
62,
26947,
62,
9148,
11290,
60,
796,
289,
272,
13,
85,
62,
82,
58,
72,
60,
198,
220,
220,
220,
886,
198,
220,
220,
220,
954,
28,
16,
628,
220,
220,
220,
611,
289,
272,
13,
3903,
62,
28029,
11407,
13,
1652,
79,
62,
268,
58,
7637,
13,
1416,
13,
2777,
522,
60,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
16193,
17179,
67,
13,
27891,
12,
49302,
6489,
1546,
62,
18973,
62,
26947,
62,
9148,
11290,
10,
16,
2599,
17179,
67,
13,
27891,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
289,
272,
13,
85,
62,
82,
58,
72,
60,
796,
9529,
67,
13,
1652,
862,
58,
9127,
11,
7637,
13,
1416,
13,
2777,
522,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
954,
47932,
16,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
16193,
17179,
67,
13,
27891,
12,
49302,
6489,
1546,
62,
18973,
62,
26947,
62,
9148,
11290,
10,
16,
2599,
17179,
67,
13,
27891,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
289,
272,
13,
85,
62,
82,
58,
72,
60,
796,
9529,
67,
13,
85,
58,
9127,
11,
7637,
13,
1416,
13,
2777,
522,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
954,
47932,
16,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
7110,
62,
4443,
39529,
7,
7637,
13,
85,
62,
82,
11,
17179,
67,
13,
27891,
11,
7637,
13,
4443,
8,
628,
220,
220,
220,
287,
62,
86,
796,
289,
272,
13,
4443,
13,
83,
62,
9806,
198,
220,
220,
220,
287,
62,
71,
796,
289,
272,
13,
4443,
13,
69,
62,
9806,
628,
220,
220,
220,
5046,
62,
86,
796,
269,
62,
86,
1220,
287,
62,
86,
198,
220,
220,
220,
5046,
62,
71,
796,
8646,
1220,
287,
62,
71,
628,
220,
220,
220,
616,
1084,
28,
39504,
7,
7637,
13,
4443,
13,
448,
8,
198,
220,
220,
220,
616,
9806,
28,
47033,
7,
7637,
13,
4443,
13,
448,
8,
198,
220,
220,
220,
616,
9521,
28,
1820,
9806,
12,
1820,
1084,
628,
220,
220,
220,
46140,
62,
6759,
796,
1976,
27498,
7,
52,
5317,
2624,
11,
259,
62,
71,
11,
259,
62,
86,
8,
628,
220,
220,
220,
329,
289,
28,
16,
25,
259,
62,
71,
198,
220,
220,
220,
220,
220,
220,
220,
329,
266,
28,
16,
25,
259,
62,
86,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
923,
744,
796,
357,
7637,
13,
4443,
13,
448,
58,
71,
11,
86,
45297,
1820,
1084,
20679,
1820,
9521,
9,
13381,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
616,
15414,
3712,
52,
5317,
23,
796,
357,
9688,
744,
18189,
14280,
8,
5633,
14280,
1058,
4314,
7,
52,
5317,
23,
11,
9688,
744,
47762,
16,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
616,
17585,
28,
31173,
62,
65,
58,
1820,
15414,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
616,
14809,
28,
31173,
62,
70,
58,
1820,
15414,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
616,
445,
28,
31173,
62,
81,
58,
1820,
15414,
60,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
46140,
62,
6759,
58,
71,
11,
86,
60,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
46140,
62,
6759,
58,
71,
11,
86,
60,
930,
28,
616,
17585,
220,
1303,
4171,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
46140,
62,
6759,
58,
71,
11,
86,
60,
930,
28,
357,
1820,
14809,
9959,
807,
8,
1303,
14809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
46140,
62,
6759,
58,
71,
11,
86,
60,
930,
28,
357,
1820,
445,
9959,
1467,
8,
1303,
445,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
329,
289,
28,
16,
25,
9031,
198,
220,
220,
220,
220,
220,
220,
220,
329,
266,
28,
16,
25,
66,
62,
86,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1188,
796,
46140,
62,
6759,
58,
344,
346,
7,
5317,
11,
71,
14,
9888,
62,
71,
828,
344,
346,
7,
5317,
11,
86,
14,
9888,
62,
86,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21596,
62,
8095,
0,
7,
7890,
11,
2100,
11,
7,
66,
62,
71,
12,
71,
12,
1120,
27493,
7,
66,
62,
86,
10,
1120,
47762,
86,
10,
1120,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
2147,
198,
437,
198,
198,
8818,
7110,
62,
4443,
39529,
7,
82,
11,
9501,
11,
4443,
8,
628,
220,
220,
220,
311,
796,
5444,
39529,
7,
82,
11,
4443,
13,
5404,
62,
10394,
62,
82,
11,
4443,
13,
5404,
62,
2502,
37796,
62,
82,
26,
43458,
28,
9501,
11,
4324,
28,
7637,
768,
8,
628,
220,
220,
220,
20218,
796,
1176,
7,
50,
8,
628,
220,
220,
220,
329,
1312,
28,
16,
25,
4443,
13,
69,
62,
9806,
198,
220,
220,
220,
220,
220,
220,
220,
329,
474,
28,
16,
25,
4443,
13,
83,
62,
9806,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5444,
13,
448,
58,
72,
11,
73,
22241,
6404,
940,
7,
29510,
58,
72,
11,
73,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
2147,
198,
437,
198,
198,
8818,
5444,
62,
12924,
929,
62,
19503,
80,
62,
21101,
7,
42655,
3712,
46745,
11,
7220,
62,
7890,
3712,
51,
29291,
90,
8205,
72,
62,
12885,
829,
11,
5317,
2414,
30072,
628,
220,
220,
220,
289,
272,
11,
1785,
62,
312,
796,
2836,
62,
7890,
628,
220,
220,
220,
611,
1785,
62,
312,
6624,
657,
198,
220,
220,
220,
220,
220,
220,
220,
277,
62,
9806,
796,
5867,
198,
220,
220,
220,
2073,
361,
1785,
62,
312,
6624,
352,
198,
220,
220,
220,
220,
220,
220,
220,
277,
62,
9806,
796,
8576,
198,
220,
220,
220,
2073,
361,
1785,
62,
312,
6624,
362,
198,
220,
220,
220,
220,
220,
220,
220,
277,
62,
9806,
796,
20343,
198,
220,
220,
220,
2073,
361,
1785,
62,
312,
6624,
513,
198,
220,
220,
220,
220,
220,
220,
220,
277,
62,
9806,
796,
767,
4059,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
277,
62,
9806,
796,
1315,
830,
198,
220,
220,
220,
886,
628,
220,
220,
220,
289,
272,
13,
4443,
796,
13058,
39529,
7,
7637,
13,
4443,
13,
9501,
26,
1592,
62,
10394,
62,
83,
796,
289,
272,
13,
4443,
13,
5404,
62,
10394,
62,
83,
11,
1592,
62,
2502,
37796,
62,
83,
796,
289,
272,
13,
4443,
13,
5404,
62,
2502,
37796,
62,
83,
11,
277,
62,
9806,
796,
277,
62,
9806,
8,
628,
220,
220,
220,
2147,
198,
437,
198,
198,
8818,
5444,
62,
12924,
929,
62,
5404,
62,
21101,
7,
42655,
3712,
46745,
11,
7220,
62,
7890,
3712,
51,
29291,
90,
8205,
72,
62,
12885,
829,
11,
5317,
2414,
30072,
628,
220,
220,
220,
289,
272,
11,
1785,
62,
312,
796,
2836,
62,
7890,
628,
198,
220,
220,
220,
611,
1785,
62,
312,
6624,
657,
198,
220,
220,
220,
220,
220,
220,
220,
616,
5404,
796,
764,
486,
198,
220,
220,
220,
2073,
361,
1785,
62,
312,
6624,
352,
198,
220,
220,
220,
220,
220,
220,
220,
616,
5404,
796,
764,
2713,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
616,
5404,
796,
764,
16,
198,
220,
220,
220,
886,
628,
220,
220,
220,
289,
272,
13,
4443,
796,
13058,
39529,
7,
7637,
13,
4443,
13,
9501,
26,
1592,
62,
10394,
62,
83,
796,
616,
5404,
11,
1592,
62,
2502,
37796,
62,
83,
796,
289,
272,
13,
4443,
13,
5404,
62,
2502,
37796,
62,
83,
11,
277,
62,
9806,
796,
289,
272,
13,
4443,
13,
69,
62,
9806,
9,
7637,
13,
4443,
13,
69,
62,
7146,
8,
628,
220,
220,
220,
2147,
198,
437,
198
] | 1.949548 | 2,874 |
module Analysis
using Oceananigans
using JLD2
using Plots
using Oceananigans.Grids
using Oceananigans.Fields: offset_data
import Oceananigans.Fields: Field
Field(loc::Tuple, grid::AbstractGrid, raw_data::Array) = Field(loc, CPU(), grid, nothing, offset_data(raw_data, grid, loc))
field_from_file(file, loc, name, iter) = Field(loc, file["serialized/grid"], file["timeseries/$name/$iter"])
CellFileField(file, name, iter) = Field((Cell, Cell, Cell), file["serialized/grid"], file["timeseries/$name/$iter"])
XFaceFileField(file, name, iter) = Field((Face, Cell, Cell), file["serialized/grid"], file["timeseries/$name/$iter"])
YFaceFileField(file, name, iter) = Field((Cell, Face, Cell), file["serialized/grid"], file["timeseries/$name/$iter"])
max_abs_tracer(file, iter) = maximum(abs, interior(CellFileField(file, :c, iter)))
tracer_variance(file, iter) = 1/2 * sum(interior(CellFileField(file, :c, iter)).^2)
kinetic_energy(file, iter) = 1/2 * (sum(interior(XFaceFileField(file, :u, iter)).^2) +
sum(interior(YFaceFileField(file, :v, iter)).^2))
function oceananigans_statistics(filename)
file = jldopen(filename)
iterations = parse.(Int, keys(file["timeseries/t"]))
t = [ file["timeseries/t/$iter"] for iter in iterations]
e = [ kinetic_energy(file, iter) for iter in iterations]
χ = [ tracer_variance(file, iter) for iter in iterations]
c★ = [ max_abs_tracer(file, iter) for iter in iterations]
close(file)
Δχ = χ ./ χ[1]
Δe = e ./ e[1]
return t, Δe, Δχ, c★
end
function plot_resolutions(t, data, resolutions; kwargs...)
plt = plot(t[1], data[1]; label = "N² = $(resolutions[1])²", kwargs...)
for i = 2:length(data)
plot!(plt, t[i], data[i]; label = "N² = $(resolutions[i])²", kwargs...)
end
return plt
end
end # module
| [
21412,
14691,
198,
198,
3500,
10692,
272,
34090,
198,
3500,
449,
11163,
17,
198,
3500,
1345,
1747,
198,
198,
3500,
10692,
272,
34090,
13,
8642,
2340,
198,
3500,
10692,
272,
34090,
13,
15878,
82,
25,
11677,
62,
7890,
198,
11748,
10692,
272,
34090,
13,
15878,
82,
25,
7663,
198,
198,
15878,
7,
17946,
3712,
51,
29291,
11,
10706,
3712,
23839,
41339,
11,
8246,
62,
7890,
3712,
19182,
8,
796,
7663,
7,
17946,
11,
9135,
22784,
10706,
11,
2147,
11,
11677,
62,
7890,
7,
1831,
62,
7890,
11,
10706,
11,
1179,
4008,
198,
3245,
62,
6738,
62,
7753,
7,
7753,
11,
1179,
11,
1438,
11,
11629,
8,
796,
7663,
7,
17946,
11,
2393,
14692,
46911,
1143,
14,
25928,
33116,
2393,
14692,
22355,
10640,
32624,
3672,
32624,
2676,
8973,
8,
198,
198,
28780,
8979,
15878,
7,
7753,
11,
1438,
11,
11629,
8,
220,
796,
7663,
19510,
28780,
11,
12440,
11,
12440,
828,
2393,
14692,
46911,
1143,
14,
25928,
33116,
2393,
14692,
22355,
10640,
32624,
3672,
32624,
2676,
8973,
8,
198,
55,
32388,
8979,
15878,
7,
7753,
11,
1438,
11,
11629,
8,
796,
7663,
19510,
32388,
11,
12440,
11,
12440,
828,
2393,
14692,
46911,
1143,
14,
25928,
33116,
2393,
14692,
22355,
10640,
32624,
3672,
32624,
2676,
8973,
8,
198,
56,
32388,
8979,
15878,
7,
7753,
11,
1438,
11,
11629,
8,
796,
7663,
19510,
28780,
11,
15399,
11,
12440,
828,
2393,
14692,
46911,
1143,
14,
25928,
33116,
2393,
14692,
22355,
10640,
32624,
3672,
32624,
2676,
8973,
8,
198,
198,
9806,
62,
8937,
62,
2213,
11736,
7,
7753,
11,
11629,
8,
796,
5415,
7,
8937,
11,
11087,
7,
28780,
8979,
15878,
7,
7753,
11,
1058,
66,
11,
11629,
22305,
198,
198,
2213,
11736,
62,
25641,
590,
7,
7753,
11,
11629,
8,
796,
352,
14,
17,
1635,
2160,
7,
3849,
1504,
7,
28780,
8979,
15878,
7,
7753,
11,
1058,
66,
11,
11629,
29720,
61,
17,
8,
198,
198,
5116,
5139,
62,
22554,
7,
7753,
11,
11629,
8,
796,
352,
14,
17,
1635,
357,
16345,
7,
3849,
1504,
7,
55,
32388,
8979,
15878,
7,
7753,
11,
1058,
84,
11,
11629,
29720,
61,
17,
8,
1343,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2160,
7,
3849,
1504,
7,
56,
32388,
8979,
15878,
7,
7753,
11,
1058,
85,
11,
11629,
29720,
61,
17,
4008,
198,
198,
8818,
9151,
272,
34090,
62,
14269,
3969,
7,
34345,
8,
198,
220,
220,
220,
2393,
796,
474,
335,
9654,
7,
34345,
8,
628,
220,
220,
220,
34820,
796,
21136,
12195,
5317,
11,
8251,
7,
7753,
14692,
22355,
10640,
14,
83,
8973,
4008,
628,
220,
220,
220,
256,
220,
796,
685,
2393,
14692,
22355,
10640,
14,
83,
32624,
2676,
8973,
220,
329,
11629,
287,
34820,
60,
198,
220,
220,
220,
304,
220,
796,
685,
37892,
62,
22554,
7,
7753,
11,
11629,
8,
220,
329,
11629,
287,
34820,
60,
198,
220,
220,
220,
18074,
229,
220,
796,
685,
491,
11736,
62,
25641,
590,
7,
7753,
11,
11629,
8,
329,
11629,
287,
34820,
60,
198,
220,
220,
220,
269,
15583,
796,
685,
3509,
62,
8937,
62,
2213,
11736,
7,
7753,
11,
11629,
8,
220,
329,
11629,
287,
34820,
60,
628,
220,
220,
220,
1969,
7,
7753,
8,
628,
220,
220,
220,
37455,
139,
229,
796,
18074,
229,
24457,
18074,
229,
58,
16,
60,
198,
220,
220,
220,
37455,
68,
796,
304,
24457,
304,
58,
16,
60,
628,
220,
220,
220,
1441,
256,
11,
37455,
68,
11,
37455,
139,
229,
11,
269,
15583,
198,
437,
198,
198,
8818,
7110,
62,
411,
14191,
7,
83,
11,
1366,
11,
21811,
26,
479,
86,
22046,
23029,
198,
220,
220,
220,
458,
83,
796,
7110,
7,
83,
58,
16,
4357,
1366,
58,
16,
11208,
6167,
796,
366,
45,
31185,
796,
29568,
411,
14191,
58,
16,
12962,
31185,
1600,
479,
86,
22046,
23029,
198,
220,
220,
220,
329,
1312,
796,
362,
25,
13664,
7,
7890,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7110,
0,
7,
489,
83,
11,
256,
58,
72,
4357,
1366,
58,
72,
11208,
6167,
796,
366,
45,
31185,
796,
29568,
411,
14191,
58,
72,
12962,
31185,
1600,
479,
86,
22046,
23029,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
458,
83,
198,
437,
198,
198,
437,
1303,
8265,
198
] | 2.548343 | 724 |
using BenchmarkTools
BenchmarkTools.DEFAULT_PARAMETERS.samples = 100
function compute(file::String)::Int
chars = Dict(Char(Int('A') + i) => i + 1 for i ∈ 0:25)
return sum(i * chars[c] for (i, name) ∈ enumerate(sort(split(replace(file, "\"" => ""), ","))) for c ∈ name)
end
file = read("problems/0022/p022_names.txt", String)
compute(file)
@benchmark compute(file) | [
3500,
25187,
4102,
33637,
198,
44199,
4102,
33637,
13,
7206,
38865,
62,
27082,
2390,
2767,
4877,
13,
82,
12629,
796,
1802,
198,
198,
8818,
24061,
7,
7753,
3712,
10100,
2599,
25,
5317,
198,
220,
220,
220,
34534,
796,
360,
713,
7,
12441,
7,
5317,
10786,
32,
11537,
1343,
1312,
8,
5218,
1312,
1343,
352,
329,
1312,
18872,
230,
657,
25,
1495,
8,
198,
220,
220,
220,
1441,
2160,
7,
72,
1635,
34534,
58,
66,
60,
329,
357,
72,
11,
1438,
8,
18872,
230,
27056,
378,
7,
30619,
7,
35312,
7,
33491,
7,
7753,
11,
366,
7879,
1,
5218,
366,
12340,
366,
553,
22305,
329,
269,
18872,
230,
1438,
8,
198,
437,
198,
198,
7753,
796,
1100,
7203,
1676,
22143,
14,
405,
1828,
14,
79,
44087,
62,
14933,
13,
14116,
1600,
10903,
8,
198,
198,
5589,
1133,
7,
7753,
8,
198,
198,
31,
26968,
4102,
24061,
7,
7753,
8
] | 2.533784 | 148 |
"""
data_harvest(all=true, paper=false)
Makes all the figures from the paper for the notebook.
This function calls PlotData to make the figures one at a time.
"""
function data_harvest(all=true, paper=false)
cvals = [.5, .99, 1]
itvals = [10, 10, 30]
level=5
for ic=1:3
figure(ic)
PlotData(cvals[ic]; ptitle=~paper)
end
if all
for ic=1:3
figure(ic+3)
PlotData(cvals[ic]; half=true, ptitle=~paper)
end
end
end
"""
PlotData(c; half=false, level=5, ptitle=true)
Generates a figure from the paper using the precomputed data from
data_populate.
"""
function PlotData(c; half=false, level=5, ptitle=true)
if half
nfig=2
T=Float16
TI=[Float16]
leadtitle="Half Precision: c = "
else
nfig=4
T=Float64
TI=[Float64, Float32]
leadtitle="Single and Double Precision: c = "
end
ftitle=string(leadtitle,string(c))
c==1.0 ? (nits=31) : (nits=11)
maxit=nits-1
#aymin=1.e-15
aymin=ymin(c,half)
Datain=zeros(nits,level,nfig)
fname=Fname(c,T)
readmpdata(fname, Datain)
for ic=1:nfig
for iz = 1:level
Datain[:,iz,ic] .= Datain[:,iz,ic]./Datain[1,iz,ic]
end
end
for T in TI
PlotHist(Datain, level, maxit, aymin, T)
end
if ptitle
PyPlot.suptitle(ftitle)
end
end
function ymin(c, half)
ymin = 1.e-15
if half
if c == 1.0
ymin = 1.e-6
else
ymin = 1.e-10
end
end
return ymin
end
function PlotHist(DataC::Array{Float64,3}, pmax, maxit, aymin, T)
fmtplot = ("k-", "k--", "k-.", "k:", "k>:")
gxlabel = "Nonlinear Iterations"
gylabel = L"$|| F ||/||F_0||$"
if T==Float16
b=1
pstart=1
else
b=2
pstart = (T==Float32)*3 + (T==Float64)*1
end
subplot(b,2,pstart)
for ip=1:pmax
semilogy(0:maxit,DataC[:,ip,pstart],fmtplot[ip]);
axis([0.0, maxit, aymin, 1.0])
if pstart == 1
legend(["1024", "2048", "4096", "8192", "16384"])
end
title(string(prestring(T),",", "analytic Jacobian"))
xlabel(gxlabel)
ylabel(gylabel)
end
subplot(b,2,pstart+1)
for ip=1:pmax
semilogy(0:maxit,DataC[:,ip,pstart+1],fmtplot[ip])
title(string(prestring(T),",", "finite difference Jacobian"))
xlabel(gxlabel)
if T != Float16
ylabel(gylabel)
end
axis([0.0, maxit, aymin, 1.0])
end
end
function prestring(T)
if T==Float64
pstr="Double precision"
elseif T==Float32
pstr="Single precision"
else
pstr="Half precision"
end
return pstr
end
| [
37811,
198,
7890,
62,
9869,
4223,
7,
439,
28,
7942,
11,
3348,
28,
9562,
8,
198,
44,
1124,
477,
262,
5538,
422,
262,
3348,
329,
262,
20922,
13,
198,
1212,
2163,
3848,
28114,
6601,
284,
787,
262,
5538,
530,
379,
257,
640,
13,
198,
37811,
198,
8818,
1366,
62,
9869,
4223,
7,
439,
28,
7942,
11,
3348,
28,
9562,
8,
198,
66,
12786,
796,
685,
13,
20,
11,
764,
2079,
11,
352,
60,
198,
270,
12786,
796,
685,
940,
11,
838,
11,
1542,
60,
198,
5715,
28,
20,
198,
1640,
14158,
28,
16,
25,
18,
198,
220,
220,
220,
3785,
7,
291,
8,
198,
220,
220,
220,
28114,
6601,
7,
66,
12786,
58,
291,
11208,
279,
7839,
31820,
20189,
8,
198,
437,
198,
361,
477,
198,
1640,
14158,
28,
16,
25,
18,
198,
220,
220,
220,
3785,
7,
291,
10,
18,
8,
198,
220,
220,
220,
28114,
6601,
7,
66,
12786,
58,
291,
11208,
2063,
28,
7942,
11,
279,
7839,
31820,
20189,
8,
198,
437,
198,
437,
198,
437,
198,
198,
37811,
198,
43328,
6601,
7,
66,
26,
2063,
28,
9562,
11,
1241,
28,
20,
11,
279,
7839,
28,
7942,
8,
198,
198,
8645,
689,
257,
3785,
422,
262,
3348,
1262,
262,
662,
785,
17128,
1366,
422,
198,
7890,
62,
12924,
5039,
13,
220,
198,
37811,
628,
198,
8818,
28114,
6601,
7,
66,
26,
2063,
28,
9562,
11,
1241,
28,
20,
11,
279,
7839,
28,
7942,
8,
198,
361,
2063,
198,
220,
220,
299,
5647,
28,
17,
198,
220,
220,
309,
28,
43879,
1433,
198,
220,
220,
31598,
41888,
43879,
1433,
60,
198,
220,
220,
1085,
7839,
2625,
31305,
39281,
25,
269,
796,
366,
198,
17772,
198,
220,
220,
299,
5647,
28,
19,
198,
220,
220,
309,
28,
43879,
2414,
198,
220,
220,
31598,
41888,
43879,
2414,
11,
48436,
2624,
60,
198,
220,
220,
1085,
7839,
2625,
28008,
290,
11198,
39281,
25,
269,
796,
366,
198,
437,
198,
701,
2578,
28,
8841,
7,
28230,
7839,
11,
8841,
7,
66,
4008,
198,
66,
855,
16,
13,
15,
5633,
357,
77,
896,
28,
3132,
8,
1058,
357,
77,
896,
28,
1157,
8,
198,
9806,
270,
28,
77,
896,
12,
16,
198,
2,
323,
1084,
28,
16,
13,
68,
12,
1314,
198,
323,
1084,
28,
88,
1084,
7,
66,
11,
13959,
8,
198,
27354,
391,
28,
9107,
418,
7,
77,
896,
11,
5715,
11,
77,
5647,
8,
198,
69,
3672,
28,
37,
3672,
7,
66,
11,
51,
8,
198,
961,
3149,
7890,
7,
69,
3672,
11,
16092,
391,
8,
198,
1640,
14158,
28,
16,
25,
77,
5647,
198,
1640,
220,
528,
796,
352,
25,
5715,
198,
220,
220,
220,
16092,
391,
58,
45299,
528,
11,
291,
60,
764,
28,
16092,
391,
58,
45299,
528,
11,
291,
4083,
14,
27354,
391,
58,
16,
11,
528,
11,
291,
60,
198,
437,
198,
437,
198,
1640,
309,
287,
31598,
198,
43328,
13749,
7,
27354,
391,
11,
1241,
11,
3509,
270,
11,
38762,
1084,
11,
309,
8,
198,
437,
198,
361,
279,
7839,
198,
220,
220,
9485,
43328,
13,
2385,
457,
2578,
7,
701,
2578,
8,
198,
437,
198,
437,
628,
198,
8818,
331,
1084,
7,
66,
11,
2063,
8,
198,
220,
220,
220,
331,
1084,
796,
352,
13,
68,
12,
1314,
198,
220,
220,
220,
611,
2063,
198,
220,
220,
220,
220,
220,
220,
220,
611,
269,
6624,
352,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
1084,
796,
352,
13,
68,
12,
21,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
1084,
796,
352,
13,
68,
12,
940,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
331,
1084,
198,
437,
198,
198,
8818,
28114,
13749,
7,
6601,
34,
3712,
19182,
90,
43879,
2414,
11,
18,
5512,
9114,
897,
11,
3509,
270,
11,
38762,
1084,
11,
309,
8,
198,
69,
16762,
29487,
796,
5855,
74,
12,
1600,
366,
74,
438,
1600,
366,
74,
12,
33283,
366,
74,
25,
1600,
366,
74,
31175,
4943,
198,
70,
87,
18242,
796,
366,
15419,
29127,
40806,
602,
1,
198,
1360,
18242,
796,
406,
1,
3,
15886,
376,
8614,
14,
15886,
37,
62,
15,
15886,
3,
1,
198,
361,
309,
855,
43879,
1433,
198,
65,
28,
16,
198,
79,
9688,
28,
16,
198,
17772,
198,
65,
28,
17,
198,
79,
9688,
796,
357,
51,
855,
43879,
2624,
27493,
18,
1343,
357,
51,
855,
43879,
2414,
27493,
16,
198,
437,
198,
7266,
29487,
7,
65,
11,
17,
11,
79,
9688,
8,
198,
1640,
20966,
28,
16,
25,
4426,
897,
198,
43616,
19202,
7,
15,
25,
9806,
270,
11,
6601,
34,
58,
45299,
541,
11,
79,
9688,
4357,
69,
16762,
29487,
58,
541,
36563,
198,
22704,
26933,
15,
13,
15,
11,
3509,
270,
11,
38762,
1084,
11,
352,
13,
15,
12962,
198,
361,
279,
9688,
6624,
352,
198,
220,
220,
220,
220,
220,
220,
8177,
7,
14692,
35500,
1600,
366,
1238,
2780,
1600,
366,
1821,
4846,
1600,
366,
23,
17477,
1600,
366,
1433,
22842,
8973,
8,
198,
437,
198,
7839,
7,
8841,
7,
79,
2118,
1806,
7,
51,
27267,
553,
11,
366,
38200,
13370,
12806,
666,
48774,
198,
87,
18242,
7,
70,
87,
18242,
8,
198,
2645,
9608,
7,
1360,
18242,
8,
198,
437,
198,
7266,
29487,
7,
65,
11,
17,
11,
79,
9688,
10,
16,
8,
198,
1640,
20966,
28,
16,
25,
4426,
897,
198,
43616,
19202,
7,
15,
25,
9806,
270,
11,
6601,
34,
58,
45299,
541,
11,
79,
9688,
10,
16,
4357,
69,
16762,
29487,
58,
541,
12962,
198,
7839,
7,
8841,
7,
79,
2118,
1806,
7,
51,
27267,
553,
11,
366,
69,
9504,
3580,
12806,
666,
48774,
198,
87,
18242,
7,
70,
87,
18242,
8,
198,
361,
309,
14512,
48436,
1433,
198,
2645,
9608,
7,
1360,
18242,
8,
198,
437,
198,
22704,
26933,
15,
13,
15,
11,
3509,
270,
11,
38762,
1084,
11,
352,
13,
15,
12962,
198,
437,
198,
437,
198,
198,
8818,
662,
8841,
7,
51,
8,
198,
361,
309,
855,
43879,
2414,
198,
220,
220,
279,
2536,
2625,
25628,
15440,
1,
198,
17772,
361,
309,
855,
43879,
2624,
198,
220,
220,
279,
2536,
2625,
28008,
15440,
1,
198,
17772,
198,
220,
220,
279,
2536,
2625,
31305,
15440,
1,
198,
437,
198,
7783,
279,
2536,
198,
437,
198
] | 2.188984 | 1,053 |
export ft_getstatus
function ft_getstatus(ft_handle::Culong)
amountinrxqueue = Ref{Cuint}()
amountintxqueue = Ref{Cuint}()
eventstatus = Ref{Cuint}()
ft_status = ccall((:FT_GetStatus, d2xx),
Cuint,
(Culong,Ref{Cuint},Ref{Cuint},Ref{Cuint}),
ft_handle, amountinrxqueue, amountintxqueue, eventstatus)
checkstatus(ft_status)
return (convert(Int32,amountinrxqueue[]),
convert(Int32,amountintxqueue[]),convert(Int32,eventstatus[]))
end
| [
39344,
10117,
62,
1136,
13376,
198,
198,
8818,
10117,
62,
1136,
13376,
7,
701,
62,
28144,
3712,
34,
377,
506,
8,
198,
220,
2033,
259,
40914,
36560,
796,
6524,
90,
34,
28611,
92,
3419,
198,
220,
2033,
600,
87,
36560,
796,
6524,
90,
34,
28611,
92,
3419,
198,
220,
1785,
13376,
796,
6524,
90,
34,
28611,
92,
3419,
198,
220,
10117,
62,
13376,
796,
269,
13345,
19510,
25,
9792,
62,
3855,
19580,
11,
288,
17,
5324,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14496,
600,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
34,
377,
506,
11,
8134,
90,
34,
28611,
5512,
8134,
90,
34,
28611,
5512,
8134,
90,
34,
28611,
92,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10117,
62,
28144,
11,
2033,
259,
40914,
36560,
11,
2033,
600,
87,
36560,
11,
1785,
13376,
8,
198,
220,
2198,
13376,
7,
701,
62,
13376,
8,
198,
220,
1441,
357,
1102,
1851,
7,
5317,
2624,
11,
17287,
259,
40914,
36560,
21737,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10385,
7,
5317,
2624,
11,
17287,
600,
87,
36560,
21737,
828,
1102,
1851,
7,
5317,
2624,
11,
15596,
13376,
21737,
4008,
198,
437,
198
] | 2.154167 | 240 |
"""
localizationsplot(localizations::Vector{Localizations}, color::Symbol)
localizationsplot(localizations::Vector{Vector{Localization}}, colors::Vector{Symbol})
Plot localizations by spatial coordinates. Assumes that the y-coordinate is inverted. Defaults to 0-to-40960 on each
axis, but option may be specified using keyword arguments xlims=(x1, x2) and ylims=(y1, y2). Colors are specified in the
documentation for Plots.jl. Can tune opacity with opacity= keword argument. factor= can be tuned for display in the pane
or for saving and printing (recommended 4, default 1).
"""
plotlocalizations(locs::Vector{Localization}, color::Symbol; kargs...) =
plotlocalizations([locs], [color]; kargs...)
function plotlocalizations(localizations::Vector{Vector{Localization}}, colors::Vector{Symbol};
xlims=(0, 40960), ylims=(0,40960), opacity=0.75, factor=1)
channelcount = length(localizations)
plot(framestyle=:none, size=((1024,1024) .* factor))
for i ∈ 1:channelcount
coords = localizations[i] |> extractcoordinates
scatter!(coords[1,:], coords[2,:], marker=(1 * factor, stroke(0), opacity, colors[i]))
end
plot!(aspect_ratio=:equal, xlims=xlims, yaxis=(ylims, :flip), legend=:none, grid=:hide, ticks=(0))
end
| [
37811,
198,
220,
220,
220,
1957,
4582,
29487,
7,
12001,
4582,
3712,
38469,
90,
14565,
4582,
5512,
3124,
3712,
13940,
23650,
8,
198,
220,
220,
220,
1957,
4582,
29487,
7,
12001,
4582,
3712,
38469,
90,
38469,
90,
14565,
1634,
92,
5512,
7577,
3712,
38469,
90,
13940,
23650,
30072,
198,
198,
43328,
1957,
4582,
416,
21739,
22715,
13,
2195,
8139,
326,
262,
331,
12,
37652,
4559,
318,
37204,
13,
2896,
13185,
284,
657,
12,
1462,
12,
29416,
1899,
319,
1123,
198,
22704,
11,
475,
3038,
743,
307,
7368,
1262,
21179,
7159,
2124,
2475,
82,
16193,
87,
16,
11,
2124,
17,
8,
290,
331,
2475,
82,
16193,
88,
16,
11,
331,
17,
737,
29792,
389,
7368,
287,
262,
198,
22897,
341,
329,
1345,
1747,
13,
20362,
13,
1680,
14009,
45912,
351,
45912,
28,
885,
4775,
4578,
13,
5766,
28,
460,
307,
16524,
329,
3359,
287,
262,
37218,
198,
273,
329,
8914,
290,
13570,
357,
47335,
1631,
604,
11,
4277,
352,
737,
198,
37811,
198,
29487,
12001,
4582,
7,
17946,
82,
3712,
38469,
90,
14565,
1634,
5512,
3124,
3712,
13940,
23650,
26,
479,
22046,
23029,
796,
198,
220,
220,
220,
7110,
12001,
4582,
26933,
17946,
82,
4357,
685,
8043,
11208,
479,
22046,
23029,
198,
198,
8818,
7110,
12001,
4582,
7,
12001,
4582,
3712,
38469,
90,
38469,
90,
14565,
1634,
92,
5512,
7577,
3712,
38469,
90,
13940,
23650,
19629,
198,
220,
220,
220,
2124,
2475,
82,
16193,
15,
11,
2319,
39277,
828,
331,
2475,
82,
16193,
15,
11,
29416,
1899,
828,
45912,
28,
15,
13,
2425,
11,
5766,
28,
16,
8,
628,
220,
220,
220,
6518,
9127,
796,
4129,
7,
12001,
4582,
8,
198,
220,
220,
220,
7110,
7,
19298,
10992,
28,
25,
23108,
11,
2546,
16193,
7,
35500,
11,
35500,
8,
764,
9,
5766,
4008,
198,
220,
220,
220,
329,
1312,
18872,
230,
352,
25,
17620,
9127,
198,
220,
220,
220,
220,
220,
220,
220,
763,
3669,
796,
1957,
4582,
58,
72,
60,
930,
29,
7925,
37652,
17540,
198,
220,
220,
220,
220,
220,
220,
220,
41058,
0,
7,
1073,
3669,
58,
16,
11,
25,
4357,
763,
3669,
58,
17,
11,
25,
4357,
18364,
16193,
16,
1635,
5766,
11,
14000,
7,
15,
828,
45912,
11,
7577,
58,
72,
60,
4008,
198,
220,
220,
220,
886,
198,
220,
220,
220,
7110,
0,
7,
292,
806,
62,
10366,
952,
28,
25,
40496,
11,
2124,
2475,
82,
28,
87,
2475,
82,
11,
331,
22704,
16193,
88,
2475,
82,
11,
1058,
2704,
541,
828,
8177,
28,
25,
23108,
11,
10706,
28,
25,
24717,
11,
36066,
16193,
15,
4008,
198,
437,
198
] | 2.978774 | 424 |
include("prewrap/bitmasks.jl")
include("prewrap/types.jl")
include("prewrap/handles.jl")
include("prewrap/pointers.jl")
include("prewrap/conversions.jl")
include("prewrap/errors.jl")
include("prewrap/spirv.jl")
| [
17256,
7203,
79,
1809,
2416,
14,
2545,
5356,
591,
13,
20362,
4943,
198,
17256,
7203,
79,
1809,
2416,
14,
19199,
13,
20362,
4943,
198,
17256,
7203,
79,
1809,
2416,
14,
4993,
829,
13,
20362,
4943,
198,
17256,
7203,
79,
1809,
2416,
14,
47809,
13,
20362,
4943,
198,
17256,
7203,
79,
1809,
2416,
14,
1102,
47178,
13,
20362,
4943,
198,
17256,
7203,
79,
1809,
2416,
14,
48277,
13,
20362,
4943,
198,
17256,
7203,
79,
1809,
2416,
14,
45564,
85,
13,
20362,
4943,
198
] | 2.573171 | 82 |
struct StreamerInfo
streamer
dependencies
end
struct Streamers
tkey::TKey
refs::Dict{Int32, Any}
elements::Vector{StreamerInfo}
end
Base.length(s::Streamers) = length(s.elements)
function Base.show(io::IO, s::Streamers)
for streamer_info in s.elements
println(io, "$(streamer_info.streamer.fName)")
# streamer = streamer_info.streamer
# print(io, "$(streamer.fName): fType = $(streamer.fType), ")
# print(io, "fTypeName: $(streamer.fTypeName)")
end
end
# Structures required to read streamers
struct TStreamerInfo
fName
fTitle
fCheckSum
fClassVersion
fElements
end
function unpack(io, tkey::TKey, refs::Dict{Int32, Any}, T::Type{TStreamerInfo})
preamble = Preamble(io, T)
fName, fTitle = nametitle(io)
fCheckSum = readtype(io, UInt32)
fClassVersion = readtype(io, Int32)
fElements = readobjany!(io, tkey, refs)
endcheck(io, preamble)
T(fName, fTitle, fCheckSum, fClassVersion, fElements)
end
safename(s::AbstractString) = replace(s, "::" => "_3a3a_")
function initialise_streamer(s::StreamerInfo)
# FIXME Abstract is not needed when switched to autogenerated streamers
base = Symbol(safename(s.streamer.fName))
supername = Symbol(:Abstract, base)
if !isdefined(@__MODULE__, supername)
@debug "Defining abstract type $supername"
@eval abstract type $(supername) <: ROOTStreamedObject end
end
name = Symbol(base, Symbol("_$(s.streamer.fClassVersion)"))
if !isdefined(@__MODULE__, name)
@debug " creating versioned struct '$name <: $supername'"
@eval struct $(name) <: $(supername) end
# FIXME create the stream!() functions somewhere here...
# println(name)
# @eval struct $name <: ROOTStreamedObject
# data::Dict{Symbol, Any}
# end
else
@debug "Not defining $name since it already has a bootstrapped version"
end
end
"""
function Streamers(io)
Reads all the streamers from the ROOT source.
"""
function Streamers(io)
refs = Dict{Int32, Any}()
start = position(io)
tkey = unpack(io, TKey)
if iscompressed(tkey)
@debug "Compressed stream at $(start)"
seekstart(io, tkey)
compression_header = unpack(io, CompressionHeader)
#FIXME for some reason we need to re-pack such that it ends at exact bytes.
skipped = position(io) - start
# notice our `TKey` size is not the same as official TKey, can't use sizeof()
io_buf = IOBuffer(read(io, tkey.fNbytes - skipped))
if String(compression_header.algo) == "ZL"
stream = IOBuffer(read(ZlibDecompressorStream(io_buf), tkey.fObjlen))
elseif String(compression_header.algo) == "XZ"
stream = IOBuffer(read(XzDecompressorStream(io_buf), tkey.fObjlen))
elseif String(compression_header.algo) == "L4"
skip(io_buf, 8) #skip checksum
stream = IOBuffer(lz4_decompress(read(io_buf), tkey.fObjlen))
else
error("Unsupported compression type '$(String(compression_header.algo))'")
end
else
@debug "Unompressed stream at $(start)"
stream = io
end
preamble = Preamble(stream, Streamers)
skiptobj(stream)
name = readtype(stream, String)
size = readtype(stream, Int32)
streamer_infos = Vector{StreamerInfo}()
@debug "Found $size streamers, continue with parsing."
for i ∈ 1:size
obj = readobjany!(stream, tkey, refs)
if typeof(obj) == TStreamerInfo
@debug " processing streamer info for '$(obj.fName)' (v$(obj.fClassVersion))"
@debug " number of dependencies: $(length(obj.fElements.elements))"
dependencies = Set()
for element in obj.fElements.elements
if typeof(element) == TStreamerBase
@debug " + adding dependency '$(element.fName)'"
push!(dependencies, element.fName)
else
@debug " - skipping dependency '$(element.fName)' with type '$(typeof(element))'"
end
end
@debug " => finishing dependency readout for: $(obj.fName)"
push!(streamer_infos, StreamerInfo(obj, dependencies))
else
@debug " not a TStreamerInfo but '$(typeof(obj))', skipping."
end
# FIXME why not just skip a byte?
skip(stream, readtype(stream, UInt8))
end
endcheck(stream, preamble)
streamer_infos = topological_sort(streamer_infos)
for streamer_info in streamer_infos
initialise_streamer(streamer_info)
end
Streamers(tkey, refs, streamer_infos)
end
"""
function topological_sort(streamer_infos)
Sort the streamers with respect to their dependencies and keep only those
which are not defined already.
The implementation is based on https://stackoverflow.com/a/11564769/1623645
"""
function topological_sort(streamer_infos)
@debug "Starting topological sort of streamers"
provided = Set{String}()
sorted_streamer_infos = []
while length(streamer_infos) > 0
remaining_items = []
emitted = false
@debug " number of remaining streamers to sort: $(length(streamer_infos))"
for streamer_info in streamer_infos
# if all(d -> isdefined(@__MODULE__, Symbol(d)) || d ∈ provided, streamer_info.dependencies)
# if !isdefined(@__MODULE__, Symbol(streamer_info.streamer.fName)) && aliasfor(streamer_info.streamer.fName) === nothing
@debug " processing '$(streamer_info.streamer.fName)' with $(length(streamer_info.dependencies))' dependencies"
if length(streamer_infos) == 1 || all(d -> d ∈ provided, streamer_info.dependencies)
if aliasfor(streamer_info.streamer.fName) === nothing
push!(sorted_streamer_infos, streamer_info)
end
push!(provided, streamer_info.streamer.fName)
emitted = true
else
push!(remaining_items, streamer_info)
end
end
if !emitted
for streamer_info in streamer_infos
filter!(isequal(streamer_info), remaining_items)
end
end
streamer_infos = remaining_items
end
@debug "Finished the topological sort of streamers"
sorted_streamer_infos
end
"""
function readobjany!(io, tkey::TKey, refs)
The main entrypoint where streamers are parsed and cached for later use.
The `refs` dictionary holds the streamers or parsed data which are reused
when already available.
"""
function readobjany!(io, tkey::TKey, refs)
beg = position(io) - origin(tkey)
bcnt = readtype(io, UInt32)
if Int64(bcnt) & Const.kByteCountMask == 0 || Int64(bcnt) == Const.kNewClassTag
# New class or 0 bytes
version = 0
start = 0
tag = bcnt
bcnt = 0
else
version = 1
start = position(io) - origin(tkey)
tag = readtype(io, UInt32)
end
if Int64(tag) & Const.kClassMask == 0
# reference object
if tag == 0
return missing
elseif tag == 1
error("Returning parent is not implemented yet")
elseif !haskey(refs, tag)
# skipping
seek(io, origin(tkey) + beg + bcnt + 4)
return missing
else
return refs[tag]
end
elseif tag == Const.kNewClassTag
cname = readtype(io, CString)
streamer = getfield(@__MODULE__, Symbol(cname))
if version > 0
refs[start + Const.kMapOffset] = streamer
else
refs[length(refs) + 1] = streamer
end
obj = unpack(io, tkey, refs, streamer)
if version > 0
refs[beg + Const.kMapOffset] = obj
else
refs[length(refs) + 1] = obj
end
return obj
else
# reference class, new object
ref = Int64(tag) & ~Const.kClassMask
haskey(refs, ref) || error("Invalid class reference.")
streamer = refs[ref]
obj = unpack(io, tkey, refs, streamer)
if version > 0
refs[beg + Const.kMapOffset] = obj
else
refs[length(refs) + 1] = obj
end
return obj
end
end
struct TList
preamble
name
size
objects
end
Base.length(l::TList) = length(l.objects)
function unpack(io, tkey::TKey, refs::Dict{Int32, Any}, T::Type{TList})
preamble = Preamble(io, T)
skiptobj(io)
name = readtype(io, String)
size = readtype(io, Int32)
objects = []
for i ∈ 1:size
push!(objects, readobjany!(io, tkey, refs))
skip(io, readtype(io, UInt8))
end
endcheck(io, preamble)
TList(preamble, name, size, objects)
end
struct TObjArray
name
low
elements
end
function unpack(io, tkey::TKey, refs::Dict{Int32, Any}, T::Type{TObjArray})
preamble = Preamble(io, T)
skiptobj(io)
name = readtype(io, String)
size = readtype(io, Int32)
low = readtype(io, Int32)
elements = Vector{Any}(undef, size)
for i in 1:size
ele = readobjany!(io, tkey, refs)
# !ismissing(ele) && @show ele.fName
elements[i] = ele
end
endcheck(io, preamble)
return TObjArray(name, low, elements)
end
abstract type AbstractTStreamerElement end
@premix @with_kw mutable struct TStreamerElementTemplate
version
fOffset
fName
fTitle
fType
fSize
fArrayLength
fArrayDim
fMaxIndex
fTypeName
fXmin
fXmax
fFactor
end
@TStreamerElementTemplate mutable struct TStreamerElement end
@pour initparse begin
fields = Dict{Symbol, Any}()
end
function parsefields!(io, fields, T::Type{TStreamerElement})
preamble = Preamble(io, T)
fields[:version] = preamble.version
fields[:fOffset] = 0
fields[:fName], fields[:fTitle] = nametitle(io)
fields[:fType] = readtype(io, Int32)
fields[:fSize] = readtype(io, Int32)
fields[:fArrayLength] = readtype(io, Int32)
fields[:fArrayDim] = readtype(io, Int32)
n = preamble.version == 1 ? readtype(io, Int32) : 5
fields[:fMaxIndex] = [readtype(io, Int32) for _ in 1:n]
fields[:fTypeName] = readtype(io, String)
if fields[:fType] == 11 && (fields[:fTypeName] == "Bool_t" || fields[:fTypeName] == "bool")
fields[:fType] = 18
end
fields[:fXmin] = 0.0
fields[:fXmax] = 0.0
fields[:fFactor] = 0.0
if preamble.version == 3
fields[:fXmin] = readtype(io, Float64)
fields[:fXmax] = readtype(io, Float64)
fields[:fFactor] = readtype(io, Float64)
end
endcheck(io, preamble)
end
function unpack(io, tkey::TKey, refs::Dict{Int32, Any}, T::Type{TStreamerElement})
@initparse
parsefields!(io, fields, T)
T(;fields...)
end
@TStreamerElementTemplate mutable struct TStreamerBase
fBaseVersion
end
function parsefields!(io, fields, T::Type{TStreamerBase})
preamble = Preamble(io, T)
parsefields!(io, fields, TStreamerElement)
fields[:fBaseVersion] = fields[:version] >= 2 ? readtype(io, Int32) : 0
endcheck(io, preamble)
end
function unpack(io, tkey::TKey, refs::Dict{Int32, Any}, T::Type{TStreamerBase})
@initparse
parsefields!(io, fields, T)
T(;fields...)
end
@TStreamerElementTemplate mutable struct TStreamerBasicType end
function parsefields!(io, fields, ::Type{TStreamerBasicType})
parsefields!(io, fields, TStreamerElement)
if Const.kOffsetL < fields[:fType] < Const.kOffsetP
fields[:fType] -= Const.kOffsetP
end
basic = true
if fields[:fType] ∈ (Const.kBool, Const.kUChar, Const.kChar)
fields[:fSize] = 1
elseif fields[:fType] in (Const.kUShort, Const.kShort)
fields[:fSize] = 2
elseif fields[:fType] in (Const.kBits, Const.kUInt, Const.kInt, Const.kCounter)
fields[:fSize] = 4
elseif fields[:fType] in (Const.kULong, Const.kULong64, Const.kLong, Const.kLong64)
fields[:fSize] = 8
elseif fields[:fType] in (Const.kFloat, Const.kFloat16)
fields[:fSize] = 4
elseif fields[:fType] in (Const.kDouble, Const.kDouble32)
fields[:fSize] = 8
elseif fields[:fType] == Const.kCharStar
fields[:fSize] = sizeof(Int)
else
basic = false
end
if basic && fields[:fArrayLength] > 0
fields[:fSize] *= fields[:fArrayLength]
end
end
function unpack(io, tkey::TKey, refs::Dict{Int32, Any}, T::Type{TStreamerBasicType})
@initparse
preamble = Preamble(io, T)
parsefields!(io, fields, T)
endcheck(io, preamble)
T(;fields...)
end
@TStreamerElementTemplate mutable struct TStreamerBasicPointer
fCountVersion
fCountName
fCountClass
end
function unpack(io, tkey::TKey, refs::Dict{Int32, Any}, T::Type{TStreamerBasicPointer})
@initparse
preamble = Preamble(io, T)
parsefields!(io, fields, TStreamerElement)
fields[:fCountVersion] = readtype(io, Int32)
fields[:fCountName] = readtype(io, String)
fields[:fCountClass] = readtype(io, String)
endcheck(io, preamble)
T(;fields...)
end
@TStreamerElementTemplate mutable struct TStreamerLoop
fCountVersion
fCountName
fCountClass
end
components(::Type{TStreamerLoop}) = [TStreamerElement]
function parsefields!(io, fields, ::Type{TStreamerLoop})
fields[:fCountVersion] = readtype(io, Int32)
fields[:fCountName] = readtype(io, String)
fields[:fCountClass] = readtype(io, String)
end
function unpack(io, tkey::TKey, refs::Dict{Int32, Any}, T::Type{TStreamerLoop})
@initparse
preamble = Preamble(io, T)
for component in components(T)
parsefields!(io, fields, component)
end
parsefields!(io, fields, T)
endcheck(io, preamble)
T(;fields...)
end
abstract type AbstractTStreamSTL end
@TStreamerElementTemplate mutable struct TStreamerSTL <: AbstractTStreamSTL
fSTLtype
fCtype
end
@TStreamerElementTemplate mutable struct TStreamerSTLstring <: AbstractTStreamSTL
fSTLtype
fCtype
end
function unpack(io, tkey::TKey, refs::Dict{Int32, Any}, ::Type{T}) where T <: AbstractTStreamSTL
@initparse
if T == TStreamerSTLstring
wrapper_preamble = Preamble(io, T)
end
preamble = Preamble(io, T)
parsefields!(io, fields, TStreamerElement)
fields[:fSTLtype] = readtype(io, Int32)
fields[:fCtype] = readtype(io, Int32)
if fields[:fSTLtype] == Const.kSTLmultimap || fields[:fSTLtype] == Const.kSTLset
if startswith(fields[:fTypeName], "std::set") || startswith(fields[:fTypeName], "set")
fields[:fSTLtype] = Const.kSTLset
elseif startswith(fields[:fTypeName], "std::multimap") || startswith(fields[:fTypeName], "multimap")
fields[:fSTLtype] = Const.kSTLmultimap
end
end
endcheck(io, preamble)
if T == TStreamerSTLstring
endcheck(io, wrapper_preamble)
end
T(;fields...)
end
const TObjString = String
function unpack(io, tkey::TKey, refs::Dict{Int32, Any}, T::Type{TObjString})
preamble = Preamble(io, T)
skiptobj(io)
value = readtype(io, String)
endcheck(io, preamble)
T(value)
end
abstract type AbstractTStreamerObject end
function unpack(io, tkey::TKey, refs::Dict{Int32, Any}, ::Type{T}) where T<:AbstractTStreamerObject
@initparse
preamble = Preamble(io, T)
parsefields!(io, fields, TStreamerElement)
endcheck(io, preamble)
T(;fields...)
end
@TStreamerElementTemplate mutable struct TStreamerObject <: AbstractTStreamerObject end
@TStreamerElementTemplate mutable struct TStreamerObjectAny <: AbstractTStreamerObject end
@TStreamerElementTemplate mutable struct TStreamerObjectAnyPointer <: AbstractTStreamerObject end
@TStreamerElementTemplate mutable struct TStreamerObjectPointer <: AbstractTStreamerObject end
@TStreamerElementTemplate mutable struct TStreamerString <: AbstractTStreamerObject end
abstract type ROOTStreamedObject end
# function stream(io, ::Type{T}) where {T<:ROOTStreamedObject}
# fields = Dict{Symbol, Any}()
# preamble = Preamble(io, T)
# stream!(io, fields, T{preamble.version})
# endcheck(io, preamble)
# T(fields)
# end
function stream!(io, fields, ::Type{T}) where {T<:ROOTStreamedObject}
preamble = Preamble(io, T)
streamer_name = Symbol(T, "_$(preamble.version)")
# @show streamer_name
mod, typename = split(String(streamer_name), ".")
# @show mod typename
streamer = getfield(@__MODULE__, Symbol(typename))
# @show streamer
readfields!(io, fields, streamer)
endcheck(io, preamble)
end
function unpack(io, tkey::TKey, refs::Dict{Int32, Any}, ::Type{T}) where {T<:ROOTStreamedObject}
cursor = Cursor(position(io), io, tkey, refs)
@initparse
preamble = Preamble(io, T)
streamer_name = Symbol(T, "_$(preamble.version)")
mod, typename = split(String(streamer_name), ".")
streamer = getfield(@__MODULE__, Symbol(typename))
readfields!(cursor, fields, streamer)
streamer(;cursor=cursor, fields...)
end
# function stream!(io, fields, ::Type{T{V}}) where {V, T<:ROOTStreamedObject}
# println("Don't know how to stream $T")
# end
struct TObject <: ROOTStreamedObject end
parsefields!(io, fields, ::Type{TObject}) = skiptobj(io)
struct TString <: ROOTStreamedObject end
unpack(io, tkey::TKey, refs::Dict{Int32, Any}, ::Type{TString}) = readtype(io, String)
struct Undefined <: ROOTStreamedObject
skipped_bytes
end
Base.show(io::IO, u::Undefined) = print(io, "$(typeof(u)) ($(u.skipped_bytes) bytes)")
function unpack(io, tkey::TKey, refs::Dict{Int32, Any}, T::Type{Undefined})
preamble = Preamble(io, T)
bytes_to_skip = preamble.cnt - 6
skip(io, bytes_to_skip)
endcheck(io, preamble)
Undefined(bytes_to_skip)
end
const TArrayD = Vector{Float64}
const TArrayI = Vector{Int32}
function readtype(io, T::Type{Vector{U}}) where U <: Union{Integer, AbstractFloat}
size = readtype(io, eltype(T))
[readtype(io, eltype(T)) for _ in 1:size]
end
| [
7249,
13860,
263,
12360,
198,
220,
220,
220,
4269,
263,
198,
220,
220,
220,
20086,
198,
437,
198,
198,
7249,
13860,
364,
198,
220,
220,
220,
256,
2539,
3712,
51,
9218,
198,
220,
220,
220,
1006,
82,
3712,
35,
713,
90,
5317,
2624,
11,
4377,
92,
198,
220,
220,
220,
4847,
3712,
38469,
90,
28696,
12360,
92,
198,
437,
198,
198,
14881,
13,
13664,
7,
82,
3712,
12124,
364,
8,
796,
4129,
7,
82,
13,
68,
3639,
8,
198,
198,
8818,
7308,
13,
12860,
7,
952,
3712,
9399,
11,
264,
3712,
12124,
364,
8,
198,
220,
220,
220,
329,
4269,
263,
62,
10951,
287,
264,
13,
68,
3639,
198,
220,
220,
220,
220,
220,
220,
220,
44872,
7,
952,
11,
17971,
7,
5532,
263,
62,
10951,
13,
5532,
263,
13,
69,
5376,
8,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4269,
263,
796,
4269,
263,
62,
10951,
13,
5532,
263,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
7,
952,
11,
17971,
7,
5532,
263,
13,
69,
5376,
2599,
277,
6030,
796,
29568,
5532,
263,
13,
69,
6030,
828,
366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
7,
952,
11,
366,
69,
6030,
5376,
25,
29568,
5532,
263,
13,
69,
6030,
5376,
8,
4943,
198,
220,
220,
220,
886,
198,
437,
628,
198,
2,
32112,
942,
2672,
284,
1100,
4269,
364,
198,
7249,
309,
28696,
12360,
198,
220,
220,
220,
277,
5376,
198,
220,
220,
220,
277,
19160,
198,
220,
220,
220,
277,
9787,
13065,
198,
220,
220,
220,
277,
9487,
14815,
198,
220,
220,
220,
277,
36,
3639,
198,
437,
198,
198,
8818,
555,
8002,
7,
952,
11,
256,
2539,
3712,
51,
9218,
11,
1006,
82,
3712,
35,
713,
90,
5317,
2624,
11,
4377,
5512,
309,
3712,
6030,
90,
51,
28696,
12360,
30072,
198,
220,
220,
220,
662,
321,
903,
796,
350,
1476,
903,
7,
952,
11,
309,
8,
198,
220,
220,
220,
277,
5376,
11,
277,
19160,
796,
299,
321,
316,
2578,
7,
952,
8,
198,
220,
220,
220,
277,
9787,
13065,
796,
1100,
4906,
7,
952,
11,
471,
5317,
2624,
8,
198,
220,
220,
220,
277,
9487,
14815,
796,
1100,
4906,
7,
952,
11,
2558,
2624,
8,
198,
220,
220,
220,
277,
36,
3639,
796,
1100,
26801,
1092,
0,
7,
952,
11,
256,
2539,
11,
1006,
82,
8,
198,
220,
220,
220,
886,
9122,
7,
952,
11,
662,
321,
903,
8,
198,
220,
220,
220,
309,
7,
69,
5376,
11,
277,
19160,
11,
277,
9787,
13065,
11,
277,
9487,
14815,
11,
277,
36,
3639,
8,
198,
437,
198,
198,
49585,
12453,
7,
82,
3712,
23839,
10100,
8,
796,
6330,
7,
82,
11,
366,
3712,
1,
5218,
45434,
18,
64,
18,
64,
62,
4943,
198,
198,
8818,
4238,
786,
62,
5532,
263,
7,
82,
3712,
28696,
12360,
8,
198,
220,
220,
220,
1303,
44855,
11682,
27741,
318,
407,
2622,
618,
15293,
284,
1960,
519,
877,
515,
4269,
364,
198,
220,
220,
220,
2779,
796,
38357,
7,
49585,
12453,
7,
82,
13,
5532,
263,
13,
69,
5376,
4008,
198,
220,
220,
220,
2208,
3672,
796,
38357,
7,
25,
23839,
11,
2779,
8,
198,
220,
220,
220,
611,
5145,
271,
23211,
7,
31,
834,
33365,
24212,
834,
11,
2208,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
24442,
366,
7469,
3191,
12531,
2099,
720,
16668,
3672,
1,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
18206,
12531,
2099,
29568,
16668,
3672,
8,
1279,
25,
15107,
2394,
12124,
276,
10267,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
1438,
796,
38357,
7,
8692,
11,
38357,
7203,
62,
3,
7,
82,
13,
5532,
263,
13,
69,
9487,
14815,
16725,
4008,
198,
220,
220,
220,
611,
5145,
271,
23211,
7,
31,
834,
33365,
24212,
834,
11,
1438,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
24442,
366,
220,
4441,
2196,
276,
2878,
705,
3,
3672,
1279,
25,
720,
16668,
3672,
29653,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
18206,
2878,
29568,
3672,
8,
1279,
25,
29568,
16668,
3672,
8,
886,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
44855,
11682,
2251,
262,
4269,
0,
3419,
5499,
7382,
994,
986,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
44872,
7,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2488,
18206,
2878,
720,
3672,
1279,
25,
15107,
2394,
12124,
276,
10267,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
1366,
3712,
35,
713,
90,
13940,
23650,
11,
4377,
92,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
886,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
24442,
366,
3673,
16215,
720,
3672,
1201,
340,
1541,
468,
257,
6297,
12044,
1496,
2196,
1,
198,
220,
220,
220,
886,
198,
437,
628,
198,
37811,
198,
220,
220,
220,
2163,
13860,
364,
7,
952,
8,
198,
198,
5569,
82,
477,
262,
4269,
364,
422,
262,
15107,
2394,
2723,
13,
198,
37811,
198,
8818,
13860,
364,
7,
952,
8,
198,
220,
220,
220,
1006,
82,
796,
360,
713,
90,
5317,
2624,
11,
4377,
92,
3419,
628,
220,
220,
220,
923,
796,
2292,
7,
952,
8,
198,
220,
220,
220,
256,
2539,
796,
555,
8002,
7,
952,
11,
309,
9218,
8,
628,
220,
220,
220,
611,
318,
5589,
2790,
7,
83,
2539,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
24442,
366,
7293,
2790,
4269,
379,
29568,
9688,
16725,
198,
220,
220,
220,
220,
220,
220,
220,
5380,
9688,
7,
952,
11,
256,
2539,
8,
198,
220,
220,
220,
220,
220,
220,
220,
19794,
62,
25677,
796,
555,
8002,
7,
952,
11,
3082,
2234,
39681,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
47084,
11682,
329,
617,
1738,
356,
761,
284,
302,
12,
8002,
884,
326,
340,
5645,
379,
2748,
9881,
13,
198,
220,
220,
220,
220,
220,
220,
220,
26684,
796,
2292,
7,
952,
8,
532,
923,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4003,
674,
4600,
51,
9218,
63,
2546,
318,
407,
262,
976,
355,
1743,
309,
9218,
11,
460,
470,
779,
39364,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
29325,
796,
314,
9864,
13712,
7,
961,
7,
952,
11,
256,
2539,
13,
69,
45,
33661,
532,
26684,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
611,
10903,
7,
5589,
2234,
62,
25677,
13,
282,
2188,
8,
6624,
366,
57,
43,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4269,
796,
314,
9864,
13712,
7,
961,
7,
57,
8019,
10707,
3361,
44292,
12124,
7,
952,
62,
29325,
828,
256,
2539,
13,
69,
49201,
11925,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
10903,
7,
5589,
2234,
62,
25677,
13,
282,
2188,
8,
6624,
366,
55,
57,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4269,
796,
314,
9864,
13712,
7,
961,
7,
55,
89,
10707,
3361,
44292,
12124,
7,
952,
62,
29325,
828,
256,
2539,
13,
69,
49201,
11925,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
10903,
7,
5589,
2234,
62,
25677,
13,
282,
2188,
8,
6624,
366,
43,
19,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14267,
7,
952,
62,
29325,
11,
807,
8,
1303,
48267,
8794,
388,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4269,
796,
314,
9864,
13712,
7,
75,
89,
19,
62,
12501,
3361,
601,
7,
961,
7,
952,
62,
29325,
828,
256,
2539,
13,
69,
49201,
11925,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
7203,
3118,
15999,
19794,
2099,
705,
3,
7,
10100,
7,
5589,
2234,
62,
25677,
13,
282,
2188,
4008,
6,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
24442,
366,
3118,
3361,
2790,
4269,
379,
29568,
9688,
16725,
198,
220,
220,
220,
220,
220,
220,
220,
4269,
796,
33245,
198,
220,
220,
220,
886,
198,
220,
220,
220,
662,
321,
903,
796,
350,
1476,
903,
7,
5532,
11,
13860,
364,
8,
198,
220,
220,
220,
1341,
10257,
26801,
7,
5532,
8,
628,
220,
220,
220,
1438,
796,
1100,
4906,
7,
5532,
11,
10903,
8,
198,
220,
220,
220,
2546,
796,
1100,
4906,
7,
5532,
11,
2558,
2624,
8,
198,
220,
220,
220,
4269,
263,
62,
10745,
418,
796,
20650,
90,
28696,
12360,
92,
3419,
198,
220,
220,
220,
2488,
24442,
366,
21077,
720,
7857,
4269,
364,
11,
2555,
351,
32096,
526,
198,
220,
220,
220,
329,
1312,
18872,
230,
352,
25,
7857,
198,
220,
220,
220,
220,
220,
220,
220,
26181,
796,
1100,
26801,
1092,
0,
7,
5532,
11,
256,
2539,
11,
1006,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2099,
1659,
7,
26801,
8,
6624,
309,
28696,
12360,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
24442,
366,
220,
7587,
4269,
263,
7508,
329,
705,
3,
7,
26801,
13,
69,
5376,
33047,
357,
85,
3,
7,
26801,
13,
69,
9487,
14815,
4008,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
24442,
366,
220,
220,
220,
1271,
286,
20086,
25,
29568,
13664,
7,
26801,
13,
69,
36,
3639,
13,
68,
3639,
4008,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20086,
796,
5345,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
5002,
287,
26181,
13,
69,
36,
3639,
13,
68,
3639,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2099,
1659,
7,
30854,
8,
6624,
309,
28696,
14881,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
24442,
366,
220,
220,
220,
220,
220,
1343,
4375,
20203,
705,
3,
7,
30854,
13,
69,
5376,
8,
29653,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
45841,
3976,
11,
5002,
13,
69,
5376,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
24442,
366,
220,
220,
220,
220,
220,
532,
31017,
20203,
705,
3,
7,
30854,
13,
69,
5376,
33047,
351,
2099,
705,
3,
7,
4906,
1659,
7,
30854,
4008,
29653,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
24442,
366,
220,
220,
220,
220,
220,
5218,
12848,
20203,
1100,
448,
329,
25,
29568,
26801,
13,
69,
5376,
16725,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
5532,
263,
62,
10745,
418,
11,
13860,
263,
12360,
7,
26801,
11,
20086,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
24442,
366,
220,
407,
257,
309,
28696,
12360,
475,
705,
3,
7,
4906,
1659,
7,
26801,
4008,
3256,
31017,
526,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
44855,
11682,
1521,
407,
655,
14267,
257,
18022,
30,
198,
220,
220,
220,
220,
220,
220,
220,
14267,
7,
5532,
11,
1100,
4906,
7,
5532,
11,
471,
5317,
23,
4008,
198,
220,
220,
220,
886,
628,
220,
220,
220,
886,
9122,
7,
5532,
11,
662,
321,
903,
8,
628,
220,
220,
220,
4269,
263,
62,
10745,
418,
796,
1353,
2770,
62,
30619,
7,
5532,
263,
62,
10745,
418,
8,
628,
220,
220,
220,
329,
4269,
263,
62,
10951,
287,
4269,
263,
62,
10745,
418,
198,
220,
220,
220,
220,
220,
220,
220,
4238,
786,
62,
5532,
263,
7,
5532,
263,
62,
10951,
8,
198,
220,
220,
220,
886,
628,
220,
220,
220,
13860,
364,
7,
83,
2539,
11,
1006,
82,
11,
4269,
263,
62,
10745,
418,
8,
198,
437,
198,
198,
37811,
198,
220,
220,
220,
2163,
1353,
2770,
62,
30619,
7,
5532,
263,
62,
10745,
418,
8,
198,
198,
42758,
262,
4269,
364,
351,
2461,
284,
511,
20086,
290,
1394,
691,
883,
198,
4758,
389,
407,
5447,
1541,
13,
198,
198,
464,
7822,
318,
1912,
319,
3740,
1378,
25558,
2502,
11125,
13,
785,
14,
64,
14,
15363,
33981,
3388,
14,
1433,
24940,
2231,
198,
37811,
198,
8818,
1353,
2770,
62,
30619,
7,
5532,
263,
62,
10745,
418,
8,
198,
220,
220,
220,
2488,
24442,
366,
22851,
1353,
2770,
3297,
286,
4269,
364,
1,
198,
220,
220,
220,
2810,
796,
5345,
90,
10100,
92,
3419,
198,
220,
220,
220,
23243,
62,
5532,
263,
62,
10745,
418,
796,
17635,
198,
220,
220,
220,
981,
4129,
7,
5532,
263,
62,
10745,
418,
8,
1875,
657,
198,
220,
220,
220,
220,
220,
220,
220,
5637,
62,
23814,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
31234,
796,
3991,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
24442,
366,
220,
1271,
286,
5637,
4269,
364,
284,
3297,
25,
29568,
13664,
7,
5532,
263,
62,
10745,
418,
4008,
1,
628,
220,
220,
220,
220,
220,
220,
220,
329,
4269,
263,
62,
10951,
287,
4269,
263,
62,
10745,
418,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
611,
477,
7,
67,
4613,
318,
23211,
7,
31,
834,
33365,
24212,
834,
11,
38357,
7,
67,
4008,
8614,
288,
18872,
230,
2810,
11,
4269,
263,
62,
10951,
13,
45841,
3976,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
611,
5145,
271,
23211,
7,
31,
834,
33365,
24212,
834,
11,
38357,
7,
5532,
263,
62,
10951,
13,
5532,
263,
13,
69,
5376,
4008,
11405,
16144,
1640,
7,
5532,
263,
62,
10951,
13,
5532,
263,
13,
69,
5376,
8,
24844,
2147,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
24442,
366,
220,
220,
220,
7587,
705,
3,
7,
5532,
263,
62,
10951,
13,
5532,
263,
13,
69,
5376,
33047,
351,
29568,
13664,
7,
5532,
263,
62,
10951,
13,
45841,
3976,
4008,
6,
20086,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
4129,
7,
5532,
263,
62,
10745,
418,
8,
6624,
220,
352,
8614,
477,
7,
67,
4613,
288,
18872,
230,
2810,
11,
4269,
263,
62,
10951,
13,
45841,
3976,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
16144,
1640,
7,
5532,
263,
62,
10951,
13,
5532,
263,
13,
69,
5376,
8,
24844,
2147,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
82,
9741,
62,
5532,
263,
62,
10745,
418,
11,
4269,
263,
62,
10951,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
41279,
11,
4269,
263,
62,
10951,
13,
5532,
263,
13,
69,
5376,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31234,
796,
2081,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
2787,
1397,
62,
23814,
11,
4269,
263,
62,
10951,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
611,
5145,
368,
2175,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
4269,
263,
62,
10951,
287,
4269,
263,
62,
10745,
418,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8106,
0,
7,
786,
13255,
7,
5532,
263,
62,
10951,
828,
5637,
62,
23814,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
4269,
263,
62,
10745,
418,
796,
5637,
62,
23814,
198,
220,
220,
220,
886,
198,
220,
220,
220,
2488,
24442,
366,
18467,
1348,
262,
1353,
2770,
3297,
286,
4269,
364,
1,
198,
220,
220,
220,
23243,
62,
5532,
263,
62,
10745,
418,
198,
437,
628,
198,
37811,
198,
220,
220,
220,
2163,
1100,
26801,
1092,
0,
7,
952,
11,
256,
2539,
3712,
51,
9218,
11,
1006,
82,
8,
198,
198,
464,
1388,
5726,
4122,
810,
4269,
364,
389,
44267,
290,
39986,
329,
1568,
779,
13,
198,
464,
4600,
5420,
82,
63,
22155,
6622,
262,
4269,
364,
393,
44267,
1366,
543,
389,
46823,
198,
12518,
1541,
1695,
13,
198,
37811,
198,
8818,
1100,
26801,
1092,
0,
7,
952,
11,
256,
2539,
3712,
51,
9218,
11,
1006,
82,
8,
198,
220,
220,
220,
4123,
796,
2292,
7,
952,
8,
532,
8159,
7,
83,
2539,
8,
198,
220,
220,
220,
47125,
429,
796,
1100,
4906,
7,
952,
11,
471,
5317,
2624,
8,
198,
220,
220,
220,
611,
2558,
2414,
7,
15630,
429,
8,
1222,
4757,
13,
74,
40778,
12332,
45195,
6624,
657,
8614,
2558,
2414,
7,
15630,
429,
8,
6624,
4757,
13,
74,
3791,
9487,
24835,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
968,
1398,
393,
657,
9881,
198,
220,
220,
220,
220,
220,
220,
220,
2196,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
923,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
7621,
796,
47125,
429,
198,
220,
220,
220,
220,
220,
220,
220,
47125,
429,
796,
657,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
2196,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
923,
796,
2292,
7,
952,
8,
532,
8159,
7,
83,
2539,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7621,
796,
1100,
4906,
7,
952,
11,
471,
5317,
2624,
8,
198,
220,
220,
220,
886,
628,
220,
220,
220,
611,
2558,
2414,
7,
12985,
8,
1222,
4757,
13,
74,
9487,
45195,
6624,
657,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4941,
2134,
198,
220,
220,
220,
220,
220,
220,
220,
611,
7621,
6624,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4814,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
7621,
6624,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
7203,
13615,
278,
2560,
318,
407,
9177,
1865,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
5145,
10134,
2539,
7,
5420,
82,
11,
7621,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
31017,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5380,
7,
952,
11,
8159,
7,
83,
2539,
8,
1343,
4123,
1343,
47125,
429,
1343,
604,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4814,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1006,
82,
58,
12985,
60,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
2073,
361,
7621,
6624,
4757,
13,
74,
3791,
9487,
24835,
198,
220,
220,
220,
220,
220,
220,
220,
269,
3672,
796,
1100,
4906,
7,
952,
11,
327,
10100,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4269,
263,
796,
651,
3245,
7,
31,
834,
33365,
24212,
834,
11,
38357,
7,
66,
3672,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2196,
1875,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1006,
82,
58,
9688,
1343,
4757,
13,
74,
13912,
34519,
60,
796,
4269,
263,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1006,
82,
58,
13664,
7,
5420,
82,
8,
1343,
352,
60,
796,
4269,
263,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
26181,
796,
555,
8002,
7,
952,
11,
256,
2539,
11,
1006,
82,
11,
4269,
263,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2196,
1875,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1006,
82,
58,
1350,
70,
1343,
4757,
13,
74,
13912,
34519,
60,
796,
26181,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1006,
82,
58,
13664,
7,
5420,
82,
8,
1343,
352,
60,
796,
26181,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
26181,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4941,
1398,
11,
649,
2134,
198,
220,
220,
220,
220,
220,
220,
220,
1006,
796,
2558,
2414,
7,
12985,
8,
1222,
5299,
34184,
13,
74,
9487,
45195,
198,
220,
220,
220,
220,
220,
220,
220,
468,
2539,
7,
5420,
82,
11,
1006,
8,
8614,
4049,
7203,
44651,
1398,
4941,
19570,
628,
220,
220,
220,
220,
220,
220,
220,
4269,
263,
796,
1006,
82,
58,
5420,
60,
198,
220,
220,
220,
220,
220,
220,
220,
26181,
796,
555,
8002,
7,
952,
11,
256,
2539,
11,
1006,
82,
11,
4269,
263,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2196,
1875,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1006,
82,
58,
1350,
70,
1343,
4757,
13,
74,
13912,
34519,
60,
796,
26181,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1006,
82,
58,
13664,
7,
5420,
82,
8,
1343,
352,
60,
796,
26181,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
26181,
198,
220,
220,
220,
886,
198,
437,
628,
198,
198,
7249,
309,
8053,
198,
220,
220,
220,
662,
321,
903,
198,
220,
220,
220,
1438,
198,
220,
220,
220,
2546,
198,
220,
220,
220,
5563,
198,
437,
198,
198,
14881,
13,
13664,
7,
75,
3712,
51,
8053,
8,
796,
4129,
7,
75,
13,
48205,
8,
628,
198,
8818,
555,
8002,
7,
952,
11,
256,
2539,
3712,
51,
9218,
11,
1006,
82,
3712,
35,
713,
90,
5317,
2624,
11,
4377,
5512,
309,
3712,
6030,
90,
51,
8053,
30072,
198,
220,
220,
220,
662,
321,
903,
796,
350,
1476,
903,
7,
952,
11,
309,
8,
198,
220,
220,
220,
1341,
10257,
26801,
7,
952,
8,
628,
220,
220,
220,
1438,
796,
1100,
4906,
7,
952,
11,
10903,
8,
198,
220,
220,
220,
2546,
796,
1100,
4906,
7,
952,
11,
2558,
2624,
8,
198,
220,
220,
220,
5563,
796,
17635,
198,
220,
220,
220,
329,
1312,
18872,
230,
352,
25,
7857,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
48205,
11,
1100,
26801,
1092,
0,
7,
952,
11,
256,
2539,
11,
1006,
82,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
14267,
7,
952,
11,
1100,
4906,
7,
952,
11,
471,
5317,
23,
4008,
198,
220,
220,
220,
886,
628,
220,
220,
220,
886,
9122,
7,
952,
11,
662,
321,
903,
8,
198,
220,
220,
220,
309,
8053,
7,
79,
1476,
903,
11,
1438,
11,
2546,
11,
5563,
8,
198,
437,
628,
198,
7249,
5390,
50007,
19182,
198,
220,
220,
220,
1438,
198,
220,
220,
220,
1877,
198,
220,
220,
220,
4847,
198,
437,
198,
198,
8818,
555,
8002,
7,
952,
11,
256,
2539,
3712,
51,
9218,
11,
1006,
82,
3712,
35,
713,
90,
5317,
2624,
11,
4377,
5512,
309,
3712,
6030,
90,
51,
49201,
19182,
30072,
198,
220,
220,
220,
662,
321,
903,
796,
350,
1476,
903,
7,
952,
11,
309,
8,
198,
220,
220,
220,
1341,
10257,
26801,
7,
952,
8,
198,
220,
220,
220,
1438,
796,
1100,
4906,
7,
952,
11,
10903,
8,
198,
220,
220,
220,
2546,
796,
1100,
4906,
7,
952,
11,
2558,
2624,
8,
198,
220,
220,
220,
1877,
796,
1100,
4906,
7,
952,
11,
2558,
2624,
8,
198,
220,
220,
220,
4847,
796,
20650,
90,
7149,
92,
7,
917,
891,
11,
2546,
8,
198,
220,
220,
220,
329,
1312,
287,
352,
25,
7857,
198,
220,
220,
220,
220,
220,
220,
220,
9766,
796,
1100,
26801,
1092,
0,
7,
952,
11,
256,
2539,
11,
1006,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
5145,
1042,
747,
278,
7,
11129,
8,
11405,
2488,
12860,
9766,
13,
69,
5376,
198,
220,
220,
220,
220,
220,
220,
220,
4847,
58,
72,
60,
796,
9766,
198,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
9122,
7,
952,
11,
662,
321,
903,
8,
198,
220,
220,
220,
1441,
5390,
50007,
19182,
7,
3672,
11,
1877,
11,
4847,
8,
198,
437,
628,
198,
397,
8709,
2099,
27741,
51,
28696,
20180,
886,
198,
198,
31,
31605,
844,
2488,
4480,
62,
46265,
4517,
540,
2878,
309,
28696,
20180,
30800,
198,
220,
220,
220,
2196,
198,
220,
220,
220,
277,
34519,
198,
220,
220,
220,
277,
5376,
198,
220,
220,
220,
277,
19160,
198,
220,
220,
220,
277,
6030,
198,
220,
220,
220,
277,
10699,
198,
220,
220,
220,
277,
19182,
24539,
198,
220,
220,
220,
277,
19182,
29271,
198,
220,
220,
220,
277,
11518,
15732,
198,
220,
220,
220,
277,
6030,
5376,
198,
220,
220,
220,
277,
55,
1084,
198,
220,
220,
220,
277,
55,
9806,
198,
220,
220,
220,
277,
41384,
198,
437,
198,
198,
31,
51,
28696,
20180,
30800,
4517,
540,
2878,
309,
28696,
20180,
886,
198,
198,
31,
48681,
2315,
29572,
2221,
198,
220,
220,
220,
7032,
796,
360,
713,
90,
13940,
23650,
11,
4377,
92,
3419,
198,
437,
198,
198,
8818,
21136,
25747,
0,
7,
952,
11,
7032,
11,
309,
3712,
6030,
90,
51,
28696,
20180,
30072,
198,
220,
220,
220,
662,
321,
903,
796,
350,
1476,
903,
7,
952,
11,
309,
8,
198,
220,
220,
220,
7032,
58,
25,
9641,
60,
796,
662,
321,
903,
13,
9641,
198,
220,
220,
220,
7032,
58,
25,
69,
34519,
60,
796,
657,
198,
220,
220,
220,
7032,
58,
25,
69,
5376,
4357,
7032,
58,
25,
69,
19160,
60,
796,
299,
321,
316,
2578,
7,
952,
8,
198,
220,
220,
220,
7032,
58,
25,
69,
6030,
60,
796,
1100,
4906,
7,
952,
11,
2558,
2624,
8,
198,
220,
220,
220,
7032,
58,
25,
69,
10699,
60,
796,
1100,
4906,
7,
952,
11,
2558,
2624,
8,
198,
220,
220,
220,
7032,
58,
25,
69,
19182,
24539,
60,
796,
1100,
4906,
7,
952,
11,
2558,
2624,
8,
198,
220,
220,
220,
7032,
58,
25,
69,
19182,
29271,
60,
796,
1100,
4906,
7,
952,
11,
2558,
2624,
8,
628,
220,
220,
220,
299,
796,
662,
321,
903,
13,
9641,
6624,
352,
5633,
1100,
4906,
7,
952,
11,
2558,
2624,
8,
1058,
642,
198,
220,
220,
220,
7032,
58,
25,
69,
11518,
15732,
60,
796,
685,
961,
4906,
7,
952,
11,
2558,
2624,
8,
329,
4808,
287,
352,
25,
77,
60,
628,
220,
220,
220,
7032,
58,
25,
69,
6030,
5376,
60,
796,
1100,
4906,
7,
952,
11,
10903,
8,
628,
220,
220,
220,
611,
7032,
58,
25,
69,
6030,
60,
6624,
1367,
11405,
357,
25747,
58,
25,
69,
6030,
5376,
60,
6624,
366,
33,
970,
62,
83,
1,
8614,
7032,
58,
25,
69,
6030,
5376,
60,
6624,
366,
30388,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
25,
69,
6030,
60,
796,
1248,
198,
220,
220,
220,
886,
628,
220,
220,
220,
7032,
58,
25,
69,
55,
1084,
60,
796,
657,
13,
15,
198,
220,
220,
220,
7032,
58,
25,
69,
55,
9806,
60,
796,
657,
13,
15,
198,
220,
220,
220,
7032,
58,
25,
69,
41384,
60,
796,
657,
13,
15,
628,
220,
220,
220,
611,
662,
321,
903,
13,
9641,
6624,
513,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
25,
69,
55,
1084,
60,
796,
1100,
4906,
7,
952,
11,
48436,
2414,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
25,
69,
55,
9806,
60,
796,
1100,
4906,
7,
952,
11,
48436,
2414,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
25,
69,
41384,
60,
796,
1100,
4906,
7,
952,
11,
48436,
2414,
8,
198,
220,
220,
220,
886,
628,
220,
220,
220,
886,
9122,
7,
952,
11,
662,
321,
903,
8,
198,
437,
198,
198,
8818,
555,
8002,
7,
952,
11,
256,
2539,
3712,
51,
9218,
11,
1006,
82,
3712,
35,
713,
90,
5317,
2624,
11,
4377,
5512,
309,
3712,
6030,
90,
51,
28696,
20180,
30072,
198,
220,
220,
220,
2488,
15003,
29572,
198,
220,
220,
220,
21136,
25747,
0,
7,
952,
11,
7032,
11,
309,
8,
198,
220,
220,
220,
309,
7,
26,
25747,
23029,
198,
437,
628,
198,
31,
51,
28696,
20180,
30800,
4517,
540,
2878,
309,
28696,
14881,
198,
220,
220,
220,
277,
14881,
14815,
198,
437,
198,
198,
8818,
21136,
25747,
0,
7,
952,
11,
7032,
11,
309,
3712,
6030,
90,
51,
28696,
14881,
30072,
198,
220,
220,
220,
662,
321,
903,
796,
350,
1476,
903,
7,
952,
11,
309,
8,
198,
220,
220,
220,
21136,
25747,
0,
7,
952,
11,
7032,
11,
309,
28696,
20180,
8,
198,
220,
220,
220,
7032,
58,
25,
69,
14881,
14815,
60,
796,
7032,
58,
25,
9641,
60,
18189,
362,
5633,
1100,
4906,
7,
952,
11,
2558,
2624,
8,
1058,
657,
198,
220,
220,
220,
886,
9122,
7,
952,
11,
662,
321,
903,
8,
198,
437,
198,
198,
8818,
555,
8002,
7,
952,
11,
256,
2539,
3712,
51,
9218,
11,
1006,
82,
3712,
35,
713,
90,
5317,
2624,
11,
4377,
5512,
309,
3712,
6030,
90,
51,
28696,
14881,
30072,
198,
220,
220,
220,
2488,
15003,
29572,
198,
220,
220,
220,
21136,
25747,
0,
7,
952,
11,
7032,
11,
309,
8,
198,
220,
220,
220,
309,
7,
26,
25747,
23029,
198,
437,
628,
198,
31,
51,
28696,
20180,
30800,
4517,
540,
2878,
309,
28696,
26416,
6030,
886,
198,
198,
8818,
21136,
25747,
0,
7,
952,
11,
7032,
11,
7904,
6030,
90,
51,
28696,
26416,
6030,
30072,
198,
220,
220,
220,
21136,
25747,
0,
7,
952,
11,
7032,
11,
309,
28696,
20180,
8,
628,
220,
220,
220,
611,
4757,
13,
74,
34519,
43,
1279,
7032,
58,
25,
69,
6030,
60,
1279,
4757,
13,
74,
34519,
47,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
25,
69,
6030,
60,
48185,
4757,
13,
74,
34519,
47,
198,
220,
220,
220,
886,
198,
220,
220,
220,
4096,
796,
2081,
198,
220,
220,
220,
611,
7032,
58,
25,
69,
6030,
60,
18872,
230,
357,
34184,
13,
38841,
970,
11,
4757,
13,
74,
52,
12441,
11,
4757,
13,
74,
12441,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
25,
69,
10699,
60,
796,
352,
198,
220,
220,
220,
2073,
361,
7032,
58,
25,
69,
6030,
60,
287,
357,
34184,
13,
74,
52,
16438,
11,
4757,
13,
74,
16438,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
25,
69,
10699,
60,
796,
362,
198,
220,
220,
220,
2073,
361,
7032,
58,
25,
69,
6030,
60,
287,
357,
34184,
13,
38841,
896,
11,
4757,
13,
74,
52,
5317,
11,
4757,
13,
74,
5317,
11,
4757,
13,
74,
31694,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
25,
69,
10699,
60,
796,
604,
198,
220,
220,
220,
2073,
361,
7032,
58,
25,
69,
6030,
60,
287,
357,
34184,
13,
74,
6239,
506,
11,
4757,
13,
74,
6239,
506,
2414,
11,
4757,
13,
74,
14617,
11,
4757,
13,
74,
14617,
2414,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
25,
69,
10699,
60,
796,
807,
198,
220,
220,
220,
2073,
361,
7032,
58,
25,
69,
6030,
60,
287,
357,
34184,
13,
74,
43879,
11,
4757,
13,
74,
43879,
1433,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
25,
69,
10699,
60,
796,
604,
198,
220,
220,
220,
2073,
361,
7032,
58,
25,
69,
6030,
60,
287,
357,
34184,
13,
74,
25628,
11,
4757,
13,
74,
25628,
2624,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
25,
69,
10699,
60,
796,
807,
198,
220,
220,
220,
2073,
361,
7032,
58,
25,
69,
6030,
60,
6624,
4757,
13,
74,
12441,
8248,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
25,
69,
10699,
60,
796,
39364,
7,
5317,
8,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
4096,
796,
3991,
198,
220,
220,
220,
886,
628,
220,
220,
220,
611,
4096,
11405,
7032,
58,
25,
69,
19182,
24539,
60,
1875,
657,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
25,
69,
10699,
60,
1635,
28,
7032,
58,
25,
69,
19182,
24539,
60,
198,
220,
220,
220,
886,
198,
198,
437,
198,
198,
8818,
555,
8002,
7,
952,
11,
256,
2539,
3712,
51,
9218,
11,
1006,
82,
3712,
35,
713,
90,
5317,
2624,
11,
4377,
5512,
309,
3712,
6030,
90,
51,
28696,
26416,
6030,
30072,
198,
220,
220,
220,
2488,
15003,
29572,
198,
220,
220,
220,
662,
321,
903,
796,
350,
1476,
903,
7,
952,
11,
309,
8,
198,
220,
220,
220,
21136,
25747,
0,
7,
952,
11,
7032,
11,
309,
8,
198,
220,
220,
220,
886,
9122,
7,
952,
11,
662,
321,
903,
8,
198,
220,
220,
220,
309,
7,
26,
25747,
23029,
198,
437,
628,
198,
31,
51,
28696,
20180,
30800,
4517,
540,
2878,
309,
28696,
26416,
18833,
3849,
198,
220,
220,
220,
277,
12332,
14815,
198,
220,
220,
220,
277,
12332,
5376,
198,
220,
220,
220,
277,
12332,
9487,
198,
437,
198,
198,
8818,
555,
8002,
7,
952,
11,
256,
2539,
3712,
51,
9218,
11,
1006,
82,
3712,
35,
713,
90,
5317,
2624,
11,
4377,
5512,
309,
3712,
6030,
90,
51,
28696,
26416,
18833,
3849,
30072,
198,
220,
220,
220,
2488,
15003,
29572,
198,
220,
220,
220,
662,
321,
903,
796,
350,
1476,
903,
7,
952,
11,
309,
8,
198,
220,
220,
220,
21136,
25747,
0,
7,
952,
11,
7032,
11,
309,
28696,
20180,
8,
198,
220,
220,
220,
7032,
58,
25,
69,
12332,
14815,
60,
796,
1100,
4906,
7,
952,
11,
2558,
2624,
8,
198,
220,
220,
220,
7032,
58,
25,
69,
12332,
5376,
60,
796,
1100,
4906,
7,
952,
11,
10903,
8,
198,
220,
220,
220,
7032,
58,
25,
69,
12332,
9487,
60,
796,
1100,
4906,
7,
952,
11,
10903,
8,
198,
220,
220,
220,
886,
9122,
7,
952,
11,
662,
321,
903,
8,
198,
220,
220,
220,
309,
7,
26,
25747,
23029,
198,
437,
198,
198,
31,
51,
28696,
20180,
30800,
4517,
540,
2878,
309,
28696,
39516,
198,
220,
220,
220,
277,
12332,
14815,
198,
220,
220,
220,
277,
12332,
5376,
198,
220,
220,
220,
277,
12332,
9487,
198,
437,
198,
198,
5589,
3906,
7,
3712,
6030,
90,
51,
28696,
39516,
30072,
796,
685,
51,
28696,
20180,
60,
198,
198,
8818,
21136,
25747,
0,
7,
952,
11,
7032,
11,
7904,
6030,
90,
51,
28696,
39516,
30072,
198,
220,
220,
220,
7032,
58,
25,
69,
12332,
14815,
60,
796,
1100,
4906,
7,
952,
11,
2558,
2624,
8,
198,
220,
220,
220,
7032,
58,
25,
69,
12332,
5376,
60,
796,
1100,
4906,
7,
952,
11,
10903,
8,
198,
220,
220,
220,
7032,
58,
25,
69,
12332,
9487,
60,
796,
1100,
4906,
7,
952,
11,
10903,
8,
198,
437,
198,
198,
8818,
555,
8002,
7,
952,
11,
256,
2539,
3712,
51,
9218,
11,
1006,
82,
3712,
35,
713,
90,
5317,
2624,
11,
4377,
5512,
309,
3712,
6030,
90,
51,
28696,
39516,
30072,
198,
220,
220,
220,
2488,
15003,
29572,
198,
220,
220,
220,
662,
321,
903,
796,
350,
1476,
903,
7,
952,
11,
309,
8,
198,
220,
220,
220,
329,
7515,
287,
6805,
7,
51,
8,
198,
220,
220,
220,
220,
220,
220,
220,
21136,
25747,
0,
7,
952,
11,
7032,
11,
7515,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
21136,
25747,
0,
7,
952,
11,
7032,
11,
309,
8,
198,
220,
220,
220,
886,
9122,
7,
952,
11,
662,
321,
903,
8,
198,
220,
220,
220,
309,
7,
26,
25747,
23029,
198,
437,
198,
198,
397,
8709,
2099,
27741,
51,
12124,
2257,
43,
886,
198,
198,
31,
51,
28696,
20180,
30800,
4517,
540,
2878,
309,
28696,
2257,
43,
1279,
25,
27741,
51,
12124,
2257,
43,
198,
220,
220,
220,
277,
2257,
43,
4906,
198,
220,
220,
220,
277,
34,
4906,
198,
437,
198,
198,
31,
51,
28696,
20180,
30800,
4517,
540,
2878,
309,
28696,
2257,
43,
8841,
1279,
25,
27741,
51,
12124,
2257,
43,
198,
220,
220,
220,
277,
2257,
43,
4906,
198,
220,
220,
220,
277,
34,
4906,
198,
437,
198,
198,
8818,
555,
8002,
7,
952,
11,
256,
2539,
3712,
51,
9218,
11,
1006,
82,
3712,
35,
713,
90,
5317,
2624,
11,
4377,
5512,
7904,
6030,
90,
51,
30072,
810,
309,
1279,
25,
27741,
51,
12124,
2257,
43,
198,
220,
220,
220,
2488,
15003,
29572,
198,
220,
220,
220,
611,
309,
6624,
309,
28696,
2257,
43,
8841,
198,
220,
220,
220,
220,
220,
220,
220,
29908,
62,
79,
1476,
903,
796,
350,
1476,
903,
7,
952,
11,
309,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
662,
321,
903,
796,
350,
1476,
903,
7,
952,
11,
309,
8,
198,
220,
220,
220,
21136,
25747,
0,
7,
952,
11,
7032,
11,
309,
28696,
20180,
8,
628,
220,
220,
220,
7032,
58,
25,
69,
2257,
43,
4906,
60,
796,
1100,
4906,
7,
952,
11,
2558,
2624,
8,
198,
220,
220,
220,
7032,
58,
25,
69,
34,
4906,
60,
796,
1100,
4906,
7,
952,
11,
2558,
2624,
8,
628,
220,
220,
220,
611,
7032,
58,
25,
69,
2257,
43,
4906,
60,
6624,
4757,
13,
74,
2257,
43,
16680,
320,
499,
8614,
7032,
58,
25,
69,
2257,
43,
4906,
60,
6624,
4757,
13,
74,
2257,
43,
2617,
198,
220,
220,
220,
220,
220,
220,
220,
611,
923,
2032,
342,
7,
25747,
58,
25,
69,
6030,
5376,
4357,
366,
19282,
3712,
2617,
4943,
8614,
923,
2032,
342,
7,
25747,
58,
25,
69,
6030,
5376,
4357,
366,
2617,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
25,
69,
2257,
43,
4906,
60,
796,
4757,
13,
74,
2257,
43,
2617,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
923,
2032,
342,
7,
25747,
58,
25,
69,
6030,
5376,
4357,
366,
19282,
3712,
16680,
320,
499,
4943,
8614,
923,
2032,
342,
7,
25747,
58,
25,
69,
6030,
5376,
4357,
366,
16680,
320,
499,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
58,
25,
69,
2257,
43,
4906,
60,
796,
4757,
13,
74,
2257,
43,
16680,
320,
499,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
886,
9122,
7,
952,
11,
662,
321,
903,
8,
198,
220,
220,
220,
611,
309,
6624,
309,
28696,
2257,
43,
8841,
198,
220,
220,
220,
220,
220,
220,
220,
886,
9122,
7,
952,
11,
29908,
62,
79,
1476,
903,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
309,
7,
26,
25747,
23029,
198,
437,
628,
198,
9979,
5390,
50007,
10100,
796,
10903,
198,
198,
8818,
555,
8002,
7,
952,
11,
256,
2539,
3712,
51,
9218,
11,
1006,
82,
3712,
35,
713,
90,
5317,
2624,
11,
4377,
5512,
309,
3712,
6030,
90,
51,
49201,
10100,
30072,
198,
220,
220,
220,
662,
321,
903,
796,
350,
1476,
903,
7,
952,
11,
309,
8,
198,
220,
220,
220,
1341,
10257,
26801,
7,
952,
8,
198,
220,
220,
220,
1988,
796,
1100,
4906,
7,
952,
11,
10903,
8,
198,
220,
220,
220,
886,
9122,
7,
952,
11,
662,
321,
903,
8,
198,
220,
220,
220,
309,
7,
8367,
8,
198,
437,
628,
198,
397,
8709,
2099,
27741,
51,
28696,
10267,
886,
198,
198,
8818,
555,
8002,
7,
952,
11,
256,
2539,
3712,
51,
9218,
11,
1006,
82,
3712,
35,
713,
90,
5317,
2624,
11,
4377,
5512,
7904,
6030,
90,
51,
30072,
810,
309,
27,
25,
23839,
51,
28696,
10267,
198,
220,
220,
220,
2488,
15003,
29572,
198,
220,
220,
220,
662,
321,
903,
796,
350,
1476,
903,
7,
952,
11,
309,
8,
198,
220,
220,
220,
21136,
25747,
0,
7,
952,
11,
7032,
11,
309,
28696,
20180,
8,
198,
220,
220,
220,
886,
9122,
7,
952,
11,
662,
321,
903,
8,
198,
220,
220,
220,
309,
7,
26,
25747,
23029,
198,
437,
198,
198,
31,
51,
28696,
20180,
30800,
4517,
540,
2878,
309,
28696,
10267,
1279,
25,
27741,
51,
28696,
10267,
886,
198,
31,
51,
28696,
20180,
30800,
4517,
540,
2878,
309,
28696,
10267,
7149,
1279,
25,
27741,
51,
28696,
10267,
886,
198,
31,
51,
28696,
20180,
30800,
4517,
540,
2878,
309,
28696,
10267,
7149,
18833,
3849,
1279,
25,
27741,
51,
28696,
10267,
886,
198,
31,
51,
28696,
20180,
30800,
4517,
540,
2878,
309,
28696,
10267,
18833,
3849,
1279,
25,
27741,
51,
28696,
10267,
886,
198,
31,
51,
28696,
20180,
30800,
4517,
540,
2878,
309,
28696,
10100,
1279,
25,
27741,
51,
28696,
10267,
886,
628,
198,
198,
397,
8709,
2099,
15107,
2394,
12124,
276,
10267,
886,
198,
198,
2,
2163,
4269,
7,
952,
11,
7904,
6030,
90,
51,
30072,
810,
1391,
51,
27,
25,
13252,
2394,
12124,
276,
10267,
92,
198,
2,
220,
220,
220,
220,
7032,
796,
360,
713,
90,
13940,
23650,
11,
4377,
92,
3419,
198,
2,
220,
220,
220,
220,
662,
321,
903,
796,
350,
1476,
903,
7,
952,
11,
309,
8,
198,
2,
220,
220,
220,
220,
4269,
0,
7,
952,
11,
7032,
11,
309,
90,
79,
1476,
903,
13,
9641,
30072,
198,
2,
220,
220,
220,
220,
886,
9122,
7,
952,
11,
662,
321,
903,
8,
198,
2,
220,
220,
220,
220,
309,
7,
25747,
8,
198,
2,
886,
198,
198,
8818,
4269,
0,
7,
952,
11,
7032,
11,
7904,
6030,
90,
51,
30072,
810,
1391,
51,
27,
25,
13252,
2394,
12124,
276,
10267,
92,
198,
220,
220,
220,
662,
321,
903,
796,
350,
1476,
903,
7,
952,
11,
309,
8,
198,
220,
220,
220,
4269,
263,
62,
3672,
796,
38357,
7,
51,
11,
45434,
3,
7,
79,
1476,
903,
13,
9641,
8,
4943,
198,
220,
220,
220,
1303,
2488,
12860,
4269,
263,
62,
3672,
198,
220,
220,
220,
953,
11,
2170,
12453,
796,
6626,
7,
10100,
7,
5532,
263,
62,
3672,
828,
366,
19570,
198,
220,
220,
220,
1303,
2488,
12860,
953,
2170,
12453,
198,
220,
220,
220,
4269,
263,
796,
651,
3245,
7,
31,
834,
33365,
24212,
834,
11,
38357,
7,
774,
3617,
480,
4008,
198,
220,
220,
220,
1303,
2488,
12860,
4269,
263,
198,
220,
220,
220,
1100,
25747,
0,
7,
952,
11,
7032,
11,
4269,
263,
8,
198,
220,
220,
220,
886,
9122,
7,
952,
11,
662,
321,
903,
8,
198,
437,
628,
198,
8818,
555,
8002,
7,
952,
11,
256,
2539,
3712,
51,
9218,
11,
1006,
82,
3712,
35,
713,
90,
5317,
2624,
11,
4377,
5512,
7904,
6030,
90,
51,
30072,
810,
1391,
51,
27,
25,
13252,
2394,
12124,
276,
10267,
92,
198,
220,
220,
220,
23493,
796,
327,
21471,
7,
9150,
7,
952,
828,
33245,
11,
256,
2539,
11,
1006,
82,
8,
198,
220,
220,
220,
2488,
15003,
29572,
198,
220,
220,
220,
662,
321,
903,
796,
350,
1476,
903,
7,
952,
11,
309,
8,
198,
220,
220,
220,
4269,
263,
62,
3672,
796,
38357,
7,
51,
11,
45434,
3,
7,
79,
1476,
903,
13,
9641,
8,
4943,
198,
220,
220,
220,
953,
11,
2170,
12453,
796,
6626,
7,
10100,
7,
5532,
263,
62,
3672,
828,
366,
19570,
198,
220,
220,
220,
4269,
263,
796,
651,
3245,
7,
31,
834,
33365,
24212,
834,
11,
38357,
7,
774,
3617,
480,
4008,
198,
220,
220,
220,
1100,
25747,
0,
7,
66,
21471,
11,
7032,
11,
4269,
263,
8,
198,
220,
220,
220,
4269,
263,
7,
26,
66,
21471,
28,
66,
21471,
11,
7032,
23029,
198,
437,
628,
198,
198,
2,
2163,
4269,
0,
7,
952,
11,
7032,
11,
7904,
6030,
90,
51,
90,
53,
11709,
8,
810,
1391,
53,
11,
309,
27,
25,
13252,
2394,
12124,
276,
10267,
92,
198,
2,
220,
220,
220,
220,
44872,
7203,
3987,
470,
760,
703,
284,
4269,
720,
51,
4943,
198,
2,
886,
628,
198,
7249,
5390,
65,
752,
1279,
25,
15107,
2394,
12124,
276,
10267,
886,
198,
29572,
25747,
0,
7,
952,
11,
7032,
11,
7904,
6030,
90,
51,
10267,
30072,
796,
1341,
10257,
26801,
7,
952,
8,
198,
198,
7249,
309,
10100,
1279,
25,
15107,
2394,
12124,
276,
10267,
886,
198,
403,
8002,
7,
952,
11,
256,
2539,
3712,
51,
9218,
11,
1006,
82,
3712,
35,
713,
90,
5317,
2624,
11,
4377,
5512,
7904,
6030,
90,
51,
10100,
30072,
796,
1100,
4906,
7,
952,
11,
10903,
8,
198,
198,
7249,
13794,
18156,
1279,
25,
15107,
2394,
12124,
276,
10267,
198,
220,
220,
220,
26684,
62,
33661,
198,
437,
198,
198,
14881,
13,
12860,
7,
952,
3712,
9399,
11,
334,
3712,
31319,
18156,
8,
796,
3601,
7,
952,
11,
17971,
7,
4906,
1659,
7,
84,
4008,
7198,
7,
84,
13,
8135,
3949,
62,
33661,
8,
9881,
8,
4943,
198,
198,
8818,
555,
8002,
7,
952,
11,
256,
2539,
3712,
51,
9218,
11,
1006,
82,
3712,
35,
713,
90,
5317,
2624,
11,
4377,
5512,
309,
3712,
6030,
90,
31319,
18156,
30072,
198,
220,
220,
220,
662,
321,
903,
796,
350,
1476,
903,
7,
952,
11,
309,
8,
198,
220,
220,
220,
9881,
62,
1462,
62,
48267,
796,
662,
321,
903,
13,
66,
429,
532,
718,
198,
220,
220,
220,
14267,
7,
952,
11,
9881,
62,
1462,
62,
48267,
8,
198,
220,
220,
220,
886,
9122,
7,
952,
11,
662,
321,
903,
8,
198,
220,
220,
220,
13794,
18156,
7,
33661,
62,
1462,
62,
48267,
8,
198,
437,
198,
198,
9979,
309,
19182,
35,
796,
20650,
90,
43879,
2414,
92,
198,
9979,
309,
19182,
40,
796,
20650,
90,
5317,
2624,
92,
198,
198,
8818,
1100,
4906,
7,
952,
11,
309,
3712,
6030,
90,
38469,
90,
52,
11709,
8,
810,
471,
1279,
25,
4479,
90,
46541,
11,
27741,
43879,
92,
198,
220,
220,
220,
2546,
796,
1100,
4906,
7,
952,
11,
1288,
4906,
7,
51,
4008,
198,
220,
220,
220,
685,
961,
4906,
7,
952,
11,
1288,
4906,
7,
51,
4008,
329,
4808,
287,
352,
25,
7857,
60,
198,
437,
628
] | 2.331013 | 7,758 |
using comorbid
using Test
@testset "comorbid.jl" begin
@test isapprox(exact_burden_term([.1], [.8], [true]), [.08])
end
| [
3500,
401,
273,
14065,
198,
3500,
6208,
198,
198,
31,
9288,
2617,
366,
785,
273,
14065,
13,
20362,
1,
2221,
198,
220,
220,
220,
2488,
9288,
318,
1324,
13907,
7,
1069,
529,
62,
65,
42568,
62,
4354,
26933,
13,
16,
4357,
685,
13,
23,
4357,
685,
7942,
46570,
685,
13,
2919,
12962,
198,
437,
198
] | 2.272727 | 55 |
module mcrosssection1
using FinEtools
using FinEtoolsFlexBeams.CrossSectionModule
using Test
function test()
cs = CrossSectionModule.CrossSectionCircle(s -> 5.9910, s -> [0.0, 0.0, 1.0])
par = cs.parameters(0.0)
for (c, r) in zip((par.A, par.J, par.I1, par.I2, par.I3), (112.75829799164978, 2023.5649824692157, 2023.5649824692157, 1011.7824912346078, 1011.7824912346078))
@test c ≈ r
end
true
end
end
using .mcrosssection1
mcrosssection1.test()
module mcrosssection2
using FinEtools
using FinEtoolsFlexBeams.CrossSectionModule
using Test
function test()
cs = CrossSectionModule.CrossSectionRectangle(s -> 42.0, s -> 4.2, s -> [0.0, 0.0, 1.0])
par = cs.parameters(0.0)
for (c, r) in zip((par.A, par.J, par.I1, par.I2, par.I3), (176.4, 970.849152, 26190.108000000004, 259.30800000000005, 25930.800000000003))
@test c ≈ r
end
true
end
end
using .mcrosssection2
mcrosssection2.test()
module mcrosssection3
using FinEtools
using FinEtoolsFlexBeams.CrossSectionModule
using Test
function test()
cs = CrossSectionModule.CrossSectionRectangle(s -> 1.3 * 4.2, s -> 4.2, s -> [0.0, 0.0, 1.0])
par = cs.parameters(0.0)
for (c, r) in zip((par.A, par.J, par.I1, par.I2, par.I3), (22.932000000000006, 71.66370760423138, 90.68000760000004, 33.71004000000001, 56.969967600000025))
@test c ≈ r
end
true
end
end
using .mcrosssection3
mcrosssection3.test()
module mcrosssection4
using FinEtools
using FinEtoolsFlexBeams.CrossSectionModule
using Test
function test()
R = 0.5
cs = CrossSectionModule.CrossSectionCircle(s -> (1/2+2*s)*R, s -> [0.0, 0.0, 1.0])
par = cs.parameters(0.0)
for (c, r) in zip((par.A, par.J, par.I1, par.I2, par.I3), (0.19634954084936207, 0.006135923151542565, 0.006135923151542565, 0.0030679615757712823, 0.0030679615757712823))
@test c ≈ r
end
true
end
end
using .mcrosssection4
mcrosssection4.test() | [
21412,
285,
19692,
5458,
16,
198,
3500,
4463,
36,
31391,
198,
3500,
4463,
36,
31391,
37,
2588,
3856,
4105,
13,
21544,
16375,
26796,
198,
3500,
6208,
198,
8818,
1332,
3419,
198,
220,
220,
220,
50115,
796,
6372,
16375,
26796,
13,
21544,
16375,
31560,
293,
7,
82,
4613,
642,
13,
2079,
940,
11,
264,
4613,
685,
15,
13,
15,
11,
657,
13,
15,
11,
352,
13,
15,
12962,
198,
220,
220,
220,
1582,
796,
50115,
13,
17143,
7307,
7,
15,
13,
15,
8,
198,
220,
220,
220,
329,
357,
66,
11,
374,
8,
287,
19974,
19510,
1845,
13,
32,
11,
1582,
13,
41,
11,
1582,
13,
40,
16,
11,
1582,
13,
40,
17,
11,
1582,
13,
40,
18,
828,
357,
14686,
13,
38569,
26561,
2079,
1433,
2920,
3695,
11,
1160,
1954,
13,
20,
2414,
4089,
1731,
46589,
18458,
11,
1160,
1954,
13,
20,
2414,
4089,
1731,
46589,
18458,
11,
8949,
16,
13,
3695,
21626,
1065,
2682,
1899,
3695,
11,
8949,
16,
13,
3695,
21626,
1065,
2682,
1899,
3695,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
269,
15139,
230,
374,
198,
220,
220,
220,
886,
220,
198,
220,
220,
220,
2081,
198,
437,
198,
437,
198,
3500,
764,
76,
19692,
5458,
16,
198,
76,
19692,
5458,
16,
13,
9288,
3419,
198,
198,
21412,
285,
19692,
5458,
17,
198,
3500,
4463,
36,
31391,
198,
3500,
4463,
36,
31391,
37,
2588,
3856,
4105,
13,
21544,
16375,
26796,
198,
3500,
6208,
198,
8818,
1332,
3419,
198,
220,
220,
220,
50115,
796,
6372,
16375,
26796,
13,
21544,
16375,
45474,
9248,
7,
82,
4613,
5433,
13,
15,
11,
264,
4613,
604,
13,
17,
11,
264,
4613,
685,
15,
13,
15,
11,
657,
13,
15,
11,
352,
13,
15,
12962,
198,
220,
220,
220,
1582,
796,
50115,
13,
17143,
7307,
7,
15,
13,
15,
8,
198,
220,
220,
220,
329,
357,
66,
11,
374,
8,
287,
19974,
19510,
1845,
13,
32,
11,
1582,
13,
41,
11,
1582,
13,
40,
16,
11,
1582,
13,
40,
17,
11,
1582,
13,
40,
18,
828,
357,
24096,
13,
19,
11,
40463,
13,
23,
2920,
17827,
11,
2608,
19782,
13,
15711,
8269,
19,
11,
37831,
13,
21495,
8269,
22544,
11,
37831,
1270,
13,
23,
8269,
11245,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
269,
15139,
230,
374,
198,
220,
220,
220,
886,
220,
198,
220,
220,
220,
2081,
198,
437,
198,
437,
198,
3500,
764,
76,
19692,
5458,
17,
198,
76,
19692,
5458,
17,
13,
9288,
3419,
198,
198,
21412,
285,
19692,
5458,
18,
198,
3500,
4463,
36,
31391,
198,
3500,
4463,
36,
31391,
37,
2588,
3856,
4105,
13,
21544,
16375,
26796,
198,
3500,
6208,
198,
8818,
1332,
3419,
198,
220,
220,
220,
50115,
796,
6372,
16375,
26796,
13,
21544,
16375,
45474,
9248,
7,
82,
4613,
352,
13,
18,
1635,
604,
13,
17,
11,
264,
4613,
604,
13,
17,
11,
264,
4613,
685,
15,
13,
15,
11,
657,
13,
15,
11,
352,
13,
15,
12962,
198,
220,
220,
220,
1582,
796,
50115,
13,
17143,
7307,
7,
15,
13,
15,
8,
198,
220,
220,
220,
329,
357,
66,
11,
374,
8,
287,
19974,
19510,
1845,
13,
32,
11,
1582,
13,
41,
11,
1582,
13,
40,
16,
11,
1582,
13,
40,
17,
11,
1582,
13,
40,
18,
828,
357,
1828,
13,
6052,
2167,
10535,
830,
21,
11,
9166,
13,
2791,
20167,
22,
31916,
1954,
20107,
11,
4101,
13,
3104,
830,
4304,
10535,
19,
11,
4747,
13,
22,
3064,
19,
8269,
16,
11,
7265,
13,
4846,
2079,
42548,
10535,
1495,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
269,
15139,
230,
374,
198,
220,
220,
220,
886,
220,
198,
2081,
198,
437,
198,
437,
198,
3500,
764,
76,
19692,
5458,
18,
198,
76,
19692,
5458,
18,
13,
9288,
3419,
198,
198,
21412,
285,
19692,
5458,
19,
198,
3500,
4463,
36,
31391,
198,
3500,
4463,
36,
31391,
37,
2588,
3856,
4105,
13,
21544,
16375,
26796,
198,
3500,
6208,
198,
8818,
1332,
3419,
198,
220,
220,
220,
371,
796,
657,
13,
20,
198,
220,
220,
220,
50115,
796,
6372,
16375,
26796,
13,
21544,
16375,
31560,
293,
7,
82,
4613,
357,
16,
14,
17,
10,
17,
9,
82,
27493,
49,
11,
264,
4613,
685,
15,
13,
15,
11,
657,
13,
15,
11,
352,
13,
15,
12962,
198,
220,
220,
220,
1582,
796,
50115,
13,
17143,
7307,
7,
15,
13,
15,
8,
198,
220,
220,
220,
329,
357,
66,
11,
374,
8,
287,
19974,
19510,
1845,
13,
32,
11,
1582,
13,
41,
11,
1582,
13,
40,
16,
11,
1582,
13,
40,
17,
11,
1582,
13,
40,
18,
828,
357,
15,
13,
25272,
2682,
3865,
26200,
2920,
2623,
22745,
11,
657,
13,
28041,
1485,
3270,
1954,
1314,
21526,
1495,
2996,
11,
657,
13,
28041,
1485,
3270,
1954,
1314,
21526,
1495,
2996,
11,
657,
13,
405,
1270,
3134,
4846,
1314,
2425,
3324,
12762,
1954,
11,
657,
13,
405,
1270,
3134,
4846,
1314,
2425,
3324,
12762,
1954,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
9288,
269,
15139,
230,
374,
198,
220,
220,
220,
886,
220,
198,
220,
220,
220,
2081,
198,
437,
198,
437,
198,
3500,
764,
76,
19692,
5458,
19,
198,
76,
19692,
5458,
19,
13,
9288,
3419
] | 2.238095 | 861 |
# ------------------------------------- #
# Helper methods used in generated code #
# ------------------------------------- #
# inlined function to extract a single variable. If `x` is a vector then
# extract a single element. If `x` is a Matrix then extract one column of the
# matrix
@inline _unpack_var(x::AbstractVector, i::Integer) = x[i]
@inline _unpack_var(x::AbstractMatrix, i::Integer, ::Type{COrder}) = view(x, :, i)
@inline _unpack_var(x::AbstractMatrix, i::Integer, ::Type{FOrder}) = view(x, i, :)
@inline _unpack_var(x::AbstractMatrix, i::Integer) = view(x, :, i)
# inlined function to extract a single observations of a vector fo variables.
@inline _unpack_obs(x::AbstractMatrix, i::Integer, ::Type{COrder}) = view(x, i, :)
@inline _unpack_obs(x::AbstractMatrix, i::Integer, ::Type{FOrder}) = view(x, :, i)
@inline _unpack_obs(x::AbstractMatrix, i::Integer) = view(x, i, :)
@inline _unpack_obs(x::AbstractVector, i::Integer) = x
# similar to _unpack_var, but instead assigns one element of a vector or one
# column of a matrix
@inline _assign_var(lhs::AbstractVector, rhs::Number, i) = setindex!(lhs, rhs, i)
@inline _assign_var(lhs::AbstractMatrix, rhs::AbstractVector, i) = setindex!(lhs, rhs, :, i)
@inline _assign_var(lhs::AbstractMatrix, rhs::AbstractVector, i, ::Type{COrder}) = setindex!(lhs, rhs, :, i)
@inline _assign_var(lhs::AbstractMatrix, rhs::AbstractVector, i, ::Type{FOrder}) = setindex!(lhs, rhs, i, :)
# determine the size of the output variable, given the number of expressions
# in the equation and all the input arguments
_output_size(n_expr::Int, args::AbstractVector...) = (n_expr,)
_output_size(n_expr::Int, arg::AbstractMatrix) = (size(arg, 1), n_expr)
function _output_size(n_expr::Int, args...)
n_row = 0
# get maximum number of rows among matrix arguments
for a in args
if isa(a, AbstractMatrix)
nr = size(a, 1)
if n_row > 0
# we already found another matrix argument, now we can enforce
# that all matrix arguments have conformable shapes
if nr != n_row
msg = string("Unconformable argument sizes. For vectorized",
" Core.evaluation all matrix arguments must have ",
"the same number of rows.")
throw(DimensionMismatch(msg))
end
else
# we need to update n_row
n_row = nr
end
end
end
(n_row, n_expr)
end
_output_size(n_expr::Int, ::Type{COrder}, args...) = _output_size(n_expr::Int, args...)
function _output_size(n_expr::Int, order::Type{FOrder}, args...)
s = _output_size(n_expr::Int, order::Type{FOrder}, args...)
(s[2],s[1])
end
# Allocate an array of eltype `T` for `n_expr` variables that corresponds
# to input arguments `args...`
_allocate_out(T::Type, n_expr::Int, args::AbstractVector...) = Array{T}(undef, n_expr)
_allocate_out(T::Type, order::Union{Type{COrder},Type{FOrder}}, n_expr::Int, arg::AbstractMatrix) =
Array{T}(undef, _output_size(n_expr, order, arg))
_allocate_out(T::Type, n_expr::Int, arg::AbstractMatrix) =
Array{T}(undef, _output_size(n_expr, arg))
function _allocate_out(T::Type, n_expr::Int, args...)
Array{T}(undef, _output_size(n_expr, args...))
end
function _allocate_out(T::Type, order::Union{Type{COrder},Type{FOrder}}, n_expr::Int, args...)
Array{T}(undef, _output_size(n_expr, order, args...))
end
## Triangular solver
_expr_or_number(x::Union{AbstractString,Symbol,Expr}) = _to_expr(x)
_expr_or_number(x::Number) = x
inf_to_Inf(x::Number) = x
inf_to_Inf(x::Symbol) = x in (:inf, :Inf) ? Inf : x
inf_to_Inf(ex::Expr) = Expr(ex.head, map(inf_to_Inf, ex.args)...)
_to_Float64(x::Real) = convert(Float64, x)
_to_Float64(x::AbstractArray) = map(Float64, x)
function solution_order(d::OrderedDict, it::IncidenceTable, pre_solved::Vector{Symbol}=Symbol[])
# unpack some data
vars = collect(keys(d))
n = length(d)
# allocate
out = zeros(Int, length(d))
# Start with indices for equations that are purely numerical
front = setdiff(1:n, keys(it.by_eq))
out[front] = 1:length(front)
solved = vcat(pre_solved, vars[front])
to_solve = deepcopy(it.by_eq)
# now start stepping through equations
ix = length(front)
for _junk in 2:n+1
for (eq, eq_vars) in to_solve
can_solve = true
for (var, dates) in eq_vars
if !in(var, solved)
can_solve = false
break
end
end
if can_solve
out[eq] = ix+=1
push!(solved, vars[eq])
pop!(to_solve, eq)
end
end
end
!isempty(to_solve) && error("Not triangular system")
return sortperm(out)
end
function solution_order(_d::AbstractDict, pre_solved::Vector{Symbol}=Symbol[])
d = OrderedDict(_d)
it = Dolang.IncidenceTable(collect(values(d)))
solution_order(d, it, pre_solved)
end
solve_triangular_system(d::AbstractDict) = solve_triangular_system(OrderedDict(d))
function solve_triangular_system(d::OrderedDict)
sol_order = solution_order(d)
# extract expressions and variable names in proper order
nms = collect(keys(d))[sol_order]
exprs = collect(values(d))[sol_order]
# build expression to Core.evaluate system in correct order
to_eval = Expr(:block)
to_eval.args = [:($(i[1])=$(i[2])) for i in zip(nms, exprs)]
# add one line to return a tuple of all data
ret = Expr(:tuple); ret.args = nms
# now Core.evaluate and get data
data = eval(:(
let
$to_eval
$ret
end
))
OrderedDict{Symbol,Real}(zip(nms, data))
end
mutable struct TriangularSystemException <: Exception
missing
end
"""
Solves triangular system specified by incidence dictionary.
```
system = Dict(0=>[1,2], 1=>[], 2=>[1] )
solve_dependency(system)
```
or
```
system = Dict(:x=>[:y,:z], :y=>[], :z=>[:y] )
solve_dependency(system)
```
Optionally, one can add specify which subset of variables to solve so that unrequired variables will be ommited in the solution. In
```
system = Dict(:x=>[:y,:z], :y=>[], :z=>[:y], :p=>[:x,y,z] )
solve_dependency(system, [:x,:y,:z])
```
the answer is the same as before since `:p` is not needed to
define the values of `[:x,:y,:z]`.
"""
function solve_dependencies(deps::AbstractDict{T,Set{T}}, unknowns=nothing) where T
solution = []
if unknowns == nothing
needed = Set(keys(deps))
else
needed = Set(unknowns)
end
while length(needed)>0
tt0 = (length(needed), length(solution))
if length(needed)==0
return solution
else
for k in needed
# check whether k is solved
if k in solution
pop!(needed, k)
elseif issubset(deps[k], solution)
push!(solution, k)
else
needed = union(deps[k], needed)
end
end
tt = (length(needed), length(solution))
if tt == tt0
mis = join([string(e) for e in needed], ", ")
exc = TriangularSystemException(mis)
throw(exc)
end
end
end
return solution
end
function get_dependencies(defs::AbstractDict{T,U}; target=:all) where T where U
deps = OrderedDict{Any,Set{Any}}()
def_keys = keys(defs)
for (k, v) in (defs)
# get list of all symbols in this equation
# _syms = collect(values(list_variables(v)))
# allsyms = length(_syms) > 0 ? Set(union(_syms...)) : Set()
if target==:variables
allsyms = list_variables(v)
elseif target==:parameters
allsyms = list_parameters(v)
else
ll = list_symbols(v)
allsyms = cat(ll.parameters, ll.variables; dims=1)
end
# intersect that with the keys in our definitions
ii = intersect(allsyms, def_keys)
ij = Set(ii)
deps[k] = ij
end
deps
end
function reorder_triangular_block(defs::AbstractDict{T,U}) where T where U
deps = get_dependencies(defs)
sol = Dolang.solve_dependencies(deps)
return OrderedDict((k,defs[k]) for k in sol)
end
"""Solves definitions blocks
Keys are timed variables in canonical form (e.g. `(:v,0)`) at date t=0.
Values are expressions, possibly referencing key variables at different dates.
The system is recursively solved for the unknowns, by default the keys.
"""
function solve_definitions(defs::AbstractDict{Tuple{Symbol, Int}, <:SymExpr}, unknowns=keys(defs))
# defs should map timed-vars to expressions.
_defs = deepcopy(defs)
for (v,t) in collect(keys(_defs))
# t should always be 0
@assert t==0
for shift in (-1,1)
_defs[(v,shift)] = Dolang.time_shift(_defs[(v,t)], shift)
end
end
deps = Dolang.get_dependencies(_defs)
solution = Dolang.solve_dependencies(deps, unknowns)
reordered = OrderedDict()
for k in solution
reordered[k] = _defs[k]
end
return reordered
end
| [
2,
20368,
30934,
1303,
198,
2,
5053,
525,
5050,
973,
287,
7560,
2438,
1303,
198,
2,
20368,
30934,
1303,
198,
198,
2,
287,
10837,
2163,
284,
7925,
257,
2060,
7885,
13,
1002,
4600,
87,
63,
318,
257,
15879,
788,
198,
2,
7925,
257,
2060,
5002,
13,
1002,
4600,
87,
63,
318,
257,
24936,
788,
7925,
530,
5721,
286,
262,
198,
2,
17593,
198,
31,
45145,
4808,
403,
8002,
62,
7785,
7,
87,
3712,
23839,
38469,
11,
1312,
3712,
46541,
8,
796,
2124,
58,
72,
60,
198,
31,
45145,
4808,
403,
8002,
62,
7785,
7,
87,
3712,
23839,
46912,
11,
1312,
3712,
46541,
11,
7904,
6030,
90,
34,
18743,
30072,
796,
1570,
7,
87,
11,
1058,
11,
1312,
8,
198,
31,
45145,
4808,
403,
8002,
62,
7785,
7,
87,
3712,
23839,
46912,
11,
1312,
3712,
46541,
11,
7904,
6030,
90,
37,
18743,
30072,
796,
1570,
7,
87,
11,
1312,
11,
14373,
198,
31,
45145,
4808,
403,
8002,
62,
7785,
7,
87,
3712,
23839,
46912,
11,
1312,
3712,
46541,
8,
796,
1570,
7,
87,
11,
1058,
11,
1312,
8,
198,
198,
2,
287,
10837,
2163,
284,
7925,
257,
2060,
13050,
286,
257,
15879,
11511,
9633,
13,
198,
31,
45145,
4808,
403,
8002,
62,
8158,
7,
87,
3712,
23839,
46912,
11,
1312,
3712,
46541,
11,
7904,
6030,
90,
34,
18743,
30072,
796,
1570,
7,
87,
11,
1312,
11,
14373,
198,
31,
45145,
4808,
403,
8002,
62,
8158,
7,
87,
3712,
23839,
46912,
11,
1312,
3712,
46541,
11,
7904,
6030,
90,
37,
18743,
30072,
796,
1570,
7,
87,
11,
1058,
11,
1312,
8,
198,
31,
45145,
4808,
403,
8002,
62,
8158,
7,
87,
3712,
23839,
46912,
11,
1312,
3712,
46541,
8,
796,
1570,
7,
87,
11,
1312,
11,
14373,
198,
31,
45145,
4808,
403,
8002,
62,
8158,
7,
87,
3712,
23839,
38469,
11,
1312,
3712,
46541,
8,
796,
2124,
198,
198,
2,
2092,
284,
4808,
403,
8002,
62,
7785,
11,
475,
2427,
46974,
530,
5002,
286,
257,
15879,
393,
530,
198,
2,
5721,
286,
257,
17593,
198,
31,
45145,
4808,
562,
570,
62,
7785,
7,
75,
11994,
3712,
23839,
38469,
11,
9529,
82,
3712,
15057,
11,
1312,
8,
796,
900,
9630,
0,
7,
75,
11994,
11,
9529,
82,
11,
1312,
8,
198,
31,
45145,
4808,
562,
570,
62,
7785,
7,
75,
11994,
3712,
23839,
46912,
11,
9529,
82,
3712,
23839,
38469,
11,
1312,
8,
796,
900,
9630,
0,
7,
75,
11994,
11,
9529,
82,
11,
1058,
11,
1312,
8,
198,
31,
45145,
4808,
562,
570,
62,
7785,
7,
75,
11994,
3712,
23839,
46912,
11,
9529,
82,
3712,
23839,
38469,
11,
1312,
11,
7904,
6030,
90,
34,
18743,
30072,
796,
900,
9630,
0,
7,
75,
11994,
11,
9529,
82,
11,
1058,
11,
1312,
8,
198,
31,
45145,
4808,
562,
570,
62,
7785,
7,
75,
11994,
3712,
23839,
46912,
11,
9529,
82,
3712,
23839,
38469,
11,
1312,
11,
7904,
6030,
90,
37,
18743,
30072,
796,
900,
9630,
0,
7,
75,
11994,
11,
9529,
82,
11,
1312,
11,
14373,
198,
198,
2,
5004,
262,
2546,
286,
262,
5072,
7885,
11,
1813,
262,
1271,
286,
14700,
198,
2,
287,
262,
16022,
290,
477,
262,
5128,
7159,
198,
62,
22915,
62,
7857,
7,
77,
62,
31937,
3712,
5317,
11,
26498,
3712,
23839,
38469,
23029,
796,
357,
77,
62,
31937,
35751,
198,
198,
62,
22915,
62,
7857,
7,
77,
62,
31937,
3712,
5317,
11,
1822,
3712,
23839,
46912,
8,
796,
357,
7857,
7,
853,
11,
352,
828,
299,
62,
31937,
8,
198,
198,
8818,
4808,
22915,
62,
7857,
7,
77,
62,
31937,
3712,
5317,
11,
26498,
23029,
198,
220,
220,
220,
299,
62,
808,
796,
657,
198,
220,
220,
220,
1303,
651,
5415,
1271,
286,
15274,
1871,
17593,
7159,
198,
220,
220,
220,
329,
257,
287,
26498,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
64,
7,
64,
11,
27741,
46912,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
81,
796,
2546,
7,
64,
11,
352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
299,
62,
808,
1875,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
356,
1541,
1043,
1194,
17593,
4578,
11,
783,
356,
460,
4605,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
326,
477,
17593,
7159,
423,
17216,
540,
15268,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
299,
81,
14512,
299,
62,
808,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
4731,
7203,
3118,
1102,
687,
540,
4578,
10620,
13,
1114,
15879,
1143,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
7231,
13,
18206,
2288,
477,
17593,
7159,
1276,
423,
33172,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
1169,
976,
1271,
286,
15274,
19570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3714,
7,
29271,
3004,
44,
1042,
963,
7,
19662,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
356,
761,
284,
4296,
299,
62,
808,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
62,
808,
796,
299,
81,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
357,
77,
62,
808,
11,
299,
62,
31937,
8,
198,
437,
198,
198,
62,
22915,
62,
7857,
7,
77,
62,
31937,
3712,
5317,
11,
7904,
6030,
90,
34,
18743,
5512,
26498,
23029,
220,
796,
4808,
22915,
62,
7857,
7,
77,
62,
31937,
3712,
5317,
11,
26498,
23029,
198,
198,
8818,
4808,
22915,
62,
7857,
7,
77,
62,
31937,
3712,
5317,
11,
1502,
3712,
6030,
90,
37,
18743,
5512,
26498,
23029,
198,
220,
220,
220,
264,
796,
4808,
22915,
62,
7857,
7,
77,
62,
31937,
3712,
5317,
11,
1502,
3712,
6030,
90,
37,
18743,
5512,
26498,
23029,
198,
220,
220,
220,
357,
82,
58,
17,
4357,
82,
58,
16,
12962,
198,
437,
628,
198,
198,
2,
1439,
13369,
281,
7177,
286,
1288,
4906,
4600,
51,
63,
329,
4600,
77,
62,
31937,
63,
9633,
326,
24866,
198,
2,
284,
5128,
7159,
4600,
22046,
986,
63,
198,
62,
439,
13369,
62,
448,
7,
51,
3712,
6030,
11,
299,
62,
31937,
3712,
5317,
11,
26498,
3712,
23839,
38469,
23029,
796,
15690,
90,
51,
92,
7,
917,
891,
11,
299,
62,
31937,
8,
198,
198,
62,
439,
13369,
62,
448,
7,
51,
3712,
6030,
11,
1502,
3712,
38176,
90,
6030,
90,
34,
18743,
5512,
6030,
90,
37,
18743,
92,
5512,
299,
62,
31937,
3712,
5317,
11,
1822,
3712,
23839,
46912,
8,
796,
198,
220,
220,
220,
15690,
90,
51,
92,
7,
917,
891,
11,
4808,
22915,
62,
7857,
7,
77,
62,
31937,
11,
1502,
11,
1822,
4008,
198,
198,
62,
439,
13369,
62,
448,
7,
51,
3712,
6030,
11,
299,
62,
31937,
3712,
5317,
11,
1822,
3712,
23839,
46912,
8,
796,
198,
220,
220,
220,
220,
220,
220,
220,
15690,
90,
51,
92,
7,
917,
891,
11,
4808,
22915,
62,
7857,
7,
77,
62,
31937,
11,
1822,
4008,
198,
198,
8818,
4808,
439,
13369,
62,
448,
7,
51,
3712,
6030,
11,
299,
62,
31937,
3712,
5317,
11,
26498,
23029,
198,
220,
220,
220,
15690,
90,
51,
92,
7,
917,
891,
11,
4808,
22915,
62,
7857,
7,
77,
62,
31937,
11,
26498,
986,
4008,
198,
437,
198,
198,
8818,
4808,
439,
13369,
62,
448,
7,
51,
3712,
6030,
11,
1502,
3712,
38176,
90,
6030,
90,
34,
18743,
5512,
6030,
90,
37,
18743,
92,
5512,
299,
62,
31937,
3712,
5317,
11,
26498,
23029,
198,
220,
220,
220,
15690,
90,
51,
92,
7,
917,
891,
11,
4808,
22915,
62,
7857,
7,
77,
62,
31937,
11,
1502,
11,
26498,
986,
4008,
198,
437,
198,
198,
2235,
7563,
21413,
1540,
332,
198,
198,
62,
31937,
62,
273,
62,
17618,
7,
87,
3712,
38176,
90,
23839,
10100,
11,
13940,
23650,
11,
3109,
1050,
30072,
796,
4808,
1462,
62,
31937,
7,
87,
8,
198,
62,
31937,
62,
273,
62,
17618,
7,
87,
3712,
15057,
8,
796,
2124,
198,
198,
10745,
62,
1462,
62,
18943,
7,
87,
3712,
15057,
8,
796,
2124,
198,
10745,
62,
1462,
62,
18943,
7,
87,
3712,
13940,
23650,
8,
796,
2124,
287,
357,
25,
10745,
11,
1058,
18943,
8,
5633,
4806,
1058,
2124,
198,
10745,
62,
1462,
62,
18943,
7,
1069,
3712,
3109,
1050,
8,
796,
1475,
1050,
7,
1069,
13,
2256,
11,
3975,
7,
10745,
62,
1462,
62,
18943,
11,
409,
13,
22046,
8,
23029,
198,
198,
62,
1462,
62,
43879,
2414,
7,
87,
3712,
15633,
8,
796,
10385,
7,
43879,
2414,
11,
2124,
8,
198,
62,
1462,
62,
43879,
2414,
7,
87,
3712,
23839,
19182,
8,
796,
3975,
7,
43879,
2414,
11,
2124,
8,
198,
198,
8818,
4610,
62,
2875,
7,
67,
3712,
35422,
1068,
35,
713,
11,
340,
3712,
25517,
1704,
10962,
11,
662,
62,
82,
5634,
3712,
38469,
90,
13940,
23650,
92,
28,
13940,
23650,
58,
12962,
198,
220,
220,
220,
1303,
555,
8002,
617,
1366,
198,
220,
220,
220,
410,
945,
796,
2824,
7,
13083,
7,
67,
4008,
198,
220,
220,
220,
299,
796,
4129,
7,
67,
8,
628,
220,
220,
220,
1303,
31935,
198,
220,
220,
220,
503,
796,
1976,
27498,
7,
5317,
11,
4129,
7,
67,
4008,
628,
220,
220,
220,
1303,
7253,
351,
36525,
329,
27490,
326,
389,
14177,
29052,
198,
220,
220,
220,
2166,
796,
900,
26069,
7,
16,
25,
77,
11,
8251,
7,
270,
13,
1525,
62,
27363,
4008,
198,
220,
220,
220,
503,
58,
8534,
60,
796,
352,
25,
13664,
7,
8534,
8,
198,
220,
220,
220,
16019,
796,
410,
9246,
7,
3866,
62,
82,
5634,
11,
410,
945,
58,
8534,
12962,
198,
220,
220,
220,
284,
62,
82,
6442,
796,
2769,
30073,
7,
270,
13,
1525,
62,
27363,
8,
628,
220,
220,
220,
1303,
783,
923,
17413,
832,
27490,
198,
220,
220,
220,
220,
844,
796,
4129,
7,
8534,
8,
198,
220,
220,
220,
329,
4808,
73,
2954,
287,
362,
25,
77,
10,
16,
198,
220,
220,
220,
220,
220,
220,
220,
329,
357,
27363,
11,
37430,
62,
85,
945,
8,
287,
284,
62,
82,
6442,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
460,
62,
82,
6442,
796,
2081,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
357,
7785,
11,
9667,
8,
287,
37430,
62,
85,
945,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5145,
259,
7,
7785,
11,
16019,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
460,
62,
82,
6442,
796,
3991,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
460,
62,
82,
6442,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
503,
58,
27363,
60,
796,
220,
844,
47932,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
82,
5634,
11,
410,
945,
58,
27363,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1461,
0,
7,
1462,
62,
82,
6442,
11,
37430,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
628,
220,
220,
220,
5145,
271,
28920,
7,
1462,
62,
82,
6442,
8,
11405,
4049,
7203,
3673,
46963,
1080,
4943,
628,
220,
220,
220,
1441,
3297,
16321,
7,
448,
8,
198,
437,
628,
198,
8818,
4610,
62,
2875,
28264,
67,
3712,
23839,
35,
713,
11,
662,
62,
82,
5634,
3712,
38469,
90,
13940,
23650,
92,
28,
13940,
23650,
58,
12962,
198,
220,
220,
220,
288,
796,
14230,
1068,
35,
713,
28264,
67,
8,
198,
220,
220,
220,
340,
796,
25143,
648,
13,
25517,
1704,
10962,
7,
33327,
7,
27160,
7,
67,
22305,
198,
220,
220,
220,
4610,
62,
2875,
7,
67,
11,
340,
11,
662,
62,
82,
5634,
8,
198,
437,
198,
198,
82,
6442,
62,
28461,
21413,
62,
10057,
7,
67,
3712,
23839,
35,
713,
8,
796,
8494,
62,
28461,
21413,
62,
10057,
7,
35422,
1068,
35,
713,
7,
67,
4008,
198,
198,
8818,
8494,
62,
28461,
21413,
62,
10057,
7,
67,
3712,
35422,
1068,
35,
713,
8,
198,
220,
220,
220,
1540,
62,
2875,
796,
4610,
62,
2875,
7,
67,
8,
628,
220,
220,
220,
1303,
7925,
14700,
290,
7885,
3891,
287,
1774,
1502,
198,
220,
220,
220,
299,
907,
796,
2824,
7,
13083,
7,
67,
4008,
58,
34453,
62,
2875,
60,
198,
220,
220,
220,
1033,
3808,
796,
2824,
7,
27160,
7,
67,
4008,
58,
34453,
62,
2875,
60,
628,
220,
220,
220,
1303,
1382,
5408,
284,
7231,
13,
49786,
1080,
287,
3376,
1502,
198,
220,
220,
220,
284,
62,
18206,
796,
1475,
1050,
7,
25,
9967,
8,
198,
220,
220,
220,
284,
62,
18206,
13,
22046,
796,
685,
25,
16763,
7,
72,
58,
16,
12962,
43641,
7,
72,
58,
17,
60,
4008,
329,
1312,
287,
19974,
7,
77,
907,
11,
1033,
3808,
15437,
628,
220,
220,
220,
1303,
751,
530,
1627,
284,
1441,
257,
46545,
286,
477,
1366,
198,
220,
220,
220,
1005,
796,
1475,
1050,
7,
25,
83,
29291,
1776,
1005,
13,
22046,
796,
299,
907,
628,
220,
220,
220,
1303,
783,
7231,
13,
49786,
290,
651,
1366,
198,
220,
220,
220,
1366,
796,
5418,
7,
37498,
198,
220,
220,
220,
220,
220,
220,
220,
1309,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
720,
1462,
62,
18206,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
720,
1186,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
15306,
628,
220,
220,
220,
14230,
1068,
35,
713,
90,
13940,
23650,
11,
15633,
92,
7,
13344,
7,
77,
907,
11,
1366,
4008,
198,
437,
198,
198,
76,
18187,
2878,
7563,
21413,
11964,
16922,
1279,
25,
35528,
198,
220,
220,
220,
4814,
198,
437,
198,
198,
37811,
198,
50,
9010,
46963,
1080,
7368,
416,
18349,
22155,
13,
198,
198,
15506,
63,
198,
10057,
796,
360,
713,
7,
15,
14804,
58,
16,
11,
17,
4357,
352,
14804,
58,
4357,
362,
14804,
58,
16,
60,
1267,
198,
82,
6442,
62,
45841,
1387,
7,
10057,
8,
198,
15506,
63,
198,
198,
273,
198,
198,
15506,
63,
198,
10057,
796,
360,
713,
7,
25,
87,
14804,
58,
25,
88,
11,
25,
89,
4357,
1058,
88,
14804,
58,
4357,
1058,
89,
14804,
58,
25,
88,
60,
1267,
198,
82,
6442,
62,
45841,
1387,
7,
10057,
8,
198,
15506,
63,
198,
198,
19722,
453,
11,
530,
460,
751,
11986,
543,
24637,
286,
9633,
284,
8494,
220,
523,
326,
555,
35827,
9633,
481,
307,
267,
3020,
863,
287,
262,
4610,
13,
554,
198,
198,
15506,
63,
198,
10057,
796,
360,
713,
7,
25,
87,
14804,
58,
25,
88,
11,
25,
89,
4357,
1058,
88,
14804,
58,
4357,
1058,
89,
14804,
58,
25,
88,
4357,
1058,
79,
14804,
58,
25,
87,
11,
88,
11,
89,
60,
1267,
198,
82,
6442,
62,
45841,
1387,
7,
10057,
11,
685,
25,
87,
11,
25,
88,
11,
25,
89,
12962,
198,
198,
15506,
63,
198,
198,
1169,
3280,
318,
262,
976,
355,
878,
1201,
4600,
25,
79,
63,
318,
407,
2622,
284,
198,
13086,
262,
3815,
286,
4600,
58,
25,
87,
11,
25,
88,
11,
25,
89,
60,
44646,
198,
37811,
198,
8818,
8494,
62,
45841,
3976,
7,
10378,
82,
3712,
23839,
35,
713,
90,
51,
11,
7248,
90,
51,
92,
5512,
6439,
82,
28,
22366,
8,
810,
309,
198,
220,
220,
220,
4610,
796,
17635,
198,
220,
220,
220,
611,
6439,
82,
6624,
2147,
198,
220,
220,
220,
220,
220,
220,
220,
2622,
796,
5345,
7,
13083,
7,
10378,
82,
4008,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
2622,
796,
5345,
7,
34680,
82,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
981,
4129,
7,
27938,
8,
29,
15,
198,
220,
220,
220,
220,
220,
220,
220,
256,
83,
15,
796,
357,
13664,
7,
27938,
828,
4129,
7,
82,
2122,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
611,
4129,
7,
27938,
8,
855,
15,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4610,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
479,
287,
2622,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2198,
1771,
479,
318,
16019,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
479,
287,
4610,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1461,
0,
7,
27938,
11,
479,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
1189,
549,
2617,
7,
10378,
82,
58,
74,
4357,
4610,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
82,
2122,
11,
479,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2622,
796,
6441,
7,
10378,
82,
58,
74,
4357,
2622,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
83,
796,
357,
13664,
7,
27938,
828,
4129,
7,
82,
2122,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
256,
83,
6624,
256,
83,
15,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2984,
796,
4654,
26933,
8841,
7,
68,
8,
329,
304,
287,
2622,
4357,
33172,
366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2859,
796,
7563,
21413,
11964,
16922,
7,
25413,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3714,
7,
41194,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
4610,
198,
437,
198,
198,
8818,
651,
62,
45841,
3976,
7,
4299,
82,
3712,
23839,
35,
713,
90,
51,
11,
52,
19629,
2496,
28,
25,
439,
8,
810,
309,
810,
471,
198,
220,
220,
220,
390,
862,
796,
14230,
1068,
35,
713,
90,
7149,
11,
7248,
90,
7149,
11709,
3419,
198,
220,
220,
220,
825,
62,
13083,
796,
8251,
7,
4299,
82,
8,
198,
220,
220,
220,
329,
357,
74,
11,
410,
8,
287,
357,
4299,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
651,
1351,
286,
477,
14354,
287,
428,
16022,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4808,
1837,
907,
796,
2824,
7,
27160,
7,
4868,
62,
25641,
2977,
7,
85,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
477,
1837,
907,
796,
4129,
28264,
1837,
907,
8,
1875,
657,
5633,
5345,
7,
24592,
28264,
1837,
907,
986,
4008,
1058,
5345,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2496,
855,
25,
25641,
2977,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
1837,
907,
796,
1351,
62,
25641,
2977,
7,
85,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
2496,
855,
25,
17143,
7307,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
1837,
907,
796,
1351,
62,
17143,
7307,
7,
85,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32660,
796,
1351,
62,
1837,
2022,
10220,
7,
85,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
1837,
907,
796,
3797,
7,
297,
13,
17143,
7307,
11,
32660,
13,
25641,
2977,
26,
5391,
82,
28,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
36177,
326,
351,
262,
8251,
287,
674,
17336,
198,
220,
220,
220,
220,
220,
220,
220,
21065,
796,
36177,
7,
439,
1837,
907,
11,
825,
62,
13083,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
73,
796,
5345,
7,
4178,
8,
198,
220,
220,
220,
220,
220,
220,
220,
390,
862,
58,
74,
60,
796,
1312,
73,
198,
220,
220,
220,
886,
198,
220,
220,
220,
390,
862,
198,
437,
198,
198,
8818,
302,
2875,
62,
28461,
21413,
62,
9967,
7,
4299,
82,
3712,
23839,
35,
713,
90,
51,
11,
52,
30072,
810,
309,
810,
471,
198,
220,
220,
220,
390,
862,
796,
651,
62,
45841,
3976,
7,
4299,
82,
8,
198,
220,
220,
220,
1540,
796,
25143,
648,
13,
82,
6442,
62,
45841,
3976,
7,
10378,
82,
8,
198,
220,
220,
220,
1441,
14230,
1068,
35,
713,
19510,
74,
11,
4299,
82,
58,
74,
12962,
329,
479,
287,
1540,
8,
198,
437,
198,
198,
37811,
50,
9010,
17336,
7021,
198,
198,
40729,
389,
28805,
9633,
287,
40091,
1296,
357,
68,
13,
70,
13,
4600,
7,
25,
85,
11,
15,
8,
63,
8,
379,
3128,
256,
28,
15,
13,
198,
40161,
389,
14700,
11,
5457,
32578,
1994,
9633,
379,
1180,
9667,
13,
198,
464,
1080,
318,
664,
1834,
2280,
16019,
329,
262,
6439,
82,
11,
416,
4277,
262,
8251,
13,
198,
37811,
198,
8818,
8494,
62,
4299,
50101,
7,
4299,
82,
3712,
23839,
35,
713,
90,
51,
29291,
90,
13940,
23650,
11,
2558,
5512,
1279,
25,
43094,
3109,
1050,
5512,
6439,
82,
28,
13083,
7,
4299,
82,
4008,
198,
220,
220,
220,
1303,
825,
82,
815,
3975,
28805,
12,
85,
945,
284,
14700,
13,
198,
220,
220,
220,
4808,
4299,
82,
796,
2769,
30073,
7,
4299,
82,
8,
198,
220,
220,
220,
329,
357,
85,
11,
83,
8,
287,
2824,
7,
13083,
28264,
4299,
82,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
256,
815,
1464,
307,
657,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
30493,
256,
855,
15,
198,
220,
220,
220,
220,
220,
220,
220,
329,
6482,
287,
13841,
16,
11,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
4299,
82,
58,
7,
85,
11,
30846,
15437,
796,
25143,
648,
13,
2435,
62,
30846,
28264,
4299,
82,
58,
7,
85,
11,
83,
8,
4357,
6482,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
390,
862,
796,
25143,
648,
13,
1136,
62,
45841,
3976,
28264,
4299,
82,
8,
198,
220,
220,
220,
4610,
796,
25143,
648,
13,
82,
6442,
62,
45841,
3976,
7,
10378,
82,
11,
6439,
82,
8,
198,
220,
220,
220,
302,
24071,
796,
14230,
1068,
35,
713,
3419,
198,
220,
220,
220,
329,
479,
287,
4610,
198,
220,
220,
220,
220,
220,
220,
220,
302,
24071,
58,
74,
60,
796,
4808,
4299,
82,
58,
74,
60,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
302,
24071,
198,
437,
198
] | 2.271145 | 4,079 |
#=
# 5. Viscous flow about a moving body
In this notebook we will demonstrate the simulation of a moving body. It is straightforward
to set up a moving body. The main caveat is that the simulation is slower,
because the integrator must update the operators continuously throughout the simulation.
We will demonstrate this on an oscillating flat plate.
=#
using ViscousFlow
#-
using Plots
#=
### Problem specification and discretization
For simplicity, we will not create a free stream in this problem. Everything
here is the usual.
=#
my_params = Dict()
my_params["Re"] = 200
#-
xlim = (-1.0,1.0)
ylim = (-1.0,1.0)
my_params["grid Re"] = 4.0
g = setup_grid(xlim,ylim,my_params)
Δs = surface_point_spacing(g,my_params)
#=
### Set up body
Set up the plate and place it at the origin. (We don't actually have
to move it, since it defaults to the origin, but it's helpful to put
this here in case we wish to initialize it differently.)
=#
body = Plate(1.0,Δs)
T = RigidTransform((0,0),0)
T(body)
#=
### Set the body motion
Now we specify the body motion. We will use oscillatory pitch-heave kinematics for this:
=#
a = 0.25 # location of pitch axis, a = 0.5 is leading edge
ϕp = -π/2 # phase lag of pitch
ϕh = 0.0 # phase lag of heave
A = 0.25 # amplitude/chord
fstar = 1/π # fc/U
α₀ = 0 # mean angle of attack
Δα = 10π/180 # amplitude of pitching
U₀ = 0.0 # translational motion (set to zero in place of free stream)
K = π*fstar # reduced frequency, K = πfc/U
oscil1 = RigidBodyTools.PitchHeave(U₀,a,K,ϕp,α₀,Δα,A,ϕh)
motion = RigidBodyMotion(oscil1)
# We can inspect the kinematics in this `motion` by plotting them:
plot(motion)
#=
### Define the boundary condition functions
Instead of using the default boundary condition functions, we define
special ones here that provide the instantaneous surface velocity (i.e. the velocity
of every surface point) from the prescribed
motion. Every surface has an "exterior" and "interior" side. For
a flat plate, these two sides are the upper and lower sides, and both sides
are next to the fluid, so both of them are assigned the prescribed velocity
of the plate. (For closed bodies, we would assign this velocity to only
one of the sides, and zero to the other side. We will see an example of this in a later case.)
We pack these into a special dictionary and
pass these to the system construction.
=#
function my_vsplus(t,base_cache,phys_params,motions)
vsplus = zeros_surface(base_cache)
surface_velocity!(vsplus,base_cache,motions,t)
return vsplus
end
function my_vsminus(t,base_cache,phys_params,motions)
vsminus = zeros_surface(base_cache)
surface_velocity!(vsminus,base_cache,motions,t)
return vsminus
end
bcdict = Dict("exterior" => my_vsplus, "interior" => my_vsminus)
#=
### Construct the system structure
Here, we supply the motion and boundary condition functions as additional arguments.
=#
sys = viscousflow_system(g,body,phys_params=my_params,motions=motion,bc=bcdict);
#=
Before we solve the problem, it is useful to note that the Reynolds number
we specified earlier may not be the most physically-meaningful Reynolds number.
More relevant in this problem is the Reynolds number based on the maximum
body speed.
=#
Umax, imax, tmax, bmax = maxlistvelocity(sys)
Re_eff = my_params["Re"]*Umax
#-
u0 = init_sol(sys)
tspan = (0.0,10.0)
integrator = init(u0,tspan,sys)
#=
### Solve
This takes longer per time step than it does for stationary bodies. Here, we only
run it for 1.5 time units just to demonstrate it.
=#
@time step!(integrator,1.5)
#=
### Examine the solution
Let's look at a few snapshots of the vorticity field. Note that the
plotting here requires us to explicitly call the [`surfaces`](@ref)
function to generate the instantaneous configuration of the plate.
=#
sol = integrator.sol
plt = plot(layout = (1,3), size = (800, 300), legend=:false)
tsnap = 0.5:0.5:1.5
for (i, t) in enumerate(tsnap)
plot!(plt[i],vorticity(sol,sys,t),sys,layers=false,title="t = $(round(t,digits=2))",clim=(-5,5),levels=range(-5,5,length=30),color = :RdBu)
plot!(plt[i],surfaces(sol,sys,t))
end
plt
# and the forces
sol = integrator.sol
fx, fy = force(sol,sys,1);
#-
plot(
plot(sol.t,2*fx,xlim=(0,Inf),ylim=(-3,3),xlabel="Convective time",ylabel="\$C_D\$",legend=:false),
plot(sol.t,2*fy,xlim=(0,Inf),ylim=(-6,6),xlabel="Convective time",ylabel="\$C_L\$",legend=:false),
size=(800,350)
)
| [
2,
28,
198,
2,
642,
13,
569,
2304,
516,
5202,
546,
257,
3867,
1767,
198,
818,
428,
20922,
356,
481,
10176,
262,
18640,
286,
257,
3867,
1767,
13,
632,
318,
15836,
198,
1462,
900,
510,
257,
3867,
1767,
13,
383,
1388,
36531,
318,
326,
262,
18640,
318,
13611,
11,
198,
13893,
262,
4132,
12392,
1276,
4296,
262,
12879,
17282,
3690,
262,
18640,
13,
198,
198,
1135,
481,
10176,
428,
319,
281,
24969,
803,
6228,
7480,
13,
198,
46249,
198,
198,
3500,
569,
2304,
516,
37535,
198,
2,
12,
198,
3500,
1345,
1747,
198,
198,
2,
28,
198,
21017,
20647,
20855,
290,
1221,
1186,
1634,
198,
1890,
21654,
11,
356,
481,
407,
2251,
257,
1479,
4269,
287,
428,
1917,
13,
11391,
198,
1456,
318,
262,
6678,
13,
198,
46249,
198,
1820,
62,
37266,
796,
360,
713,
3419,
198,
1820,
62,
37266,
14692,
3041,
8973,
796,
939,
198,
2,
12,
198,
87,
2475,
796,
13841,
16,
13,
15,
11,
16,
13,
15,
8,
198,
88,
2475,
796,
13841,
16,
13,
15,
11,
16,
13,
15,
8,
198,
1820,
62,
37266,
14692,
25928,
797,
8973,
796,
604,
13,
15,
198,
70,
796,
9058,
62,
25928,
7,
87,
2475,
11,
88,
2475,
11,
1820,
62,
37266,
8,
198,
198,
138,
242,
82,
796,
4417,
62,
4122,
62,
2777,
4092,
7,
70,
11,
1820,
62,
37266,
8,
198,
198,
2,
28,
198,
21017,
5345,
510,
1767,
198,
7248,
510,
262,
7480,
290,
1295,
340,
379,
262,
8159,
13,
357,
1135,
836,
470,
1682,
423,
198,
1462,
1445,
340,
11,
1201,
340,
26235,
284,
262,
8159,
11,
475,
340,
338,
7613,
284,
1234,
198,
5661,
994,
287,
1339,
356,
4601,
284,
41216,
340,
10338,
2014,
198,
46249,
198,
2618,
796,
23648,
7,
16,
13,
15,
11,
138,
242,
82,
8,
198,
51,
796,
24666,
312,
41762,
19510,
15,
11,
15,
828,
15,
8,
198,
51,
7,
2618,
8,
198,
198,
2,
28,
198,
21017,
5345,
262,
1767,
6268,
198,
3844,
356,
11986,
262,
1767,
6268,
13,
775,
481,
779,
24969,
2870,
7078,
12,
258,
1015,
479,
7749,
23372,
329,
428,
25,
198,
46249,
198,
64,
796,
657,
13,
1495,
1303,
4067,
286,
7078,
16488,
11,
257,
796,
657,
13,
20,
318,
3756,
5743,
198,
139,
243,
79,
796,
532,
46582,
14,
17,
220,
1303,
7108,
19470,
286,
7078,
198,
139,
243,
71,
796,
657,
13,
15,
220,
1303,
7108,
19470,
286,
339,
1015,
198,
32,
796,
657,
13,
1495,
220,
1303,
37188,
14,
354,
585,
198,
69,
7364,
796,
352,
14,
46582,
1303,
277,
66,
14,
52,
198,
17394,
158,
224,
222,
796,
657,
1303,
1612,
9848,
286,
1368,
198,
138,
242,
17394,
796,
838,
46582,
14,
15259,
1303,
37188,
286,
21088,
198,
52,
158,
224,
222,
796,
657,
13,
15,
1303,
4779,
864,
6268,
357,
2617,
284,
6632,
287,
1295,
286,
1479,
4269,
8,
198,
42,
796,
18074,
222,
9,
69,
7364,
1303,
5322,
8373,
11,
509,
796,
18074,
222,
16072,
14,
52,
198,
198,
418,
2856,
16,
796,
24666,
312,
25842,
33637,
13,
47,
2007,
1544,
1015,
7,
52,
158,
224,
222,
11,
64,
11,
42,
11,
139,
243,
79,
11,
17394,
158,
224,
222,
11,
138,
242,
17394,
11,
32,
11,
139,
243,
71,
8,
198,
38714,
796,
24666,
312,
25842,
45740,
7,
418,
2856,
16,
8,
198,
198,
2,
775,
460,
10104,
262,
479,
7749,
23372,
287,
428,
4600,
38714,
63,
416,
29353,
606,
25,
198,
29487,
7,
38714,
8,
198,
198,
2,
28,
198,
21017,
2896,
500,
262,
18645,
4006,
5499,
198,
13193,
286,
1262,
262,
4277,
18645,
4006,
5499,
11,
356,
8160,
198,
20887,
3392,
994,
326,
2148,
262,
47707,
4417,
15432,
357,
72,
13,
68,
13,
262,
15432,
198,
1659,
790,
4417,
966,
8,
422,
262,
14798,
198,
38714,
13,
3887,
4417,
468,
281,
366,
1069,
14172,
1,
290,
366,
3849,
1504,
1,
1735,
13,
1114,
198,
64,
6228,
7480,
11,
777,
734,
5389,
389,
262,
6727,
290,
2793,
5389,
11,
290,
1111,
5389,
198,
533,
1306,
284,
262,
11711,
11,
523,
1111,
286,
606,
389,
8686,
262,
14798,
15432,
198,
1659,
262,
7480,
13,
357,
1890,
4838,
5920,
11,
356,
561,
8333,
428,
15432,
284,
691,
198,
505,
286,
262,
5389,
11,
290,
6632,
284,
262,
584,
1735,
13,
775,
481,
766,
281,
1672,
286,
428,
287,
257,
1568,
1339,
2014,
198,
1135,
2353,
777,
656,
257,
2041,
22155,
290,
198,
6603,
777,
284,
262,
1080,
5103,
13,
198,
46249,
198,
8818,
616,
62,
14259,
9541,
7,
83,
11,
8692,
62,
23870,
11,
34411,
62,
37266,
11,
27926,
507,
8,
198,
220,
3691,
9541,
796,
1976,
27498,
62,
42029,
7,
8692,
62,
23870,
8,
198,
220,
4417,
62,
626,
11683,
0,
7,
14259,
9541,
11,
8692,
62,
23870,
11,
27926,
507,
11,
83,
8,
198,
220,
1441,
3691,
9541,
198,
437,
198,
198,
8818,
616,
62,
14259,
40191,
7,
83,
11,
8692,
62,
23870,
11,
34411,
62,
37266,
11,
27926,
507,
8,
198,
220,
3691,
40191,
796,
1976,
27498,
62,
42029,
7,
8692,
62,
23870,
8,
198,
220,
4417,
62,
626,
11683,
0,
7,
14259,
40191,
11,
8692,
62,
23870,
11,
27926,
507,
11,
83,
8,
198,
220,
1441,
3691,
40191,
198,
437,
198,
198,
65,
10210,
713,
796,
360,
713,
7203,
1069,
14172,
1,
5218,
616,
62,
14259,
9541,
11,
366,
3849,
1504,
1,
5218,
616,
62,
14259,
40191,
8,
198,
198,
2,
28,
198,
21017,
28407,
262,
1080,
4645,
198,
4342,
11,
356,
5127,
262,
6268,
290,
18645,
4006,
5499,
355,
3224,
7159,
13,
198,
46249,
198,
17597,
796,
31116,
516,
11125,
62,
10057,
7,
70,
11,
2618,
11,
34411,
62,
37266,
28,
1820,
62,
37266,
11,
27926,
507,
28,
38714,
11,
15630,
28,
65,
10210,
713,
1776,
198,
198,
2,
28,
198,
8421,
356,
8494,
262,
1917,
11,
340,
318,
4465,
284,
3465,
326,
262,
21995,
1271,
198,
732,
7368,
2961,
743,
407,
307,
262,
749,
10170,
12,
24815,
913,
21995,
1271,
13,
198,
5167,
5981,
287,
428,
1917,
318,
262,
21995,
1271,
1912,
319,
262,
5415,
198,
2618,
2866,
13,
198,
46249,
198,
52,
9806,
11,
545,
897,
11,
256,
9806,
11,
275,
9806,
796,
3509,
4868,
626,
11683,
7,
17597,
8,
198,
3041,
62,
14822,
796,
616,
62,
37266,
14692,
3041,
8973,
9,
52,
9806,
198,
198,
2,
12,
198,
84,
15,
796,
2315,
62,
34453,
7,
17597,
8,
198,
912,
6839,
796,
357,
15,
13,
15,
11,
940,
13,
15,
8,
198,
18908,
12392,
796,
2315,
7,
84,
15,
11,
912,
6839,
11,
17597,
8,
198,
198,
2,
28,
198,
21017,
4294,
303,
198,
1212,
2753,
2392,
583,
640,
2239,
621,
340,
857,
329,
31607,
5920,
13,
3423,
11,
356,
691,
198,
5143,
340,
329,
352,
13,
20,
640,
4991,
655,
284,
10176,
340,
13,
198,
46249,
198,
31,
2435,
2239,
0,
7,
18908,
12392,
11,
16,
13,
20,
8,
198,
198,
2,
28,
198,
21017,
1475,
9862,
262,
4610,
198,
5756,
338,
804,
379,
257,
1178,
47787,
286,
262,
410,
419,
8467,
2214,
13,
5740,
326,
262,
198,
29487,
889,
994,
4433,
514,
284,
11777,
869,
262,
685,
63,
11793,
32186,
63,
16151,
31,
5420,
8,
198,
8818,
284,
7716,
262,
47707,
8398,
286,
262,
7480,
13,
198,
46249,
198,
34453,
796,
4132,
12392,
13,
34453,
198,
489,
83,
796,
7110,
7,
39786,
796,
357,
16,
11,
18,
828,
2546,
796,
357,
7410,
11,
5867,
828,
8177,
28,
25,
9562,
8,
198,
912,
77,
499,
796,
657,
13,
20,
25,
15,
13,
20,
25,
16,
13,
20,
198,
1640,
357,
72,
11,
256,
8,
287,
27056,
378,
7,
912,
77,
499,
8,
198,
220,
220,
220,
7110,
0,
7,
489,
83,
58,
72,
4357,
85,
419,
8467,
7,
34453,
11,
17597,
11,
83,
828,
17597,
11,
75,
6962,
28,
9562,
11,
7839,
2625,
83,
796,
29568,
744,
7,
83,
11,
12894,
896,
28,
17,
4008,
1600,
565,
320,
16193,
12,
20,
11,
20,
828,
46170,
28,
9521,
32590,
20,
11,
20,
11,
13664,
28,
1270,
828,
8043,
796,
1058,
49,
36077,
84,
8,
198,
220,
220,
220,
7110,
0,
7,
489,
83,
58,
72,
4357,
11793,
32186,
7,
34453,
11,
17597,
11,
83,
4008,
198,
437,
198,
489,
83,
198,
2,
290,
262,
3386,
198,
34453,
796,
4132,
12392,
13,
34453,
198,
21373,
11,
277,
88,
796,
2700,
7,
34453,
11,
17597,
11,
16,
1776,
198,
2,
12,
198,
29487,
7,
198,
29487,
7,
34453,
13,
83,
11,
17,
9,
21373,
11,
87,
2475,
16193,
15,
11,
18943,
828,
88,
2475,
16193,
12,
18,
11,
18,
828,
87,
18242,
2625,
3103,
303,
14070,
640,
1600,
2645,
9608,
2625,
59,
3,
34,
62,
35,
59,
3,
1600,
1455,
437,
28,
25,
9562,
828,
198,
29487,
7,
34453,
13,
83,
11,
17,
9,
24928,
11,
87,
2475,
16193,
15,
11,
18943,
828,
88,
2475,
16193,
12,
21,
11,
21,
828,
87,
18242,
2625,
3103,
303,
14070,
640,
1600,
2645,
9608,
2625,
59,
3,
34,
62,
43,
59,
3,
1600,
1455,
437,
28,
25,
9562,
828,
198,
220,
220,
220,
2546,
16193,
7410,
11,
14877,
8,
198,
8,
198
] | 2.927759 | 1,495 |
module TreeTensors
importall Base
using Tensors
include("Trees.jl")
include("ModeTrees.jl")
# Tree tensor networks
export TreeTensor
typealias TensorDict{T} Dict{Tree,Tensor{T}}
immutable TreeTensor{T}
mtree::AbstractModeTree
tensors::TensorDict{T}
end
(::Type{TreeTensor{T}}){T}(mtree) = TreeTensor(mtree, TensorDict{T}())
# Basic functions
export modetree, tree
Tensors.scalartype{T}(::Type{TreeTensor{T}}) = T
modetree(x::TreeTensor) = x.mtree
tree(x::TreeTensor) = tree(modetree(x))
copy(x::TreeTensor) = TreeTensor(x.mtree, TensorDict{scalartype(x)}(x.tensors))
convert{T}(::Type{TreeTensor{T}}, x::TreeTensor) = TreeTensor(x.mtree, convert(TensorDict{T},x.tensors))
copyconvert{T}(::Type{TreeTensor{T}}, x::TreeTensor{T}) = copy(x)
copyconvert{T}(::Type{TreeTensor{T}}, x::TreeTensor) = convert(TreeTensor{T}, x)
# Indexing and iteration
for f in (
:getindex, :setindex!,
:start, :next, :done,
:eltype, :length,
:keys, :values, :keytype, :valtype
)
@eval $f(x::TreeTensor, args...) = $f(x.tensors, args...)
end
function index(x::TreeTensor, s::Symbol)
if s == :root return tree(x)
else throw(KeyError(s)) end
end
getindex(x::TreeTensor, s::Symbol) = x[index(x,s)]
setindex!(x::TreeTensor, xv, s::Symbol) = x[index(x,s)] = xv
# Initialization
ones{T}(::Type{T}, mtree::AbstractModeTree) = TreeTensor(mtree, Dict{Tree,Tensor{T}}(
v => ones(T, [[Mode(e,1) for e in neighbor_edges(v)]; mtree[v]])
for v in vertices(mtree, root_to_leaves)
))
eye{T}(::Type{T}, mtree::AbstractModeTree) = TreeTensor(square(mtree), Dict{Tree,Tensor{T}}(
v => begin
t = eye(T, mtree[v]);
t.modes = [t.modes; [Mode(e,1) for e in neighbor_edges(v)]];
t
end
for v in vertices(mtree, root_to_leaves)
))
function rand{T}(::Type{T}, mtree::AbstractModeTree, r)
evaluate(r::Int,e) = r
evaluate(r::Dict,e) = r[e]
return TreeTensor(mtree, Dict{Tree,Tensor{T}}(
v => rand(T, [[Mode(e,evaluate(r,e)) for e in neighbor_edges(v)]; mtree[v]])
for v in vertices(mtree, root_to_leaves)
))
end
for f in (:ones, :rand, :eye)
@eval $f(mtree::AbstractModeTree, args...) = $f(Float64, mtree, args...)
end
for f in (:ones, :rand, :eye)
@eval $f(x::TreeTensor, args...) = $f(scalartype(x), modetree(x), args...)
end
# Conversion to and from full
export decompose
function decompose(x::Tensor, mtree, rank)
y = TreeTensor{scalartype(x)}(mtree)
for (v,p) in edges(y, leaves_to_root)
b,s,y[v] = svd(x, [child_edges(v,p);mlabel(mtree[v])], PairSet(v,p), rank)
x = scale!(b,s)
end
y[:root] = x
return y
end
export contract!, contract
function contract!(x::TreeTensor)
for (v,p) in edges(x, leaves_to_root)
x[p] *= x[v]
end
return x[:root]
end
contract(x::TreeTensor) = contract!(copy(x))
# Arithmetic
function +(x::TreeTensor, y::TreeTensor)
@assert modetree(x) == modetree(y) "x and y must have the same mode tree"
mtree = modetree(x)
return TreeTensor(
mtree,
Dict{Tree,Tensor{promote_type(scalartype(x), scalartype(y))}}(
v => padcat(x[v],y[v], neighbor_edges(v))
for v in vertices(mtree, root_to_leaves)
)
)
end
function *(x::TreeTensor, y::TreeTensor)
@assert unsquare(modetree(x)) == unsquare(modetree(y)) "x and y must have the same mode tree"
mtree = modetree(x)
return TreeTensor(
mtree,
Dict{Tree,Tensor{promote_type(scalartype(x),scalartype(y))}}(
v => mergem!(tag(x[v], 1,neighbor_edges(v))*tag(y[v], 2,neighbor_edges(v)), Dict([tag(1,e),tag(2,e)] => e for e in neighbor_edges(v)))
for v in vertices(mtree, root_to_leaves)
)
)
end
*(a::Number, x::TreeTensor) = (y = copyconvert(TreeTensor{promote_type(typeof(a),scalartype(x))}, x); y[:root] *= a; return y)
*(x::TreeTensor, a::Number) = a*x
scale!(a::Number, x::TreeTensor) = (x[:root] *= a; return x)
scale!(x::TreeTensor, a::Number) = scale!(a,x)
-(x::TreeTensor, y::TreeTensor) = x + (-1)*y
# Transposition and conjugation
for f in (:conj,:transpose,:ctranspose)
f! = Symbol(string(f)*"!")
@eval begin
function Base.$f(t::TreeTensor)
return TreeTensor(
modetree(t),
Dict{Tree,Tensor{scalartype(t)}}(
v => $f(tv)
for (v,tv) in t
)
)
end
function Base.$f!(t::TreeTensor)
for v in keys(t)
t[v] = $f!(t[v])
end
return t
end
end
end
# Orthogonalisation and truncation
export orthogonalize!, orthogonalize
function orthogonalize!(x::TreeTensor)
for (v,p) in edges(x, leaves_to_root)
x[v],c = qr(x[v], PairSet(v,p))
x[p] = c*x[p]
end
return x
end
orthogonalize(x::TreeTensor) = orthogonalize!(copy(x))
export truncate!, truncate
function truncate!(x::TreeTensor, rank)
orthogonalize!(x)
s = Dict{PairSet{Tree}, Tensor{real(scalartype(x))}}()
for (v,p) in edges_with_root(x, root_to_leaves)
for u in children(v,p)
e = PairSet(u,v)
b,s[e],d = svd(x[v], e, maxrank())
x[u] = scale!(s[e],d)*x[u]
x[v] = scale!(b,s[e])
end
x[v] = resize(x[v], Dict(e => rank(s[e].data) for e in neighbor_edges(v)))
scale!(x[v], [resize(1./s[e], Dict(e => msize(x[v],e))) for e in child_edges(v,p)]...)
end
return x
end
truncate(x::TreeTensor, rank) = truncate!(copy(x), rank)
# Contracted subtrees
function contracted_subtree(v::Tree,p::Tree, c::TreeTensor, args::TreeTensor...)
cv = retag!(tag!(conj(args[1][v]), 1, neighbor_edges(v)), :C => :_, :R => :C)
for u in children(v,p) cv *= c[u] end
for i = 2:length(args)-1 cv *= tag(args[i][v], i, neighbor_edges(v)) end
cv *= retag!(tag(args[end][v], length(args), neighbor_edges(v)), :C => :_)
return cv
end
function contracted_subtrees(args::TreeTensor...)
c = TreeTensor(
modetree(args[1]),
TensorDict{scalartype(args[1])}()
)
for (v,p) in edges(c, leaves_to_root)
c[v] = contracted_subtree(v,p,c,args...)
end
return c
end
# Norm and dot
export norm!
norm!(x::TreeTensor) = norm(orthogonalize!(x)[:root])
norm( x::TreeTensor) = norm(orthogonalize( x)[:root])
function dot(x::TreeTensor, y::TreeTensor)
return scalar(
contracted_subtree(
tree(x),tree(x),
contracted_subtrees(x,y),
x,y
)
)
end
# Local solvers
function localmatrix(A, v, xAx)
lA = tag(A[v], 2, neighbor_edges(v))
for u in neighbors(v)
lA *= xAx[u]
end
retag!(lA, 1 => :R, 3 => :C)
return lA
end
function localrhs(b, v, xb)
lb = tag(b[v], 2, neighbor_edges(v))
for u in neighbors(v)
lb *= xb[u]
end
untag!(lb, 1)
return lb
end
function localmatvecfunc(A, v, xAx)
Av = tag(A[v],2,neighbor_edges(v))
c = [retag(xAx[u], 3 => :C, 1 => :R) for u in neighbors(v)]
if length(c) == 3
return xv -> begin
(c[3]*((c[1]*Av)*(c[2]*xv)))
end
elseif length(c) == 2
return xv -> begin
(c[2]*(Av*(c[1]*xv)))
end
elseif length(c) == 1
return xv -> begin
(c[1]*Av*xv)
end
else
error("Local matvec structure not implemented!")
end
end
function localproblem(x,A,b, v, xAx,xb)
modes = x[v].modes
matvec = localmatvecfunc(A, v, xAx)
return x[v][mlabel(modes)],
xv -> (xv = Tensor(modes,xv); matvec(xv)[mlabel(modes)]),
localrhs(b,v,xb)[mlabel(modes)]
end
# Local solvers
using IterativeSolvers
abstract LocalSolver
export DenseSolver
immutable DenseSolver <: LocalSolver end
function localsolve!(x,A,b, solver::DenseSolver, v, xAx, xb)
x[v] = localmatrix(A,v,xAx)\localrhs(b,v,xb)
end
export GMRES
immutable GMRES <: LocalSolver
tol::Float64
maxiter::Int
restart::Int
warn::Bool
end
GMRES(; tol = sqrt(eps()), maxiter = 1, restart = 20, warn = false) = GMRES(tol, maxiter, restart, warn)
function localsolve!(x,A,b, solver::GMRES, v, xAx,xb)
_,hist = gmres!(
localproblem(x,A,b, v, xAx,xb)...;
tol = solver.tol,
maxiter = solver.maxiter,
restart = solver.restart
)
if !hist.isconverged && solver.warn
warn(
"Local GMRES iteration did not convergence.\n"*
" LSE size: "*string(length(x[v]))*"\n"*
" Threshold: "*string(hist.threshold)*"\n"*
" Residuals: "*string(hist.residuals)
)
end
end
export CG
immutable CG <: LocalSolver
tol::Float64
maxiter::Int
warn::Bool
end
CG(; tol = sqrt(eps()), maxiter = 20, warn = false) = CG(tol, maxiter, warn)
function localsolve!(x,A,b, solver::CG, v, xAx,xb)
_,hist = cg!(
localmatvec(x,A,b, v, xAx,xb)...;
tol = solver.tol,
maxiter = solver.maxiter
)
if !hist.isconverged && solver.warn
warn(
"Local CG iteration did not convergence.\n"*
" LSE size: "*string(length(x[v]))*"\n"*
" Threshold: "*string(hist.threshold)*"\n"*
" Residuals: "*string(hist.residuals)
)
end
end
# ALS linear solver
export als_solve!
function als_solve!(
x,A,b, solver = GMRES();
maxiter::Int = 20, tol = sqrt(eps(real(scalartype(x))))
)
updatenorms = zeros(real(scalartype(x)), maxiter)
orthogonalize!(x)
xAx = contracted_subtrees(x,A,x)
xb = contracted_subtrees(x,b)
for i = 1:maxiter
for (u,v) in edges(x, both_ways)
# Solve
xu = copy(x[u])
localsolve!(x,A,b, solver, u, xAx,xb)
updatenorms[i] = max(updatenorms[i], norm(xu - x[u]))
# Orthogonalize
x[u],r = qr(x[u],PairSet(u,v))
x[v] = r*x[v]
# Compute contracted subtrees
xAx[u] = contracted_subtree(u,v, xAx, x,A,x)
xb[u] = contracted_subtree(u,v, xb, x,b)
end
# Convergence check
if updatenorms[i] < tol*norm(x[:root])
return x, ConvergenceHistory(true, tol*norm(x[:root]), i, updatenorms[1:i])
end
end
return x, ConvergenceHistory(false, tol*norm(x[:root]), maxiter, updatenorms)
end
# ALS sum
export als_sum!
function als_sum!{T}(
y,x::AbstractVector{TreeTensor{T}};
maxiter::Int = 20, tol = sqrt(eps(real(T)))
)
updatenorms = zeros(real(T), maxiter)
orthogonalize!(y)
yx = [contracted_subtrees(y,x) for x in x]
for i = 1:maxiter
for (u,v) in edges(y, both_ways)
# Project
yunew = sum([localrhs(x, u, yx) for (x,yx) in zip(x,yx)])
updatenorms[i] = max(updatenorms[i], norm(yunew - y[u]))
y[u] = yunew
# Orthogonalize
y[u],r = qr(y[u],PairSet(u,v))
y[v] = r*y[v]
# Compute contracted subtrees
for (x,yx) in zip(x,yx)
local x,yx
yx[u] = contracted_subtree(u,v, yx, y,x)
end
end
# Convergence check
if updatenorms[i] < tol*norm(y[:root])
return y, ConvergenceHistory(true, tol*norm(y[:root]), i, updatenorms[1:i])
end
end
return y, ConvergenceHistory(false, tol*norm(y[:root]), maxiter, updatenorms)
end
# ALS AXPY
export als_axpy!
function als_axpy!(
z,A,x,y;
maxiter::Int = 20, tol = sqrt(eps(real(scalartype(x))))
)
updatenorms = zeros(real(scalartype(x)), maxiter)
orthogonalize!(z)
zAx = contracted_subtrees(z,A,x)
zy = contracted_subtrees(z,y)
for i = 1:maxiter
for (u,v) in edges(z, both_ways)
# Project
zunew = localmatvecfunc(A, u, zAx)(x[u]) + localrhs(y, u, zy)
updatenorms[i] = max(updatenorms[i], norm(zunew - z[u]))
z[u] = zunew
# Orthogonalize
z[u],r = qr(z[u],PairSet(u,v))
z[v] = r*z[v]
# Compute contracted subtrees
zAx[u] = contracted_subtree(u,v, zAx, z,A,x)
zy[u] = contracted_subtree(u,v, zy, z,y)
end
# Convergence check
if updatenorms[i] < tol*norm(z[:root])
return z, ConvergenceHistory(true, tol*norm(z[:root]), i, updatenorms[1:i])
end
end
return z, ConvergenceHistory(false, tol*norm(z[:root]), maxiter, updatenorms)
end
## ALSSD linear solver
#
#function alssd_solve!(
# x,A,b, solver = GMRES();
# residualrank = 4, maxiter::Int = 20, tol = sqrt(eps(real(scalartype(x))))
#)
# residualnorms = zeros(real(scalartype(x)), maxiter)
# tol *= norm(b)
#
# z = rand(x, residualrank)
# for i = 1:maxiter
# als_axpy!(z, -A,x,b; maxiter = 1)
#
# residualnorms[i] = norm!(z)
# if residualnorms[i] < tol
# return x,ConvergenceHistory(true, tol, i, residualnorms[1:i])
# end
#
# x += z
# als_solve!(x,A,b, solver; maxiter = 1)
# truncate!(x, adaptive(tol))
# end
# return x
#end
## ALS operator inversion
#
#function als_inv!(
# X,A, solver = GMRES();
# maxiter::Int = 20, tol = sqrt(eps(real(scalartype(X))))
#)
# updatenorms = zeros(real(scalartype(X)), maxiter)
#
# orthogonalize!(X)
# XAX = contracted_subtrees(X,A,X)
# XAXt = contracted_subtrees(X,A,X)
# xb = contracted_subtrees(x,b)
# for i = 1:maxiter
# for (u,v) in edges(x, both_ways)
# # Solve
# xu = copy(x[u])
# localsolve!(x,A,b, solver, u, xAx,xb)
# updatenorms[i] = max(updatenorms[i], norm(xu - x[u]))
#
# # Orthogonalize
# x[u],r = qr(x[u],PairSet(u,v))
# x[v] = r*x[v]
#
# # Compute contracted subtrees
# xAx[u] = contracted_subtree(u,v, xAx, x,A,x)
# xb[u] = contracted_subtree(u,v, xb, x,b)
# end
#
# # Convergence check
# if updatenorms[i] < tol*norm(x[:root])
# return x, ConvergenceHistory(true, tol*norm(x[:root]), i, updatenorms[1:i])
# end
# end
# return x, ConvergenceHistory(false, tol*norm(x[:root]), maxiter, updatenorms)
#end
end # module
| [
21412,
12200,
51,
641,
669,
198,
198,
11748,
439,
7308,
198,
3500,
40280,
669,
198,
17256,
7203,
51,
6037,
13,
20362,
4943,
198,
17256,
7203,
19076,
51,
6037,
13,
20362,
4943,
628,
198,
2,
12200,
11192,
273,
7686,
198,
198,
39344,
12200,
51,
22854,
198,
4906,
26011,
309,
22854,
35,
713,
90,
51,
92,
360,
713,
90,
27660,
11,
51,
22854,
90,
51,
11709,
198,
8608,
18187,
12200,
51,
22854,
90,
51,
92,
198,
220,
220,
220,
285,
21048,
3712,
23839,
19076,
27660,
198,
220,
220,
220,
11192,
669,
3712,
51,
22854,
35,
713,
90,
51,
92,
198,
437,
198,
7,
3712,
6030,
90,
27660,
51,
22854,
90,
51,
11709,
19953,
51,
92,
7,
16762,
631,
8,
796,
12200,
51,
22854,
7,
16762,
631,
11,
309,
22854,
35,
713,
90,
51,
92,
28955,
628,
198,
2,
14392,
5499,
198,
198,
39344,
953,
316,
631,
11,
5509,
198,
51,
641,
669,
13,
1416,
282,
433,
2981,
90,
51,
92,
7,
3712,
6030,
90,
27660,
51,
22854,
90,
51,
11709,
8,
796,
309,
198,
4666,
316,
631,
7,
87,
3712,
27660,
51,
22854,
8,
796,
2124,
13,
16762,
631,
198,
21048,
7,
87,
3712,
27660,
51,
22854,
8,
796,
5509,
7,
4666,
316,
631,
7,
87,
4008,
198,
30073,
7,
87,
3712,
27660,
51,
22854,
8,
796,
12200,
51,
22854,
7,
87,
13,
16762,
631,
11,
309,
22854,
35,
713,
90,
1416,
282,
433,
2981,
7,
87,
38165,
7,
87,
13,
83,
641,
669,
4008,
198,
1102,
1851,
90,
51,
92,
7,
3712,
6030,
90,
27660,
51,
22854,
90,
51,
92,
5512,
2124,
3712,
27660,
51,
22854,
8,
796,
12200,
51,
22854,
7,
87,
13,
16762,
631,
11,
10385,
7,
51,
22854,
35,
713,
90,
51,
5512,
87,
13,
83,
641,
669,
4008,
198,
30073,
1102,
1851,
90,
51,
92,
7,
3712,
6030,
90,
27660,
51,
22854,
90,
51,
92,
5512,
2124,
3712,
27660,
51,
22854,
90,
51,
30072,
796,
4866,
7,
87,
8,
198,
30073,
1102,
1851,
90,
51,
92,
7,
3712,
6030,
90,
27660,
51,
22854,
90,
51,
92,
5512,
2124,
3712,
27660,
51,
22854,
8,
796,
10385,
7,
27660,
51,
22854,
90,
51,
5512,
2124,
8,
628,
198,
2,
12901,
278,
290,
24415,
198,
198,
1640,
277,
287,
357,
198,
220,
220,
220,
1058,
1136,
9630,
11,
1058,
2617,
9630,
28265,
220,
198,
220,
220,
220,
1058,
9688,
11,
1058,
19545,
11,
1058,
28060,
11,
220,
198,
220,
220,
220,
1058,
417,
4906,
11,
1058,
13664,
11,
220,
198,
220,
220,
220,
1058,
13083,
11,
1058,
27160,
11,
1058,
2539,
4906,
11,
1058,
2100,
4906,
198,
8,
220,
198,
220,
220,
220,
2488,
18206,
720,
69,
7,
87,
3712,
27660,
51,
22854,
11,
26498,
23029,
796,
720,
69,
7,
87,
13,
83,
641,
669,
11,
26498,
23029,
220,
198,
437,
198,
8818,
6376,
7,
87,
3712,
27660,
51,
22854,
11,
264,
3712,
13940,
23650,
8,
198,
220,
220,
220,
611,
264,
6624,
1058,
15763,
1441,
5509,
7,
87,
8,
198,
220,
220,
220,
2073,
3714,
7,
9218,
12331,
7,
82,
4008,
886,
198,
437,
198,
1136,
9630,
7,
87,
3712,
27660,
51,
22854,
11,
264,
3712,
13940,
23650,
8,
796,
2124,
58,
9630,
7,
87,
11,
82,
15437,
198,
2617,
9630,
0,
7,
87,
3712,
27660,
51,
22854,
11,
2124,
85,
11,
264,
3712,
13940,
23650,
8,
796,
2124,
58,
9630,
7,
87,
11,
82,
15437,
796,
2124,
85,
628,
198,
2,
20768,
1634,
198,
198,
1952,
90,
51,
92,
7,
3712,
6030,
90,
51,
5512,
285,
21048,
3712,
23839,
19076,
27660,
8,
796,
12200,
51,
22854,
7,
16762,
631,
11,
360,
713,
90,
27660,
11,
51,
22854,
90,
51,
11709,
7,
198,
220,
220,
220,
410,
5218,
3392,
7,
51,
11,
16410,
19076,
7,
68,
11,
16,
8,
329,
304,
287,
4780,
62,
276,
3212,
7,
85,
8,
11208,
285,
21048,
58,
85,
11907,
8,
198,
220,
220,
220,
329,
410,
287,
9421,
1063,
7,
16762,
631,
11,
6808,
62,
1462,
62,
293,
3080,
8,
198,
4008,
198,
25379,
90,
51,
92,
7,
3712,
6030,
90,
51,
5512,
285,
21048,
3712,
23839,
19076,
27660,
8,
796,
12200,
51,
22854,
7,
23415,
7,
16762,
631,
828,
360,
713,
90,
27660,
11,
51,
22854,
90,
51,
11709,
7,
198,
220,
220,
220,
410,
5218,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
256,
796,
4151,
7,
51,
11,
285,
21048,
58,
85,
36563,
220,
198,
220,
220,
220,
220,
220,
220,
220,
256,
13,
76,
4147,
796,
685,
83,
13,
76,
4147,
26,
685,
19076,
7,
68,
11,
16,
8,
329,
304,
287,
4780,
62,
276,
3212,
7,
85,
15437,
11208,
220,
198,
220,
220,
220,
220,
220,
220,
220,
256,
198,
220,
220,
220,
886,
198,
220,
220,
220,
329,
410,
287,
9421,
1063,
7,
16762,
631,
11,
6808,
62,
1462,
62,
293,
3080,
8,
198,
4008,
198,
8818,
43720,
90,
51,
92,
7,
3712,
6030,
90,
51,
5512,
285,
21048,
3712,
23839,
19076,
27660,
11,
374,
8,
198,
220,
220,
220,
13446,
7,
81,
3712,
5317,
11,
68,
8,
796,
374,
198,
220,
220,
220,
13446,
7,
81,
3712,
35,
713,
11,
68,
8,
796,
374,
58,
68,
60,
198,
220,
220,
220,
1441,
12200,
51,
22854,
7,
16762,
631,
11,
360,
713,
90,
27660,
11,
51,
22854,
90,
51,
11709,
7,
198,
220,
220,
220,
220,
220,
220,
220,
410,
5218,
43720,
7,
51,
11,
16410,
19076,
7,
68,
11,
49786,
7,
81,
11,
68,
4008,
329,
304,
287,
4780,
62,
276,
3212,
7,
85,
8,
11208,
285,
21048,
58,
85,
11907,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
410,
287,
9421,
1063,
7,
16762,
631,
11,
6808,
62,
1462,
62,
293,
3080,
8,
198,
220,
220,
220,
15306,
198,
437,
198,
1640,
277,
287,
357,
25,
1952,
11,
1058,
25192,
11,
1058,
25379,
8,
198,
220,
220,
220,
2488,
18206,
720,
69,
7,
16762,
631,
3712,
23839,
19076,
27660,
11,
26498,
23029,
796,
720,
69,
7,
43879,
2414,
11,
285,
21048,
11,
26498,
23029,
198,
437,
198,
1640,
277,
287,
357,
25,
1952,
11,
1058,
25192,
11,
1058,
25379,
8,
198,
220,
220,
220,
2488,
18206,
720,
69,
7,
87,
3712,
27660,
51,
22854,
11,
26498,
23029,
796,
720,
69,
7,
1416,
282,
433,
2981,
7,
87,
828,
953,
316,
631,
7,
87,
828,
26498,
23029,
198,
437,
628,
198,
2,
44101,
284,
290,
422,
1336,
198,
198,
39344,
26969,
3455,
198,
8818,
26969,
3455,
7,
87,
3712,
51,
22854,
11,
285,
21048,
11,
4279,
8,
198,
220,
220,
220,
331,
796,
12200,
51,
22854,
90,
1416,
282,
433,
2981,
7,
87,
38165,
7,
16762,
631,
8,
198,
220,
220,
220,
329,
357,
85,
11,
79,
8,
287,
13015,
7,
88,
11,
5667,
62,
1462,
62,
15763,
8,
198,
220,
220,
220,
220,
220,
220,
220,
275,
11,
82,
11,
88,
58,
85,
60,
796,
264,
20306,
7,
87,
11,
685,
9410,
62,
276,
3212,
7,
85,
11,
79,
1776,
4029,
9608,
7,
16762,
631,
58,
85,
12962,
4357,
39645,
7248,
7,
85,
11,
79,
828,
4279,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
5046,
0,
7,
65,
11,
82,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
331,
58,
25,
15763,
60,
796,
2124,
198,
220,
220,
220,
1441,
331,
198,
437,
198,
198,
39344,
2775,
28265,
2775,
198,
8818,
2775,
0,
7,
87,
3712,
27660,
51,
22854,
8,
198,
220,
220,
220,
329,
357,
85,
11,
79,
8,
287,
13015,
7,
87,
11,
5667,
62,
1462,
62,
15763,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
58,
79,
60,
1635,
28,
2124,
58,
85,
60,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
2124,
58,
25,
15763,
60,
198,
437,
198,
28484,
7,
87,
3712,
27660,
51,
22854,
8,
796,
2775,
0,
7,
30073,
7,
87,
4008,
628,
198,
2,
943,
29848,
198,
198,
8818,
1343,
7,
87,
3712,
27660,
51,
22854,
11,
331,
3712,
27660,
51,
22854,
8,
198,
220,
220,
220,
2488,
30493,
953,
316,
631,
7,
87,
8,
6624,
953,
316,
631,
7,
88,
8,
366,
87,
290,
331,
1276,
423,
262,
976,
4235,
5509,
1,
198,
220,
220,
220,
285,
21048,
796,
953,
316,
631,
7,
87,
8,
198,
220,
220,
220,
1441,
12200,
51,
22854,
7,
198,
220,
220,
220,
220,
220,
220,
220,
285,
21048,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
360,
713,
90,
27660,
11,
51,
22854,
90,
16963,
1258,
62,
4906,
7,
1416,
282,
433,
2981,
7,
87,
828,
16578,
433,
2981,
7,
88,
4008,
11709,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
410,
5218,
14841,
9246,
7,
87,
58,
85,
4357,
88,
58,
85,
4357,
4780,
62,
276,
3212,
7,
85,
4008,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
410,
287,
9421,
1063,
7,
16762,
631,
11,
6808,
62,
1462,
62,
293,
3080,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
1267,
198,
437,
198,
198,
8818,
1635,
7,
87,
3712,
27660,
51,
22854,
11,
331,
3712,
27660,
51,
22854,
8,
198,
220,
220,
220,
2488,
30493,
5576,
421,
533,
7,
4666,
316,
631,
7,
87,
4008,
6624,
5576,
421,
533,
7,
4666,
316,
631,
7,
88,
4008,
366,
87,
290,
331,
1276,
423,
262,
976,
4235,
5509,
1,
198,
220,
220,
220,
285,
21048,
796,
953,
316,
631,
7,
87,
8,
198,
220,
220,
220,
1441,
12200,
51,
22854,
7,
198,
220,
220,
220,
220,
220,
220,
220,
285,
21048,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
360,
713,
90,
27660,
11,
51,
22854,
90,
16963,
1258,
62,
4906,
7,
1416,
282,
433,
2981,
7,
87,
828,
1416,
282,
433,
2981,
7,
88,
4008,
11709,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
410,
5218,
4017,
24090,
0,
7,
12985,
7,
87,
58,
85,
4357,
352,
11,
710,
394,
2865,
62,
276,
3212,
7,
85,
4008,
9,
12985,
7,
88,
58,
85,
4357,
362,
11,
710,
394,
2865,
62,
276,
3212,
7,
85,
36911,
360,
713,
26933,
12985,
7,
16,
11,
68,
828,
12985,
7,
17,
11,
68,
15437,
5218,
304,
329,
304,
287,
4780,
62,
276,
3212,
7,
85,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
410,
287,
9421,
1063,
7,
16762,
631,
11,
6808,
62,
1462,
62,
293,
3080,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
1267,
198,
437,
198,
198,
9,
7,
64,
3712,
15057,
11,
2124,
3712,
27660,
51,
22854,
8,
796,
357,
88,
796,
4866,
1102,
1851,
7,
27660,
51,
22854,
90,
16963,
1258,
62,
4906,
7,
4906,
1659,
7,
64,
828,
1416,
282,
433,
2981,
7,
87,
4008,
5512,
2124,
1776,
331,
58,
25,
15763,
60,
1635,
28,
257,
26,
1441,
331,
8,
198,
9,
7,
87,
3712,
27660,
51,
22854,
11,
257,
3712,
15057,
8,
796,
257,
9,
87,
198,
9888,
0,
7,
64,
3712,
15057,
11,
2124,
3712,
27660,
51,
22854,
8,
796,
357,
87,
58,
25,
15763,
60,
1635,
28,
257,
26,
1441,
2124,
8,
198,
9888,
0,
7,
87,
3712,
27660,
51,
22854,
11,
257,
3712,
15057,
8,
796,
5046,
0,
7,
64,
11,
87,
8,
198,
30420,
87,
3712,
27660,
51,
22854,
11,
331,
3712,
27660,
51,
22854,
8,
796,
2124,
1343,
13841,
16,
27493,
88,
628,
198,
2,
3602,
9150,
290,
11644,
1018,
341,
198,
198,
1640,
277,
287,
357,
25,
1102,
73,
11,
25,
7645,
3455,
11,
25,
24087,
504,
3455,
8,
198,
220,
220,
220,
277,
0,
796,
38357,
7,
8841,
7,
69,
27493,
1,
2474,
8,
198,
220,
220,
220,
2488,
18206,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
2163,
7308,
48082,
69,
7,
83,
3712,
27660,
51,
22854,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
12200,
51,
22854,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
953,
316,
631,
7,
83,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
360,
713,
90,
27660,
11,
51,
22854,
90,
1416,
282,
433,
2981,
7,
83,
8,
11709,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
410,
5218,
720,
69,
7,
14981,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
357,
85,
11,
14981,
8,
287,
256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
2163,
7308,
48082,
69,
0,
7,
83,
3712,
27660,
51,
22854,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
410,
287,
8251,
7,
83,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
58,
85,
60,
796,
720,
69,
0,
7,
83,
58,
85,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
256,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
437,
628,
198,
2,
47664,
519,
20996,
5612,
290,
40122,
341,
198,
198,
39344,
29617,
519,
20996,
1096,
28265,
29617,
519,
20996,
1096,
198,
8818,
29617,
519,
20996,
1096,
0,
7,
87,
3712,
27660,
51,
22854,
8,
198,
220,
220,
220,
329,
357,
85,
11,
79,
8,
287,
13015,
7,
87,
11,
5667,
62,
1462,
62,
15763,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
58,
85,
4357,
66,
796,
10662,
81,
7,
87,
58,
85,
4357,
39645,
7248,
7,
85,
11,
79,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
58,
79,
60,
796,
269,
9,
87,
58,
79,
60,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
2124,
198,
437,
198,
1506,
519,
20996,
1096,
7,
87,
3712,
27660,
51,
22854,
8,
796,
29617,
519,
20996,
1096,
0,
7,
30073,
7,
87,
4008,
198,
198,
39344,
40122,
378,
28265,
40122,
378,
198,
8818,
40122,
378,
0,
7,
87,
3712,
27660,
51,
22854,
11,
4279,
8,
198,
220,
220,
220,
29617,
519,
20996,
1096,
0,
7,
87,
8,
198,
220,
220,
220,
264,
796,
360,
713,
90,
47,
958,
7248,
90,
27660,
5512,
309,
22854,
90,
5305,
7,
1416,
282,
433,
2981,
7,
87,
4008,
11709,
3419,
198,
220,
220,
220,
329,
357,
85,
11,
79,
8,
287,
13015,
62,
4480,
62,
15763,
7,
87,
11,
6808,
62,
1462,
62,
293,
3080,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
334,
287,
1751,
7,
85,
11,
79,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
304,
796,
39645,
7248,
7,
84,
11,
85,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
11,
82,
58,
68,
4357,
67,
796,
264,
20306,
7,
87,
58,
85,
4357,
304,
11,
3509,
43027,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
58,
84,
60,
796,
5046,
0,
7,
82,
58,
68,
4357,
67,
27493,
87,
58,
84,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
58,
85,
60,
796,
5046,
0,
7,
65,
11,
82,
58,
68,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
58,
85,
60,
796,
47558,
7,
87,
58,
85,
4357,
360,
713,
7,
68,
5218,
4279,
7,
82,
58,
68,
4083,
7890,
8,
329,
304,
287,
4780,
62,
276,
3212,
7,
85,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
5046,
0,
7,
87,
58,
85,
4357,
685,
411,
1096,
7,
16,
19571,
82,
58,
68,
4357,
360,
713,
7,
68,
5218,
285,
7857,
7,
87,
58,
85,
4357,
68,
22305,
329,
304,
287,
1200,
62,
276,
3212,
7,
85,
11,
79,
15437,
23029,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
2124,
198,
437,
198,
2213,
19524,
378,
7,
87,
3712,
27660,
51,
22854,
11,
4279,
8,
796,
40122,
378,
0,
7,
30073,
7,
87,
828,
4279,
8,
628,
198,
2,
17453,
276,
13284,
6037,
198,
198,
8818,
23407,
62,
7266,
21048,
7,
85,
3712,
27660,
11,
79,
3712,
27660,
11,
269,
3712,
27660,
51,
22854,
11,
26498,
3712,
27660,
51,
22854,
23029,
198,
220,
220,
220,
269,
85,
796,
1005,
363,
0,
7,
12985,
0,
7,
1102,
73,
7,
22046,
58,
16,
7131,
85,
46570,
352,
11,
4780,
62,
276,
3212,
7,
85,
36911,
1058,
34,
5218,
1058,
62,
11,
1058,
49,
5218,
1058,
34,
8,
198,
220,
220,
220,
329,
334,
287,
1751,
7,
85,
11,
79,
8,
269,
85,
1635,
28,
269,
58,
84,
60,
886,
198,
220,
220,
220,
329,
1312,
796,
362,
25,
13664,
7,
22046,
13219,
16,
269,
85,
1635,
28,
7621,
7,
22046,
58,
72,
7131,
85,
4357,
1312,
11,
4780,
62,
276,
3212,
7,
85,
4008,
886,
198,
220,
220,
220,
269,
85,
1635,
28,
1005,
363,
0,
7,
12985,
7,
22046,
58,
437,
7131,
85,
4357,
4129,
7,
22046,
828,
4780,
62,
276,
3212,
7,
85,
36911,
1058,
34,
5218,
1058,
62,
8,
198,
220,
220,
220,
1441,
269,
85,
198,
437,
198,
198,
8818,
23407,
62,
7266,
83,
6037,
7,
22046,
3712,
27660,
51,
22854,
23029,
198,
220,
220,
220,
269,
796,
12200,
51,
22854,
7,
198,
220,
220,
220,
220,
220,
220,
220,
953,
316,
631,
7,
22046,
58,
16,
46570,
220,
198,
220,
220,
220,
220,
220,
220,
220,
309,
22854,
35,
713,
90,
1416,
282,
433,
2981,
7,
22046,
58,
16,
12962,
92,
3419,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
329,
357,
85,
11,
79,
8,
287,
13015,
7,
66,
11,
5667,
62,
1462,
62,
15763,
8,
198,
220,
220,
220,
220,
220,
220,
220,
269,
58,
85,
60,
796,
23407,
62,
7266,
21048,
7,
85,
11,
79,
11,
66,
11,
22046,
23029,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
269,
198,
437,
628,
198,
2,
11220,
290,
16605,
198,
198,
39344,
2593,
0,
198,
27237,
0,
7,
87,
3712,
27660,
51,
22854,
8,
796,
2593,
7,
1506,
519,
20996,
1096,
0,
7,
87,
38381,
25,
15763,
12962,
198,
27237,
7,
2124,
3712,
27660,
51,
22854,
8,
796,
2593,
7,
1506,
519,
20996,
1096,
7,
2124,
38381,
25,
15763,
12962,
198,
198,
8818,
16605,
7,
87,
3712,
27660,
51,
22854,
11,
331,
3712,
27660,
51,
22854,
8,
198,
220,
220,
220,
1441,
16578,
283,
7,
198,
220,
220,
220,
220,
220,
220,
220,
23407,
62,
7266,
21048,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5509,
7,
87,
828,
21048,
7,
87,
828,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23407,
62,
7266,
83,
6037,
7,
87,
11,
88,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
11,
88,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
1267,
198,
437,
628,
198,
2,
10714,
1540,
690,
198,
198,
8818,
1957,
6759,
8609,
7,
32,
11,
410,
11,
2124,
31554,
8,
198,
220,
220,
220,
300,
32,
796,
7621,
7,
32,
58,
85,
4357,
362,
11,
4780,
62,
276,
3212,
7,
85,
4008,
198,
220,
220,
220,
329,
334,
287,
12020,
7,
85,
8,
198,
220,
220,
220,
220,
220,
220,
220,
300,
32,
1635,
28,
2124,
31554,
58,
84,
60,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1005,
363,
0,
7,
75,
32,
11,
352,
5218,
1058,
49,
11,
513,
5218,
1058,
34,
8,
198,
220,
220,
220,
1441,
300,
32,
198,
437,
198,
198,
8818,
1957,
81,
11994,
7,
65,
11,
410,
11,
2124,
65,
8,
198,
220,
220,
220,
18360,
796,
7621,
7,
65,
58,
85,
4357,
362,
11,
4780,
62,
276,
3212,
7,
85,
4008,
198,
220,
220,
220,
329,
334,
287,
12020,
7,
85,
8,
198,
220,
220,
220,
220,
220,
220,
220,
18360,
1635,
28,
2124,
65,
58,
84,
60,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1418,
363,
0,
7,
23160,
11,
352,
8,
198,
220,
220,
220,
1441,
18360,
198,
437,
198,
198,
8818,
1957,
6759,
35138,
20786,
7,
32,
11,
410,
11,
2124,
31554,
8,
198,
220,
220,
220,
5184,
796,
7621,
7,
32,
58,
85,
4357,
17,
11,
710,
394,
2865,
62,
276,
3212,
7,
85,
4008,
198,
220,
220,
220,
269,
796,
685,
1186,
363,
7,
87,
31554,
58,
84,
4357,
513,
5218,
1058,
34,
11,
352,
5218,
1058,
49,
8,
329,
334,
287,
12020,
7,
85,
15437,
198,
220,
220,
220,
611,
4129,
7,
66,
8,
6624,
513,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
85,
4613,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
66,
58,
18,
60,
9,
19510,
66,
58,
16,
60,
9,
7355,
27493,
7,
66,
58,
17,
60,
9,
87,
85,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
2073,
361,
4129,
7,
66,
8,
6624,
362,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
85,
4613,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
66,
58,
17,
60,
9,
7,
7355,
9,
7,
66,
58,
16,
60,
9,
87,
85,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
2073,
361,
4129,
7,
66,
8,
6624,
352,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
85,
4613,
2221,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
66,
58,
16,
60,
9,
7355,
9,
87,
85,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
4049,
7203,
14565,
2603,
35138,
4645,
407,
9177,
2474,
8,
198,
220,
220,
220,
886,
198,
437,
198,
198,
8818,
1957,
45573,
7,
87,
11,
32,
11,
65,
11,
410,
11,
2124,
31554,
11,
30894,
8,
198,
220,
220,
220,
12881,
796,
2124,
58,
85,
4083,
76,
4147,
198,
220,
220,
220,
2603,
35138,
796,
1957,
6759,
35138,
20786,
7,
32,
11,
410,
11,
2124,
31554,
8,
198,
220,
220,
220,
1441,
2124,
58,
85,
7131,
4029,
9608,
7,
76,
4147,
8,
4357,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
85,
4613,
357,
87,
85,
796,
309,
22854,
7,
76,
4147,
11,
87,
85,
1776,
2603,
35138,
7,
87,
85,
38381,
4029,
9608,
7,
76,
4147,
15437,
828,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1957,
81,
11994,
7,
65,
11,
85,
11,
30894,
38381,
4029,
9608,
7,
76,
4147,
15437,
198,
437,
628,
198,
2,
10714,
1540,
690,
198,
198,
3500,
40806,
876,
36949,
690,
198,
198,
397,
8709,
10714,
50,
14375,
198,
198,
39344,
360,
1072,
50,
14375,
198,
8608,
18187,
360,
1072,
50,
14375,
1279,
25,
10714,
50,
14375,
886,
198,
8818,
17205,
6442,
0,
7,
87,
11,
32,
11,
65,
11,
1540,
332,
3712,
35,
1072,
50,
14375,
11,
410,
11,
2124,
31554,
11,
2124,
65,
8,
198,
220,
220,
220,
2124,
58,
85,
60,
796,
1957,
6759,
8609,
7,
32,
11,
85,
11,
87,
31554,
19415,
12001,
81,
11994,
7,
65,
11,
85,
11,
30894,
8,
198,
437,
198,
198,
39344,
6951,
19535,
198,
8608,
18187,
6951,
19535,
1279,
25,
10714,
50,
14375,
198,
220,
220,
220,
284,
75,
3712,
43879,
2414,
198,
220,
220,
220,
3509,
2676,
3712,
5317,
198,
220,
220,
220,
15765,
3712,
5317,
198,
220,
220,
220,
9828,
3712,
33,
970,
198,
437,
198,
38,
13599,
1546,
7,
26,
284,
75,
796,
19862,
17034,
7,
25386,
3419,
828,
3509,
2676,
796,
352,
11,
15765,
796,
1160,
11,
9828,
796,
3991,
8,
796,
6951,
19535,
7,
83,
349,
11,
3509,
2676,
11,
15765,
11,
9828,
8,
198,
8818,
17205,
6442,
0,
7,
87,
11,
32,
11,
65,
11,
1540,
332,
3712,
38,
13599,
1546,
11,
410,
11,
2124,
31554,
11,
30894,
8,
198,
220,
220,
220,
4808,
11,
10034,
796,
308,
76,
411,
0,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1957,
45573,
7,
87,
11,
32,
11,
65,
11,
410,
11,
2124,
31554,
11,
30894,
26513,
26,
220,
198,
220,
220,
220,
220,
220,
220,
220,
284,
75,
796,
1540,
332,
13,
83,
349,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3509,
2676,
796,
1540,
332,
13,
9806,
2676,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
15765,
796,
1540,
332,
13,
2118,
433,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
611,
5145,
10034,
13,
271,
1102,
332,
2004,
11405,
1540,
332,
13,
40539,
198,
220,
220,
220,
220,
220,
220,
220,
9828,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
14565,
6951,
19535,
24415,
750,
407,
40826,
13,
59,
77,
1,
9,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
220,
406,
5188,
2546,
25,
220,
366,
9,
8841,
7,
13664,
7,
87,
58,
85,
60,
4008,
9,
1,
59,
77,
1,
9,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
220,
536,
10126,
25,
366,
9,
8841,
7,
10034,
13,
400,
10126,
27493,
1,
59,
77,
1,
9,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
220,
1874,
312,
723,
82,
25,
366,
9,
8841,
7,
10034,
13,
411,
312,
723,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
886,
198,
437,
198,
198,
39344,
29925,
198,
8608,
18187,
29925,
1279,
25,
10714,
50,
14375,
198,
220,
220,
220,
284,
75,
3712,
43879,
2414,
198,
220,
220,
220,
3509,
2676,
3712,
5317,
198,
220,
220,
220,
9828,
3712,
33,
970,
198,
437,
198,
39816,
7,
26,
284,
75,
796,
19862,
17034,
7,
25386,
3419,
828,
3509,
2676,
796,
1160,
11,
9828,
796,
3991,
8,
796,
29925,
7,
83,
349,
11,
3509,
2676,
11,
9828,
8,
198,
8818,
17205,
6442,
0,
7,
87,
11,
32,
11,
65,
11,
1540,
332,
3712,
39816,
11,
410,
11,
2124,
31554,
11,
30894,
8,
198,
220,
220,
220,
4808,
11,
10034,
796,
269,
70,
0,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1957,
6759,
35138,
7,
87,
11,
32,
11,
65,
11,
410,
11,
2124,
31554,
11,
30894,
26513,
26,
198,
220,
220,
220,
220,
220,
220,
220,
284,
75,
796,
1540,
332,
13,
83,
349,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3509,
2676,
796,
1540,
332,
13,
9806,
2676,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
611,
5145,
10034,
13,
271,
1102,
332,
2004,
11405,
1540,
332,
13,
40539,
198,
220,
220,
220,
220,
220,
220,
220,
9828,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
14565,
29925,
24415,
750,
407,
40826,
13,
59,
77,
1,
9,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
220,
406,
5188,
2546,
25,
220,
366,
9,
8841,
7,
13664,
7,
87,
58,
85,
60,
4008,
9,
1,
59,
77,
1,
9,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
220,
536,
10126,
25,
366,
9,
8841,
7,
10034,
13,
400,
10126,
27493,
1,
59,
77,
1,
9,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
220,
1874,
312,
723,
82,
25,
366,
9,
8841,
7,
10034,
13,
411,
312,
723,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
886,
198,
437,
628,
198,
2,
27249,
14174,
1540,
332,
198,
198,
39344,
435,
82,
62,
82,
6442,
0,
198,
8818,
435,
82,
62,
82,
6442,
0,
7,
198,
220,
220,
220,
2124,
11,
32,
11,
65,
11,
1540,
332,
796,
6951,
19535,
9783,
220,
198,
220,
220,
220,
3509,
2676,
3712,
5317,
796,
1160,
11,
284,
75,
796,
19862,
17034,
7,
25386,
7,
5305,
7,
1416,
282,
433,
2981,
7,
87,
35514,
198,
8,
198,
220,
220,
220,
2325,
36686,
579,
82,
796,
1976,
27498,
7,
5305,
7,
1416,
282,
433,
2981,
7,
87,
36911,
3509,
2676,
8,
628,
220,
220,
220,
29617,
519,
20996,
1096,
0,
7,
87,
8,
198,
220,
220,
220,
2124,
31554,
796,
23407,
62,
7266,
83,
6037,
7,
87,
11,
32,
11,
87,
8,
198,
220,
220,
220,
2124,
65,
796,
23407,
62,
7266,
83,
6037,
7,
87,
11,
65,
8,
198,
220,
220,
220,
329,
1312,
796,
352,
25,
9806,
2676,
198,
220,
220,
220,
220,
220,
220,
220,
329,
357,
84,
11,
85,
8,
287,
13015,
7,
87,
11,
1111,
62,
1322,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4294,
303,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
84,
796,
4866,
7,
87,
58,
84,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17205,
6442,
0,
7,
87,
11,
32,
11,
65,
11,
1540,
332,
11,
334,
11,
2124,
31554,
11,
30894,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2325,
36686,
579,
82,
58,
72,
60,
796,
3509,
7,
929,
19608,
268,
579,
82,
58,
72,
4357,
2593,
7,
87,
84,
532,
2124,
58,
84,
60,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
47664,
519,
20996,
1096,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
58,
84,
4357,
81,
796,
10662,
81,
7,
87,
58,
84,
4357,
47,
958,
7248,
7,
84,
11,
85,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
58,
85,
60,
796,
374,
9,
87,
58,
85,
60,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3082,
1133,
23407,
13284,
6037,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
31554,
58,
84,
60,
796,
23407,
62,
7266,
21048,
7,
84,
11,
85,
11,
2124,
31554,
11,
2124,
11,
32,
11,
87,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
65,
58,
84,
60,
796,
23407,
62,
7266,
21048,
7,
84,
11,
85,
11,
2124,
65,
11,
2124,
11,
65,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
35602,
12745,
2198,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2325,
36686,
579,
82,
58,
72,
60,
1279,
284,
75,
9,
27237,
7,
87,
58,
25,
15763,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
11,
35602,
12745,
18122,
7,
7942,
11,
284,
75,
9,
27237,
7,
87,
58,
25,
15763,
46570,
1312,
11,
2325,
36686,
579,
82,
58,
16,
25,
72,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
2124,
11,
35602,
12745,
18122,
7,
9562,
11,
284,
75,
9,
27237,
7,
87,
58,
25,
15763,
46570,
3509,
2676,
11,
2325,
36686,
579,
82,
8,
198,
437,
628,
198,
2,
27249,
2160,
198,
198,
39344,
435,
82,
62,
16345,
0,
198,
8818,
435,
82,
62,
16345,
0,
90,
51,
92,
7,
198,
220,
220,
220,
331,
11,
87,
3712,
23839,
38469,
90,
27660,
51,
22854,
90,
51,
11709,
26,
198,
220,
220,
220,
3509,
2676,
3712,
5317,
796,
1160,
11,
284,
75,
796,
19862,
17034,
7,
25386,
7,
5305,
7,
51,
22305,
198,
8,
198,
220,
220,
220,
2325,
36686,
579,
82,
796,
1976,
27498,
7,
5305,
7,
51,
828,
3509,
2676,
8,
628,
220,
220,
220,
29617,
519,
20996,
1096,
0,
7,
88,
8,
198,
220,
220,
220,
331,
87,
796,
685,
3642,
20216,
62,
7266,
83,
6037,
7,
88,
11,
87,
8,
329,
2124,
287,
2124,
60,
198,
220,
220,
220,
329,
1312,
796,
352,
25,
9806,
2676,
198,
220,
220,
220,
220,
220,
220,
220,
329,
357,
84,
11,
85,
8,
287,
13015,
7,
88,
11,
1111,
62,
1322,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4935,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
403,
413,
796,
2160,
26933,
12001,
81,
11994,
7,
87,
11,
334,
11,
331,
87,
8,
329,
357,
87,
11,
28391,
8,
287,
19974,
7,
87,
11,
28391,
8,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2325,
36686,
579,
82,
58,
72,
60,
796,
3509,
7,
929,
19608,
268,
579,
82,
58,
72,
4357,
2593,
7,
88,
403,
413,
532,
331,
58,
84,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
58,
84,
60,
796,
331,
403,
413,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
47664,
519,
20996,
1096,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
58,
84,
4357,
81,
796,
10662,
81,
7,
88,
58,
84,
4357,
47,
958,
7248,
7,
84,
11,
85,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
58,
85,
60,
796,
374,
9,
88,
58,
85,
60,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3082,
1133,
23407,
13284,
6037,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
357,
87,
11,
28391,
8,
287,
19974,
7,
87,
11,
28391,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1957,
2124,
11,
28391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
87,
58,
84,
60,
796,
23407,
62,
7266,
21048,
7,
84,
11,
85,
11,
331,
87,
11,
331,
11,
87,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
35602,
12745,
2198,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2325,
36686,
579,
82,
58,
72,
60,
1279,
284,
75,
9,
27237,
7,
88,
58,
25,
15763,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
331,
11,
35602,
12745,
18122,
7,
7942,
11,
284,
75,
9,
27237,
7,
88,
58,
25,
15763,
46570,
1312,
11,
2325,
36686,
579,
82,
58,
16,
25,
72,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
331,
11,
35602,
12745,
18122,
7,
9562,
11,
284,
75,
9,
27237,
7,
88,
58,
25,
15763,
46570,
3509,
2676,
11,
2325,
36686,
579,
82,
8,
198,
437,
628,
198,
2,
27249,
317,
27481,
56,
198,
198,
39344,
435,
82,
62,
897,
9078,
0,
198,
8818,
435,
82,
62,
897,
9078,
0,
7,
198,
220,
220,
220,
1976,
11,
32,
11,
87,
11,
88,
26,
198,
220,
220,
220,
3509,
2676,
3712,
5317,
796,
1160,
11,
284,
75,
796,
19862,
17034,
7,
25386,
7,
5305,
7,
1416,
282,
433,
2981,
7,
87,
35514,
198,
8,
198,
220,
220,
220,
2325,
36686,
579,
82,
796,
1976,
27498,
7,
5305,
7,
1416,
282,
433,
2981,
7,
87,
36911,
3509,
2676,
8,
628,
220,
220,
220,
29617,
519,
20996,
1096,
0,
7,
89,
8,
198,
220,
220,
220,
1976,
31554,
796,
23407,
62,
7266,
83,
6037,
7,
89,
11,
32,
11,
87,
8,
198,
220,
220,
220,
1976,
88,
796,
23407,
62,
7266,
83,
6037,
7,
89,
11,
88,
8,
198,
220,
220,
220,
329,
1312,
796,
352,
25,
9806,
2676,
198,
220,
220,
220,
220,
220,
220,
220,
329,
357,
84,
11,
85,
8,
287,
13015,
7,
89,
11,
1111,
62,
1322,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4935,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
403,
413,
796,
1957,
6759,
35138,
20786,
7,
32,
11,
334,
11,
1976,
31554,
5769,
87,
58,
84,
12962,
1343,
1957,
81,
11994,
7,
88,
11,
334,
11,
1976,
88,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2325,
36686,
579,
82,
58,
72,
60,
796,
3509,
7,
929,
19608,
268,
579,
82,
58,
72,
4357,
2593,
7,
89,
403,
413,
532,
1976,
58,
84,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
58,
84,
60,
796,
1976,
403,
413,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
47664,
519,
20996,
1096,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
58,
84,
4357,
81,
796,
10662,
81,
7,
89,
58,
84,
4357,
47,
958,
7248,
7,
84,
11,
85,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
58,
85,
60,
796,
374,
9,
89,
58,
85,
60,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3082,
1133,
23407,
13284,
6037,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
31554,
58,
84,
60,
796,
23407,
62,
7266,
21048,
7,
84,
11,
85,
11,
1976,
31554,
11,
1976,
11,
32,
11,
87,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
88,
58,
84,
60,
796,
23407,
62,
7266,
21048,
7,
84,
11,
85,
11,
1976,
88,
11,
1976,
11,
88,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
35602,
12745,
2198,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2325,
36686,
579,
82,
58,
72,
60,
1279,
284,
75,
9,
27237,
7,
89,
58,
25,
15763,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1976,
11,
35602,
12745,
18122,
7,
7942,
11,
284,
75,
9,
27237,
7,
89,
58,
25,
15763,
46570,
1312,
11,
2325,
36686,
579,
82,
58,
16,
25,
72,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
1976,
11,
35602,
12745,
18122,
7,
9562,
11,
284,
75,
9,
27237,
7,
89,
58,
25,
15763,
46570,
3509,
2676,
11,
2325,
36686,
579,
82,
8,
198,
437,
628,
198,
2235,
8355,
5432,
35,
14174,
1540,
332,
198,
2,
198,
2,
8818,
435,
824,
67,
62,
82,
6442,
0,
7,
198,
2,
220,
220,
220,
2124,
11,
32,
11,
65,
11,
1540,
332,
796,
6951,
19535,
9783,
220,
198,
2,
220,
220,
220,
29598,
43027,
796,
604,
11,
3509,
2676,
3712,
5317,
796,
1160,
11,
284,
75,
796,
19862,
17034,
7,
25386,
7,
5305,
7,
1416,
282,
433,
2981,
7,
87,
35514,
198,
2,
8,
198,
2,
220,
220,
220,
29598,
27237,
82,
796,
1976,
27498,
7,
5305,
7,
1416,
282,
433,
2981,
7,
87,
36911,
3509,
2676,
8,
198,
2,
220,
220,
220,
284,
75,
1635,
28,
2593,
7,
65,
8,
198,
2,
198,
2,
220,
220,
220,
1976,
796,
43720,
7,
87,
11,
29598,
43027,
8,
198,
2,
220,
220,
220,
329,
1312,
796,
352,
25,
9806,
2676,
198,
2,
220,
220,
220,
220,
220,
220,
220,
435,
82,
62,
897,
9078,
0,
7,
89,
11,
532,
32,
11,
87,
11,
65,
26,
3509,
2676,
796,
352,
8,
198,
2,
198,
2,
220,
220,
220,
220,
220,
220,
220,
29598,
27237,
82,
58,
72,
60,
796,
2593,
0,
7,
89,
8,
198,
2,
220,
220,
220,
220,
220,
220,
220,
611,
29598,
27237,
82,
58,
72,
60,
1279,
284,
75,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
11,
3103,
332,
12745,
18122,
7,
7942,
11,
284,
75,
11,
1312,
11,
29598,
27237,
82,
58,
16,
25,
72,
12962,
198,
2,
220,
220,
220,
220,
220,
220,
220,
886,
198,
2,
198,
2,
220,
220,
220,
220,
220,
220,
220,
2124,
15853,
1976,
198,
2,
220,
220,
220,
220,
220,
220,
220,
435,
82,
62,
82,
6442,
0,
7,
87,
11,
32,
11,
65,
11,
1540,
332,
26,
3509,
2676,
796,
352,
8,
198,
2,
220,
220,
220,
220,
220,
220,
220,
40122,
378,
0,
7,
87,
11,
29605,
7,
83,
349,
4008,
198,
2,
220,
220,
220,
886,
198,
2,
220,
220,
220,
1441,
2124,
198,
2,
437,
628,
198,
2235,
27249,
10088,
287,
9641,
198,
2,
198,
2,
8818,
435,
82,
62,
16340,
0,
7,
198,
2,
220,
220,
220,
1395,
11,
32,
11,
1540,
332,
796,
6951,
19535,
9783,
220,
198,
2,
220,
220,
220,
3509,
2676,
3712,
5317,
796,
1160,
11,
284,
75,
796,
19862,
17034,
7,
25386,
7,
5305,
7,
1416,
282,
433,
2981,
7,
55,
35514,
198,
2,
8,
198,
2,
220,
220,
220,
2325,
36686,
579,
82,
796,
1976,
27498,
7,
5305,
7,
1416,
282,
433,
2981,
7,
55,
36911,
3509,
2676,
8,
198,
2,
198,
2,
220,
220,
220,
29617,
519,
20996,
1096,
0,
7,
55,
8,
198,
2,
220,
220,
220,
1395,
25922,
796,
23407,
62,
7266,
83,
6037,
7,
55,
11,
32,
11,
55,
8,
198,
2,
220,
220,
220,
1395,
25922,
83,
796,
23407,
62,
7266,
83,
6037,
7,
55,
11,
32,
11,
55,
8,
198,
2,
220,
220,
220,
2124,
65,
796,
23407,
62,
7266,
83,
6037,
7,
87,
11,
65,
8,
198,
2,
220,
220,
220,
329,
1312,
796,
352,
25,
9806,
2676,
198,
2,
220,
220,
220,
220,
220,
220,
220,
329,
357,
84,
11,
85,
8,
287,
13015,
7,
87,
11,
1111,
62,
1322,
8,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4294,
303,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
84,
796,
4866,
7,
87,
58,
84,
12962,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17205,
6442,
0,
7,
87,
11,
32,
11,
65,
11,
1540,
332,
11,
334,
11,
2124,
31554,
11,
30894,
8,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2325,
36686,
579,
82,
58,
72,
60,
796,
3509,
7,
929,
19608,
268,
579,
82,
58,
72,
4357,
2593,
7,
87,
84,
532,
2124,
58,
84,
60,
4008,
198,
2,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
47664,
519,
20996,
1096,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
58,
84,
4357,
81,
796,
10662,
81,
7,
87,
58,
84,
4357,
47,
958,
7248,
7,
84,
11,
85,
4008,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
58,
85,
60,
796,
374,
9,
87,
58,
85,
60,
198,
2,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3082,
1133,
23407,
13284,
6037,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
31554,
58,
84,
60,
796,
23407,
62,
7266,
21048,
7,
84,
11,
85,
11,
2124,
31554,
11,
2124,
11,
32,
11,
87,
8,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
65,
58,
84,
60,
796,
23407,
62,
7266,
21048,
7,
84,
11,
85,
11,
2124,
65,
11,
2124,
11,
65,
8,
198,
2,
220,
220,
220,
220,
220,
220,
220,
886,
198,
2,
198,
2,
220,
220,
220,
220,
220,
220,
220,
1303,
35602,
12745,
2198,
198,
2,
220,
220,
220,
220,
220,
220,
220,
611,
2325,
36686,
579,
82,
58,
72,
60,
1279,
284,
75,
9,
27237,
7,
87,
58,
25,
15763,
12962,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
11,
35602,
12745,
18122,
7,
7942,
11,
284,
75,
9,
27237,
7,
87,
58,
25,
15763,
46570,
1312,
11,
2325,
36686,
579,
82,
58,
16,
25,
72,
12962,
198,
2,
220,
220,
220,
220,
220,
220,
220,
886,
198,
2,
220,
220,
220,
886,
198,
2,
220,
220,
220,
1441,
2124,
11,
35602,
12745,
18122,
7,
9562,
11,
284,
75,
9,
27237,
7,
87,
58,
25,
15763,
46570,
3509,
2676,
11,
2325,
36686,
579,
82,
8,
198,
2,
437,
198,
198,
437,
1303,
8265,
198
] | 1.924533 | 7,394 |
function simple_lp(bridged)
MOI.empty!(bridged)
@test MOI.is_empty(bridged)
# add 10 variables - only diagonal is relevant
X = MOI.add_variables(bridged, 2)
# add sdp constraints - only ensuring positivenesse of the diagonal
vov = MOI.VectorOfVariables(X)
c1 = MOI.add_constraint(bridged,
MOI.ScalarAffineFunction([
MOI.ScalarAffineTerm(2.0, X[1]),
MOI.ScalarAffineTerm(1.0, X[2])
], 0.0), MOI.EqualTo(4.0))
c2 = MOI.add_constraint(bridged,
MOI.ScalarAffineFunction([
MOI.ScalarAffineTerm(1.0, X[1]),
MOI.ScalarAffineTerm(2.0, X[2])
], 0.0), MOI.EqualTo(4.0))
b1 = MOI.add_constraint(bridged,
MOI.ScalarAffineFunction([
MOI.ScalarAffineTerm(1.0, X[1])
], 0.0), MOI.GreaterThan(0.0))
b2 = MOI.add_constraint(bridged,
MOI.ScalarAffineFunction([
MOI.ScalarAffineTerm(1.0, X[2])
], 0.0), MOI.GreaterThan(0.0))
MOI.set(bridged,
MOI.ObjectiveFunction{MOI.ScalarAffineFunction{Float64}}(),
MOI.ScalarAffineFunction(MOI.ScalarAffineTerm.([-4.0, -3.0], [X[1], X[2]]), 0.0)
)
MOI.set(bridged, MOI.ObjectiveSense(), MOI.MIN_SENSE)
MOI.optimize!(bridged)
obj = MOI.get(bridged, MOI.ObjectiveValue())
@test obj ≈ -9.33333 atol = 1e-2
Xr = MOI.get(bridged, MOI.VariablePrimal(), X)
@test Xr ≈ [1.3333, 1.3333] atol = 1e-2
end
function simple_lp_2_1d_sdp(bridged)
MOI.empty!(bridged)
@test MOI.is_empty(bridged)
# add 10 variables - only diagonal is relevant
X = MOI.add_variables(bridged, 2)
# add sdp constraints - only ensuring positivenesse of the diagonal
vov = MOI.VectorOfVariables(X)
c1 = MOI.add_constraint(bridged,
MOI.ScalarAffineFunction([
MOI.ScalarAffineTerm(2.0, X[1]),
MOI.ScalarAffineTerm(1.0, X[2])
], 0.0), MOI.EqualTo(4.0))
c2 = MOI.add_constraint(bridged,
MOI.ScalarAffineFunction([
MOI.ScalarAffineTerm(1.0, X[1]),
MOI.ScalarAffineTerm(2.0, X[2])
], 0.0), MOI.EqualTo(4.0))
b1 = MOI.add_constraint(bridged,
MOI.VectorOfVariables([X[1]]), MOI.PositiveSemidefiniteConeTriangle(1))
b2 = MOI.add_constraint(bridged,
MOI.VectorOfVariables([X[2]]), MOI.PositiveSemidefiniteConeTriangle(1))
MOI.set(bridged,
MOI.ObjectiveFunction{MOI.ScalarAffineFunction{Float64}}(),
MOI.ScalarAffineFunction(MOI.ScalarAffineTerm.([-4.0, -3.0], [X[1], X[2]]), 0.0)
)
MOI.set(bridged, MOI.ObjectiveSense(), MOI.MIN_SENSE)
MOI.optimize!(bridged)
obj = MOI.get(bridged, MOI.ObjectiveValue())
@test obj ≈ -9.33333 atol = 1e-2
Xr = MOI.get(bridged, MOI.VariablePrimal(), X)
@test Xr ≈ [1.3333, 1.3333] atol = 1e-2
end
function lp_in_SDP_equality_form(bridged)
MOI.empty!(bridged)
@test MOI.is_empty(bridged)
# add 10 variables - only diagonal is relevant
X = MOI.add_variables(bridged, 10)
# add sdp constraints - only ensuring positivenesse of the diagonal
vov = MOI.VectorOfVariables(X)
cX = MOI.add_constraint(bridged, vov, MOI.PositiveSemidefiniteConeTriangle(4))
c1 = MOI.add_constraint(bridged,
MOI.ScalarAffineFunction([
MOI.ScalarAffineTerm(2.0, X[1]),
MOI.ScalarAffineTerm(1.0, X[3]),
MOI.ScalarAffineTerm(1.0, X[6])
], 0.0), MOI.EqualTo(4.0))
c2 = MOI.add_constraint(bridged,
MOI.ScalarAffineFunction([
MOI.ScalarAffineTerm(1.0, X[1]),
MOI.ScalarAffineTerm(2.0, X[3]),
MOI.ScalarAffineTerm(1.0, X[10])
], 0.0), MOI.EqualTo(4.0))
MOI.set(bridged,
MOI.ObjectiveFunction{MOI.ScalarAffineFunction{Float64}}(),
MOI.ScalarAffineFunction(MOI.ScalarAffineTerm.([-4.0, -3.0], [X[1], X[3]]), 0.0)
)
MOI.set(bridged, MOI.ObjectiveSense(), MOI.MIN_SENSE)
MOI.optimize!(bridged)
obj = MOI.get(bridged, MOI.ObjectiveValue())
@test obj ≈ -9.33333 atol = 1e-2
Xr = MOI.get(bridged, MOI.VariablePrimal(), X)
@test Xr ≈ [1.3333, .0, 1.3333, .0, .0, .0, .0, .0, .0, .0] atol = 1e-2
end
function lp_in_SDP_inequality_form(optimizer)
MOI.empty!(optimizer)
@test MOI.is_empty(optimizer)
# add 10 variables - only diagonal is relevant
X = MOI.add_variables(optimizer, 3)
# add sdp constraints - only ensuring positivenesse of the diagonal
vov = MOI.VectorOfVariables(X)
cX = MOI.add_constraint(optimizer, vov, MOI.PositiveSemidefiniteConeTriangle(2))
c1 = MOI.add_constraint(optimizer,
MOI.VectorAffineFunction(MOI.VectorAffineTerm.([1,1],[
MOI.ScalarAffineTerm(2.0, X[1]),
MOI.ScalarAffineTerm(1.0, X[3]),
]), [-4.0]), MOI.Nonpositives(1))
c2 = MOI.add_constraint(optimizer,
MOI.VectorAffineFunction(MOI.VectorAffineTerm.([1,1],[
MOI.ScalarAffineTerm(1.0, X[1]),
MOI.ScalarAffineTerm(2.0, X[3]),
]), [-4.0]), MOI.Nonpositives(1))
MOI.set(optimizer,
MOI.ObjectiveFunction{MOI.ScalarAffineFunction{Float64}}(),
MOI.ScalarAffineFunction(MOI.ScalarAffineTerm.([4.0, 3.0], [X[1], X[3]]), 0.0)
)
MOI.set(optimizer, MOI.ObjectiveSense(), MOI.MAX_SENSE)
MOI.optimize!(optimizer)
obj = MOI.get(optimizer, MOI.ObjectiveValue())
@test obj ≈ 9.33333 atol = 1e-2
Xr = MOI.get(optimizer, MOI.VariablePrimal(), X)
@test Xr ≈ [1.3333, .0, 1.3333] atol = 1e-2
c1_d = MOI.get(optimizer, MOI.ConstraintDual(), c1)
c2_d = MOI.get(optimizer, MOI.ConstraintDual(), c2)
end
function sdp_from_moi(optimizer)
# min X[1,1] + X[2,2] max y
# X[2,1] = 1 [0 y/2 [ 1 0
# y/2 0 <= 0 1]
# X >= 0 y free
# Optimal solution:
#
# ⎛ 1 1 ⎞
# X = ⎜ ⎟ y = 2
# ⎝ 1 1 ⎠
MOI.empty!(optimizer)
@test MOI.is_empty(optimizer)
X = MOI.add_variables(optimizer, 3)
vov = MOI.VectorOfVariables(X)
cX = MOI.add_constraint(optimizer, vov, MOI.PositiveSemidefiniteConeTriangle(2))
c = MOI.add_constraint(optimizer, MOI.VectorAffineFunction([MOI.VectorAffineTerm(1,MOI.ScalarAffineTerm(1.0, X[2]))], [-1.0]), MOI.Zeros(1))
MOI.set(optimizer, MOI.ObjectiveFunction{MOI.ScalarAffineFunction{Float64}}(), MOI.ScalarAffineFunction(MOI.ScalarAffineTerm.(1.0, [X[1], X[3]]), 0.0))
MOI.set(optimizer, MOI.ObjectiveSense(), MOI.MIN_SENSE)
MOI.optimize!(optimizer)
@test MOI.get(optimizer, MOI.TerminationStatus()) == MOI.OPTIMAL
@test MOI.get(optimizer, MOI.PrimalStatus()) == MOI.FEASIBLE_POINT
@test MOI.get(optimizer, MOI.DualStatus()) == MOI.FEASIBLE_POINT
@test MOI.get(optimizer, MOI.ObjectiveValue()) ≈ 2 atol=1e-2
Xv = ones(3)
@test MOI.get(optimizer, MOI.VariablePrimal(), X) ≈ Xv atol=1e-2
# @test MOI.get(optimizer, MOI.ConstraintPrimal(), cX) ≈ Xv atol=1e-2
# @test MOI.get(optimizer, MOI.ConstraintDual(), c) ≈ 2 atol=1e-2
# @show MOI.get(optimizer, MOI.ConstraintDual(), c)
end
function double_sdp_from_moi(optimizer)
# solve simultaneously two of these:
# min X[1,1] + X[2,2] max y
# X[2,1] = 1 [0 y/2 [ 1 0
# y/2 0 <= 0 1]
# X >= 0 y free
# Optimal solution:
#
# ⎛ 1 1 ⎞
# X = ⎜ ⎟ y = 2
# ⎝ 1 1 ⎠
MOI.empty!(optimizer)
@test MOI.is_empty(optimizer)
X = MOI.add_variables(optimizer, 3)
Y = MOI.add_variables(optimizer, 3)
vov = MOI.VectorOfVariables(X)
vov2 = MOI.VectorOfVariables(Y)
cX = MOI.add_constraint(optimizer, vov, MOI.PositiveSemidefiniteConeTriangle(2))
cY = MOI.add_constraint(optimizer, vov2, MOI.PositiveSemidefiniteConeTriangle(2))
c = MOI.add_constraint(optimizer, MOI.VectorAffineFunction([MOI.VectorAffineTerm(1,MOI.ScalarAffineTerm(1.0, X[2]))], [-1.0]), MOI.Zeros(1))
c2 = MOI.add_constraint(optimizer, MOI.VectorAffineFunction([MOI.VectorAffineTerm(1,MOI.ScalarAffineTerm(1.0, Y[2]))], [-1.0]), MOI.Zeros(1))
MOI.set(optimizer, MOI.ObjectiveFunction{MOI.ScalarAffineFunction{Float64}}(), MOI.ScalarAffineFunction(MOI.ScalarAffineTerm.(1.0, [X[1], X[end], Y[1], Y[end]]), 0.0))
MOI.set(optimizer, MOI.ObjectiveSense(), MOI.MIN_SENSE)
MOI.optimize!(optimizer)
@test MOI.get(optimizer, MOI.TerminationStatus()) == MOI.OPTIMAL
@test MOI.get(optimizer, MOI.PrimalStatus()) == MOI.FEASIBLE_POINT
@test MOI.get(optimizer, MOI.DualStatus()) == MOI.FEASIBLE_POINT
@test MOI.get(optimizer, MOI.ObjectiveValue()) ≈ 2*2 atol=1e-2
Xv = ones(3)
@test MOI.get(optimizer, MOI.VariablePrimal(), X) ≈ Xv atol=1e-2
Yv = ones(3)
@test MOI.get(optimizer, MOI.VariablePrimal(), Y) ≈ Yv atol=1e-2
# @test MOI.get(optimizer, MOI.ConstraintPrimal(), cX) ≈ Xv atol=1e-2
# @test MOI.get(optimizer, MOI.ConstraintDual(), c) ≈ 2 atol=1e-2
# @show MOI.get(optimizer, MOI.ConstraintDual(), c)
end
function double_sdp_with_duplicates(optimizer)
MOI.empty!(optimizer)
x = MOI.add_variable(optimizer)
X = [x, x, x]
vov = MOI.VectorOfVariables(X)
cX = MOI.add_constraint(optimizer, vov, MOI.PositiveSemidefiniteConeTriangle(2))
c = MOI.add_constraint(optimizer, MOI.VectorAffineFunction([MOI.VectorAffineTerm(1,MOI.ScalarAffineTerm(1.0, X[2]))], [-1.0]), MOI.Zeros(1))
MOI.set(optimizer, MOI.ObjectiveFunction{MOI.ScalarAffineFunction{Float64}}(), MOI.ScalarAffineFunction(MOI.ScalarAffineTerm.(1.0, [X[1], X[3]]), 0.0))
MOI.set(optimizer, MOI.ObjectiveSense(), MOI.MIN_SENSE)
MOI.optimize!(optimizer)
@test MOI.get(optimizer, MOI.TerminationStatus()) == MOI.OPTIMAL
@test MOI.get(optimizer, MOI.PrimalStatus()) == MOI.FEASIBLE_POINT
@test MOI.get(optimizer, MOI.DualStatus()) == MOI.FEASIBLE_POINT
@test MOI.get(optimizer, MOI.ObjectiveValue()) ≈ 2 atol=1e-2
Xv = ones(3)
@test MOI.get(optimizer, MOI.VariablePrimal(), X) ≈ Xv atol=1e-2
end
function sdp_wiki(optimizer)
# https://en.wikipedia.org/wiki/Semidefinite_programming
MOI.empty!(optimizer)
@test MOI.is_empty(optimizer)
X = MOI.add_variables(optimizer, 6)
vov = MOI.VectorOfVariables(X)
cX = MOI.add_constraint(optimizer, vov, MOI.PositiveSemidefiniteConeTriangle(3))
cd1 = MOI.add_constraint(optimizer, MOI.VectorAffineFunction([MOI.VectorAffineTerm(1,MOI.ScalarAffineTerm(1.0, X[1]))], [-1.0]), MOI.Zeros(1))
cd1 = MOI.add_constraint(optimizer, MOI.VectorAffineFunction([MOI.VectorAffineTerm(1,MOI.ScalarAffineTerm(1.0, X[3]))], [-1.0]), MOI.Zeros(1))
cd1 = MOI.add_constraint(optimizer, MOI.VectorAffineFunction([MOI.VectorAffineTerm(1,MOI.ScalarAffineTerm(1.0, X[6]))], [-1.0]), MOI.Zeros(1))
c12_ub = MOI.add_constraint(optimizer, MOI.VectorAffineFunction([MOI.VectorAffineTerm(1,MOI.ScalarAffineTerm(1.0, X[2]))], [0.1]), MOI.Nonpositives(1)) # x <= -0.1 -> x + 0.1 <= 0
c12_lb = MOI.add_constraint(optimizer, MOI.VectorAffineFunction([MOI.VectorAffineTerm(1,MOI.ScalarAffineTerm(-1.0, X[2]))], [-0.2]), MOI.Nonpositives(1)) # x >= -0.2 -> -x + -0.2 <= 0
c23_ub = MOI.add_constraint(optimizer, MOI.VectorAffineFunction([MOI.VectorAffineTerm(1,MOI.ScalarAffineTerm(1.0, X[5]))], [-0.5]), MOI.Nonpositives(1)) # x <= 0.5 -> x - 0.5 <= 0
c23_lb = MOI.add_constraint(optimizer, MOI.VectorAffineFunction([MOI.VectorAffineTerm(1,MOI.ScalarAffineTerm(-1.0, X[5]))], [0.4]), MOI.Nonpositives(1)) # x >= 0.4 -> -x + 0.4 <= 0
MOI.set(optimizer, MOI.ObjectiveFunction{MOI.ScalarAffineFunction{Float64}}(), MOI.ScalarAffineFunction(MOI.ScalarAffineTerm.(1.0, [X[4]]), 0.0))
MOI.set(optimizer, MOI.ObjectiveSense(), MOI.MIN_SENSE)
MOI.optimize!(optimizer)
obj = MOI.get(optimizer, MOI.ObjectiveValue())
@test obj ≈ -0.978 atol=1e-2
MOI.set(optimizer, MOI.ObjectiveSense(), MOI.MAX_SENSE)
MOI.optimize!(optimizer)
obj = MOI.get(optimizer, MOI.ObjectiveValue())
@test obj ≈ 0.872 atol=1e-2
end
simple_lp(optimizer_bridged)
simple_lp_2_1d_sdp(optimizer_bridged)
lp_in_SDP_equality_form(optimizer_bridged)
lp_in_SDP_inequality_form(optimizer_bridged)
sdp_from_moi(optimizer_bridged)
double_sdp_from_moi(optimizer_bridged)
double_sdp_with_duplicates(optimizer_bridged)
sdp_wiki(optimizer_bridged)
# print test
const optimizer_print = MOI.instantiate(
()->ProxSDP.Optimizer(
log_freq = 10, log_verbose = true, timer_verbose = true, extended_log = true, extended_log2 = true,
tol_gap = 1e-4, tol_feasibility = 1e-4),
with_bridge_type = Float64)
sdp_wiki(optimizer_print)
# eig solvers
default_solver = MOI.get(optimizer_bridged, MOI.RawOptimizerAttribute("eigsolver"))
min_size_krylov_eigs = MOI.get(optimizer_bridged, MOI.RawOptimizerAttribute("min_size_krylov_eigs"))
MOI.set(optimizer_bridged, MOI.RawOptimizerAttribute("eigsolver"), 1)
MOI.set(optimizer_bridged, MOI.RawOptimizerAttribute("min_size_krylov_eigs"), 1)
sdp_wiki(optimizer_bridged)
MOI.set(optimizer_bridged, MOI.RawOptimizerAttribute("eigsolver"), 2)
sdp_wiki(optimizer_bridged)
MOI.set(optimizer_bridged, MOI.RawOptimizerAttribute("min_size_krylov_eigs"), min_size_krylov_eigs)
MOI.set(optimizer_bridged, MOI.RawOptimizerAttribute("eigsolver"), default_solver)
MOI.set(optimizer_bridged, MOI.RawOptimizerAttribute("full_eig_decomp"), true)
sdp_wiki(optimizer_bridged)
MOI.set(optimizer_bridged, MOI.RawOptimizerAttribute("full_eig_decomp"), false)
| [
8818,
2829,
62,
34431,
7,
10236,
2004,
8,
628,
220,
220,
220,
13070,
40,
13,
28920,
0,
7,
10236,
2004,
8,
198,
220,
220,
220,
2488,
9288,
13070,
40,
13,
271,
62,
28920,
7,
10236,
2004,
8,
628,
220,
220,
220,
1303,
751,
838,
9633,
532,
691,
40039,
318,
5981,
198,
220,
220,
220,
1395,
796,
13070,
40,
13,
2860,
62,
25641,
2977,
7,
10236,
2004,
11,
362,
8,
628,
220,
220,
220,
1303,
751,
264,
26059,
17778,
532,
691,
13359,
46436,
1469,
35270,
286,
262,
40039,
198,
220,
220,
220,
410,
709,
796,
13070,
40,
13,
38469,
5189,
23907,
2977,
7,
55,
8,
628,
220,
220,
220,
269,
16,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
10236,
2004,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
22203,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
17,
13,
15,
11,
1395,
58,
16,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
17,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
16589,
657,
13,
15,
828,
13070,
40,
13,
36,
13255,
2514,
7,
19,
13,
15,
4008,
628,
220,
220,
220,
269,
17,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
10236,
2004,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
22203,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
16,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
17,
13,
15,
11,
1395,
58,
17,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
16589,
657,
13,
15,
828,
13070,
40,
13,
36,
13255,
2514,
7,
19,
13,
15,
4008,
628,
220,
220,
220,
275,
16,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
10236,
2004,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
22203,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
16,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
16589,
657,
13,
15,
828,
13070,
40,
13,
13681,
263,
817,
272,
7,
15,
13,
15,
4008,
628,
220,
220,
220,
275,
17,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
10236,
2004,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
22203,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
17,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
16589,
657,
13,
15,
828,
13070,
40,
13,
13681,
263,
817,
272,
7,
15,
13,
15,
4008,
628,
220,
220,
220,
13070,
40,
13,
2617,
7,
10236,
2004,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
10267,
425,
22203,
90,
11770,
40,
13,
3351,
282,
283,
35191,
500,
22203,
90,
43879,
2414,
11709,
22784,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
22203,
7,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
12195,
58,
12,
19,
13,
15,
11,
532,
18,
13,
15,
4357,
685,
55,
58,
16,
4357,
1395,
58,
17,
11907,
828,
657,
13,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
13070,
40,
13,
2617,
7,
10236,
2004,
11,
13070,
40,
13,
10267,
425,
41166,
22784,
13070,
40,
13,
23678,
62,
50,
24290,
8,
198,
220,
220,
220,
13070,
40,
13,
40085,
1096,
0,
7,
10236,
2004,
8,
628,
220,
220,
220,
26181,
796,
13070,
40,
13,
1136,
7,
10236,
2004,
11,
13070,
40,
13,
10267,
425,
11395,
28955,
628,
220,
220,
220,
2488,
9288,
26181,
15139,
230,
532,
24,
13,
2091,
20370,
379,
349,
796,
352,
68,
12,
17,
628,
220,
220,
220,
1395,
81,
796,
13070,
40,
13,
1136,
7,
10236,
2004,
11,
13070,
40,
13,
43015,
23828,
282,
22784,
1395,
8,
628,
220,
220,
220,
2488,
9288,
1395,
81,
15139,
230,
685,
16,
13,
24840,
11,
352,
13,
24840,
60,
379,
349,
796,
352,
68,
12,
17,
198,
198,
437,
198,
198,
8818,
2829,
62,
34431,
62,
17,
62,
16,
67,
62,
21282,
79,
7,
10236,
2004,
8,
628,
220,
220,
220,
13070,
40,
13,
28920,
0,
7,
10236,
2004,
8,
198,
220,
220,
220,
2488,
9288,
13070,
40,
13,
271,
62,
28920,
7,
10236,
2004,
8,
628,
220,
220,
220,
1303,
751,
838,
9633,
532,
691,
40039,
318,
5981,
198,
220,
220,
220,
1395,
796,
13070,
40,
13,
2860,
62,
25641,
2977,
7,
10236,
2004,
11,
362,
8,
628,
220,
220,
220,
1303,
751,
264,
26059,
17778,
532,
691,
13359,
46436,
1469,
35270,
286,
262,
40039,
198,
220,
220,
220,
410,
709,
796,
13070,
40,
13,
38469,
5189,
23907,
2977,
7,
55,
8,
628,
220,
220,
220,
269,
16,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
10236,
2004,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
22203,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
17,
13,
15,
11,
1395,
58,
16,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
17,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
16589,
657,
13,
15,
828,
13070,
40,
13,
36,
13255,
2514,
7,
19,
13,
15,
4008,
628,
220,
220,
220,
269,
17,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
10236,
2004,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
22203,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
16,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
17,
13,
15,
11,
1395,
58,
17,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
16589,
657,
13,
15,
828,
13070,
40,
13,
36,
13255,
2514,
7,
19,
13,
15,
4008,
628,
220,
220,
220,
275,
16,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
10236,
2004,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
38469,
5189,
23907,
2977,
26933,
55,
58,
16,
11907,
828,
13070,
40,
13,
21604,
1800,
13900,
485,
69,
9504,
34,
505,
14824,
9248,
7,
16,
4008,
628,
220,
220,
220,
275,
17,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
10236,
2004,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
38469,
5189,
23907,
2977,
26933,
55,
58,
17,
11907,
828,
13070,
40,
13,
21604,
1800,
13900,
485,
69,
9504,
34,
505,
14824,
9248,
7,
16,
4008,
628,
220,
220,
220,
13070,
40,
13,
2617,
7,
10236,
2004,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
10267,
425,
22203,
90,
11770,
40,
13,
3351,
282,
283,
35191,
500,
22203,
90,
43879,
2414,
11709,
22784,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
22203,
7,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
12195,
58,
12,
19,
13,
15,
11,
532,
18,
13,
15,
4357,
685,
55,
58,
16,
4357,
1395,
58,
17,
11907,
828,
657,
13,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
13070,
40,
13,
2617,
7,
10236,
2004,
11,
13070,
40,
13,
10267,
425,
41166,
22784,
13070,
40,
13,
23678,
62,
50,
24290,
8,
198,
220,
220,
220,
13070,
40,
13,
40085,
1096,
0,
7,
10236,
2004,
8,
628,
220,
220,
220,
26181,
796,
13070,
40,
13,
1136,
7,
10236,
2004,
11,
13070,
40,
13,
10267,
425,
11395,
28955,
628,
220,
220,
220,
2488,
9288,
26181,
15139,
230,
532,
24,
13,
2091,
20370,
379,
349,
796,
352,
68,
12,
17,
628,
220,
220,
220,
1395,
81,
796,
13070,
40,
13,
1136,
7,
10236,
2004,
11,
13070,
40,
13,
43015,
23828,
282,
22784,
1395,
8,
628,
220,
220,
220,
2488,
9288,
1395,
81,
15139,
230,
685,
16,
13,
24840,
11,
352,
13,
24840,
60,
379,
349,
796,
352,
68,
12,
17,
198,
198,
437,
198,
198,
8818,
300,
79,
62,
259,
62,
50,
6322,
62,
48203,
62,
687,
7,
10236,
2004,
8,
628,
220,
220,
220,
13070,
40,
13,
28920,
0,
7,
10236,
2004,
8,
198,
220,
220,
220,
2488,
9288,
13070,
40,
13,
271,
62,
28920,
7,
10236,
2004,
8,
628,
220,
220,
220,
1303,
751,
838,
9633,
532,
691,
40039,
318,
5981,
198,
220,
220,
220,
1395,
796,
13070,
40,
13,
2860,
62,
25641,
2977,
7,
10236,
2004,
11,
838,
8,
628,
220,
220,
220,
1303,
751,
264,
26059,
17778,
532,
691,
13359,
46436,
1469,
35270,
286,
262,
40039,
198,
220,
220,
220,
410,
709,
796,
13070,
40,
13,
38469,
5189,
23907,
2977,
7,
55,
8,
198,
220,
220,
220,
269,
55,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
10236,
2004,
11,
410,
709,
11,
13070,
40,
13,
21604,
1800,
13900,
485,
69,
9504,
34,
505,
14824,
9248,
7,
19,
4008,
628,
220,
220,
220,
269,
16,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
10236,
2004,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
22203,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
17,
13,
15,
11,
1395,
58,
16,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
18,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
21,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
16589,
657,
13,
15,
828,
13070,
40,
13,
36,
13255,
2514,
7,
19,
13,
15,
4008,
628,
220,
220,
220,
269,
17,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
10236,
2004,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
22203,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
16,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
17,
13,
15,
11,
1395,
58,
18,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
940,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
16589,
657,
13,
15,
828,
13070,
40,
13,
36,
13255,
2514,
7,
19,
13,
15,
4008,
628,
220,
220,
220,
13070,
40,
13,
2617,
7,
10236,
2004,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
10267,
425,
22203,
90,
11770,
40,
13,
3351,
282,
283,
35191,
500,
22203,
90,
43879,
2414,
11709,
22784,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
22203,
7,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
12195,
58,
12,
19,
13,
15,
11,
532,
18,
13,
15,
4357,
685,
55,
58,
16,
4357,
1395,
58,
18,
11907,
828,
657,
13,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
13070,
40,
13,
2617,
7,
10236,
2004,
11,
13070,
40,
13,
10267,
425,
41166,
22784,
13070,
40,
13,
23678,
62,
50,
24290,
8,
198,
220,
220,
220,
13070,
40,
13,
40085,
1096,
0,
7,
10236,
2004,
8,
628,
220,
220,
220,
26181,
796,
13070,
40,
13,
1136,
7,
10236,
2004,
11,
13070,
40,
13,
10267,
425,
11395,
28955,
628,
220,
220,
220,
2488,
9288,
26181,
15139,
230,
532,
24,
13,
2091,
20370,
379,
349,
796,
352,
68,
12,
17,
628,
220,
220,
220,
1395,
81,
796,
13070,
40,
13,
1136,
7,
10236,
2004,
11,
13070,
40,
13,
43015,
23828,
282,
22784,
1395,
8,
628,
220,
220,
220,
2488,
9288,
1395,
81,
15139,
230,
685,
16,
13,
24840,
11,
764,
15,
11,
352,
13,
24840,
11,
764,
15,
11,
764,
15,
11,
764,
15,
11,
764,
15,
11,
764,
15,
11,
764,
15,
11,
764,
15,
60,
379,
349,
796,
352,
68,
12,
17,
198,
198,
437,
198,
198,
8818,
300,
79,
62,
259,
62,
50,
6322,
62,
500,
13237,
62,
687,
7,
40085,
7509,
8,
628,
220,
220,
220,
13070,
40,
13,
28920,
0,
7,
40085,
7509,
8,
198,
220,
220,
220,
2488,
9288,
13070,
40,
13,
271,
62,
28920,
7,
40085,
7509,
8,
628,
220,
220,
220,
1303,
751,
838,
9633,
532,
691,
40039,
318,
5981,
198,
220,
220,
220,
1395,
796,
13070,
40,
13,
2860,
62,
25641,
2977,
7,
40085,
7509,
11,
513,
8,
628,
220,
220,
220,
1303,
751,
264,
26059,
17778,
532,
691,
13359,
46436,
1469,
35270,
286,
262,
40039,
198,
220,
220,
220,
410,
709,
796,
13070,
40,
13,
38469,
5189,
23907,
2977,
7,
55,
8,
198,
220,
220,
220,
269,
55,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
410,
709,
11,
13070,
40,
13,
21604,
1800,
13900,
485,
69,
9504,
34,
505,
14824,
9248,
7,
17,
4008,
628,
220,
220,
220,
269,
16,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
38469,
35191,
500,
22203,
7,
11770,
40,
13,
38469,
35191,
500,
40596,
12195,
58,
16,
11,
16,
38430,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
17,
13,
15,
11,
1395,
58,
16,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
18,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
828,
25915,
19,
13,
15,
46570,
13070,
40,
13,
15419,
1930,
20288,
7,
16,
4008,
628,
220,
220,
220,
269,
17,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
38469,
35191,
500,
22203,
7,
11770,
40,
13,
38469,
35191,
500,
40596,
12195,
58,
16,
11,
16,
38430,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
16,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
17,
13,
15,
11,
1395,
58,
18,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
828,
25915,
19,
13,
15,
46570,
13070,
40,
13,
15419,
1930,
20288,
7,
16,
4008,
628,
220,
220,
220,
13070,
40,
13,
2617,
7,
40085,
7509,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
10267,
425,
22203,
90,
11770,
40,
13,
3351,
282,
283,
35191,
500,
22203,
90,
43879,
2414,
11709,
22784,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13070,
40,
13,
3351,
282,
283,
35191,
500,
22203,
7,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
12195,
58,
19,
13,
15,
11,
513,
13,
15,
4357,
685,
55,
58,
16,
4357,
1395,
58,
18,
11907,
828,
657,
13,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
13070,
40,
13,
2617,
7,
40085,
7509,
11,
13070,
40,
13,
10267,
425,
41166,
22784,
13070,
40,
13,
22921,
62,
50,
24290,
8,
198,
220,
220,
220,
13070,
40,
13,
40085,
1096,
0,
7,
40085,
7509,
8,
628,
220,
220,
220,
26181,
796,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
10267,
425,
11395,
28955,
628,
220,
220,
220,
2488,
9288,
26181,
15139,
230,
860,
13,
2091,
20370,
379,
349,
796,
352,
68,
12,
17,
628,
220,
220,
220,
1395,
81,
796,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
43015,
23828,
282,
22784,
1395,
8,
628,
220,
220,
220,
2488,
9288,
1395,
81,
15139,
230,
685,
16,
13,
24840,
11,
764,
15,
11,
352,
13,
24840,
60,
379,
349,
796,
352,
68,
12,
17,
628,
220,
220,
220,
269,
16,
62,
67,
796,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
3103,
2536,
2913,
36248,
22784,
269,
16,
8,
198,
220,
220,
220,
269,
17,
62,
67,
796,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
3103,
2536,
2913,
36248,
22784,
269,
17,
8,
198,
198,
437,
198,
198,
8818,
264,
26059,
62,
6738,
62,
5908,
72,
7,
40085,
7509,
8,
198,
220,
220,
220,
1303,
949,
1395,
58,
16,
11,
16,
60,
1343,
1395,
58,
17,
11,
17,
60,
220,
220,
220,
3509,
331,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
1395,
58,
17,
11,
16,
60,
796,
352,
220,
220,
220,
220,
220,
220,
220,
220,
685,
15,
220,
220,
331,
14,
17,
220,
220,
220,
220,
685,
352,
220,
657,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
14,
17,
657,
220,
220,
220,
19841,
220,
220,
657,
220,
352,
60,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
1395,
18189,
657,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
1479,
198,
220,
220,
220,
1303,
13123,
4402,
4610,
25,
198,
220,
220,
220,
1303,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
2343,
236,
249,
352,
220,
220,
352,
2343,
236,
252,
198,
220,
220,
220,
1303,
1395,
796,
2343,
236,
250,
220,
220,
220,
220,
220,
220,
2343,
236,
253,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
796,
362,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
2343,
236,
251,
352,
220,
220,
352,
2343,
236,
254,
198,
220,
220,
220,
13070,
40,
13,
28920,
0,
7,
40085,
7509,
8,
198,
220,
220,
220,
2488,
9288,
13070,
40,
13,
271,
62,
28920,
7,
40085,
7509,
8,
628,
220,
220,
220,
1395,
796,
13070,
40,
13,
2860,
62,
25641,
2977,
7,
40085,
7509,
11,
513,
8,
628,
220,
220,
220,
410,
709,
796,
13070,
40,
13,
38469,
5189,
23907,
2977,
7,
55,
8,
198,
220,
220,
220,
269,
55,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
410,
709,
11,
13070,
40,
13,
21604,
1800,
13900,
485,
69,
9504,
34,
505,
14824,
9248,
7,
17,
4008,
628,
220,
220,
220,
269,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
13070,
40,
13,
38469,
35191,
500,
22203,
26933,
11770,
40,
13,
38469,
35191,
500,
40596,
7,
16,
11,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
17,
60,
4008,
4357,
25915,
16,
13,
15,
46570,
13070,
40,
13,
57,
27498,
7,
16,
4008,
628,
220,
220,
220,
13070,
40,
13,
2617,
7,
40085,
7509,
11,
13070,
40,
13,
10267,
425,
22203,
90,
11770,
40,
13,
3351,
282,
283,
35191,
500,
22203,
90,
43879,
2414,
11709,
22784,
13070,
40,
13,
3351,
282,
283,
35191,
500,
22203,
7,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
12195,
16,
13,
15,
11,
685,
55,
58,
16,
4357,
1395,
58,
18,
11907,
828,
657,
13,
15,
4008,
628,
220,
220,
220,
13070,
40,
13,
2617,
7,
40085,
7509,
11,
13070,
40,
13,
10267,
425,
41166,
22784,
13070,
40,
13,
23678,
62,
50,
24290,
8,
198,
220,
220,
220,
13070,
40,
13,
40085,
1096,
0,
7,
40085,
7509,
8,
628,
220,
220,
220,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
15156,
17928,
19580,
28955,
6624,
13070,
40,
13,
3185,
51,
3955,
1847,
628,
220,
220,
220,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
23828,
282,
19580,
28955,
6624,
13070,
40,
13,
15112,
1921,
34563,
62,
16402,
12394,
198,
220,
220,
220,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
36248,
19580,
28955,
6624,
13070,
40,
13,
15112,
1921,
34563,
62,
16402,
12394,
628,
220,
220,
220,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
10267,
425,
11395,
28955,
15139,
230,
362,
379,
349,
28,
16,
68,
12,
17,
628,
220,
220,
220,
1395,
85,
796,
3392,
7,
18,
8,
198,
220,
220,
220,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
43015,
23828,
282,
22784,
1395,
8,
15139,
230,
1395,
85,
379,
349,
28,
16,
68,
12,
17,
198,
220,
220,
220,
1303,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
3103,
2536,
2913,
23828,
282,
22784,
269,
55,
8,
15139,
230,
1395,
85,
379,
349,
28,
16,
68,
12,
17,
628,
220,
220,
220,
1303,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
3103,
2536,
2913,
36248,
22784,
269,
8,
15139,
230,
362,
379,
349,
28,
16,
68,
12,
17,
198,
220,
220,
220,
1303,
2488,
12860,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
3103,
2536,
2913,
36248,
22784,
269,
8,
198,
198,
437,
198,
198,
8818,
4274,
62,
21282,
79,
62,
6738,
62,
5908,
72,
7,
40085,
7509,
8,
198,
220,
220,
220,
1303,
8494,
11640,
734,
286,
777,
25,
198,
220,
220,
220,
1303,
949,
1395,
58,
16,
11,
16,
60,
1343,
1395,
58,
17,
11,
17,
60,
220,
220,
220,
3509,
331,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
1395,
58,
17,
11,
16,
60,
796,
352,
220,
220,
220,
220,
220,
220,
220,
220,
685,
15,
220,
220,
331,
14,
17,
220,
220,
220,
220,
685,
352,
220,
657,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
14,
17,
657,
220,
220,
220,
19841,
220,
220,
657,
220,
352,
60,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
1395,
18189,
657,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
1479,
198,
220,
220,
220,
1303,
13123,
4402,
4610,
25,
198,
220,
220,
220,
1303,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
2343,
236,
249,
352,
220,
220,
352,
2343,
236,
252,
198,
220,
220,
220,
1303,
1395,
796,
2343,
236,
250,
220,
220,
220,
220,
220,
220,
2343,
236,
253,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
796,
362,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
2343,
236,
251,
352,
220,
220,
352,
2343,
236,
254,
198,
220,
220,
220,
13070,
40,
13,
28920,
0,
7,
40085,
7509,
8,
198,
220,
220,
220,
2488,
9288,
13070,
40,
13,
271,
62,
28920,
7,
40085,
7509,
8,
628,
220,
220,
220,
1395,
796,
13070,
40,
13,
2860,
62,
25641,
2977,
7,
40085,
7509,
11,
513,
8,
198,
220,
220,
220,
575,
796,
13070,
40,
13,
2860,
62,
25641,
2977,
7,
40085,
7509,
11,
513,
8,
628,
220,
220,
220,
410,
709,
796,
13070,
40,
13,
38469,
5189,
23907,
2977,
7,
55,
8,
198,
220,
220,
220,
410,
709,
17,
796,
13070,
40,
13,
38469,
5189,
23907,
2977,
7,
56,
8,
198,
220,
220,
220,
269,
55,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
410,
709,
11,
13070,
40,
13,
21604,
1800,
13900,
485,
69,
9504,
34,
505,
14824,
9248,
7,
17,
4008,
198,
220,
220,
220,
269,
56,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
410,
709,
17,
11,
13070,
40,
13,
21604,
1800,
13900,
485,
69,
9504,
34,
505,
14824,
9248,
7,
17,
4008,
628,
220,
220,
220,
269,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
13070,
40,
13,
38469,
35191,
500,
22203,
26933,
11770,
40,
13,
38469,
35191,
500,
40596,
7,
16,
11,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
17,
60,
4008,
4357,
25915,
16,
13,
15,
46570,
13070,
40,
13,
57,
27498,
7,
16,
4008,
198,
220,
220,
220,
269,
17,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
13070,
40,
13,
38469,
35191,
500,
22203,
26933,
11770,
40,
13,
38469,
35191,
500,
40596,
7,
16,
11,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
575,
58,
17,
60,
4008,
4357,
25915,
16,
13,
15,
46570,
13070,
40,
13,
57,
27498,
7,
16,
4008,
628,
220,
220,
220,
13070,
40,
13,
2617,
7,
40085,
7509,
11,
13070,
40,
13,
10267,
425,
22203,
90,
11770,
40,
13,
3351,
282,
283,
35191,
500,
22203,
90,
43879,
2414,
11709,
22784,
13070,
40,
13,
3351,
282,
283,
35191,
500,
22203,
7,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
12195,
16,
13,
15,
11,
685,
55,
58,
16,
4357,
1395,
58,
437,
4357,
575,
58,
16,
4357,
575,
58,
437,
11907,
828,
657,
13,
15,
4008,
628,
220,
220,
220,
13070,
40,
13,
2617,
7,
40085,
7509,
11,
13070,
40,
13,
10267,
425,
41166,
22784,
13070,
40,
13,
23678,
62,
50,
24290,
8,
198,
220,
220,
220,
13070,
40,
13,
40085,
1096,
0,
7,
40085,
7509,
8,
628,
220,
220,
220,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
15156,
17928,
19580,
28955,
6624,
13070,
40,
13,
3185,
51,
3955,
1847,
628,
220,
220,
220,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
23828,
282,
19580,
28955,
6624,
13070,
40,
13,
15112,
1921,
34563,
62,
16402,
12394,
198,
220,
220,
220,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
36248,
19580,
28955,
6624,
13070,
40,
13,
15112,
1921,
34563,
62,
16402,
12394,
628,
220,
220,
220,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
10267,
425,
11395,
28955,
15139,
230,
362,
9,
17,
379,
349,
28,
16,
68,
12,
17,
628,
220,
220,
220,
1395,
85,
796,
3392,
7,
18,
8,
198,
220,
220,
220,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
43015,
23828,
282,
22784,
1395,
8,
15139,
230,
1395,
85,
379,
349,
28,
16,
68,
12,
17,
198,
220,
220,
220,
575,
85,
796,
3392,
7,
18,
8,
198,
220,
220,
220,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
43015,
23828,
282,
22784,
575,
8,
15139,
230,
575,
85,
379,
349,
28,
16,
68,
12,
17,
198,
220,
220,
220,
1303,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
3103,
2536,
2913,
23828,
282,
22784,
269,
55,
8,
15139,
230,
1395,
85,
379,
349,
28,
16,
68,
12,
17,
628,
220,
220,
220,
1303,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
3103,
2536,
2913,
36248,
22784,
269,
8,
15139,
230,
362,
379,
349,
28,
16,
68,
12,
17,
198,
220,
220,
220,
1303,
2488,
12860,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
3103,
2536,
2913,
36248,
22784,
269,
8,
198,
198,
437,
198,
198,
8818,
4274,
62,
21282,
79,
62,
4480,
62,
646,
489,
16856,
7,
40085,
7509,
8,
628,
220,
220,
220,
13070,
40,
13,
28920,
0,
7,
40085,
7509,
8,
628,
220,
220,
220,
2124,
796,
13070,
40,
13,
2860,
62,
45286,
7,
40085,
7509,
8,
198,
220,
220,
220,
1395,
796,
685,
87,
11,
2124,
11,
2124,
60,
628,
220,
220,
220,
410,
709,
796,
13070,
40,
13,
38469,
5189,
23907,
2977,
7,
55,
8,
198,
220,
220,
220,
269,
55,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
410,
709,
11,
13070,
40,
13,
21604,
1800,
13900,
485,
69,
9504,
34,
505,
14824,
9248,
7,
17,
4008,
628,
220,
220,
220,
269,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
13070,
40,
13,
38469,
35191,
500,
22203,
26933,
11770,
40,
13,
38469,
35191,
500,
40596,
7,
16,
11,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
17,
60,
4008,
4357,
25915,
16,
13,
15,
46570,
13070,
40,
13,
57,
27498,
7,
16,
4008,
628,
220,
220,
220,
13070,
40,
13,
2617,
7,
40085,
7509,
11,
13070,
40,
13,
10267,
425,
22203,
90,
11770,
40,
13,
3351,
282,
283,
35191,
500,
22203,
90,
43879,
2414,
11709,
22784,
13070,
40,
13,
3351,
282,
283,
35191,
500,
22203,
7,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
12195,
16,
13,
15,
11,
685,
55,
58,
16,
4357,
1395,
58,
18,
11907,
828,
657,
13,
15,
4008,
628,
220,
220,
220,
13070,
40,
13,
2617,
7,
40085,
7509,
11,
13070,
40,
13,
10267,
425,
41166,
22784,
13070,
40,
13,
23678,
62,
50,
24290,
8,
198,
220,
220,
220,
13070,
40,
13,
40085,
1096,
0,
7,
40085,
7509,
8,
628,
220,
220,
220,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
15156,
17928,
19580,
28955,
6624,
13070,
40,
13,
3185,
51,
3955,
1847,
628,
220,
220,
220,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
23828,
282,
19580,
28955,
6624,
13070,
40,
13,
15112,
1921,
34563,
62,
16402,
12394,
198,
220,
220,
220,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
36248,
19580,
28955,
6624,
13070,
40,
13,
15112,
1921,
34563,
62,
16402,
12394,
628,
220,
220,
220,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
10267,
425,
11395,
28955,
15139,
230,
362,
379,
349,
28,
16,
68,
12,
17,
628,
220,
220,
220,
1395,
85,
796,
3392,
7,
18,
8,
198,
220,
220,
220,
2488,
9288,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
43015,
23828,
282,
22784,
1395,
8,
15139,
230,
1395,
85,
379,
349,
28,
16,
68,
12,
17,
198,
198,
437,
198,
198,
8818,
264,
26059,
62,
15466,
7,
40085,
7509,
8,
198,
220,
220,
220,
1303,
3740,
1378,
268,
13,
31266,
13,
2398,
14,
15466,
14,
13900,
485,
69,
9504,
62,
23065,
2229,
198,
220,
220,
220,
13070,
40,
13,
28920,
0,
7,
40085,
7509,
8,
198,
220,
220,
220,
2488,
9288,
13070,
40,
13,
271,
62,
28920,
7,
40085,
7509,
8,
628,
220,
220,
220,
1395,
796,
13070,
40,
13,
2860,
62,
25641,
2977,
7,
40085,
7509,
11,
718,
8,
628,
220,
220,
220,
410,
709,
796,
13070,
40,
13,
38469,
5189,
23907,
2977,
7,
55,
8,
198,
220,
220,
220,
269,
55,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
410,
709,
11,
13070,
40,
13,
21604,
1800,
13900,
485,
69,
9504,
34,
505,
14824,
9248,
7,
18,
4008,
628,
220,
220,
220,
22927,
16,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
13070,
40,
13,
38469,
35191,
500,
22203,
26933,
11770,
40,
13,
38469,
35191,
500,
40596,
7,
16,
11,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
16,
60,
4008,
4357,
25915,
16,
13,
15,
46570,
13070,
40,
13,
57,
27498,
7,
16,
4008,
198,
220,
220,
220,
22927,
16,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
13070,
40,
13,
38469,
35191,
500,
22203,
26933,
11770,
40,
13,
38469,
35191,
500,
40596,
7,
16,
11,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
18,
60,
4008,
4357,
25915,
16,
13,
15,
46570,
13070,
40,
13,
57,
27498,
7,
16,
4008,
198,
220,
220,
220,
22927,
16,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
13070,
40,
13,
38469,
35191,
500,
22203,
26933,
11770,
40,
13,
38469,
35191,
500,
40596,
7,
16,
11,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
21,
60,
4008,
4357,
25915,
16,
13,
15,
46570,
13070,
40,
13,
57,
27498,
7,
16,
4008,
628,
220,
220,
220,
269,
1065,
62,
549,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
13070,
40,
13,
38469,
35191,
500,
22203,
26933,
11770,
40,
13,
38469,
35191,
500,
40596,
7,
16,
11,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
17,
60,
4008,
4357,
685,
15,
13,
16,
46570,
13070,
40,
13,
15419,
1930,
20288,
7,
16,
4008,
220,
220,
1303,
2124,
19841,
532,
15,
13,
16,
4613,
2124,
1343,
657,
13,
16,
19841,
657,
198,
220,
220,
220,
269,
1065,
62,
23160,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
13070,
40,
13,
38469,
35191,
500,
22203,
26933,
11770,
40,
13,
38469,
35191,
500,
40596,
7,
16,
11,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
32590,
16,
13,
15,
11,
1395,
58,
17,
60,
4008,
4357,
25915,
15,
13,
17,
46570,
13070,
40,
13,
15419,
1930,
20288,
7,
16,
4008,
1303,
2124,
18189,
532,
15,
13,
17,
4613,
532,
87,
1343,
532,
15,
13,
17,
19841,
657,
628,
220,
220,
220,
269,
1954,
62,
549,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
13070,
40,
13,
38469,
35191,
500,
22203,
26933,
11770,
40,
13,
38469,
35191,
500,
40596,
7,
16,
11,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
7,
16,
13,
15,
11,
1395,
58,
20,
60,
4008,
4357,
25915,
15,
13,
20,
46570,
13070,
40,
13,
15419,
1930,
20288,
7,
16,
4008,
1303,
2124,
19841,
657,
13,
20,
4613,
220,
2124,
532,
657,
13,
20,
19841,
657,
198,
220,
220,
220,
269,
1954,
62,
23160,
796,
13070,
40,
13,
2860,
62,
1102,
2536,
2913,
7,
40085,
7509,
11,
13070,
40,
13,
38469,
35191,
500,
22203,
26933,
11770,
40,
13,
38469,
35191,
500,
40596,
7,
16,
11,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
32590,
16,
13,
15,
11,
1395,
58,
20,
60,
4008,
4357,
685,
15,
13,
19,
46570,
13070,
40,
13,
15419,
1930,
20288,
7,
16,
4008,
1303,
2124,
18189,
657,
13,
19,
4613,
532,
87,
1343,
657,
13,
19,
19841,
657,
628,
220,
220,
220,
13070,
40,
13,
2617,
7,
40085,
7509,
11,
13070,
40,
13,
10267,
425,
22203,
90,
11770,
40,
13,
3351,
282,
283,
35191,
500,
22203,
90,
43879,
2414,
11709,
22784,
13070,
40,
13,
3351,
282,
283,
35191,
500,
22203,
7,
11770,
40,
13,
3351,
282,
283,
35191,
500,
40596,
12195,
16,
13,
15,
11,
685,
55,
58,
19,
11907,
828,
657,
13,
15,
4008,
628,
220,
220,
220,
13070,
40,
13,
2617,
7,
40085,
7509,
11,
13070,
40,
13,
10267,
425,
41166,
22784,
13070,
40,
13,
23678,
62,
50,
24290,
8,
628,
220,
220,
220,
13070,
40,
13,
40085,
1096,
0,
7,
40085,
7509,
8,
628,
220,
220,
220,
26181,
796,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
10267,
425,
11395,
28955,
198,
220,
220,
220,
2488,
9288,
26181,
15139,
230,
532,
15,
13,
32196,
379,
349,
28,
16,
68,
12,
17,
628,
220,
220,
220,
13070,
40,
13,
2617,
7,
40085,
7509,
11,
13070,
40,
13,
10267,
425,
41166,
22784,
13070,
40,
13,
22921,
62,
50,
24290,
8,
628,
220,
220,
220,
13070,
40,
13,
40085,
1096,
0,
7,
40085,
7509,
8,
628,
220,
220,
220,
26181,
796,
13070,
40,
13,
1136,
7,
40085,
7509,
11,
13070,
40,
13,
10267,
425,
11395,
28955,
198,
220,
220,
220,
2488,
9288,
26181,
15139,
230,
657,
13,
23,
4761,
379,
349,
28,
16,
68,
12,
17,
198,
198,
437,
628,
198,
36439,
62,
34431,
7,
40085,
7509,
62,
10236,
2004,
8,
198,
36439,
62,
34431,
62,
17,
62,
16,
67,
62,
21282,
79,
7,
40085,
7509,
62,
10236,
2004,
8,
198,
34431,
62,
259,
62,
50,
6322,
62,
48203,
62,
687,
7,
40085,
7509,
62,
10236,
2004,
8,
198,
34431,
62,
259,
62,
50,
6322,
62,
500,
13237,
62,
687,
7,
40085,
7509,
62,
10236,
2004,
8,
198,
21282,
79,
62,
6738,
62,
5908,
72,
7,
40085,
7509,
62,
10236,
2004,
8,
198,
23352,
62,
21282,
79,
62,
6738,
62,
5908,
72,
7,
40085,
7509,
62,
10236,
2004,
8,
198,
23352,
62,
21282,
79,
62,
4480,
62,
646,
489,
16856,
7,
40085,
7509,
62,
10236,
2004,
8,
198,
21282,
79,
62,
15466,
7,
40085,
7509,
62,
10236,
2004,
8,
198,
198,
2,
3601,
1332,
198,
9979,
6436,
7509,
62,
4798,
796,
13070,
40,
13,
8625,
415,
9386,
7,
198,
220,
220,
220,
7499,
3784,
2964,
87,
50,
6322,
13,
27871,
320,
7509,
7,
198,
220,
220,
220,
220,
220,
220,
220,
2604,
62,
19503,
80,
796,
838,
11,
2604,
62,
19011,
577,
796,
2081,
11,
19781,
62,
19011,
577,
796,
2081,
11,
7083,
62,
6404,
796,
2081,
11,
7083,
62,
6404,
17,
796,
2081,
11,
198,
220,
220,
220,
220,
220,
220,
220,
284,
75,
62,
43554,
796,
352,
68,
12,
19,
11,
284,
75,
62,
5036,
292,
2247,
796,
352,
68,
12,
19,
828,
198,
220,
220,
220,
351,
62,
9458,
62,
4906,
796,
48436,
2414,
8,
198,
21282,
79,
62,
15466,
7,
40085,
7509,
62,
4798,
8,
198,
198,
2,
304,
328,
1540,
690,
198,
12286,
62,
82,
14375,
796,
13070,
40,
13,
1136,
7,
40085,
7509,
62,
10236,
2004,
11,
13070,
40,
13,
27369,
27871,
320,
7509,
33682,
7203,
68,
9235,
14375,
48774,
198,
1084,
62,
7857,
62,
74,
563,
27086,
62,
68,
9235,
796,
13070,
40,
13,
1136,
7,
40085,
7509,
62,
10236,
2004,
11,
13070,
40,
13,
27369,
27871,
320,
7509,
33682,
7203,
1084,
62,
7857,
62,
74,
563,
27086,
62,
68,
9235,
48774,
198,
11770,
40,
13,
2617,
7,
40085,
7509,
62,
10236,
2004,
11,
13070,
40,
13,
27369,
27871,
320,
7509,
33682,
7203,
68,
9235,
14375,
12340,
352,
8,
198,
11770,
40,
13,
2617,
7,
40085,
7509,
62,
10236,
2004,
11,
13070,
40,
13,
27369,
27871,
320,
7509,
33682,
7203,
1084,
62,
7857,
62,
74,
563,
27086,
62,
68,
9235,
12340,
352,
8,
198,
21282,
79,
62,
15466,
7,
40085,
7509,
62,
10236,
2004,
8,
198,
11770,
40,
13,
2617,
7,
40085,
7509,
62,
10236,
2004,
11,
13070,
40,
13,
27369,
27871,
320,
7509,
33682,
7203,
68,
9235,
14375,
12340,
362,
8,
198,
21282,
79,
62,
15466,
7,
40085,
7509,
62,
10236,
2004,
8,
198,
11770,
40,
13,
2617,
7,
40085,
7509,
62,
10236,
2004,
11,
13070,
40,
13,
27369,
27871,
320,
7509,
33682,
7203,
1084,
62,
7857,
62,
74,
563,
27086,
62,
68,
9235,
12340,
949,
62,
7857,
62,
74,
563,
27086,
62,
68,
9235,
8,
198,
11770,
40,
13,
2617,
7,
40085,
7509,
62,
10236,
2004,
11,
13070,
40,
13,
27369,
27871,
320,
7509,
33682,
7203,
68,
9235,
14375,
12340,
4277,
62,
82,
14375,
8,
198,
11770,
40,
13,
2617,
7,
40085,
7509,
62,
10236,
2004,
11,
13070,
40,
13,
27369,
27871,
320,
7509,
33682,
7203,
12853,
62,
68,
328,
62,
12501,
3361,
12340,
2081,
8,
198,
21282,
79,
62,
15466,
7,
40085,
7509,
62,
10236,
2004,
8,
198,
11770,
40,
13,
2617,
7,
40085,
7509,
62,
10236,
2004,
11,
13070,
40,
13,
27369,
27871,
320,
7509,
33682,
7203,
12853,
62,
68,
328,
62,
12501,
3361,
12340,
3991,
8,
198
] | 2.027293 | 6,705 |
#=
# MNIST
We begin by importing the required packages.
We load MNIST via the MLDatasets.jl package.
=#
import Makie
import CairoMakie
import MLDatasets
import Flux
import RestrictedBoltzmannMachines as RBMs
import ConvolutionalRBMs as ConvRBMs
using Statistics: mean, var, std
using ValueHistories: MVHistory
using Random: bitrand
using RestrictedBoltzmannMachines: visible, hidden, weights, log_pseudolikelihood, transfer_sample
nothing #hide
#=
Useful function to plot MNIST digits.
=#
"""
imggrid(A)
Given a four dimensional tensor `A` of size `(width, height, ncols, nrows)`
containing `width x height` images in a grid of `nrows x ncols`, this returns
a matrix of size `(width * ncols, height * nrows)`, that can be plotted in a heatmap
to display all images.
"""
function imggrid(A::AbstractArray{<:Any,4})
(width, height, ncols, nrows) = size(A)
return reshape(permutedims(A, (1,3,2,4)), width * ncols, height * nrows)
end
imggrid_border(A::AbstractArray{<:Any,4}, borderval = 1) = imggrid(bordered(A, borderval))
function bordered(A::AbstractArray{<:Any,4}, borderval = 1)
return mapslices(A; dims=(1,2)) do img::AbstractMatrix
[ fill(borderval, 1, size(img, 2) + 2);
fill(borderval, size(img, 1)) img fill(borderval, size(img, 1));
fill(borderval, 1, size(img, 2) + 2)
]
end
end
#=
Load MNIST dataset.
=#
Float = Float32
train_x, train_y = MLDatasets.MNIST.traindata()
digit = 2
train_x = Array{Float}(train_x[:, :, train_y .== digit] .≥ 0.5)
train_y = train_y[train_y .== digit]
println(length(train_y), " training images (for digit = $digit)")
nothing #hide
# Reshape for convolutional input
train_x = reshape(train_x, 1, 28, 28, :) # channel dims, input dims, batch dims
nothing #hide
# Initialize the convolutional RBM.
rbm = ConvRBMs.BinaryConvRBM(Float, 1, 16, (15,15); pad=:same, pool=true)
RBMs.initialize!(rbm, train_x)
nothing #hide
# Pseudolikelihood before training
idx = rand(1:size(train_x)[end], 256)
mean(@time log_pseudolikelihood(rbm, train_x[:,:,:,idx]))
# Initialize training
batchsize = 256
optim = Flux.ADAM()
vm = transfer_sample(visible(rbm), falses(1, 28, 28, batchsize)) # fantasy chains
history = MVHistory()
nothing #hide
# Train!
@time for iter in 1:20
ConvRBMs.pcd!(rbm, train_x; vm, history, batchsize, optim, epochs=5)
lpl = log_pseudolikelihood(rbm, train_x[:, :, :, rand(1:size(train_x)[end], 1024)])
push!(history, :lpl_ave, mean(lpl))
push!(history, :lpl_std, std(lpl))
end
nothing #hide
# Plot of log-pseudolikelihood of trian data during learning.
fig = Makie.Figure(resolution=(600,300))
ax = Makie.Axis(fig[1,1], xlabel = "train time", ylabel="pseudolikelihood")
Makie.band!(ax, get(history, :lpl_ave)[1],
get(history, :lpl_ave)[2] - get(history, :lpl_std)[2]/2,
get(history, :lpl_ave)[2] + get(history, :lpl_std)[2]/2,
color=:lightblue
)
Makie.lines!(ax, get(history, :lpl_ave)..., color=:blue)
fig
#=
Now let's generate some random RBM samples.
=#
nrows, ncols = 10, 15
nsteps = 1000
fantasy_F = zeros(nrows*ncols, nsteps)
fantasy_x = bitrand(1,28,28,nrows*ncols)
fantasy_F[:,1] .= RBMs.free_energy(rbm, fantasy_x)
@time for t in 2:nsteps
fantasy_x .= RBMs.sample_v_from_v(rbm, fantasy_x)
fantasy_F[:,t] .= RBMs.free_energy(rbm, fantasy_x)
end
nothing #hide
# Check equilibration of sampling
fig = Makie.Figure(resolution=(400,300))
ax = Makie.Axis(fig[1,1], xlabel="sampling time", ylabel="free energy")
fantasy_F_μ = vec(mean(fantasy_F; dims=1))
fantasy_F_σ = vec(std(fantasy_F; dims=1))
Makie.band!(ax, 1:nsteps, fantasy_F_μ - fantasy_F_σ/2, fantasy_F_μ + fantasy_F_σ/2)
Makie.lines!(ax, 1:nsteps, fantasy_F_μ)
fig
# Plot the resulting samples.
fig = Makie.Figure(resolution=(40ncols, 40nrows))
ax = Makie.Axis(fig[1,1], yreversed=true)
Makie.image!(ax, imggrid(reshape(fantasy_x, 28, 28, ncols, nrows)), colorrange=(1,0))
Makie.hidedecorations!(ax)
Makie.hidespines!(ax)
fig
# Plot the filters learned
wncols = 4; wnrows = 4
fig = Makie.Figure(resolution=(80wncols, 80wnrows))
ax = Makie.Axis(fig[1,1], yreversed=true)
Makie.image!(ax, imggrid_border(reshape(rbm.w ./ maximum(abs, rbm.w; dims=(2,3)), 15, 15, wncols, wnrows)))
Makie.hidedecorations!(ax)
Makie.hidespines!(ax)
fig
| [
2,
28,
198,
2,
29060,
8808,
198,
198,
1135,
2221,
416,
33332,
262,
2672,
10392,
13,
198,
1135,
3440,
29060,
8808,
2884,
262,
10373,
27354,
292,
1039,
13,
20362,
5301,
13,
198,
46249,
198,
198,
11748,
15841,
494,
198,
11748,
23732,
44,
461,
494,
198,
11748,
10373,
27354,
292,
1039,
198,
11748,
1610,
2821,
198,
11748,
8324,
20941,
33,
5978,
89,
9038,
49999,
1127,
355,
17986,
10128,
198,
11748,
34872,
2122,
282,
27912,
10128,
355,
34872,
27912,
10128,
198,
3500,
14370,
25,
1612,
11,
1401,
11,
14367,
198,
3500,
11052,
13749,
1749,
25,
32947,
18122,
198,
3500,
14534,
25,
1643,
25192,
198,
3500,
8324,
20941,
33,
5978,
89,
9038,
49999,
1127,
25,
7424,
11,
7104,
11,
19590,
11,
2604,
62,
7752,
463,
349,
522,
11935,
11,
4351,
62,
39873,
198,
22366,
1303,
24717,
198,
198,
2,
28,
198,
11041,
913,
2163,
284,
7110,
29060,
8808,
19561,
13,
198,
46249,
198,
198,
37811,
198,
220,
220,
220,
545,
1130,
6058,
7,
32,
8,
198,
198,
15056,
257,
1440,
38517,
11192,
273,
4600,
32,
63,
286,
2546,
4600,
7,
10394,
11,
6001,
11,
299,
4033,
82,
11,
299,
8516,
8,
63,
198,
38301,
4600,
10394,
2124,
6001,
63,
4263,
287,
257,
10706,
286,
4600,
77,
8516,
2124,
299,
4033,
82,
47671,
428,
5860,
198,
64,
17593,
286,
2546,
4600,
7,
10394,
1635,
299,
4033,
82,
11,
6001,
1635,
299,
8516,
8,
47671,
326,
460,
307,
37515,
287,
257,
4894,
8899,
198,
1462,
3359,
477,
4263,
13,
198,
37811,
198,
8818,
545,
1130,
6058,
7,
32,
3712,
23839,
19182,
90,
27,
25,
7149,
11,
19,
30072,
198,
220,
220,
220,
357,
10394,
11,
6001,
11,
299,
4033,
82,
11,
299,
8516,
8,
796,
2546,
7,
32,
8,
198,
220,
220,
220,
1441,
27179,
1758,
7,
16321,
7241,
12078,
7,
32,
11,
357,
16,
11,
18,
11,
17,
11,
19,
36911,
9647,
1635,
299,
4033,
82,
11,
6001,
1635,
299,
8516,
8,
198,
437,
198,
198,
320,
1130,
6058,
62,
20192,
7,
32,
3712,
23839,
19182,
90,
27,
25,
7149,
11,
19,
5512,
275,
585,
712,
282,
796,
352,
8,
796,
545,
1130,
6058,
7,
65,
24071,
7,
32,
11,
275,
585,
712,
282,
4008,
198,
198,
8818,
275,
24071,
7,
32,
3712,
23839,
19182,
90,
27,
25,
7149,
11,
19,
5512,
275,
585,
712,
282,
796,
352,
8,
198,
220,
220,
220,
1441,
8739,
677,
274,
7,
32,
26,
5391,
82,
16193,
16,
11,
17,
4008,
466,
33705,
3712,
23839,
46912,
198,
220,
220,
220,
220,
220,
220,
220,
685,
220,
220,
6070,
7,
65,
585,
712,
282,
11,
352,
11,
2546,
7,
9600,
11,
362,
8,
1343,
362,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6070,
7,
65,
585,
712,
282,
11,
2546,
7,
9600,
11,
352,
4008,
33705,
6070,
7,
65,
585,
712,
282,
11,
2546,
7,
9600,
11,
352,
18125,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6070,
7,
65,
585,
712,
282,
11,
352,
11,
2546,
7,
9600,
11,
362,
8,
1343,
362,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
886,
198,
437,
198,
198,
2,
28,
198,
8912,
29060,
8808,
27039,
13,
198,
46249,
198,
198,
43879,
796,
48436,
2624,
198,
27432,
62,
87,
11,
4512,
62,
88,
796,
10373,
27354,
292,
1039,
13,
39764,
8808,
13,
27432,
7890,
3419,
198,
27003,
796,
362,
198,
27432,
62,
87,
796,
15690,
90,
43879,
92,
7,
27432,
62,
87,
58,
45299,
1058,
11,
4512,
62,
88,
764,
855,
16839,
60,
764,
35705,
98,
657,
13,
20,
8,
198,
27432,
62,
88,
796,
4512,
62,
88,
58,
27432,
62,
88,
764,
855,
16839,
60,
198,
35235,
7,
13664,
7,
27432,
62,
88,
828,
366,
3047,
4263,
357,
1640,
16839,
796,
720,
27003,
8,
4943,
198,
22366,
1303,
24717,
198,
198,
2,
1874,
71,
1758,
329,
3063,
2122,
282,
5128,
198,
198,
27432,
62,
87,
796,
27179,
1758,
7,
27432,
62,
87,
11,
352,
11,
2579,
11,
2579,
11,
14373,
1303,
6518,
5391,
82,
11,
5128,
5391,
82,
11,
15458,
5391,
82,
198,
22366,
1303,
24717,
198,
198,
2,
20768,
1096,
262,
3063,
2122,
282,
371,
12261,
13,
198,
198,
81,
20475,
796,
34872,
27912,
10128,
13,
33,
3219,
3103,
85,
49,
12261,
7,
43879,
11,
352,
11,
1467,
11,
357,
1314,
11,
1314,
1776,
14841,
28,
25,
31642,
11,
5933,
28,
7942,
8,
198,
27912,
10128,
13,
36733,
1096,
0,
7,
81,
20475,
11,
4512,
62,
87,
8,
198,
22366,
1303,
24717,
198,
198,
2,
49693,
463,
349,
522,
11935,
878,
3047,
198,
198,
312,
87,
796,
43720,
7,
16,
25,
7857,
7,
27432,
62,
87,
38381,
437,
4357,
17759,
8,
198,
32604,
7,
31,
2435,
2604,
62,
7752,
463,
349,
522,
11935,
7,
81,
20475,
11,
4512,
62,
87,
58,
45299,
45299,
45299,
312,
87,
60,
4008,
198,
198,
2,
20768,
1096,
3047,
198,
198,
43501,
7857,
796,
17759,
198,
40085,
796,
1610,
2821,
13,
2885,
2390,
3419,
198,
14761,
796,
4351,
62,
39873,
7,
23504,
7,
81,
20475,
828,
27807,
274,
7,
16,
11,
2579,
11,
2579,
11,
15458,
7857,
4008,
1303,
8842,
14659,
198,
23569,
796,
32947,
18122,
3419,
198,
22366,
1303,
24717,
198,
198,
2,
16835,
0,
198,
198,
31,
2435,
329,
11629,
287,
352,
25,
1238,
198,
220,
220,
220,
34872,
27912,
10128,
13,
79,
10210,
0,
7,
81,
20475,
11,
4512,
62,
87,
26,
45887,
11,
2106,
11,
15458,
7857,
11,
6436,
11,
36835,
82,
28,
20,
8,
198,
220,
220,
220,
300,
489,
796,
2604,
62,
7752,
463,
349,
522,
11935,
7,
81,
20475,
11,
4512,
62,
87,
58,
45299,
1058,
11,
1058,
11,
43720,
7,
16,
25,
7857,
7,
27432,
62,
87,
38381,
437,
4357,
28119,
8,
12962,
198,
220,
220,
220,
4574,
0,
7,
23569,
11,
1058,
75,
489,
62,
1015,
11,
1612,
7,
75,
489,
4008,
198,
220,
220,
220,
4574,
0,
7,
23569,
11,
1058,
75,
489,
62,
19282,
11,
14367,
7,
75,
489,
4008,
198,
437,
198,
22366,
1303,
24717,
198,
198,
2,
28114,
286,
2604,
12,
7752,
463,
349,
522,
11935,
286,
1333,
272,
1366,
1141,
4673,
13,
198,
198,
5647,
796,
15841,
494,
13,
11337,
7,
29268,
16193,
8054,
11,
6200,
4008,
198,
897,
796,
15841,
494,
13,
31554,
271,
7,
5647,
58,
16,
11,
16,
4357,
2124,
18242,
796,
366,
27432,
640,
1600,
331,
18242,
2625,
7752,
463,
349,
522,
11935,
4943,
198,
44,
461,
494,
13,
3903,
0,
7,
897,
11,
651,
7,
23569,
11,
1058,
75,
489,
62,
1015,
38381,
16,
4357,
198,
220,
220,
220,
651,
7,
23569,
11,
1058,
75,
489,
62,
1015,
38381,
17,
60,
532,
651,
7,
23569,
11,
1058,
75,
489,
62,
19282,
38381,
17,
60,
14,
17,
11,
198,
220,
220,
220,
651,
7,
23569,
11,
1058,
75,
489,
62,
1015,
38381,
17,
60,
1343,
651,
7,
23569,
11,
1058,
75,
489,
62,
19282,
38381,
17,
60,
14,
17,
11,
198,
220,
220,
220,
3124,
28,
25,
2971,
17585,
198,
8,
198,
44,
461,
494,
13,
6615,
0,
7,
897,
11,
651,
7,
23569,
11,
1058,
75,
489,
62,
1015,
26513,
11,
3124,
28,
25,
17585,
8,
198,
5647,
198,
198,
2,
28,
198,
3844,
1309,
338,
7716,
617,
4738,
371,
12261,
8405,
13,
198,
46249,
198,
198,
77,
8516,
11,
299,
4033,
82,
796,
838,
11,
1315,
198,
77,
20214,
796,
8576,
198,
69,
34921,
62,
37,
796,
1976,
27498,
7,
77,
8516,
9,
77,
4033,
82,
11,
299,
20214,
8,
198,
69,
34921,
62,
87,
796,
1643,
25192,
7,
16,
11,
2078,
11,
2078,
11,
77,
8516,
9,
77,
4033,
82,
8,
198,
69,
34921,
62,
37,
58,
45299,
16,
60,
764,
28,
17986,
10128,
13,
5787,
62,
22554,
7,
81,
20475,
11,
8842,
62,
87,
8,
198,
31,
2435,
329,
256,
287,
362,
25,
77,
20214,
198,
220,
220,
220,
8842,
62,
87,
764,
28,
17986,
10128,
13,
39873,
62,
85,
62,
6738,
62,
85,
7,
81,
20475,
11,
8842,
62,
87,
8,
198,
220,
220,
220,
8842,
62,
37,
58,
45299,
83,
60,
764,
28,
17986,
10128,
13,
5787,
62,
22554,
7,
81,
20475,
11,
8842,
62,
87,
8,
198,
437,
198,
22366,
1303,
24717,
198,
198,
2,
6822,
1602,
22282,
1358,
286,
19232,
198,
198,
5647,
796,
15841,
494,
13,
11337,
7,
29268,
16193,
7029,
11,
6200,
4008,
198,
897,
796,
15841,
494,
13,
31554,
271,
7,
5647,
58,
16,
11,
16,
4357,
2124,
18242,
2625,
37687,
11347,
640,
1600,
331,
18242,
2625,
5787,
2568,
4943,
198,
69,
34921,
62,
37,
62,
34703,
796,
43030,
7,
32604,
7,
69,
34921,
62,
37,
26,
5391,
82,
28,
16,
4008,
198,
69,
34921,
62,
37,
62,
38392,
796,
43030,
7,
19282,
7,
69,
34921,
62,
37,
26,
5391,
82,
28,
16,
4008,
198,
44,
461,
494,
13,
3903,
0,
7,
897,
11,
352,
25,
77,
20214,
11,
8842,
62,
37,
62,
34703,
532,
8842,
62,
37,
62,
38392,
14,
17,
11,
8842,
62,
37,
62,
34703,
1343,
8842,
62,
37,
62,
38392,
14,
17,
8,
198,
44,
461,
494,
13,
6615,
0,
7,
897,
11,
352,
25,
77,
20214,
11,
8842,
62,
37,
62,
34703,
8,
198,
5647,
198,
198,
2,
28114,
262,
7186,
8405,
13,
198,
198,
5647,
796,
15841,
494,
13,
11337,
7,
29268,
16193,
1821,
77,
4033,
82,
11,
2319,
77,
8516,
4008,
198,
897,
796,
15841,
494,
13,
31554,
271,
7,
5647,
58,
16,
11,
16,
4357,
331,
260,
690,
276,
28,
7942,
8,
198,
44,
461,
494,
13,
9060,
0,
7,
897,
11,
545,
1130,
6058,
7,
3447,
1758,
7,
69,
34921,
62,
87,
11,
2579,
11,
2579,
11,
299,
4033,
82,
11,
299,
8516,
36911,
3124,
9521,
16193,
16,
11,
15,
4008,
198,
44,
461,
494,
13,
71,
1384,
721,
273,
602,
0,
7,
897,
8,
198,
44,
461,
494,
13,
71,
1460,
79,
1127,
0,
7,
897,
8,
198,
5647,
198,
198,
2,
28114,
262,
16628,
4499,
198,
198,
675,
4033,
82,
796,
604,
26,
266,
77,
8516,
796,
604,
198,
5647,
796,
15841,
494,
13,
11337,
7,
29268,
16193,
1795,
675,
4033,
82,
11,
4019,
675,
8516,
4008,
198,
897,
796,
15841,
494,
13,
31554,
271,
7,
5647,
58,
16,
11,
16,
4357,
331,
260,
690,
276,
28,
7942,
8,
198,
44,
461,
494,
13,
9060,
0,
7,
897,
11,
545,
1130,
6058,
62,
20192,
7,
3447,
1758,
7,
81,
20475,
13,
86,
24457,
5415,
7,
8937,
11,
374,
20475,
13,
86,
26,
5391,
82,
16193,
17,
11,
18,
36911,
1315,
11,
1315,
11,
266,
77,
4033,
82,
11,
266,
77,
8516,
22305,
198,
44,
461,
494,
13,
71,
1384,
721,
273,
602,
0,
7,
897,
8,
198,
44,
461,
494,
13,
71,
1460,
79,
1127,
0,
7,
897,
8,
198,
5647,
198
] | 2.389574 | 1,784 |
"""
Return the gradient of the learnable parameters w.r.t. some objective
"""
function grad end
function grad! end
"""
Proximal operator of a function (https://en.wikipedia.org/wiki/Proximal_operator)
"""
function prox end
function prox! end
"""
Anything that takes an input and performs some kind
of function to produce an output. For example a linear
prediction function.
"""
abstract type Transformation end
abstract type StochasticTransformation <: Transformation end
abstract type Learnable <: Transformation end
"""
Do a forward pass, and return the output
"""
function transform end
function transform! end
"""
Baseclass for any prediction model that can be minimized.
This means that an object of a subclass contains all the
information needed to compute its own current loss.
"""
abstract type Minimizable <: Learnable end
function update end
function update! end
function learn end
function learn! end
# --------------------------------------------------------------------
import Base: AbstractSet
"A continuous range (inclusive) between a lo and a hi"
struct IntervalSet{T} <: AbstractSet{T}
lo::T
hi::T
end
function IntervalSet(lo::A, hi::B) where {A,B}
T = promote_type(A,B)
IntervalSet{T}(convert(T,lo), convert(T,hi))
end
# numeric interval
randtype(s::IntervalSet{T}) where T <: Number = Float64
Base.rand(s::IntervalSet{T}, dims::Integer...) where T <: Number = rand(dims...) .* (s.hi - s.lo) .+ s.lo
Base.in(x::Number, s::IntervalSet{T}) where T <: Number = s.lo <= x <= s.hi
Base.length(s::IntervalSet{T}) where T <: Number = 1
Base.:(==)(s1::IntervalSet{T}, s2::IntervalSet{T}) where T = s1.lo == s2.lo && s1.hi == s2.hi
# vector of intervals
randtype(s::IntervalSet{T}) where T <: AbstractVector = Vector{Float64}
Base.rand(s::IntervalSet{T}) where T <: AbstractVector = Float64[rand() * (s.hi[i] - s.lo[i]) + s.lo[i] for i=1:length(s)]
Base.in(x::AbstractVector, s::IntervalSet{T}) where T <: AbstractVector = all(i -> s.lo[i] <= x[i] <= s.hi[i], 1:length(s))
Base.length(s::IntervalSet{T}) where T <: AbstractVector = length(s.lo)
"Set of discrete items"
struct DiscreteSet{T<:AbstractArray} <: AbstractSet{T}
items::T
end
randtype(s::DiscreteSet) = eltype(s.items)
Base.rand(s::DiscreteSet, dims::Integer...) = rand(s.items, dims...)
Base.in(x, s::DiscreteSet) = x in s.items
Base.length(s::DiscreteSet) = length(s.items)
Base.getindex(s::DiscreteSet, i::Int) = s.items[i]
Base.:(==)(s1::DiscreteSet, s2::DiscreteSet) = s1.items == s2.items
# operations on arrays of sets
randtype(sets::AbstractArray{S,N}) where {S <: AbstractSet, N} = Array{promote_type(map(randtype, sets)...), N}
Base.rand(sets::AbstractArray{S}) where S <: AbstractSet = eltype(randtype(sets))[rand(s) for s in sets]
function Base.rand(sets::AbstractArray{S}, dim1::Integer, dims::Integer...) where S <: AbstractSet
A = Array{randtype(sets)}(undef, dim1, dims...)
for i in eachindex(A)
A[i] = rand(sets)
end
A
end
function Base.in(xs::AbstractArray, sets::AbstractArray{S}) where S <: AbstractSet
size(xs) == size(sets) && all(map(in, xs, sets))
end
"Groups several heterogenous sets. Used mainly for proper dispatch."
struct TupleSet{T<:Tuple} <: AbstractSet{T}
sets::T
end
TupleSet(sets::AbstractSet...) = TupleSet(sets)
# rand can return arrays or tuples, but defaults to arrays
randtype(sets::TupleSet, ::Type{Vector}) = Vector{promote_type(map(randtype, sets.sets)...)}
Base.rand(sets::TupleSet, ::Type{Vector}) = eltype(randtype(sets, Vector))[rand(s) for s in sets.sets]
randtype(sets::TupleSet, ::Type{Tuple}) = Tuple{map(randtype, sets.sets)...}
Base.rand(sets::TupleSet, ::Type{Tuple}) = map(rand, sets.sets)
function Base.rand(sets::TupleSet, ::Type{OT}, dim1::Integer, dims::Integer...) where OT
A = Array{randtype(sets, OT)}(undef, dim1, dims...)
for i in eachindex(A)
A[i] = rand(sets, OT)
end
A
end
Base.length(sets::TupleSet) = sum(length(s) for s in sets.sets)
Base.iterate(sets::TupleSet) = iterate(sets.sets)
Base.iterate(sets::TupleSet, i) = iterate(sets.sets, i)
randtype(sets::TupleSet) = randtype(sets, Vector)
Base.rand(sets::TupleSet, dims::Integer...) = rand(sets, Vector, dims...)
Base.in(x, sets::TupleSet) = all(map(in, x, sets.sets))
"Returns an AbstractSet representing valid input values"
function inputdomain end
"Returns an AbstractSet representing valid output/target values"
function targetdomain end
| [
37811,
198,
13615,
262,
31312,
286,
262,
2193,
540,
10007,
266,
13,
81,
13,
83,
13,
617,
9432,
198,
37811,
198,
8818,
3915,
886,
198,
8818,
3915,
0,
886,
198,
198,
37811,
198,
2964,
87,
4402,
10088,
286,
257,
2163,
357,
5450,
1378,
268,
13,
31266,
13,
2398,
14,
15466,
14,
2964,
87,
4402,
62,
46616,
8,
198,
37811,
198,
8818,
14793,
886,
198,
8818,
14793,
0,
886,
198,
198,
37811,
198,
40028,
326,
2753,
281,
5128,
290,
17706,
617,
1611,
198,
1659,
2163,
284,
4439,
281,
5072,
13,
1114,
1672,
257,
14174,
198,
28764,
2867,
2163,
13,
198,
37811,
198,
397,
8709,
2099,
49127,
886,
198,
397,
8709,
2099,
520,
5374,
3477,
8291,
1161,
1279,
25,
49127,
886,
198,
397,
8709,
2099,
14365,
540,
1279,
25,
49127,
886,
198,
198,
37811,
198,
5211,
257,
2651,
1208,
11,
290,
1441,
262,
5072,
198,
37811,
198,
8818,
6121,
886,
198,
8818,
6121,
0,
886,
198,
198,
37811,
198,
14881,
4871,
329,
597,
17724,
2746,
326,
460,
307,
49491,
13,
198,
1212,
1724,
326,
281,
2134,
286,
257,
47611,
4909,
477,
262,
198,
17018,
2622,
284,
24061,
663,
898,
1459,
2994,
13,
198,
37811,
198,
397,
8709,
2099,
1855,
320,
13821,
1279,
25,
14365,
540,
886,
198,
198,
8818,
4296,
886,
198,
8818,
4296,
0,
886,
198,
8818,
2193,
886,
198,
8818,
2193,
0,
886,
198,
198,
2,
16529,
650,
198,
198,
11748,
7308,
25,
27741,
7248,
198,
198,
1,
32,
12948,
2837,
357,
259,
5731,
8,
1022,
257,
2376,
290,
257,
23105,
1,
198,
7249,
4225,
2100,
7248,
90,
51,
92,
1279,
25,
27741,
7248,
90,
51,
92,
198,
220,
220,
220,
2376,
3712,
51,
198,
220,
220,
220,
23105,
3712,
51,
198,
437,
198,
8818,
4225,
2100,
7248,
7,
5439,
3712,
32,
11,
23105,
3712,
33,
8,
810,
1391,
32,
11,
33,
92,
198,
220,
220,
220,
309,
796,
7719,
62,
4906,
7,
32,
11,
33,
8,
198,
220,
220,
220,
4225,
2100,
7248,
90,
51,
92,
7,
1102,
1851,
7,
51,
11,
5439,
828,
10385,
7,
51,
11,
5303,
4008,
198,
437,
198,
198,
2,
35575,
16654,
198,
25192,
4906,
7,
82,
3712,
9492,
2100,
7248,
90,
51,
30072,
810,
309,
1279,
25,
7913,
796,
48436,
2414,
198,
14881,
13,
25192,
7,
82,
3712,
9492,
2100,
7248,
90,
51,
5512,
5391,
82,
3712,
46541,
23029,
810,
309,
1279,
25,
7913,
796,
43720,
7,
67,
12078,
23029,
764,
9,
357,
82,
13,
5303,
532,
264,
13,
5439,
8,
764,
10,
264,
13,
5439,
198,
14881,
13,
259,
7,
87,
3712,
15057,
11,
264,
3712,
9492,
2100,
7248,
90,
51,
30072,
810,
309,
1279,
25,
7913,
796,
264,
13,
5439,
19841,
2124,
19841,
264,
13,
5303,
198,
14881,
13,
13664,
7,
82,
3712,
9492,
2100,
7248,
90,
51,
30072,
810,
309,
1279,
25,
7913,
796,
352,
198,
14881,
11207,
7,
855,
5769,
82,
16,
3712,
9492,
2100,
7248,
90,
51,
5512,
264,
17,
3712,
9492,
2100,
7248,
90,
51,
30072,
810,
309,
796,
264,
16,
13,
5439,
6624,
264,
17,
13,
5439,
11405,
264,
16,
13,
5303,
6624,
264,
17,
13,
5303,
628,
198,
2,
15879,
286,
20016,
198,
25192,
4906,
7,
82,
3712,
9492,
2100,
7248,
90,
51,
30072,
810,
309,
1279,
25,
27741,
38469,
796,
20650,
90,
43879,
2414,
92,
198,
14881,
13,
25192,
7,
82,
3712,
9492,
2100,
7248,
90,
51,
30072,
810,
309,
1279,
25,
27741,
38469,
796,
48436,
2414,
58,
25192,
3419,
1635,
357,
82,
13,
5303,
58,
72,
60,
532,
264,
13,
5439,
58,
72,
12962,
1343,
264,
13,
5439,
58,
72,
60,
329,
1312,
28,
16,
25,
13664,
7,
82,
15437,
198,
14881,
13,
259,
7,
87,
3712,
23839,
38469,
11,
264,
3712,
9492,
2100,
7248,
90,
51,
30072,
810,
309,
1279,
25,
27741,
38469,
796,
477,
7,
72,
4613,
264,
13,
5439,
58,
72,
60,
19841,
2124,
58,
72,
60,
19841,
264,
13,
5303,
58,
72,
4357,
352,
25,
13664,
7,
82,
4008,
198,
14881,
13,
13664,
7,
82,
3712,
9492,
2100,
7248,
90,
51,
30072,
810,
309,
1279,
25,
27741,
38469,
796,
4129,
7,
82,
13,
5439,
8,
628,
198,
1,
7248,
286,
28810,
3709,
1,
198,
7249,
8444,
8374,
7248,
90,
51,
27,
25,
23839,
19182,
92,
1279,
25,
27741,
7248,
90,
51,
92,
198,
220,
220,
220,
3709,
3712,
51,
198,
437,
198,
25192,
4906,
7,
82,
3712,
15642,
8374,
7248,
8,
796,
1288,
4906,
7,
82,
13,
23814,
8,
198,
14881,
13,
25192,
7,
82,
3712,
15642,
8374,
7248,
11,
5391,
82,
3712,
46541,
23029,
796,
43720,
7,
82,
13,
23814,
11,
5391,
82,
23029,
198,
14881,
13,
259,
7,
87,
11,
264,
3712,
15642,
8374,
7248,
8,
796,
2124,
287,
264,
13,
23814,
198,
14881,
13,
13664,
7,
82,
3712,
15642,
8374,
7248,
8,
796,
4129,
7,
82,
13,
23814,
8,
198,
14881,
13,
1136,
9630,
7,
82,
3712,
15642,
8374,
7248,
11,
1312,
3712,
5317,
8,
796,
264,
13,
23814,
58,
72,
60,
198,
14881,
11207,
7,
855,
5769,
82,
16,
3712,
15642,
8374,
7248,
11,
264,
17,
3712,
15642,
8374,
7248,
8,
796,
264,
16,
13,
23814,
6624,
264,
17,
13,
23814,
628,
198,
2,
4560,
319,
26515,
286,
5621,
198,
25192,
4906,
7,
28709,
3712,
23839,
19182,
90,
50,
11,
45,
30072,
810,
1391,
50,
1279,
25,
27741,
7248,
11,
399,
92,
796,
15690,
90,
16963,
1258,
62,
4906,
7,
8899,
7,
25192,
4906,
11,
5621,
26513,
828,
399,
92,
198,
14881,
13,
25192,
7,
28709,
3712,
23839,
19182,
90,
50,
30072,
810,
311,
1279,
25,
27741,
7248,
796,
1288,
4906,
7,
25192,
4906,
7,
28709,
4008,
58,
25192,
7,
82,
8,
329,
264,
287,
5621,
60,
198,
8818,
7308,
13,
25192,
7,
28709,
3712,
23839,
19182,
90,
50,
5512,
5391,
16,
3712,
46541,
11,
5391,
82,
3712,
46541,
23029,
810,
311,
1279,
25,
27741,
7248,
198,
220,
220,
220,
317,
796,
15690,
90,
25192,
4906,
7,
28709,
38165,
7,
917,
891,
11,
5391,
16,
11,
5391,
82,
23029,
198,
220,
220,
220,
329,
1312,
287,
1123,
9630,
7,
32,
8,
198,
220,
220,
220,
220,
220,
220,
220,
317,
58,
72,
60,
796,
43720,
7,
28709,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
317,
198,
437,
198,
8818,
7308,
13,
259,
7,
34223,
3712,
23839,
19182,
11,
5621,
3712,
23839,
19182,
90,
50,
30072,
810,
311,
1279,
25,
27741,
7248,
198,
220,
220,
220,
2546,
7,
34223,
8,
6624,
2546,
7,
28709,
8,
11405,
477,
7,
8899,
7,
259,
11,
2124,
82,
11,
5621,
4008,
198,
437,
628,
198,
1,
38,
14459,
1811,
14445,
27897,
5621,
13,
16718,
8384,
329,
1774,
27965,
526,
198,
7249,
309,
29291,
7248,
90,
51,
27,
25,
51,
29291,
92,
1279,
25,
27741,
7248,
90,
51,
92,
198,
220,
220,
220,
5621,
3712,
51,
198,
437,
198,
51,
29291,
7248,
7,
28709,
3712,
23839,
7248,
23029,
796,
309,
29291,
7248,
7,
28709,
8,
198,
198,
2,
43720,
460,
1441,
26515,
393,
12777,
2374,
11,
475,
26235,
284,
26515,
198,
25192,
4906,
7,
28709,
3712,
51,
29291,
7248,
11,
7904,
6030,
90,
38469,
30072,
796,
20650,
90,
16963,
1258,
62,
4906,
7,
8899,
7,
25192,
4906,
11,
5621,
13,
28709,
8,
23029,
92,
198,
14881,
13,
25192,
7,
28709,
3712,
51,
29291,
7248,
11,
7904,
6030,
90,
38469,
30072,
796,
1288,
4906,
7,
25192,
4906,
7,
28709,
11,
20650,
4008,
58,
25192,
7,
82,
8,
329,
264,
287,
5621,
13,
28709,
60,
198,
25192,
4906,
7,
28709,
3712,
51,
29291,
7248,
11,
7904,
6030,
90,
51,
29291,
30072,
796,
309,
29291,
90,
8899,
7,
25192,
4906,
11,
5621,
13,
28709,
26513,
92,
198,
14881,
13,
25192,
7,
28709,
3712,
51,
29291,
7248,
11,
7904,
6030,
90,
51,
29291,
30072,
796,
3975,
7,
25192,
11,
5621,
13,
28709,
8,
198,
8818,
7308,
13,
25192,
7,
28709,
3712,
51,
29291,
7248,
11,
7904,
6030,
90,
2394,
5512,
5391,
16,
3712,
46541,
11,
5391,
82,
3712,
46541,
23029,
810,
21676,
198,
220,
220,
220,
317,
796,
15690,
90,
25192,
4906,
7,
28709,
11,
21676,
38165,
7,
917,
891,
11,
5391,
16,
11,
5391,
82,
23029,
198,
220,
220,
220,
329,
1312,
287,
1123,
9630,
7,
32,
8,
198,
220,
220,
220,
220,
220,
220,
220,
317,
58,
72,
60,
796,
43720,
7,
28709,
11,
21676,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
317,
198,
437,
198,
14881,
13,
13664,
7,
28709,
3712,
51,
29291,
7248,
8,
796,
2160,
7,
13664,
7,
82,
8,
329,
264,
287,
5621,
13,
28709,
8,
198,
14881,
13,
2676,
378,
7,
28709,
3712,
51,
29291,
7248,
8,
796,
11629,
378,
7,
28709,
13,
28709,
8,
198,
14881,
13,
2676,
378,
7,
28709,
3712,
51,
29291,
7248,
11,
1312,
8,
796,
11629,
378,
7,
28709,
13,
28709,
11,
1312,
8,
198,
198,
25192,
4906,
7,
28709,
3712,
51,
29291,
7248,
8,
796,
43720,
4906,
7,
28709,
11,
20650,
8,
198,
14881,
13,
25192,
7,
28709,
3712,
51,
29291,
7248,
11,
5391,
82,
3712,
46541,
23029,
796,
43720,
7,
28709,
11,
20650,
11,
5391,
82,
23029,
198,
14881,
13,
259,
7,
87,
11,
5621,
3712,
51,
29291,
7248,
8,
796,
477,
7,
8899,
7,
259,
11,
2124,
11,
5621,
13,
28709,
4008,
198,
198,
1,
35561,
281,
27741,
7248,
10200,
4938,
5128,
3815,
1,
198,
8818,
5128,
27830,
886,
198,
198,
1,
35561,
281,
27741,
7248,
10200,
4938,
5072,
14,
16793,
3815,
1,
198,
8818,
2496,
27830,
886,
198
] | 2.848875 | 1,555 |
# should be your environment and have for nothing to do whith the speed_test
cd("/Users/frank/.julia/dev/TypeDBClient_Speed")
using Pkg
Pkg.activate(".")
using TypeDBClient
using TypeDBClient: CoreSession, CoreClient
using UUIDs
g = TypeDBClient
client = g.CoreClient("127.0.0.1",1729)
Optional{T} = Union{Nothing,T}
# @info "deleting all databases"
# dbs = g.get_all_databases(client)
# for item in dbs
# g.delete_database(client, item.name)
# end
@info "create database typedb"
if !g.contains_database(client, "typedb")
g.create_database(client, "typedb")
end
sess = CoreSession(client, "typedb" , g.Proto.Session_Type.DATA, request_timout=Inf)
function trans_func(task)
return task
end
function coreTransaction(session::g.CoreSession,
sessionId::g.Bytes,
type::g.EnumType,
options::g.TypeDBOptions,
grpc_controller;
request_timout::Real=session.request_timeout)
type = type
options = options
input_channel = Channel{g.Proto.Transaction_Client}(10)
proto_options = g.copy_to_proto(options, g.Proto.Options)
res_imm = g.Proto.transaction(session.client.core_stub.asyncStub , grpc_controller, input_channel, trans_func)
req_result, status = fetch(res_imm)
output_channel = g.grpc_result_or_error(req_result, status, result->result)
println(status)
# open_req = g.TransactionRequestBuilder.open_req(session.sessionID, type, proto_options,session.networkLatencyMillis)
# bidirectionalStream = g.BidirectionalStream(input_channel, output_channel, status)
# trans_id = uuid4()
# result = g.CoreTransaction(type, options, bidirectionalStream, trans_id, sessionId, request_timout, session)
# # The following is only for warming up Transaction. If we didn't do this
# # it could happen that a transaction reach a timeout.
# req_result = g.execute(result, open_req, false)
# kind_of_result = g.Proto.which_oneof(req_result, :res)
# getproperty(req_result, kind_of_result)
return input_channel
end
@info "beginning Threads"
client_in = CoreClient("127.0.0.1", 1729)
sess_in = CoreSession(client_in, "typedb", g.Proto.Session_Type.DATA, request_timout=Inf)
grpc_controller = g.gRPCController(request_timeout=sess_in.request_timeout)
Threads.@threads for i in 1:2
@info "here I am"
res = coreTransaction(sess_in,
sess_in.sessionID,
g.Proto.Transaction_Type.WRITE,
g.TypeDBOptions(),
grpc_controller,
request_timout = sess_in.request_timeout)
@info "I'm close to end"
end
# close(sess)
| [
2,
815,
307,
534,
2858,
290,
423,
329,
2147,
284,
466,
348,
342,
262,
2866,
62,
9288,
198,
10210,
7203,
14,
14490,
14,
8310,
962,
11757,
73,
43640,
14,
7959,
14,
6030,
11012,
11792,
62,
22785,
4943,
198,
3500,
350,
10025,
198,
47,
10025,
13,
39022,
7203,
19570,
198,
198,
3500,
5994,
11012,
11792,
198,
3500,
5994,
11012,
11792,
25,
7231,
36044,
11,
7231,
11792,
198,
198,
3500,
471,
27586,
82,
198,
70,
796,
5994,
11012,
11792,
198,
16366,
796,
308,
13,
14055,
11792,
7203,
16799,
13,
15,
13,
15,
13,
16,
1600,
1558,
1959,
8,
198,
30719,
90,
51,
92,
796,
4479,
90,
18465,
11,
51,
92,
198,
198,
2,
2488,
10951,
366,
2934,
293,
889,
477,
20083,
1,
198,
2,
288,
1443,
796,
308,
13,
1136,
62,
439,
62,
19608,
18826,
7,
16366,
8,
198,
2,
329,
2378,
287,
288,
1443,
198,
2,
220,
220,
220,
220,
308,
13,
33678,
62,
48806,
7,
16366,
11,
2378,
13,
3672,
8,
198,
2,
886,
198,
198,
31,
10951,
366,
17953,
6831,
25683,
65,
1,
198,
198,
361,
5145,
70,
13,
3642,
1299,
62,
48806,
7,
16366,
11,
366,
774,
9124,
65,
4943,
198,
220,
220,
220,
308,
13,
17953,
62,
48806,
7,
16366,
11,
366,
774,
9124,
65,
4943,
198,
437,
198,
82,
408,
796,
7231,
36044,
7,
16366,
11,
366,
774,
9124,
65,
1,
837,
308,
13,
2964,
1462,
13,
36044,
62,
6030,
13,
26947,
11,
2581,
62,
16514,
448,
28,
18943,
8,
198,
198,
8818,
1007,
62,
20786,
7,
35943,
8,
198,
220,
220,
220,
1441,
4876,
198,
437,
198,
198,
8818,
4755,
48720,
7,
29891,
3712,
70,
13,
14055,
36044,
11,
198,
220,
220,
220,
6246,
7390,
3712,
70,
13,
45992,
11,
198,
220,
220,
220,
2099,
3712,
70,
13,
4834,
388,
6030,
11,
198,
220,
220,
220,
3689,
3712,
70,
13,
6030,
35,
8202,
8544,
11,
198,
220,
220,
220,
1036,
14751,
62,
36500,
26,
198,
220,
220,
220,
2581,
62,
16514,
448,
3712,
15633,
28,
29891,
13,
25927,
62,
48678,
8,
628,
220,
220,
220,
2099,
796,
2099,
198,
220,
220,
220,
3689,
796,
3689,
198,
220,
220,
220,
5128,
62,
17620,
796,
11102,
90,
70,
13,
2964,
1462,
13,
48720,
62,
11792,
92,
7,
940,
8,
198,
220,
220,
220,
44876,
62,
25811,
796,
308,
13,
30073,
62,
1462,
62,
1676,
1462,
7,
25811,
11,
308,
13,
2964,
1462,
13,
29046,
8,
628,
220,
220,
220,
581,
62,
8608,
796,
308,
13,
2964,
1462,
13,
7645,
2673,
7,
29891,
13,
16366,
13,
7295,
62,
301,
549,
13,
292,
13361,
1273,
549,
837,
1036,
14751,
62,
36500,
11,
5128,
62,
17620,
11,
1007,
62,
20786,
8,
198,
220,
220,
220,
43089,
62,
20274,
11,
3722,
796,
21207,
7,
411,
62,
8608,
8,
628,
220,
220,
220,
5072,
62,
17620,
796,
308,
13,
2164,
14751,
62,
20274,
62,
273,
62,
18224,
7,
42180,
62,
20274,
11,
3722,
11,
1255,
3784,
20274,
8,
198,
220,
220,
220,
44872,
7,
13376,
8,
628,
220,
220,
220,
1303,
1280,
62,
42180,
796,
308,
13,
48720,
18453,
32875,
13,
9654,
62,
42180,
7,
29891,
13,
29891,
2389,
11,
2099,
11,
44876,
62,
25811,
11,
29891,
13,
27349,
24220,
1387,
22603,
271,
8,
628,
220,
220,
220,
1303,
8406,
4154,
282,
12124,
796,
308,
13,
33,
312,
4154,
282,
12124,
7,
15414,
62,
17620,
11,
5072,
62,
17620,
11,
3722,
8,
198,
220,
220,
220,
1303,
1007,
62,
312,
796,
334,
27112,
19,
3419,
198,
220,
220,
220,
1303,
1255,
796,
308,
13,
14055,
48720,
7,
4906,
11,
3689,
11,
8406,
4154,
282,
12124,
11,
1007,
62,
312,
11,
6246,
7390,
11,
2581,
62,
16514,
448,
11,
6246,
8,
628,
220,
220,
220,
1303,
1303,
383,
1708,
318,
691,
329,
9917,
510,
45389,
13,
1002,
356,
1422,
470,
466,
428,
198,
220,
220,
220,
1303,
1303,
340,
714,
1645,
326,
257,
8611,
3151,
257,
26827,
13,
628,
220,
220,
220,
1303,
43089,
62,
20274,
796,
308,
13,
41049,
7,
20274,
11,
1280,
62,
42180,
11,
3991,
8,
198,
220,
220,
220,
1303,
1611,
62,
1659,
62,
20274,
796,
308,
13,
2964,
1462,
13,
4758,
62,
505,
1659,
7,
42180,
62,
20274,
11,
1058,
411,
8,
198,
220,
220,
220,
1303,
651,
26745,
7,
42180,
62,
20274,
11,
1611,
62,
1659,
62,
20274,
8,
628,
220,
220,
220,
1441,
5128,
62,
17620,
198,
437,
198,
198,
31,
10951,
366,
27471,
768,
14122,
82,
1,
198,
16366,
62,
259,
796,
7231,
11792,
7203,
16799,
13,
15,
13,
15,
13,
16,
1600,
1596,
1959,
8,
198,
82,
408,
62,
259,
796,
7231,
36044,
7,
16366,
62,
259,
11,
366,
774,
9124,
65,
1600,
308,
13,
2964,
1462,
13,
36044,
62,
6030,
13,
26947,
11,
2581,
62,
16514,
448,
28,
18943,
8,
198,
2164,
14751,
62,
36500,
796,
308,
13,
70,
20031,
4093,
756,
10646,
7,
25927,
62,
48678,
28,
82,
408,
62,
259,
13,
25927,
62,
48678,
8,
198,
16818,
82,
13,
31,
16663,
82,
329,
1312,
287,
352,
25,
17,
198,
220,
220,
220,
2488,
10951,
366,
1456,
314,
716,
1,
198,
220,
220,
220,
581,
796,
4755,
48720,
7,
82,
408,
62,
259,
11,
198,
220,
220,
220,
264,
408,
62,
259,
13,
29891,
2389,
11,
198,
220,
220,
220,
308,
13,
2964,
1462,
13,
48720,
62,
6030,
13,
18564,
12709,
11,
198,
220,
220,
220,
308,
13,
6030,
35,
8202,
8544,
22784,
198,
220,
220,
220,
1036,
14751,
62,
36500,
11,
198,
220,
220,
220,
2581,
62,
16514,
448,
796,
264,
408,
62,
259,
13,
25927,
62,
48678,
8,
198,
220,
220,
220,
2488,
10951,
366,
40,
1101,
1969,
284,
886,
1,
198,
437,
198,
198,
2,
1969,
7,
82,
408,
8,
198
] | 2.68259 | 942 |
abstract type AbstractLearningUpdate end
function update!(model,
lu::T,
opt,
s_t::Array{Array{AF, 1}, 1},
a_t::Array{<:Integer, 1},
s_tp1::Array{Array{AF, 1}, 1},
r::Array{AF, 1},
terminal,
args...) where {AF<:AbstractFloat, T<:AbstractLearningUpdate}
update!(model, lu, opt, hcat(s_t...), a_t, hcat(s_tp1...), r, terminal, args...)
end
# function update!(model,
# lu::T,
# opt,
# s_t::Array{Array{AF, 1}, 1},
# a_t::Array{<:Integer, 1},
# s_tp1::Array{Array{AF, 1}, 1},
# r::Array{AF, 1},
# terminal) where {AF<:AbstractFloat, T<:AbstractLearningUpdate}
# update!(model, lu, opt, hcat(s_t...), a_t, hcat(s_tp1...), r, terminal)
# end
# function update!(model::GVFNetwork,
# lu, opt, s_t, a_t, s_tp1, r, terminal)
# update!(model.gvf_model, lu[1], opt, model.horde, s_t, a_t, s_tp1, r, terminal)
# update!(model, lu[2], opt, s_t, a_t, s_tp1, r, terminal)
# end
abstract type AbstractQLearning <: AbstractLearningUpdate end
struct QLearning <: AbstractQLearning
γ::Float32
end
function loss(lu::QLearning, model, s_t, a_t, s_tp1, r, terminal, target_model)
γ = lu.γ.*(1 .- terminal)
action_idx = [CartesianIndex(a_t[i], i) for i in 1:length(terminal)]
q_tp1 = maximum(target_model(s_tp1); dims=1)[1,:]
target = (r .+ γ.*q_tp1)
q_t = model(s_t)[action_idx]
return Flux.mse(target, q_t)
end
function loss(lu::QLearning, model, s_t, a_t, s_tp1, r, terminal, target_model::Nothing)
γ = lu.γ.*(1 .- terminal)
action_idx = [CartesianIndex(a_t[i], i) for i in 1:length(terminal)]
q_tp1 = Flux.Tracker.data(maximum(model(s_tp1); dims=1)[1,:])
target = (r .+ γ.*q_tp1)
q_t = model(s_t)[action_idx]
return Flux.mse(target, q_t)
end
struct DoubleQLearning <: AbstractQLearning
γ::Float32
end
function loss(lu::DoubleQLearning, model, s_t, a_t, s_tp1, r, terminal, target_model)
γ = lu.γ.*(1 .- terminal)
action_idx = [CartesianIndex(a_t[i], i) for i in 1:length(terminal)]
q̃_tp1 = Flux.data(model(s_tp1))
q̃_tp1_argmax = findmax(q̃_tp1; dims=1)
action_tp1 = [q̃_tp1_argmax[2][i] for i in 1:length(terminal)]
q_tp1 = target_model(s_tp1)[action_tp1]
target = (r .+ γ.*q_tp1)
q_t = model(s_t)[action_idx]
return Flux.mse(target, q_t)
end
function loss(lu::DoubleQLearning, model, s_t, a_t, s_tp1, r, terminal, target_model::Nothing)
γ = lu.γ.*(1 .- terminal)
action_idx = [CartesianIndex(a_t[i], i) for i in 1:length(terminal)]
q̃_tp1 = Flux.data(model(s_tp1))
q̃_tp1_argmax = findmax(q̃_tp1; dims=1)
action_tp1 = [q̃_tp1_argmax[2][i] for i in 1:length(terminal)]
q_tp1 = Flux.data(model(s_tp1)[action_tp1])
target = (r .+ γ.*q_tp1)
q_t = model(s_t)[action_idx]
return Flux.mse(target, q_t)
end
function update!(model, lu::LU, opt,
s_t::Array{<:AbstractFloat, 2},
a_t::Array{<:Integer, 1},
s_tp1::Array{<:AbstractFloat, 2},
r::Array{<:AbstractFloat, 1},
terminal,
target_model) where {LU<:AbstractQLearning}
ps = params(model)
gs = Flux.gradient(ps) do
loss(lu, model, s_t, a_t, s_tp1, r, terminal, target_model)
end
Flux.Optimise.update!(opt, ps, gs)
end
struct TDLearning end
function loss(lu::TDLearning, model, s_t, a_t, s_tp1, r, terminal, target_model, horde::H) where {H<:Horde}
# get GVF horde parameters
p = [RLCore.get(horde, s_t[:,i], a_t, s_tp1[:,i]) for i in 1:length(terminal)]
c = hcat(getindex.(p, 1)...)
γ = hcat(getindex.(p, 2)...)
π = hcat(getindex.(p, 3)...)
v_t = model(s_t)
v_tp1 = target_model(s_tp1)
target = c .+ γ.*v_tp1 # -> Matrix (preds × batch_size)
return sum((target .- v_t).^2) * (1 // length(terminal))
end
loss(lu::TDLearning, model, s_t, a_t, s_tp1, r, terminal, target_model::Nothing, horde::H) where {H<:Horde} =
loss(lu, model, s_t, a_t, s_tp1, r, terminal, (x)->Flux.data(model(x)), horde)
struct AuxQLearning{T<:AbstractQLearning} <: AbstractLearningUpdate
β::Float32
q_learning::T
td_learning::TDLearning
end
function update!(
model,
lu::AQL,
opt,
s_t::Array{<:AbstractFloat, 2},
a_t::Array{<:Integer, 1},
s_tp1::Array{<:AbstractFloat, 2},
r::Array{<:AbstractFloat, 1},
terminal,
target_model,
horde::H) where {AQL<:AuxQLearning, H<:RLCore.Horde}
num_gvfs = length(horde)
ps = params(model)
gs = Flux.gradient(ps) do
ℒ_q = loss(lu.q_learning, (x)->model(x)[1:(end-num_gvfs), :], s_t, a_t, s_tp1, r, terminal, (x)->target_model(x)[1:(end-num_gvfs), :])
# @show ℒ_q
ℒ_td = loss(lu.td_learning, (x)->model(x)[(end-num_gvfs+1):end, :], s_t, a_t, s_tp1, r, terminal, (x)->target_model(x)[(end-num_gvfs+1):end, :], horde)
# @show ℒ_td
return ℒ_q + lu.β*ℒ_td
end
Flux.Optimise.update!(opt, ps, gs)
end
function update!(
model,
lu::AuxQLearning,
opt,
s_t::Array{<:AbstractFloat, 2},
a_t::Array{<:Integer, 1},
s_tp1::Array{<:AbstractFloat, 2},
r::Array{<:AbstractFloat, 1},
terminal,
target_model,
horde::Nothing)
update!(model, lu.q_learning, opt, s_t, a_t, s_tp1, r, terminal, target_model)
end
| [
198,
397,
8709,
2099,
27741,
41730,
10260,
886,
628,
198,
8818,
4296,
0,
7,
19849,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
84,
3712,
51,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2172,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
62,
83,
3712,
19182,
90,
19182,
90,
8579,
11,
352,
5512,
352,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
257,
62,
83,
3712,
19182,
90,
27,
25,
46541,
11,
352,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
62,
34788,
16,
3712,
19182,
90,
19182,
90,
8579,
11,
352,
5512,
352,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
3712,
19182,
90,
8579,
11,
352,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12094,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26498,
23029,
810,
1391,
8579,
27,
25,
23839,
43879,
11,
309,
27,
25,
23839,
41730,
10260,
92,
198,
220,
220,
220,
4296,
0,
7,
19849,
11,
300,
84,
11,
2172,
11,
289,
9246,
7,
82,
62,
83,
986,
828,
257,
62,
83,
11,
289,
9246,
7,
82,
62,
34788,
16,
986,
828,
374,
11,
12094,
11,
26498,
23029,
198,
437,
198,
198,
2,
2163,
4296,
0,
7,
19849,
11,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
84,
3712,
51,
11,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2172,
11,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
62,
83,
3712,
19182,
90,
19182,
90,
8579,
11,
352,
5512,
352,
5512,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
257,
62,
83,
3712,
19182,
90,
27,
25,
46541,
11,
352,
5512,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
62,
34788,
16,
3712,
19182,
90,
19182,
90,
8579,
11,
352,
5512,
352,
5512,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
3712,
19182,
90,
8579,
11,
352,
5512,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12094,
8,
810,
1391,
8579,
27,
25,
23839,
43879,
11,
309,
27,
25,
23839,
41730,
10260,
92,
198,
2,
220,
220,
220,
220,
4296,
0,
7,
19849,
11,
300,
84,
11,
2172,
11,
289,
9246,
7,
82,
62,
83,
986,
828,
257,
62,
83,
11,
289,
9246,
7,
82,
62,
34788,
16,
986,
828,
374,
11,
12094,
8,
198,
2,
886,
628,
198,
2,
2163,
4296,
0,
7,
19849,
3712,
37094,
37,
26245,
11,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
84,
11,
2172,
11,
264,
62,
83,
11,
257,
62,
83,
11,
264,
62,
34788,
16,
11,
374,
11,
12094,
8,
198,
2,
220,
220,
220,
220,
4296,
0,
7,
19849,
13,
70,
85,
69,
62,
19849,
11,
300,
84,
58,
16,
4357,
2172,
11,
2746,
13,
71,
17531,
11,
264,
62,
83,
11,
257,
62,
83,
11,
264,
62,
34788,
16,
11,
374,
11,
12094,
8,
198,
2,
220,
220,
220,
220,
4296,
0,
7,
19849,
11,
300,
84,
58,
17,
4357,
2172,
11,
264,
62,
83,
11,
257,
62,
83,
11,
264,
62,
34788,
16,
11,
374,
11,
12094,
8,
198,
2,
886,
198,
198,
397,
8709,
2099,
27741,
9711,
451,
768,
1279,
25,
27741,
41730,
10260,
886,
628,
198,
7249,
1195,
41730,
1279,
25,
27741,
9711,
451,
768,
198,
220,
220,
220,
7377,
111,
3712,
43879,
2624,
198,
437,
198,
198,
8818,
2994,
7,
2290,
3712,
9711,
451,
768,
11,
2746,
11,
264,
62,
83,
11,
257,
62,
83,
11,
264,
62,
34788,
16,
11,
374,
11,
12094,
11,
2496,
62,
19849,
8,
198,
220,
220,
220,
7377,
111,
796,
300,
84,
13,
42063,
15885,
7,
16,
764,
12,
12094,
8,
198,
220,
220,
220,
2223,
62,
312,
87,
796,
685,
43476,
35610,
15732,
7,
64,
62,
83,
58,
72,
4357,
1312,
8,
329,
1312,
287,
352,
25,
13664,
7,
23705,
282,
15437,
628,
220,
220,
220,
10662,
62,
34788,
16,
796,
5415,
7,
16793,
62,
19849,
7,
82,
62,
34788,
16,
1776,
5391,
82,
28,
16,
38381,
16,
11,
47715,
198,
220,
220,
220,
220,
198,
220,
220,
220,
2496,
796,
357,
81,
764,
10,
7377,
111,
15885,
80,
62,
34788,
16,
8,
198,
220,
220,
220,
10662,
62,
83,
796,
2746,
7,
82,
62,
83,
38381,
2673,
62,
312,
87,
60,
198,
220,
220,
220,
1441,
1610,
2821,
13,
76,
325,
7,
16793,
11,
10662,
62,
83,
8,
198,
437,
198,
198,
8818,
2994,
7,
2290,
3712,
9711,
451,
768,
11,
2746,
11,
264,
62,
83,
11,
257,
62,
83,
11,
264,
62,
34788,
16,
11,
374,
11,
12094,
11,
2496,
62,
19849,
3712,
18465,
8,
198,
220,
220,
220,
7377,
111,
796,
300,
84,
13,
42063,
15885,
7,
16,
764,
12,
12094,
8,
198,
220,
220,
220,
2223,
62,
312,
87,
796,
685,
43476,
35610,
15732,
7,
64,
62,
83,
58,
72,
4357,
1312,
8,
329,
1312,
287,
352,
25,
13664,
7,
23705,
282,
15437,
628,
220,
220,
220,
10662,
62,
34788,
16,
796,
1610,
2821,
13,
35694,
13,
7890,
7,
47033,
7,
19849,
7,
82,
62,
34788,
16,
1776,
5391,
82,
28,
16,
38381,
16,
11,
25,
12962,
628,
220,
220,
220,
2496,
796,
357,
81,
764,
10,
7377,
111,
15885,
80,
62,
34788,
16,
8,
198,
220,
220,
220,
10662,
62,
83,
796,
2746,
7,
82,
62,
83,
38381,
2673,
62,
312,
87,
60,
198,
220,
220,
220,
1441,
1610,
2821,
13,
76,
325,
7,
16793,
11,
10662,
62,
83,
8,
198,
437,
628,
198,
7249,
11198,
9711,
451,
768,
1279,
25,
27741,
9711,
451,
768,
198,
220,
220,
220,
7377,
111,
3712,
43879,
2624,
198,
437,
198,
198,
8818,
2994,
7,
2290,
3712,
25628,
9711,
451,
768,
11,
2746,
11,
264,
62,
83,
11,
257,
62,
83,
11,
264,
62,
34788,
16,
11,
374,
11,
12094,
11,
2496,
62,
19849,
8,
198,
220,
220,
220,
7377,
111,
796,
300,
84,
13,
42063,
15885,
7,
16,
764,
12,
12094,
8,
198,
220,
220,
220,
2223,
62,
312,
87,
796,
685,
43476,
35610,
15732,
7,
64,
62,
83,
58,
72,
4357,
1312,
8,
329,
1312,
287,
352,
25,
13664,
7,
23705,
282,
15437,
628,
220,
220,
220,
10662,
136,
225,
62,
34788,
16,
796,
1610,
2821,
13,
7890,
7,
19849,
7,
82,
62,
34788,
16,
4008,
198,
220,
220,
220,
10662,
136,
225,
62,
34788,
16,
62,
853,
9806,
796,
1064,
9806,
7,
80,
136,
225,
62,
34788,
16,
26,
5391,
82,
28,
16,
8,
198,
220,
220,
220,
2223,
62,
34788,
16,
796,
685,
80,
136,
225,
62,
34788,
16,
62,
853,
9806,
58,
17,
7131,
72,
60,
329,
1312,
287,
352,
25,
13664,
7,
23705,
282,
15437,
198,
220,
220,
220,
10662,
62,
34788,
16,
796,
2496,
62,
19849,
7,
82,
62,
34788,
16,
38381,
2673,
62,
34788,
16,
60,
628,
220,
220,
220,
2496,
796,
357,
81,
764,
10,
7377,
111,
15885,
80,
62,
34788,
16,
8,
198,
220,
220,
220,
10662,
62,
83,
796,
2746,
7,
82,
62,
83,
38381,
2673,
62,
312,
87,
60,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1441,
1610,
2821,
13,
76,
325,
7,
16793,
11,
10662,
62,
83,
8,
198,
437,
198,
198,
8818,
2994,
7,
2290,
3712,
25628,
9711,
451,
768,
11,
2746,
11,
264,
62,
83,
11,
257,
62,
83,
11,
264,
62,
34788,
16,
11,
374,
11,
12094,
11,
2496,
62,
19849,
3712,
18465,
8,
198,
220,
220,
220,
7377,
111,
796,
300,
84,
13,
42063,
15885,
7,
16,
764,
12,
12094,
8,
198,
220,
220,
220,
2223,
62,
312,
87,
796,
685,
43476,
35610,
15732,
7,
64,
62,
83,
58,
72,
4357,
1312,
8,
329,
1312,
287,
352,
25,
13664,
7,
23705,
282,
15437,
628,
220,
220,
220,
10662,
136,
225,
62,
34788,
16,
796,
1610,
2821,
13,
7890,
7,
19849,
7,
82,
62,
34788,
16,
4008,
198,
220,
220,
220,
10662,
136,
225,
62,
34788,
16,
62,
853,
9806,
796,
1064,
9806,
7,
80,
136,
225,
62,
34788,
16,
26,
5391,
82,
28,
16,
8,
198,
220,
220,
220,
2223,
62,
34788,
16,
796,
685,
80,
136,
225,
62,
34788,
16,
62,
853,
9806,
58,
17,
7131,
72,
60,
329,
1312,
287,
352,
25,
13664,
7,
23705,
282,
15437,
198,
220,
220,
220,
10662,
62,
34788,
16,
796,
1610,
2821,
13,
7890,
7,
19849,
7,
82,
62,
34788,
16,
38381,
2673,
62,
34788,
16,
12962,
628,
220,
220,
220,
2496,
796,
357,
81,
764,
10,
7377,
111,
15885,
80,
62,
34788,
16,
8,
198,
220,
220,
220,
10662,
62,
83,
796,
2746,
7,
82,
62,
83,
38381,
2673,
62,
312,
87,
60,
198,
220,
220,
220,
220,
198,
220,
220,
220,
1441,
1610,
2821,
13,
76,
325,
7,
16793,
11,
10662,
62,
83,
8,
198,
437,
198,
198,
8818,
4296,
0,
7,
19849,
11,
300,
84,
3712,
41596,
11,
2172,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
62,
83,
3712,
19182,
90,
27,
25,
23839,
43879,
11,
362,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
257,
62,
83,
3712,
19182,
90,
27,
25,
46541,
11,
352,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
62,
34788,
16,
3712,
19182,
90,
27,
25,
23839,
43879,
11,
362,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
3712,
19182,
90,
27,
25,
23839,
43879,
11,
352,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12094,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2496,
62,
19849,
8,
810,
1391,
41596,
27,
25,
23839,
9711,
451,
768,
92,
628,
220,
220,
220,
26692,
796,
42287,
7,
19849,
8,
198,
220,
220,
220,
308,
82,
796,
1610,
2821,
13,
49607,
7,
862,
8,
466,
198,
220,
220,
220,
220,
220,
220,
220,
2994,
7,
2290,
11,
2746,
11,
264,
62,
83,
11,
257,
62,
83,
11,
264,
62,
34788,
16,
11,
374,
11,
12094,
11,
2496,
62,
19849,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1610,
2821,
13,
27871,
320,
786,
13,
19119,
0,
7,
8738,
11,
26692,
11,
308,
82,
8,
198,
437,
198,
198,
7249,
13320,
41730,
886,
198,
198,
8818,
2994,
7,
2290,
3712,
21016,
41730,
11,
2746,
11,
264,
62,
83,
11,
257,
62,
83,
11,
264,
62,
34788,
16,
11,
374,
11,
12094,
11,
2496,
62,
19849,
11,
43940,
3712,
39,
8,
810,
1391,
39,
27,
25,
39,
17531,
92,
628,
220,
220,
220,
1303,
651,
402,
53,
37,
43940,
10007,
628,
220,
220,
220,
279,
796,
685,
49,
5639,
382,
13,
1136,
7,
71,
17531,
11,
264,
62,
83,
58,
45299,
72,
4357,
257,
62,
83,
11,
264,
62,
34788,
16,
58,
45299,
72,
12962,
329,
1312,
287,
352,
25,
13664,
7,
23705,
282,
15437,
628,
220,
220,
220,
269,
796,
289,
9246,
7,
1136,
9630,
12195,
79,
11,
352,
8,
23029,
198,
220,
220,
220,
7377,
111,
796,
289,
9246,
7,
1136,
9630,
12195,
79,
11,
362,
8,
23029,
198,
220,
220,
220,
18074,
222,
796,
289,
9246,
7,
1136,
9630,
12195,
79,
11,
513,
8,
23029,
628,
220,
220,
220,
410,
62,
83,
796,
2746,
7,
82,
62,
83,
8,
198,
220,
220,
220,
410,
62,
34788,
16,
796,
2496,
62,
19849,
7,
82,
62,
34788,
16,
8,
628,
220,
220,
220,
2496,
796,
269,
764,
10,
7377,
111,
15885,
85,
62,
34788,
16,
1303,
4613,
24936,
357,
28764,
82,
13958,
15458,
62,
7857,
8,
628,
220,
220,
220,
1441,
2160,
19510,
16793,
764,
12,
410,
62,
83,
737,
61,
17,
8,
1635,
357,
16,
3373,
4129,
7,
23705,
282,
4008,
198,
437,
198,
198,
22462,
7,
2290,
3712,
21016,
41730,
11,
2746,
11,
264,
62,
83,
11,
257,
62,
83,
11,
264,
62,
34788,
16,
11,
374,
11,
12094,
11,
2496,
62,
19849,
3712,
18465,
11,
43940,
3712,
39,
8,
810,
1391,
39,
27,
25,
39,
17531,
92,
796,
220,
198,
220,
220,
220,
2994,
7,
2290,
11,
2746,
11,
264,
62,
83,
11,
257,
62,
83,
11,
264,
62,
34788,
16,
11,
374,
11,
12094,
11,
357,
87,
8,
3784,
37,
22564,
13,
7890,
7,
19849,
7,
87,
36911,
43940,
8,
628,
198,
7249,
47105,
9711,
451,
768,
90,
51,
27,
25,
23839,
9711,
451,
768,
92,
1279,
25,
27741,
41730,
10260,
198,
220,
220,
220,
27169,
3712,
43879,
2624,
198,
220,
220,
220,
10662,
62,
40684,
3712,
51,
198,
220,
220,
220,
41560,
62,
40684,
3712,
21016,
41730,
198,
437,
198,
198,
8818,
4296,
0,
7,
198,
220,
220,
220,
2746,
11,
198,
220,
220,
220,
300,
84,
3712,
32,
9711,
11,
198,
220,
220,
220,
2172,
11,
198,
220,
220,
220,
264,
62,
83,
3712,
19182,
90,
27,
25,
23839,
43879,
11,
362,
5512,
198,
220,
220,
220,
257,
62,
83,
3712,
19182,
90,
27,
25,
46541,
11,
352,
5512,
198,
220,
220,
220,
264,
62,
34788,
16,
3712,
19182,
90,
27,
25,
23839,
43879,
11,
362,
5512,
198,
220,
220,
220,
374,
3712,
19182,
90,
27,
25,
23839,
43879,
11,
352,
5512,
198,
220,
220,
220,
12094,
11,
198,
220,
220,
220,
2496,
62,
19849,
11,
198,
220,
220,
220,
43940,
3712,
39,
8,
810,
1391,
32,
9711,
27,
25,
32,
2821,
9711,
451,
768,
11,
367,
27,
25,
49,
5639,
382,
13,
39,
17531,
92,
628,
220,
220,
220,
997,
62,
70,
85,
9501,
796,
4129,
7,
71,
17531,
8,
198,
220,
220,
220,
26692,
796,
42287,
7,
19849,
8,
628,
220,
220,
220,
308,
82,
796,
1610,
2821,
13,
49607,
7,
862,
8,
466,
198,
220,
220,
220,
220,
220,
220,
220,
2343,
226,
240,
62,
80,
796,
2994,
7,
2290,
13,
80,
62,
40684,
11,
357,
87,
8,
3784,
19849,
7,
87,
38381,
16,
37498,
437,
12,
22510,
62,
70,
85,
9501,
828,
1058,
4357,
264,
62,
83,
11,
257,
62,
83,
11,
264,
62,
34788,
16,
11,
374,
11,
12094,
11,
357,
87,
8,
3784,
16793,
62,
19849,
7,
87,
38381,
16,
37498,
437,
12,
22510,
62,
70,
85,
9501,
828,
1058,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2488,
12860,
2343,
226,
240,
62,
80,
198,
220,
220,
220,
220,
220,
220,
220,
2343,
226,
240,
62,
8671,
796,
2994,
7,
2290,
13,
8671,
62,
40684,
11,
357,
87,
8,
3784,
19849,
7,
87,
38381,
7,
437,
12,
22510,
62,
70,
85,
9501,
10,
16,
2599,
437,
11,
1058,
4357,
264,
62,
83,
11,
257,
62,
83,
11,
264,
62,
34788,
16,
11,
374,
11,
12094,
11,
357,
87,
8,
3784,
16793,
62,
19849,
7,
87,
38381,
7,
437,
12,
22510,
62,
70,
85,
9501,
10,
16,
2599,
437,
11,
1058,
4357,
43940,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2488,
12860,
2343,
226,
240,
62,
8671,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2343,
226,
240,
62,
80,
220,
1343,
300,
84,
13,
26638,
9,
158,
226,
240,
62,
8671,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1610,
2821,
13,
27871,
320,
786,
13,
19119,
0,
7,
8738,
11,
26692,
11,
308,
82,
8,
198,
220,
220,
220,
220,
198,
437,
628,
198,
8818,
4296,
0,
7,
198,
220,
220,
220,
2746,
11,
198,
220,
220,
220,
300,
84,
3712,
32,
2821,
9711,
451,
768,
11,
198,
220,
220,
220,
2172,
11,
198,
220,
220,
220,
264,
62,
83,
3712,
19182,
90,
27,
25,
23839,
43879,
11,
362,
5512,
198,
220,
220,
220,
257,
62,
83,
3712,
19182,
90,
27,
25,
46541,
11,
352,
5512,
198,
220,
220,
220,
264,
62,
34788,
16,
3712,
19182,
90,
27,
25,
23839,
43879,
11,
362,
5512,
198,
220,
220,
220,
374,
3712,
19182,
90,
27,
25,
23839,
43879,
11,
352,
5512,
198,
220,
220,
220,
12094,
11,
198,
220,
220,
220,
2496,
62,
19849,
11,
198,
220,
220,
220,
43940,
3712,
18465,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
4296,
0,
7,
19849,
11,
300,
84,
13,
80,
62,
40684,
11,
2172,
11,
264,
62,
83,
11,
257,
62,
83,
11,
264,
62,
34788,
16,
11,
374,
11,
12094,
11,
2496,
62,
19849,
8,
198,
220,
220,
220,
220,
198,
437,
198
] | 1.932168 | 2,860 |
function asymmetry(df, id, x, y)
result = DataFrame(TrackID = Int[], len = Int[], asymmetry = Float64[])
@inbounds for n = minimum(df[!, id]):maximum(df[!, id])
m = extract(df, n, id, [x, y])
T = Matrix{Float64}(undef, 2, 2)
mean_x = @views mean(m[:, 1])
mean_y = @views mean(m[:, 2])
t1 = 0.0
t2 = 0.0
t3 = 0.0
N = size(m, 1)
for t = 1:N
_x = m[t, 1] - mean_x
_y = m[t, 2] - mean_y
t1 += abs2(_x)
t2 += _x * _y
t3 += abs2(_y)
end
t1 /= N
t2 /= N
t3 /= N
T[1, 1] = t1
T[1, 2] = t2
T[2, 1] = t2
T[2, 2] = t3
λ1, λ2 = eigvals(T)
A = -log(1 - abs2(λ1 - λ2)/(2*abs2(λ1 + λ2)))
push!(result, [Int(n), Int(N), A])
end
result
end
function non_gaussian_parameter(df, x, frame=:FRAME2)
Δ = diff(df[!, x])
prepend!(Δ, NaN)
Δ[findall(x -> x == 1, df[!, frame])] .= NaN
filter!(!isnan, Δ)
a = mean(Δ.^4)
b = mean(abs2.(Δ))^2
a/3b - 1
end
function efficiency(df, id, x, y)
result = DataFrame(TrackID = Int[], value = Float64[])
@inbounds for n in 1:maximum(df[!, id])
m = extract(df, n, id, [x, y])
c = 0.0
T = size(m, 1)
for t in 1:T-1
c += squared_displacement(m, t, 1)
end
c /= (T-1)
c₀ = squared_displacement(m, 1, T-1)
push!(result, [n, c₀/c])
end
result
end
function _largest_distance(m)
T = size(m, 1)
d = displacement(m, 1)
for δ = 1:T-1
for t = 1:T-δ
dₜ = displacement(m, t, δ)
if dₜ > d
d = dₜ
end
end
end
d
end
function _total_length(m)
T = size(m, 1)
c = 0.0
for t = 1:T-1
c += displacement(m, t, 1)
end
c
end
function fractal_dimension(df, id, x, y)
result = DataFrame(TrackID = Int[], value = Float64[])
@inbounds @simd for n in minimum(df[!, id]):maximum(df[!, id])
m = extract(df, n, id, [x, y])
N = size(m, 1)-1
d = _largest_distance(m)
L = _total_length(m)
push!(result, [n, log(N)/log(N*d/L)])
end
result
end
function gaussianity(
df::DataFrame,
id::Symbol = :TrackID,
x::Symbol = :POSITION_X,
y::Symbol = :POSITION_Y,
)
gaussianity = DataFrame(TrackID = Int64[], gaussianity = Float64[], delta_t = Int64[], n = Int64[])
@inbounds for n in sort(collect(Set(df[!, id])))
m = extract(df, Int(n), id, [x, y])
T = size(m, 1)
for δ = 1:T-1
r⁴ = 0.0
r² = 0.0
@simd for t = 1:(T-δ)
r⁴ += abs2(squared_displacement(m, t, δ))
r² += squared_displacement(m, t, δ)
end
r⁴ /= (T - δ)
r² /= (T - δ)
push!(gaussianity, [n, r⁴/(2*abs2(r²)) - 1, δ, T - δ])
end
end
gaussianity
end | [
8818,
30372,
11973,
7,
7568,
11,
4686,
11,
2124,
11,
331,
8,
198,
220,
220,
220,
1255,
796,
6060,
19778,
7,
24802,
2389,
796,
2558,
58,
4357,
18896,
796,
2558,
58,
4357,
30372,
11973,
796,
48436,
2414,
58,
12962,
198,
220,
220,
220,
2488,
259,
65,
3733,
329,
299,
796,
5288,
7,
7568,
58,
28265,
4686,
60,
2599,
47033,
7,
7568,
58,
28265,
4686,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
285,
796,
7925,
7,
7568,
11,
299,
11,
4686,
11,
685,
87,
11,
331,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
309,
796,
24936,
90,
43879,
2414,
92,
7,
917,
891,
11,
362,
11,
362,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1612,
62,
87,
796,
2488,
33571,
1612,
7,
76,
58,
45299,
352,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
1612,
62,
88,
796,
2488,
33571,
1612,
7,
76,
58,
45299,
362,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
256,
16,
796,
657,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
256,
17,
796,
657,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
256,
18,
796,
657,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
399,
796,
2546,
7,
76,
11,
352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
256,
796,
352,
25,
45,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
87,
796,
285,
58,
83,
11,
352,
60,
532,
1612,
62,
87,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
88,
796,
285,
58,
83,
11,
362,
60,
532,
1612,
62,
88,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
16,
15853,
2352,
17,
28264,
87,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
17,
15853,
4808,
87,
1635,
4808,
88,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
18,
15853,
2352,
17,
28264,
88,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
256,
16,
1220,
28,
399,
198,
220,
220,
220,
220,
220,
220,
220,
256,
17,
1220,
28,
399,
198,
220,
220,
220,
220,
220,
220,
220,
256,
18,
1220,
28,
399,
198,
220,
220,
220,
220,
220,
220,
220,
309,
58,
16,
11,
352,
60,
796,
256,
16,
198,
220,
220,
220,
220,
220,
220,
220,
309,
58,
16,
11,
362,
60,
796,
256,
17,
198,
220,
220,
220,
220,
220,
220,
220,
309,
58,
17,
11,
352,
60,
796,
256,
17,
198,
220,
220,
220,
220,
220,
220,
220,
309,
58,
17,
11,
362,
60,
796,
256,
18,
198,
220,
220,
220,
220,
220,
220,
220,
7377,
119,
16,
11,
7377,
119,
17,
796,
304,
328,
12786,
7,
51,
8,
198,
220,
220,
220,
220,
220,
220,
220,
317,
796,
532,
6404,
7,
16,
532,
2352,
17,
7,
39377,
16,
532,
7377,
119,
17,
20679,
7,
17,
9,
8937,
17,
7,
39377,
16,
1343,
7377,
119,
17,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
20274,
11,
685,
5317,
7,
77,
828,
2558,
7,
45,
828,
317,
12962,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1255,
198,
437,
198,
198,
8818,
1729,
62,
4908,
31562,
62,
17143,
2357,
7,
7568,
11,
2124,
11,
5739,
28,
25,
10913,
10067,
17,
8,
198,
220,
220,
220,
37455,
796,
814,
7,
7568,
58,
28265,
2124,
12962,
198,
220,
220,
220,
3143,
437,
0,
7,
138,
242,
11,
11013,
45,
8,
198,
220,
220,
220,
37455,
58,
19796,
439,
7,
87,
4613,
2124,
6624,
352,
11,
47764,
58,
28265,
5739,
12962,
60,
764,
28,
11013,
45,
198,
220,
220,
220,
8106,
0,
7,
0,
271,
12647,
11,
37455,
8,
198,
220,
220,
220,
257,
796,
1612,
7,
138,
242,
13,
61,
19,
8,
198,
220,
220,
220,
275,
796,
1612,
7,
8937,
17,
12195,
138,
242,
4008,
61,
17,
198,
220,
220,
220,
257,
14,
18,
65,
532,
352,
198,
437,
198,
198,
8818,
9332,
7,
7568,
11,
4686,
11,
2124,
11,
331,
8,
198,
220,
220,
220,
1255,
796,
6060,
19778,
7,
24802,
2389,
796,
2558,
58,
4357,
1988,
796,
48436,
2414,
58,
12962,
198,
220,
220,
220,
2488,
259,
65,
3733,
329,
299,
287,
352,
25,
47033,
7,
7568,
58,
28265,
4686,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
285,
796,
7925,
7,
7568,
11,
299,
11,
4686,
11,
685,
87,
11,
331,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
269,
796,
657,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
309,
796,
2546,
7,
76,
11,
352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
256,
287,
352,
25,
51,
12,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
15853,
44345,
62,
6381,
489,
5592,
7,
76,
11,
256,
11,
352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
269,
1220,
28,
357,
51,
12,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
269,
158,
224,
222,
796,
44345,
62,
6381,
489,
5592,
7,
76,
11,
352,
11,
309,
12,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
20274,
11,
685,
77,
11,
269,
158,
224,
222,
14,
66,
12962,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1255,
198,
437,
198,
198,
8818,
4808,
28209,
62,
30246,
7,
76,
8,
198,
220,
220,
220,
309,
796,
2546,
7,
76,
11,
352,
8,
198,
220,
220,
220,
288,
796,
29358,
7,
76,
11,
352,
8,
198,
220,
220,
220,
329,
7377,
112,
796,
352,
25,
51,
12,
16,
198,
220,
220,
220,
220,
220,
220,
220,
329,
256,
796,
352,
25,
51,
12,
138,
112,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
158,
224,
250,
796,
29358,
7,
76,
11,
256,
11,
7377,
112,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
288,
158,
224,
250,
1875,
288,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
796,
288,
158,
224,
250,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
288,
198,
437,
198,
198,
8818,
4808,
23350,
62,
13664,
7,
76,
8,
198,
220,
220,
220,
309,
796,
2546,
7,
76,
11,
352,
8,
198,
220,
220,
220,
269,
796,
657,
13,
15,
198,
220,
220,
220,
329,
256,
796,
352,
25,
51,
12,
16,
198,
220,
220,
220,
220,
220,
220,
220,
269,
15853,
29358,
7,
76,
11,
256,
11,
352,
8,
198,
220,
220,
220,
886,
198,
220,
220,
220,
269,
198,
437,
198,
198,
8818,
12999,
282,
62,
46156,
7,
7568,
11,
4686,
11,
2124,
11,
331,
8,
198,
220,
220,
220,
1255,
796,
6060,
19778,
7,
24802,
2389,
796,
2558,
58,
4357,
1988,
796,
48436,
2414,
58,
12962,
198,
220,
220,
220,
2488,
259,
65,
3733,
2488,
14323,
67,
329,
299,
287,
5288,
7,
7568,
58,
28265,
4686,
60,
2599,
47033,
7,
7568,
58,
28265,
4686,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
285,
796,
7925,
7,
7568,
11,
299,
11,
4686,
11,
685,
87,
11,
331,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
399,
796,
2546,
7,
76,
11,
352,
13219,
16,
198,
220,
220,
220,
220,
220,
220,
220,
288,
796,
4808,
28209,
62,
30246,
7,
76,
8,
198,
220,
220,
220,
220,
220,
220,
220,
406,
796,
4808,
23350,
62,
13664,
7,
76,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
20274,
11,
685,
77,
11,
2604,
7,
45,
20679,
6404,
7,
45,
9,
67,
14,
43,
8,
12962,
198,
220,
220,
220,
886,
198,
220,
220,
220,
1255,
198,
437,
198,
198,
8818,
31986,
31562,
414,
7,
198,
220,
220,
220,
47764,
3712,
6601,
19778,
11,
198,
220,
220,
220,
4686,
3712,
13940,
23650,
796,
1058,
24802,
2389,
11,
198,
220,
220,
220,
2124,
3712,
13940,
23650,
796,
1058,
37997,
17941,
62,
55,
11,
198,
220,
220,
220,
331,
3712,
13940,
23650,
796,
1058,
37997,
17941,
62,
56,
11,
198,
8,
198,
220,
220,
220,
31986,
31562,
414,
796,
6060,
19778,
7,
24802,
2389,
796,
2558,
2414,
58,
4357,
31986,
31562,
414,
796,
48436,
2414,
58,
4357,
25979,
62,
83,
796,
2558,
2414,
58,
4357,
299,
796,
2558,
2414,
58,
12962,
198,
220,
220,
220,
2488,
259,
65,
3733,
329,
299,
287,
3297,
7,
33327,
7,
7248,
7,
7568,
58,
28265,
4686,
60,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
285,
796,
7925,
7,
7568,
11,
2558,
7,
77,
828,
4686,
11,
685,
87,
11,
331,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
309,
796,
2546,
7,
76,
11,
352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
7377,
112,
796,
352,
25,
51,
12,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
46256,
112,
796,
657,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
31185,
796,
657,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2488,
14323,
67,
329,
256,
796,
352,
37498,
51,
12,
138,
112,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
46256,
112,
15853,
2352,
17,
7,
16485,
1144,
62,
6381,
489,
5592,
7,
76,
11,
256,
11,
7377,
112,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
31185,
15853,
44345,
62,
6381,
489,
5592,
7,
76,
11,
256,
11,
7377,
112,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
46256,
112,
1220,
28,
357,
51,
532,
7377,
112,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
31185,
1220,
28,
357,
51,
532,
7377,
112,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
4908,
31562,
414,
11,
685,
77,
11,
374,
46256,
112,
29006,
17,
9,
8937,
17,
7,
81,
31185,
4008,
532,
352,
11,
7377,
112,
11,
309,
532,
7377,
112,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
886,
198,
220,
220,
220,
31986,
31562,
414,
198,
437
] | 1.686263 | 1,769 |
"""
generate_array(
array_1::Array{Int64},
array_2::Array{Int64},
array_merged::Array{Int64},
i::Int64,
j::Int64,
k::Int64,
l::Int64,
size::Int64,
flag::Bool,
result::Array{Any,1}
)
`generate_array` is a modified [Breadth-First-Search]https://en.wikipedia.org/wiki/Breadth-first_search]
for generating the result-array with the possible combinations of two merged arrays with
ascending ordering.
# Arguments
- `array_1::Array{Int64}`: First sorted array
- `array_2::Array{Int64}`: Second sorted array
- `array_merged::Array{Int64}`: Merged sorted array
- `i::Int64`: Outer lower increment of first array
- `j::Int64`: Outer higher increment of first array
- `k::Int64`: Outer lower increment of second array
- `l::Int64`: Outer higher increment of second array
- `size::Int64`: Current size
- `flag::Bool`: Switching between first and second array
- `result::Array{Any,1}`: Result list of the merged arrays
"""
function generate_array(
array_1::Array{Int64},
array_2::Array{Int64},
array_merged::Array{Int64},
i::Int64,
j::Int64,
k::Int64,
l::Int64,
size::Int64,
flag::Bool,
result::Array{Any,1},
)
if flag
if size > 1
push!(result, array_merged[1:size])
end
for m in i:k
# Define the first element
if size < 2
array_merged[size] = array_1[m]
generate_array(array_1,
array_2, array_merged, m + 1, j, k, l, size, !flag,
result)
else
# Going to the third and higher element of array_1
if array_1[m] > array_merged[size]
array_merged[size + 1] = array_1[m]
generate_array(
array_1,
array_2,
array_merged,
m + 1,
j,
k,
l,
size + 1,
!flag,result
)
end
end
end
else
# Going to the second of array_2
for n in j:l
if array_2[n] > array_merged[size]
array_merged[size + 1] = array_2[n]
generate_array(
array_1,
array_2,
array_merged,
i,
n + 1,
k,
l,
size + 1,
!flag,result
)
end
end
end
return result
end
"""
combinations_of_2arrays(array_1::Array{Int64,1}, array_2::Array{Int64,1}))
Provides all combinations of sorted arrays with an increasing number of elements. Original
idea
# Arguments
- `array_1::Array{Int64,1}`: First sorted array
- `array_2::Array{Int64,1}`: Second sorted array
# Examples
```julia-repl
julia> import ClassicAlgorithmsCollections
julia> arr_1 = [10, 15, 25]
julia> arr_2 = [5, 20, 30]
julia> ClassicAlgorithmsCollections.combinations_of_2arrays(arr_1, arr_2)
[10, 20]
[10, 20, 25, 30]
[10, 30]
[15, 20]
[15, 20, 25, 30]
[15, 30]
[25, 30]
```
"""
function combinations_of_2arrays(array_1::Array{Int64,1}, array_2::Array{Int64,1})
length_array_1, length_array_2 = length(array_1), length(array_2)
init_array = zeros(Int64, (length_array_1 + length_array_2))
# Create array-list for the searching solution
result = Array{Any,1}()
return generate_array(
array_1,
array_2,
init_array,
1,
1,
length_array_1, length_array_2,
1,
true,
result
)
end
| [
37811,
198,
220,
220,
220,
7716,
62,
18747,
7,
198,
220,
220,
220,
220,
220,
220,
220,
7177,
62,
16,
3712,
19182,
90,
5317,
2414,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
7177,
62,
17,
3712,
19182,
90,
5317,
2414,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
7177,
62,
647,
2004,
3712,
19182,
90,
5317,
2414,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
3712,
5317,
2414,
11,
198,
220,
220,
220,
220,
220,
220,
220,
474,
3712,
5317,
2414,
11,
198,
220,
220,
220,
220,
220,
220,
220,
479,
3712,
5317,
2414,
11,
198,
220,
220,
220,
220,
220,
220,
220,
300,
3712,
5317,
2414,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2546,
3712,
5317,
2414,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6056,
3712,
33,
970,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
3712,
19182,
90,
7149,
11,
16,
92,
198,
220,
220,
220,
1267,
198,
198,
63,
8612,
378,
62,
18747,
63,
318,
257,
9518,
685,
33,
961,
400,
12,
5962,
12,
18243,
60,
5450,
1378,
268,
13,
31266,
13,
2398,
14,
15466,
14,
33,
961,
400,
12,
11085,
62,
12947,
60,
198,
1640,
15453,
262,
1255,
12,
18747,
351,
262,
1744,
17790,
286,
734,
23791,
26515,
351,
198,
3372,
1571,
16216,
13,
628,
198,
2,
20559,
2886,
198,
12,
4600,
18747,
62,
16,
3712,
19182,
90,
5317,
2414,
92,
63,
25,
3274,
23243,
7177,
198,
12,
4600,
18747,
62,
17,
3712,
19182,
90,
5317,
2414,
92,
63,
25,
5498,
23243,
7177,
198,
12,
4600,
18747,
62,
647,
2004,
3712,
19182,
90,
5317,
2414,
92,
63,
25,
4638,
2004,
23243,
7177,
198,
12,
4600,
72,
3712,
5317,
2414,
63,
25,
35868,
2793,
18703,
286,
717,
7177,
198,
12,
4600,
73,
3712,
5317,
2414,
63,
25,
35868,
2440,
18703,
286,
717,
7177,
198,
12,
4600,
74,
3712,
5317,
2414,
63,
25,
35868,
2793,
18703,
286,
1218,
7177,
198,
12,
4600,
75,
3712,
5317,
2414,
63,
25,
35868,
2440,
18703,
286,
1218,
7177,
198,
12,
4600,
7857,
3712,
5317,
2414,
63,
25,
9236,
2546,
198,
12,
4600,
32109,
3712,
33,
970,
63,
25,
14645,
278,
1022,
717,
290,
1218,
7177,
198,
12,
4600,
20274,
3712,
19182,
90,
7149,
11,
16,
92,
63,
25,
25414,
1351,
286,
262,
23791,
26515,
198,
37811,
198,
8818,
7716,
62,
18747,
7,
198,
220,
220,
220,
7177,
62,
16,
3712,
19182,
90,
5317,
2414,
5512,
198,
220,
220,
220,
7177,
62,
17,
3712,
19182,
90,
5317,
2414,
5512,
198,
220,
220,
220,
7177,
62,
647,
2004,
3712,
19182,
90,
5317,
2414,
5512,
198,
220,
220,
220,
1312,
3712,
5317,
2414,
11,
198,
220,
220,
220,
474,
3712,
5317,
2414,
11,
198,
220,
220,
220,
479,
3712,
5317,
2414,
11,
198,
220,
220,
220,
300,
3712,
5317,
2414,
11,
198,
220,
220,
220,
2546,
3712,
5317,
2414,
11,
198,
220,
220,
220,
6056,
3712,
33,
970,
11,
198,
220,
220,
220,
1255,
3712,
19182,
90,
7149,
11,
16,
5512,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
611,
6056,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2546,
1875,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4574,
0,
7,
20274,
11,
7177,
62,
647,
2004,
58,
16,
25,
7857,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
329,
285,
287,
1312,
25,
74,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2896,
500,
262,
717,
5002,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2546,
1279,
362,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7177,
62,
647,
2004,
58,
7857,
60,
796,
7177,
62,
16,
58,
76,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7716,
62,
18747,
7,
18747,
62,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7177,
62,
17,
11,
7177,
62,
647,
2004,
11,
285,
1343,
352,
11,
474,
11,
479,
11,
300,
11,
2546,
11,
5145,
32109,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
19219,
284,
262,
2368,
290,
2440,
5002,
286,
7177,
62,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
7177,
62,
16,
58,
76,
60,
1875,
7177,
62,
647,
2004,
58,
7857,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7177,
62,
647,
2004,
58,
7857,
1343,
352,
60,
796,
7177,
62,
16,
58,
76,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7716,
62,
18747,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7177,
62,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7177,
62,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7177,
62,
647,
2004,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
1343,
352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
474,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2546,
1343,
352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5145,
32109,
11,
20274,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
19219,
284,
262,
1218,
286,
7177,
62,
17,
198,
220,
220,
220,
220,
220,
220,
220,
329,
299,
287,
474,
25,
75,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
7177,
62,
17,
58,
77,
60,
1875,
7177,
62,
647,
2004,
58,
7857,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7177,
62,
647,
2004,
58,
7857,
1343,
352,
60,
796,
7177,
62,
17,
58,
77,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7716,
62,
18747,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7177,
62,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7177,
62,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7177,
62,
647,
2004,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
1343,
352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2546,
1343,
352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5145,
32109,
11,
20274,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
198,
220,
220,
220,
220,
220,
220,
220,
886,
628,
220,
220,
220,
886,
198,
220,
220,
220,
1441,
1255,
198,
437,
628,
198,
37811,
198,
220,
220,
220,
17790,
62,
1659,
62,
17,
3258,
592,
7,
18747,
62,
16,
3712,
19182,
90,
5317,
2414,
11,
16,
5512,
7177,
62,
17,
3712,
19182,
90,
5317,
2414,
11,
16,
92,
4008,
198,
198,
15946,
1460,
477,
17790,
286,
23243,
26515,
351,
281,
3649,
1271,
286,
4847,
13,
13745,
198,
485,
64,
628,
198,
2,
20559,
2886,
198,
12,
4600,
18747,
62,
16,
3712,
19182,
90,
5317,
2414,
11,
16,
92,
63,
25,
3274,
23243,
7177,
198,
12,
4600,
18747,
62,
17,
3712,
19182,
90,
5317,
2414,
11,
16,
92,
63,
25,
5498,
23243,
7177,
628,
198,
2,
21066,
198,
15506,
63,
73,
43640,
12,
35666,
198,
73,
43640,
29,
1330,
13449,
2348,
7727,
907,
5216,
26448,
198,
73,
43640,
29,
5240,
62,
16,
796,
685,
940,
11,
1315,
11,
1679,
60,
198,
73,
43640,
29,
5240,
62,
17,
796,
685,
20,
11,
1160,
11,
1542,
60,
198,
73,
43640,
29,
13449,
2348,
7727,
907,
5216,
26448,
13,
24011,
7352,
62,
1659,
62,
17,
3258,
592,
7,
3258,
62,
16,
11,
5240,
62,
17,
8,
198,
58,
940,
11,
1160,
60,
198,
58,
940,
11,
1160,
11,
1679,
11,
1542,
60,
198,
58,
940,
11,
1542,
60,
198,
58,
1314,
11,
1160,
60,
198,
58,
1314,
11,
1160,
11,
1679,
11,
1542,
60,
198,
58,
1314,
11,
1542,
60,
198,
58,
1495,
11,
1542,
60,
198,
15506,
63,
198,
37811,
198,
8818,
17790,
62,
1659,
62,
17,
3258,
592,
7,
18747,
62,
16,
3712,
19182,
90,
5317,
2414,
11,
16,
5512,
7177,
62,
17,
3712,
19182,
90,
5317,
2414,
11,
16,
30072,
198,
220,
220,
220,
4129,
62,
18747,
62,
16,
11,
220,
4129,
62,
18747,
62,
17,
796,
4129,
7,
18747,
62,
16,
828,
220,
4129,
7,
18747,
62,
17,
8,
198,
220,
220,
220,
2315,
62,
18747,
796,
1976,
27498,
7,
5317,
2414,
11,
357,
13664,
62,
18747,
62,
16,
1343,
220,
4129,
62,
18747,
62,
17,
4008,
198,
220,
220,
220,
220,
1303,
13610,
7177,
12,
4868,
329,
262,
10342,
4610,
198,
220,
220,
220,
1255,
796,
15690,
90,
7149,
11,
16,
92,
3419,
198,
220,
220,
220,
1441,
7716,
62,
18747,
7,
198,
220,
220,
220,
220,
220,
220,
220,
7177,
62,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
7177,
62,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2315,
62,
18747,
11,
198,
220,
220,
220,
220,
220,
220,
220,
352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4129,
62,
18747,
62,
16,
11,
220,
4129,
62,
18747,
62,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2081,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
198,
220,
220,
220,
1267,
198,
437,
198
] | 1.88247 | 2,008 |
include("eggify.jl")
using Metatheory.Library
using Metatheory.EGraphs.Schedulers
mult_t = commutative_monoid(:(*), 1)
plus_t = commutative_monoid(:(+), 0)
minus_t = @theory begin
a - a => 0
a + (-b) => a - b
end
mulplus_t = @theory begin
0 * a => 0
a * 0 => 0
a * (b + c) == ((a * b) + (a * c))
a + (b * a) => ((b + 1) * a)
end
pow_t = @theory begin
(y^n) * y => y^(n + 1)
x^n * x^m == x^(n + m)
(x * y)^z == x^z * y^z
(x^p)^q == x^(p * q)
x^0 => 1
0^x => 0
1^x => 1
x^1 => x
inv(x) == x^(-1)
end
function customlt(x, y)
if typeof(x) == Expr && Expr == typeof(y)
false
elseif typeof(x) == typeof(y)
isless(x, y)
elseif x isa Symbol && y isa Number
false
else
true
end
end
canonical_t = @theory begin
# restore n-arity
(x + (+)(ys...)) => +(x, ys...)
((+)(xs...) + y) => +(xs..., y)
(x * (*)(ys...)) => *(x, ys...)
((*)(xs...) * y) => *(xs..., y)
(*)(xs...) |> Expr(:call, :*, sort!(xs; lt = customlt)...)
(+)(xs...) |> Expr(:call, :+, sort!(xs; lt = customlt)...)
end
cas = mult_t ∪ plus_t ∪ minus_t ∪ mulplus_t ∪ pow_t
theory = cas
query = cleanast(:(a + b + (0 * c) + d))
function simplify(ex)
g = EGraph(ex)
params = SaturationParams(
scheduler = BackoffScheduler,
timeout = 20,
schedulerparams = (1000, 5), # fuel and bantime
)
report = saturate!(g, cas, params)
println(report)
res = extract!(g, astsize)
res = rewrite(res, canonical_t; clean = false, m = @__MODULE__) # this just orders symbols and restores n-ary plus and mult
res
end
###########################################
params = SaturationParams(timeout = 20, schedulerparams = (1000, 5))
for i in 1:2
ex = simplify(:(a + b + (0 * c) + d))
println("Best found: $ex")
end
open("src/main.rs", "w") do f
write(f, rust_code(theory, query))
end
| [
17256,
7203,
33856,
1958,
13,
20362,
4943,
198,
3500,
3395,
26221,
652,
13,
23377,
198,
3500,
3395,
26221,
652,
13,
7156,
1470,
82,
13,
50,
1740,
377,
364,
198,
198,
16680,
62,
83,
796,
725,
315,
876,
62,
2144,
1868,
7,
37498,
9,
828,
352,
8,
198,
9541,
62,
83,
796,
725,
315,
876,
62,
2144,
1868,
7,
37498,
10,
828,
657,
8,
198,
198,
40191,
62,
83,
796,
2488,
1169,
652,
2221,
198,
220,
257,
532,
257,
220,
220,
220,
5218,
657,
198,
220,
257,
1343,
13841,
65,
8,
5218,
257,
532,
275,
198,
437,
198,
198,
76,
377,
9541,
62,
83,
796,
2488,
1169,
652,
2221,
198,
220,
657,
1635,
257,
5218,
657,
198,
220,
257,
1635,
657,
5218,
657,
198,
220,
257,
1635,
357,
65,
1343,
269,
8,
6624,
14808,
64,
1635,
275,
8,
1343,
357,
64,
1635,
269,
4008,
198,
220,
257,
1343,
357,
65,
1635,
257,
8,
5218,
14808,
65,
1343,
352,
8,
1635,
257,
8,
198,
437,
198,
198,
79,
322,
62,
83,
796,
2488,
1169,
652,
2221,
198,
220,
357,
88,
61,
77,
8,
1635,
331,
5218,
331,
61,
7,
77,
1343,
352,
8,
198,
220,
2124,
61,
77,
1635,
2124,
61,
76,
6624,
2124,
61,
7,
77,
1343,
285,
8,
198,
220,
357,
87,
1635,
331,
8,
61,
89,
6624,
2124,
61,
89,
1635,
331,
61,
89,
198,
220,
357,
87,
61,
79,
8,
61,
80,
6624,
2124,
61,
7,
79,
1635,
10662,
8,
198,
220,
2124,
61,
15,
5218,
352,
198,
220,
657,
61,
87,
5218,
657,
198,
220,
352,
61,
87,
5218,
352,
198,
220,
2124,
61,
16,
5218,
2124,
198,
220,
800,
7,
87,
8,
6624,
2124,
61,
32590,
16,
8,
198,
437,
198,
198,
8818,
2183,
2528,
7,
87,
11,
331,
8,
198,
220,
611,
2099,
1659,
7,
87,
8,
6624,
1475,
1050,
11405,
1475,
1050,
6624,
2099,
1659,
7,
88,
8,
198,
220,
220,
220,
3991,
198,
220,
2073,
361,
2099,
1659,
7,
87,
8,
6624,
2099,
1659,
7,
88,
8,
198,
220,
220,
220,
318,
1203,
7,
87,
11,
331,
8,
198,
220,
2073,
361,
2124,
318,
64,
38357,
11405,
331,
318,
64,
7913,
198,
220,
220,
220,
3991,
198,
220,
2073,
198,
220,
220,
220,
2081,
198,
220,
886,
198,
437,
198,
198,
49883,
605,
62,
83,
796,
2488,
1169,
652,
2221,
198,
220,
1303,
11169,
299,
12,
6806,
198,
220,
357,
87,
1343,
11502,
5769,
893,
986,
4008,
5218,
1343,
7,
87,
11,
331,
82,
23029,
198,
220,
14808,
10,
5769,
34223,
23029,
1343,
331,
8,
5218,
1343,
7,
34223,
986,
11,
331,
8,
198,
220,
357,
87,
1635,
20789,
5769,
893,
986,
4008,
5218,
1635,
7,
87,
11,
331,
82,
23029,
198,
220,
14808,
9,
5769,
34223,
23029,
1635,
331,
8,
5218,
1635,
7,
34223,
986,
11,
331,
8,
628,
220,
20789,
5769,
34223,
23029,
930,
29,
1475,
1050,
7,
25,
13345,
11,
1058,
25666,
3297,
0,
7,
34223,
26,
300,
83,
796,
2183,
2528,
8,
23029,
198,
220,
11502,
5769,
34223,
23029,
930,
29,
1475,
1050,
7,
25,
13345,
11,
1058,
28200,
3297,
0,
7,
34223,
26,
300,
83,
796,
2183,
2528,
8,
23029,
198,
437,
628,
198,
34004,
796,
1963,
62,
83,
18872,
103,
5556,
62,
83,
18872,
103,
20208,
62,
83,
18872,
103,
35971,
9541,
62,
83,
18872,
103,
7182,
62,
83,
198,
1169,
652,
796,
6124,
198,
198,
22766,
796,
3424,
459,
7,
37498,
64,
1343,
275,
1343,
357,
15,
1635,
269,
8,
1343,
288,
4008,
628,
198,
8818,
30276,
7,
1069,
8,
198,
220,
308,
796,
412,
37065,
7,
1069,
8,
198,
220,
42287,
796,
311,
36921,
10044,
4105,
7,
198,
220,
220,
220,
6038,
18173,
796,
5157,
2364,
50,
1740,
18173,
11,
198,
220,
220,
220,
26827,
796,
1160,
11,
198,
220,
220,
220,
6038,
18173,
37266,
796,
357,
12825,
11,
642,
828,
1303,
5252,
290,
275,
415,
524,
198,
220,
1267,
198,
220,
989,
796,
17373,
378,
0,
7,
70,
11,
6124,
11,
42287,
8,
198,
220,
44872,
7,
13116,
8,
198,
220,
581,
796,
7925,
0,
7,
70,
11,
257,
6448,
1096,
8,
198,
220,
581,
796,
28183,
7,
411,
11,
40091,
62,
83,
26,
3424,
796,
3991,
11,
285,
796,
2488,
834,
33365,
24212,
834,
8,
1303,
428,
655,
6266,
14354,
290,
45815,
299,
12,
560,
5556,
290,
1963,
198,
220,
581,
198,
437,
198,
198,
29113,
7804,
21017,
198,
198,
37266,
796,
311,
36921,
10044,
4105,
7,
48678,
796,
1160,
11,
6038,
18173,
37266,
796,
357,
12825,
11,
642,
4008,
198,
198,
1640,
1312,
287,
352,
25,
17,
198,
220,
409,
796,
30276,
7,
37498,
64,
1343,
275,
1343,
357,
15,
1635,
269,
8,
1343,
288,
4008,
198,
220,
44872,
7203,
13014,
1043,
25,
720,
1069,
4943,
198,
437,
628,
198,
9654,
7203,
10677,
14,
12417,
13,
3808,
1600,
366,
86,
4943,
466,
277,
198,
220,
3551,
7,
69,
11,
17000,
62,
8189,
7,
1169,
652,
11,
12405,
4008,
198,
437,
198
] | 2.235653 | 819 |
using Documenter, StingerGraphs
makedocs()
deploydocs(
julia = "nightly",
repo = "github.com/stingergraph/StingerGraphs.jl.git"
)
| [
3500,
16854,
263,
11,
520,
3889,
37065,
82,
198,
198,
76,
4335,
420,
82,
3419,
198,
198,
2934,
1420,
31628,
7,
198,
220,
220,
220,
474,
43640,
796,
366,
3847,
306,
1600,
198,
220,
220,
220,
29924,
796,
366,
12567,
13,
785,
14,
301,
3889,
34960,
14,
50,
889,
263,
37065,
82,
13,
20362,
13,
18300,
1,
198,
8,
198
] | 2.333333 | 60 |
using RCall
function load_R_library(libname)
reval("library($libname)")
end
| [
3500,
13987,
439,
198,
198,
8818,
3440,
62,
49,
62,
32016,
7,
8019,
3672,
8,
198,
220,
220,
220,
302,
2100,
7203,
32016,
16763,
8019,
3672,
8,
4943,
198,
437,
198
] | 2.612903 | 31 |
struct DBFGS{T1,T2,T3} <: QuasiNewton{T1}
approx::T1
theta::T2
P::T3
end
DBFGS(approx) = DBFGS(approx, 0.2, nothing)
DBFGS(; inverse = true, theta = 0.2) = DBFGS(inverse ? Inverse() : Direct(), theta, nothing)
hasprecon(::DBFGS{<:Any,<:Any,<:Nothing}) = NoPrecon()
hasprecon(::DBFGS{<:Any,<:Any,<:Any}) = HasPrecon()
summary(dbfgs::DBFGS{Inverse}) = "Inverse Damped BFGS"
summary(dbfgs::DBFGS{Direct}) = "Direct Damped BFGS"
function update!(scheme::DBFGS{<:Direct,<:Any,<:Any}, B, s, y)
# We could write this as
# B .+= (y*y')/dot(s, y) - (B*s)*(s'*B)/(s'*B*s)
# B .+= (y*y')/dot(s, y) - b*b'/dot(s, b)
# where b = B*s
# But instead, we split up the calculations. First calculate the denominator
# in the first term
σ = dot(s, y)
ρ = inv(σ) # scalar
# Then calculate the vector b
b = B * s # vector temporary
sb = dot(s, b)
if σ ≥ scheme.theta * sb
θ = 1.0
# Calculate one vector divided by dot(s, b)
ρbb = inv(sb) * b
# And calculate
B .+= (inv(σ) * y) * y' .- ρbb * b'
else
θ = 0.8 * sb / (sb - σ)
r = y * θ + (1 - θ) * b
# Calculate one vector divided by dot(s, b)
ρbb = inv(dot(s, b)) * b
# And calculate
B .+= (inv(dot(s, r)) * r) * r' .- ρbb * b'
end
end
function update(scheme::DBFGS{<:Direct,<:Any}, B, s, y)
# As above, but out of place
σ = dot(s, y)
b = B * s
sb = dot(s, b)
if σ ≥ scheme.theta * sb
θ = 1.0
# Calculate one vector divided by dot(s, b)
ρbb = inv(sb) * b
# And calculate
return B = B .+ (inv(σ) * y) * y' .- ρbb * b'
else
θ = 0.8 * sb / (sb - σ)
r = y * θ + (1 - θ) * b
# Calculate one vector divided by dot(s, b)
ρbb = inv(dot(s, b)) * b
# And calculate
return B = B .+ (inv(dot(s, r)) * r) * r' .- ρbb * b'
end
end
function update(scheme::DBFGS{<:Inverse,<:Any}, H, s, y)
σ = dot(s, y)
ρ = inv(σ)
# if isfinite(ρ)
C = (I - ρ * s * y')
H = C * H * C' + ρ * s * s'
# end
H
end
function update!(scheme::DBFGS{<:Inverse,<:Any}, H, s, y)
σ = dot(s, y)
ρ = inv(σ)
if isfinite(ρ)
Hy = H * y
H .= H .+ ((σ + y' * Hy) .* ρ^2) * (s * s')
Hys = Hy * s'
Hys .= Hys .+ Hys'
H .= H .- Hys .* ρ
end
H
end
function update!(scheme::DBFGS{<:Inverse,<:Any}, A::UniformScaling, s, y)
update(scheme, A, s, y)
end
function update!(scheme::DBFGS{<:Direct,<:Any}, A::UniformScaling, s, y)
update(scheme, A, s, y)
end
| [
7249,
20137,
37,
14313,
90,
51,
16,
11,
51,
17,
11,
51,
18,
92,
1279,
25,
2264,
17053,
3791,
1122,
90,
51,
16,
92,
198,
220,
220,
220,
5561,
3712,
51,
16,
198,
220,
220,
220,
262,
8326,
3712,
51,
17,
198,
220,
220,
220,
350,
3712,
51,
18,
198,
437,
198,
11012,
37,
14313,
7,
1324,
13907,
8,
796,
20137,
37,
14313,
7,
1324,
13907,
11,
657,
13,
17,
11,
2147,
8,
198,
11012,
37,
14313,
7,
26,
34062,
796,
2081,
11,
262,
8326,
796,
657,
13,
17,
8,
796,
20137,
37,
14313,
7,
259,
4399,
5633,
554,
4399,
3419,
1058,
4128,
22784,
262,
8326,
11,
2147,
8,
198,
10134,
3866,
1102,
7,
3712,
11012,
37,
14313,
90,
27,
25,
7149,
11,
27,
25,
7149,
11,
27,
25,
18465,
30072,
796,
1400,
6719,
1102,
3419,
198,
10134,
3866,
1102,
7,
3712,
11012,
37,
14313,
90,
27,
25,
7149,
11,
27,
25,
7149,
11,
27,
25,
7149,
30072,
796,
7875,
6719,
1102,
3419,
198,
49736,
7,
9945,
69,
14542,
3712,
11012,
37,
14313,
90,
818,
4399,
30072,
796,
366,
818,
4399,
360,
13322,
41646,
14313,
1,
198,
49736,
7,
9945,
69,
14542,
3712,
11012,
37,
14313,
90,
13470,
30072,
796,
366,
13470,
360,
13322,
41646,
14313,
1,
198,
198,
8818,
4296,
0,
7,
15952,
1326,
3712,
11012,
37,
14313,
90,
27,
25,
13470,
11,
27,
25,
7149,
11,
27,
25,
7149,
5512,
347,
11,
264,
11,
331,
8,
198,
220,
220,
220,
1303,
775,
714,
3551,
428,
355,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
347,
764,
47932,
357,
88,
9,
88,
11537,
14,
26518,
7,
82,
11,
331,
8,
532,
357,
33,
9,
82,
27493,
7,
82,
6,
9,
33,
20679,
7,
82,
6,
9,
33,
9,
82,
8,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
347,
764,
47932,
357,
88,
9,
88,
11537,
14,
26518,
7,
82,
11,
331,
8,
532,
275,
9,
65,
26488,
26518,
7,
82,
11,
275,
8,
198,
220,
220,
220,
1303,
810,
275,
796,
347,
9,
82,
198,
220,
220,
220,
1303,
887,
2427,
11,
356,
6626,
510,
262,
16765,
13,
3274,
15284,
262,
31457,
1352,
198,
220,
220,
220,
1303,
287,
262,
717,
3381,
198,
220,
220,
220,
18074,
225,
796,
16605,
7,
82,
11,
331,
8,
198,
220,
220,
220,
18074,
223,
796,
800,
7,
38392,
8,
1303,
16578,
283,
198,
220,
220,
220,
1303,
3244,
15284,
262,
15879,
275,
198,
220,
220,
220,
275,
796,
347,
1635,
264,
1303,
15879,
8584,
198,
220,
220,
220,
264,
65,
796,
16605,
7,
82,
11,
275,
8,
198,
220,
220,
220,
611,
18074,
225,
26870,
7791,
13,
1169,
8326,
1635,
264,
65,
198,
220,
220,
220,
220,
220,
220,
220,
7377,
116,
796,
352,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
27131,
378,
530,
15879,
9086,
416,
16605,
7,
82,
11,
275,
8,
198,
220,
220,
220,
220,
220,
220,
220,
18074,
223,
11848,
796,
800,
7,
36299,
8,
1635,
275,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
843,
15284,
198,
220,
220,
220,
220,
220,
220,
220,
347,
764,
47932,
357,
16340,
7,
38392,
8,
1635,
331,
8,
1635,
331,
6,
764,
12,
18074,
223,
11848,
1635,
275,
6,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
7377,
116,
796,
657,
13,
23,
1635,
264,
65,
1220,
357,
36299,
532,
18074,
225,
8,
198,
220,
220,
220,
220,
220,
220,
220,
374,
796,
331,
1635,
7377,
116,
1343,
357,
16,
532,
7377,
116,
8,
1635,
275,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
27131,
378,
530,
15879,
9086,
416,
16605,
7,
82,
11,
275,
8,
198,
220,
220,
220,
220,
220,
220,
220,
18074,
223,
11848,
796,
800,
7,
26518,
7,
82,
11,
275,
4008,
1635,
275,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
843,
15284,
198,
220,
220,
220,
220,
220,
220,
220,
347,
764,
47932,
357,
16340,
7,
26518,
7,
82,
11,
374,
4008,
1635,
374,
8,
1635,
374,
6,
764,
12,
18074,
223,
11848,
1635,
275,
6,
198,
220,
220,
220,
886,
198,
437,
198,
8818,
4296,
7,
15952,
1326,
3712,
11012,
37,
14313,
90,
27,
25,
13470,
11,
27,
25,
7149,
5512,
347,
11,
264,
11,
331,
8,
198,
220,
220,
220,
1303,
1081,
2029,
11,
475,
503,
286,
1295,
628,
220,
220,
220,
18074,
225,
796,
16605,
7,
82,
11,
331,
8,
198,
220,
220,
220,
275,
796,
347,
1635,
264,
198,
220,
220,
220,
264,
65,
796,
16605,
7,
82,
11,
275,
8,
198,
220,
220,
220,
611,
18074,
225,
26870,
7791,
13,
1169,
8326,
1635,
264,
65,
198,
220,
220,
220,
220,
220,
220,
220,
7377,
116,
796,
352,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
27131,
378,
530,
15879,
9086,
416,
16605,
7,
82,
11,
275,
8,
198,
220,
220,
220,
220,
220,
220,
220,
18074,
223,
11848,
796,
800,
7,
36299,
8,
1635,
275,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
843,
15284,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
347,
796,
347,
764,
10,
357,
16340,
7,
38392,
8,
1635,
331,
8,
1635,
331,
6,
764,
12,
18074,
223,
11848,
1635,
275,
6,
198,
220,
220,
220,
2073,
198,
220,
220,
220,
220,
220,
220,
220,
7377,
116,
796,
657,
13,
23,
1635,
264,
65,
1220,
357,
36299,
532,
18074,
225,
8,
198,
220,
220,
220,
220,
220,
220,
220,
374,
796,
331,
1635,
7377,
116,
1343,
357,
16,
532,
7377,
116,
8,
1635,
275,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
27131,
378,
530,
15879,
9086,
416,
16605,
7,
82,
11,
275,
8,
198,
220,
220,
220,
220,
220,
220,
220,
18074,
223,
11848,
796,
800,
7,
26518,
7,
82,
11,
275,
4008,
1635,
275,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
843,
15284,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
347,
796,
347,
764,
10,
357,
16340,
7,
26518,
7,
82,
11,
374,
4008,
1635,
374,
8,
1635,
374,
6,
764,
12,
18074,
223,
11848,
1635,
275,
6,
198,
220,
220,
220,
886,
198,
437,
198,
8818,
4296,
7,
15952,
1326,
3712,
11012,
37,
14313,
90,
27,
25,
818,
4399,
11,
27,
25,
7149,
5512,
367,
11,
264,
11,
331,
8,
198,
220,
220,
220,
18074,
225,
796,
16605,
7,
82,
11,
331,
8,
198,
220,
220,
220,
18074,
223,
796,
800,
7,
38392,
8,
198,
220,
220,
220,
1303,
220,
220,
611,
318,
69,
9504,
7,
33643,
8,
198,
220,
220,
220,
327,
796,
357,
40,
532,
18074,
223,
1635,
264,
1635,
331,
11537,
198,
220,
220,
220,
367,
796,
327,
1635,
367,
1635,
327,
6,
1343,
18074,
223,
1635,
264,
1635,
264,
6,
198,
220,
220,
220,
1303,
220,
220,
886,
198,
220,
220,
220,
367,
198,
437,
198,
8818,
4296,
0,
7,
15952,
1326,
3712,
11012,
37,
14313,
90,
27,
25,
818,
4399,
11,
27,
25,
7149,
5512,
367,
11,
264,
11,
331,
8,
198,
220,
220,
220,
18074,
225,
796,
16605,
7,
82,
11,
331,
8,
198,
220,
220,
220,
18074,
223,
796,
800,
7,
38392,
8,
628,
220,
220,
220,
611,
318,
69,
9504,
7,
33643,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6707,
796,
367,
1635,
331,
198,
220,
220,
220,
220,
220,
220,
220,
367,
764,
28,
367,
764,
10,
14808,
38392,
1343,
331,
6,
1635,
6707,
8,
764,
9,
18074,
223,
61,
17,
8,
1635,
357,
82,
1635,
264,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
367,
893,
796,
6707,
1635,
264,
6,
198,
220,
220,
220,
220,
220,
220,
220,
367,
893,
764,
28,
367,
893,
764,
10,
367,
893,
6,
198,
220,
220,
220,
220,
220,
220,
220,
367,
764,
28,
367,
764,
12,
367,
893,
764,
9,
18074,
223,
198,
220,
220,
220,
886,
198,
220,
220,
220,
367,
198,
437,
198,
198,
8818,
4296,
0,
7,
15952,
1326,
3712,
11012,
37,
14313,
90,
27,
25,
818,
4399,
11,
27,
25,
7149,
5512,
317,
3712,
3118,
6933,
3351,
4272,
11,
264,
11,
331,
8,
198,
220,
220,
220,
4296,
7,
15952,
1326,
11,
317,
11,
264,
11,
331,
8,
198,
437,
198,
8818,
4296,
0,
7,
15952,
1326,
3712,
11012,
37,
14313,
90,
27,
25,
13470,
11,
27,
25,
7149,
5512,
317,
3712,
3118,
6933,
3351,
4272,
11,
264,
11,
331,
8,
198,
220,
220,
220,
4296,
7,
15952,
1326,
11,
317,
11,
264,
11,
331,
8,
198,
437,
198
] | 1.850142 | 1,408 |
Subsets and Splits