Skip to content

Commit 172bc38

Browse files
committed
test: add tests for complex access patterns
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 2623647 commit 172bc38

13 files changed

+1007
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"order": "column-major",
3+
4+
"itrans": 0,
5+
"N": 3,
6+
"nrhs": 3,
7+
8+
"DL": [ 0.5, 0.5 ],
9+
"sdl": 1,
10+
"odl": 0,
11+
12+
"D": [ 2.0, 1.0, 0.5 ],
13+
"sd": 1,
14+
"od": 0,
15+
16+
"DU": [ 1.0, 1.0 ],
17+
"sdu": 1,
18+
"odu": 0,
19+
20+
"DU2": [ 0.0 ],
21+
"sdu2": 1,
22+
"odu2": 0,
23+
24+
"IPIV": [ 0, 2, 2 ],
25+
"si": 1,
26+
"oi": 0,
27+
28+
"B": [ 9999.0, 1.0, 9999.0, 2.0, 9999.0, 7.0, 9999.0, 9999.0, 1.5, 9999.0, 3.0, 9999.0, 8.0, 9999.0, 9999.0, 2.0, 9999.0, 4.0, 9999.0, 7.0 ],
29+
"sb1": -2,
30+
"sb2": 7,
31+
"ob": 5,
32+
"LDB": null,
33+
34+
"B_mat": [
35+
[ 7.0, 8.0, 7.0 ],
36+
[ 2.0, 3.0, 4.0 ],
37+
[ 1.0, 1.5, 2.0 ]
38+
],
39+
40+
"expected": [ 9999.0, -4.0, 9999.0, 5.0, 9999.0, 1.0, 9999.0, 9999.0, -3.5, 9999.0, 5.0, 9999.0, 1.5, 9999.0, 9999.0, -1.0, 9999.0, 3.0, 9999.0, 2.0 ],
41+
42+
"expected_mat": [
43+
[ 1.0, 1.5, 2.0 ],
44+
[ 5.0, 5.0, 3.0 ],
45+
[ -4.0, -3.5, -1.0 ]
46+
]
47+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"order": "column-major",
3+
4+
"itrans": 0,
5+
"N": 3,
6+
"nrhs": 1,
7+
8+
"DL": [ 0.25, 0.26666667 ],
9+
"sdl": 1,
10+
"odl": 0,
11+
12+
"D": [ 4.0, 3.75, 3.73333333 ],
13+
"sd": 1,
14+
"od": 0,
15+
16+
"DU": [ 1.0, 0.73333333 ],
17+
"sdu": 1,
18+
"odu": 0,
19+
20+
"DU2": [ 0.0 ],
21+
"sdu2": 1,
22+
"odu2": 0,
23+
24+
"IPIV": [ 0, 1, 2 ],
25+
"si": 1,
26+
"oi": 0,
27+
28+
"B": [ 7.0, 8.0, 7.0 ],
29+
"sb1": 1,
30+
"sb2": -3,
31+
"ob": 0,
32+
"LDB": 3,
33+
34+
"B_mat": [
35+
[ 7.0 ],
36+
[ 8.0 ],
37+
[ 7.0 ]
38+
],
39+
40+
"expected": [ 1.4031746026466836, 1.3873015894132654, 1.4285714242665817 ],
41+
42+
"expected_mat": [
43+
[ 1.4031746026466836 ],
44+
[ 1.3873015894132654 ],
45+
[ 1.4285714242665817 ]
46+
]
47+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"order": "column-major",
3+
4+
"itrans": 0,
5+
"N": 3,
6+
"nrhs": 3,
7+
8+
"DL": [ 0.25, 0.26666667 ],
9+
"sdl": 1,
10+
"odl": 0,
11+
12+
"D": [ 4.0, 3.75, 3.73333333 ],
13+
"sd": 1,
14+
"od": 0,
15+
16+
"DU": [ 1.0, 0.73333333 ],
17+
"sdu": 1,
18+
"odu": 0,
19+
20+
"DU2": [ 0.0 ],
21+
"sdu2": 1,
22+
"odu2": 0,
23+
24+
"IPIV": [ 0, 1, 2 ],
25+
"si": 1,
26+
"oi": 0,
27+
28+
"B": [ 9999.0, 1.0, 9999.0, 2.0, 9999.0, 7.0, 9999.0, 9999.0, 1.5, 9999.0, 3.0, 9999.0, 8.0, 9999.0, 9999.0, 2.0, 9999.0, 4.0, 9999.0, 7.0 ],
29+
"sb1": -2,
30+
"sb2": 7,
31+
"ob": 5,
32+
"LDB": null,
33+
34+
"B_mat": [
35+
[ 7.0, 8.0, 7.0 ],
36+
[ 2.0, 3.0, 4.0 ],
37+
[ 1.0, 1.5, 2.0 ]
38+
],
39+
40+
"expected": [
41+
9999.0,
42+
0.25,
43+
9999.0,
44+
0.017777778,
45+
9999.0,
46+
1.7455555555,
47+
9999.0,
48+
49+
9999.0,
50+
0.33035714225924745,
51+
9999.0,
52+
0.2020634924740646,
53+
9999.0,
54+
1.9494841268814838,
55+
9999.0,
56+
57+
9999.0,
58+
0.37499999832589287,
59+
9999.0,
60+
0.526666667327381,
61+
9999.0,
62+
1.6183333331681546
63+
],
64+
65+
"expected_mat": [
66+
[ 1.7455555555, 1.9494841268814838, 1.6183333331681546 ],
67+
[ 0.017777778, 0.2020634924740646, 0.526666667327381 ],
68+
[ 0.25, 0.33035714225924745, 0.37499999832589287 ]
69+
]
70+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"order": "column-major",
3+
4+
"itrans": 1,
5+
"N": 3,
6+
"nrhs": 3,
7+
8+
"DL": [ 0.5, 0.5 ],
9+
"sdl": 1,
10+
"odl": 0,
11+
12+
"D": [ 2.0, 1.0, 0.5 ],
13+
"sd": 1,
14+
"od": 0,
15+
16+
"DU": [ 1.0, 1.0 ],
17+
"sdu": 1,
18+
"odu": 0,
19+
20+
"DU2": [ 0.0 ],
21+
"sdu2": 1,
22+
"odu2": 0,
23+
24+
"IPIV": [ 0, 2, 2 ],
25+
"si": 1,
26+
"oi": 0,
27+
28+
"B": [ 9999.0, 1.0, 9999.0, 2.0, 9999.0, 7.0, 9999.0, 9999.0, 1.5, 9999.0, 3.0, 9999.0, 8.0, 9999.0, 9999.0, 2.0, 9999.0, 4.0, 9999.0, 7.0 ],
29+
"sb1": -2,
30+
"sb2": 7,
31+
"ob": 5,
32+
"LDB": null,
33+
34+
"B_mat": [
35+
[ 7.0, 8.0, 7.0 ],
36+
[ 2.0, 3.0, 4.0 ],
37+
[ 1.0, 1.5, 2.0 ]
38+
],
39+
40+
"expected": [ 9999.0, -4.0, 9999.0, 5.0, 9999.0, 1.0, 9999.0, 9999.0, -3.5, 9999.0, 5.0, 9999.0, 1.5, 9999.0, 9999.0, -1.0, 9999.0, 3.0, 9999.0, 2.0 ],
41+
42+
"expected_mat": [
43+
[ 1.0, 1.5, 2.0 ],
44+
[ 5.0, 5.0, 3.0 ],
45+
[ -4.0, -3.5, -1.0 ]
46+
]
47+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"order": "column-major",
3+
4+
"itrans": 1,
5+
"N": 3,
6+
"nrhs": 1,
7+
8+
"DL": [ 0.25, 0.26666667 ],
9+
"sdl": 1,
10+
"odl": 0,
11+
12+
"D": [ 4.0, 3.75, 3.73333333 ],
13+
"sd": 1,
14+
"od": 0,
15+
16+
"DU": [ 1.0, 0.73333333 ],
17+
"sdu": 1,
18+
"odu": 0,
19+
20+
"DU2": [ 0.0 ],
21+
"sdu2": 1,
22+
"odu2": 0,
23+
24+
"IPIV": [ 0, 1, 2 ],
25+
"si": 1,
26+
"oi": 0,
27+
28+
"B": [ 7.0, 8.0, 7.0 ],
29+
"sb1": 1,
30+
"sb2": -3,
31+
"ob": 0,
32+
"LDB": 3,
33+
34+
"B_mat": [
35+
[ 7.0 ],
36+
[ 8.0 ],
37+
[ 7.0 ]
38+
],
39+
40+
"expected": [ 1.4365079379889456, 1.2539682480442178, 1.5476190504889455 ],
41+
42+
"expected_mat": [
43+
[ 1.4365079379889456 ],
44+
[ 1.2539682480442178 ],
45+
[ 1.5476190504889455 ]
46+
]
47+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"order": "column-major",
3+
4+
"itrans": 1,
5+
"N": 3,
6+
"nrhs": 3,
7+
8+
"DL": [ 0.25, 0.26666667 ],
9+
"sdl": 1,
10+
"odl": 0,
11+
12+
"D": [ 4.0, 3.75, 3.73333333 ],
13+
"sd": 1,
14+
"od": 0,
15+
16+
"DU": [ 1.0, 0.73333333 ],
17+
"sdu": 1,
18+
"odu": 0,
19+
20+
"DU2": [ 0.0 ],
21+
"sdu2": 1,
22+
"odu2": 0,
23+
24+
"IPIV": [ 0, 1, 2 ],
25+
"si": 1,
26+
"oi": 0,
27+
28+
"B": [ 9999.0, 1.0, 9999.0, 2.0, 9999.0, 7.0, 9999.0, 9999.0, 1.5, 9999.0, 3.0, 9999.0, 8.0, 9999.0, 9999.0, 2.0, 9999.0, 4.0, 9999.0, 7.0 ],
29+
"sb1": -2,
30+
"sb2": 7,
31+
"ob": 5,
32+
"LDB": null,
33+
34+
"B_mat": [
35+
[ 7.0, 8.0, 7.0 ],
36+
[ 2.0, 3.0, 4.0 ],
37+
[ 1.0, 1.5, 2.0 ]
38+
],
39+
40+
"expected": [
41+
9999.0,
42+
0.25476190504889457,
43+
9999.0,
44+
-0.0012698421955782274,
45+
9999.0,
46+
1.7503174605488945,
47+
9999.0,
48+
49+
9999.0,
50+
0.34940476245482566,
51+
9999.0,
52+
0.1734920621806973,
53+
9999.0,
54+
1.9566269844548256,
55+
9999.0,
56+
57+
9999.0,
58+
0.4178571437659439,
59+
9999.0,
60+
0.48857142693622446,
61+
9999.0,
62+
1.6278571432659439
63+
],
64+
65+
"expected_mat": [
66+
[ 1.7503174605488945, 1.9566269844548256, 1.6278571432659439 ],
67+
[ -0.0012698421955782274, 0.1734920621806973, 0.48857142693622446 ],
68+
[ 0.25476190504889457, 0.34940476245482566, 0.4178571437659439 ]
69+
]
70+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"order": "row-major",
3+
4+
"itrans": 1,
5+
"N": 3,
6+
"nrhs": 3,
7+
8+
"DL": [ 0.5, 0.5 ],
9+
"sdl": 1,
10+
"odl": 0,
11+
12+
"D": [ 2.0, 1.0, 0.5 ],
13+
"sd": 1,
14+
"od": 0,
15+
16+
"DU": [ 1.0, 1.0 ],
17+
"sdu": 1,
18+
"odu": 0,
19+
20+
"DU2": [ 0.0 ],
21+
"sdu2": 1,
22+
"odu2": 0,
23+
24+
"IPIV": [ 0, 2, 2 ],
25+
"si": 1,
26+
"oi": 0,
27+
28+
"B": [ 9999.0, 1.0, 9999.0, 2.0, 9999.0, 7.0, 9999.0, 9999.0, 1.5, 9999.0, 3.0, 9999.0, 8.0, 9999.0, 9999.0, 2.0, 9999.0, 4.0, 9999.0, 7.0 ],
29+
"sb1": 7,
30+
"sb2": -2,
31+
"ob": 5,
32+
"LDB": null,
33+
34+
"B_mat": [
35+
[ 7.0, 2.0, 1.0 ],
36+
[ 8.0, 3.0, 1.5 ],
37+
[ 7.0, 4.0, 2.0 ]
38+
],
39+
40+
"expected": [ 9999.0, -0.5, 9999.0, -1.0, 9999.0, 1.0, 9999.0, 9999.0, 2.0, 9999.0, 4.0, 9999.0, 5.0, 9999.0, 9999.0, 0.0, 9999.0, 0.0, 9999.0, 2.0 ],
41+
42+
"expected_mat": [
43+
[ 1.0, -1.0, -0.5 ],
44+
[ 5.0, 4.0, 2.0 ],
45+
[ 2.0, 0.0, 0.0 ]
46+
]
47+
}

0 commit comments

Comments
 (0)