Skip to content

Commit a870958

Browse files
committed
test: write all tests
--- 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: passed - 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 74817d9 commit a870958

File tree

14 files changed

+659
-32
lines changed

14 files changed

+659
-32
lines changed

lib/node_modules/@stdlib/lapack/base/iladlc/lib/base.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ function iladlc( M, N, A, strideA1, strideA2, offsetA ) {
7878
} else {
7979
ia1 = offsetA + ( (N-1) * strideA2 );
8080
for ( i = N-1; i >= 0; i-- ) {
81-
ia1 = 0;
81+
ia2 = 0;
8282
for ( j = 0; j < M; j++ ) {
8383
if ( A[ ia1 + ia2 ] !== 0.0 ) {
8484
return i;
8585
}
86-
ia1 += strideA1;
86+
ia2 += strideA1;
8787
}
8888
ia1 -= strideA2;
8989
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"order": "column-major",
3-
"A": [ 1.0, 4.0, 2.0, 1.0, 3.0, 0.0 ],
3+
"A": [ 1.0, 4.0, 2.0, 1.0, 0.0, 0.0 ],
44
"M": 2,
55
"N": 3,
66
"strideA1": 1,
77
"strideA2": 2,
88
"offsetA": 0,
99
"LDA": 2,
1010
"A_mat": [
11-
[ 1.0, 2.0, 3.0 ],
11+
[ 1.0, 2.0, 0.0 ],
1212
[ 4.0, 1.0, 0.0 ]
1313
],
14-
"expected": 2
14+
"expected": 1
1515
}

lib/node_modules/@stdlib/lapack/base/iladlc/test/fixtures/large_strides/column_major.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
9999.0,
1010
1.0,
1111
9999.0,
12-
3.0,
12+
0.0,
1313
9999.0,
1414
0.0,
1515
9999.0
@@ -21,8 +21,8 @@
2121
"offsetA": 0,
2222
"LDA": 2,
2323
"A_mat": [
24-
[ 1.0, 2.0, 3.0 ],
24+
[ 1.0, 2.0, 0.0 ],
2525
[ 4.0, 1.0, 0.0 ]
2626
],
27-
"expected": 2
27+
"expected": 1
2828
}

lib/node_modules/@stdlib/lapack/base/iladlc/test/fixtures/large_strides/row_major.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
9999.0,
66
2.0,
77
9999.0,
8-
3.0,
8+
0.0,
99
9999.0,
1010
4.0,
1111
9999.0,
@@ -21,8 +21,8 @@
2121
"offsetA": 0,
2222
"LDA": 3,
2323
"A_mat": [
24-
[ 1.0, 2.0, 3.0 ],
24+
[ 1.0, 2.0, 0.0 ],
2525
[ 4.0, 1.0, 0.0 ]
2626
],
27-
"expected": 2
27+
"expected": 1
2828
}

lib/node_modules/@stdlib/lapack/base/iladlc/test/fixtures/mixed_strides/column_major.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"order": "column-major",
33
"A": [
4-
3.0,
4+
0.0,
55
0.0,
66
2.0,
77
1.0,
@@ -15,8 +15,8 @@
1515
"offsetA": 4,
1616
"LDA": 2,
1717
"A_mat": [
18-
[ 1.0, 2.0, 3.0 ],
18+
[ 1.0, 2.0, 0.0 ],
1919
[ 4.0, 1.0, 0.0 ]
2020
],
21-
"expected": 2
21+
"expected": 1
2222
}

lib/node_modules/@stdlib/lapack/base/iladlc/test/fixtures/mixed_strides/row_major.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
0.0,
77
1.0,
88
2.0,
9-
3.0
9+
0.0
1010
],
1111
"M": 2,
1212
"N": 3,
@@ -15,8 +15,8 @@
1515
"offsetA": 3,
1616
"LDA": 3,
1717
"A_mat": [
18-
[ 1.0, 2.0, 3.0 ],
18+
[ 1.0, 2.0, 0.0 ],
1919
[ 4.0, 1.0, 0.0 ]
2020
],
21-
"expected": 2
21+
"expected": 1
2222
}

lib/node_modules/@stdlib/lapack/base/iladlc/test/fixtures/negative_strides/column_major.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"order": "column-major",
33
"A": [
44
0.0,
5-
3.0,
5+
0.0,
66
1.0,
77
2.0,
88
4.0,
@@ -15,8 +15,8 @@
1515
"offsetA": 5,
1616
"LDA": 2,
1717
"A_mat": [
18-
[ 1.0, 2.0, 3.0 ],
18+
[ 1.0, 2.0, 0.0 ],
1919
[ 4.0, 1.0, 0.0 ]
2020
],
21-
"expected": 2
21+
"expected": 1
2222
}

lib/node_modules/@stdlib/lapack/base/iladlc/test/fixtures/negative_strides/row_major.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
0.0,
55
1.0,
66
4.0,
7-
3.0,
7+
0.0,
88
2.0,
99
1.0
1010
],
@@ -15,8 +15,8 @@
1515
"offsetA": 5,
1616
"LDA": 3,
1717
"A_mat": [
18-
[ 1.0, 2.0, 3.0 ],
18+
[ 1.0, 2.0, 0.0 ],
1919
[ 4.0, 1.0, 0.0 ]
2020
],
21-
"expected": 2
21+
"expected": 1
2222
}

lib/node_modules/@stdlib/lapack/base/iladlc/test/fixtures/offsets/column_major.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
4.0,
77
2.0,
88
1.0,
9-
3.0,
9+
0.0,
1010
0.0
1111
],
1212
"M": 2,
@@ -16,8 +16,8 @@
1616
"offsetA": 1,
1717
"LDA": 2,
1818
"A_mat": [
19-
[ 1.0, 2.0, 3.0 ],
19+
[ 1.0, 2.0, 0.0 ],
2020
[ 4.0, 1.0, 0.0 ]
2121
],
22-
"expected": 2
22+
"expected": 1
2323
}

lib/node_modules/@stdlib/lapack/base/iladlc/test/fixtures/offsets/row_major.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
9999.0,
55
1.0,
66
2.0,
7-
3.0,
7+
0.0,
88
4.0,
99
1.0,
1010
0.0
@@ -16,8 +16,8 @@
1616
"offsetA": 1,
1717
"LDA": 3,
1818
"A_mat": [
19-
[ 1.0, 2.0, 3.0 ],
19+
[ 1.0, 2.0, 0.0 ],
2020
[ 4.0, 1.0, 0.0 ]
2121
],
22-
"expected": 2
22+
"expected": 1
2323
}

0 commit comments

Comments
 (0)