Skip to content

Commit 59bed29

Browse files
committed
test: add initial 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 7fb09ef commit 59bed29

12 files changed

+802
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var base = require( './base.js' );
4949
* @param {number} sr2 - real part of the second conjugate complex shift
5050
* @param {number} si2 - imaginary part of the second conjugate complex shift
5151
* @param {Float64Array} V - output array
52-
* @throws {RangeError} first argument must be either 2 or 3
52+
* @throws {RangeError} second argument must be either 2 or 3
5353
* @throws {TypeError} first argument must be a valid order
5454
* @throws {RangeError} fourth argument must be greater than or equal to max(1,N)
5555
* @returns {Float64Array} `V`
@@ -74,7 +74,7 @@ function dlaqr1( order, N, H, LDH, sr1, si1, sr2, si2, V ) {
7474
throw new RangeError( format( 'invalid argument. Fourth argument must be greater than or equal to max(1,%d). Value: `%d`.', N, LDH ) );
7575
}
7676
if ( N !== 2 && N !== 3 ) {
77-
throw new RangeError( format( 'invalid argument. First argument must be either %d or %d. Value: `%d`.', 2, 3, N ) );
77+
throw new RangeError( format( 'invalid argument. Second argument must be either %d or %d. Value: `%d`.', 2, 3, N ) );
7878
}
7979
if ( isColumnMajor( order ) ) {
8080
sh1 = 1;
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"order": "column-major",
3+
"N": 3,
4+
5+
"H": [ 1.0, 2.0, 0.0, 3.0, 4.0, 5.0, 2.0, 6.0, 7.0 ],
6+
"strideH1": 1,
7+
"strideH2": 3,
8+
"offsetH": 0,
9+
"LDH": 3,
10+
11+
"H_mat": [
12+
[ 1.0, 3.0, 2.0 ],
13+
[ 2.0, 4.0, 6.0 ],
14+
[ 0.0, 5.0, 7.0 ]
15+
],
16+
17+
"V": [ 0.0, 0.0, 0.0 ],
18+
"strideV": 1,
19+
"offsetV": 0,
20+
21+
"sr1": 1.5,
22+
"si1": 1.0,
23+
"sr2": 2.5,
24+
"si2": 2.0,
25+
26+
"V_out": [ 0.86363636363636354, 0.36363636363636365, 1.8181818181818183 ]
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"order": "row-major",
3+
"N": 3,
4+
5+
"H": [ 1.0, 3.0, 2.0, 0.0, 4.0, 6.0, 0.0, 5.0, 7.0 ],
6+
"strideH1": 3,
7+
"strideH2": 1,
8+
"offsetH": 0,
9+
"LDH": 3,
10+
11+
"H_mat": [
12+
[ 1.0, 3.0, 2.0 ],
13+
[ 0.0, 4.0, 6.0 ],
14+
[ 0.0, 5.0, 7.0 ]
15+
],
16+
17+
"V": [ 0.0, 0.0, 0.0 ],
18+
"strideV": 1,
19+
"offsetV": 0,
20+
21+
"sr1": 1.5,
22+
"si1": 1.0,
23+
"sr2": 1.0,
24+
"si2": 0.0,
25+
26+
"V_out": [ 0.0, 0.0, 0.0 ]
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"order": "column-major",
3+
"N": 3,
4+
5+
"H": [ 1.0, 0.0, 0.0, 3.0, 4.0, 5.0, 2.0, 6.0, 7.0 ],
6+
"strideH1": 1,
7+
"strideH2": 3,
8+
"offsetH": 0,
9+
"LDH": 3,
10+
11+
"H_mat": [
12+
[ 1.0, 3.0, 2.0 ],
13+
[ 0.0, 4.0, 6.0 ],
14+
[ 0.0, 5.0, 7.0 ]
15+
],
16+
17+
"V": [ 0.0, 0.0, 0.0 ],
18+
"strideV": 1,
19+
"offsetV": 0,
20+
21+
"sr1": 1.5,
22+
"si1": 1.0,
23+
"sr2": 1.0,
24+
"si2": 0.0,
25+
26+
"V_out": [ 0.0, 0.0, 0.0 ]
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"order": "row-major",
3+
"N": 3,
4+
5+
"H": [ 1.0, 3.0, 2.0, 2.0, 4.0, 6.0, 0.0, 5.0, 7.0 ],
6+
"strideH1": 3,
7+
"strideH2": 1,
8+
"offsetH": 0,
9+
"LDH": 3,
10+
11+
"H_mat": [
12+
[ 1.0, 3.0, 2.0 ],
13+
[ 2.0, 4.0, 6.0 ],
14+
[ 0.0, 5.0, 7.0 ]
15+
],
16+
17+
"V": [ 0.0, 0.0, 0.0 ],
18+
"strideV": 1,
19+
"offsetV": 0,
20+
21+
"sr1": 1.5,
22+
"si1": 1.0,
23+
"sr2": 2.5,
24+
"si2": 2.0,
25+
26+
"V_out": [ 0.86363636363636354, 0.36363636363636365, 1.8181818181818183 ]
27+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"order": "column-major",
3+
"N": 2,
4+
5+
"H": [ 1.0, 3.0, 2.0, 4.0 ],
6+
"strideH1": 1,
7+
"strideH2": 2,
8+
"offsetH": 0,
9+
"LDH": 2,
10+
11+
"H_mat": [
12+
[ 1.0, 2.0 ],
13+
[ 3.0, 4.0 ]
14+
],
15+
16+
"V": [ 0.0, 0.0 ],
17+
"strideV": 1,
18+
"offsetV": 0,
19+
20+
"sr1": 1.5,
21+
"si1": 1.0,
22+
"sr2": 1.0,
23+
"si2": 2.0,
24+
25+
"V_out": [ 0.79999999999999993, 1.5000000000000000 ]
26+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"order": "row-major",
3+
"N": 2,
4+
5+
"H": [ 1.0, 2.0, 3.0, 4.0 ],
6+
"strideH1": 2,
7+
"strideH2": 1,
8+
"offsetH": 0,
9+
"LDH": 2,
10+
11+
"H_mat": [
12+
[ 1.0, 2.0 ],
13+
[ 3.0, 4.0 ]
14+
],
15+
16+
"V": [ 0.0, 0.0 ],
17+
"strideV": 1,
18+
"offsetV": 0,
19+
20+
"sr1": 1.5,
21+
"si1": 1.0,
22+
"sr2": 1.0,
23+
"si2": 2.0,
24+
25+
"V_out": [ 0.79999999999999993, 1.5000000000000000 ]
26+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"order": "column-major",
3+
"N": 2,
4+
5+
"H": [ 1.0, 0.0, 2.0, 4.0 ],
6+
"strideH1": 1,
7+
"strideH2": 2,
8+
"offsetH": 0,
9+
"LDH": 2,
10+
11+
"H_mat": [
12+
[ 1.0, 2.0 ],
13+
[ 0.0, 4.0 ]
14+
],
15+
16+
"V": [ 0.0, 0.0 ],
17+
"strideV": 1,
18+
"offsetV": 0,
19+
20+
"sr1": 1.5,
21+
"si1": 1.0,
22+
"sr2": 1.0,
23+
"si2": 0.0,
24+
25+
"V_out": [ 0.0, 0.0 ]
26+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"order": "row-major",
3+
"N": 2,
4+
5+
"H": [ 1.0, 2.0, 0.0, 4.0 ],
6+
"strideH1": 2,
7+
"strideH2": 1,
8+
"offsetH": 0,
9+
"LDH": 2,
10+
11+
"H_mat": [
12+
[ 1.0, 2.0 ],
13+
[ 0.0, 4.0 ]
14+
],
15+
16+
"V": [ 0.0, 0.0 ],
17+
"strideV": 1,
18+
"offsetV": 0,
19+
20+
"sr1": 1.5,
21+
"si1": 1.0,
22+
"sr2": 1.0,
23+
"si2": 0.0,
24+
25+
"V_out": [ 0.0, 0.0 ]
26+
}

0 commit comments

Comments
 (0)