Skip to content

Commit 51984dc

Browse files
committed
test: 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 7870b48 commit 51984dc

File tree

8 files changed

+497
-0
lines changed

8 files changed

+497
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ var bignum = 1.0 / smlnum;
7474
* var scale = dlatrs( 'upper', 'no-transpose', 'non-unit', 'no', 3, A, 3, 1, 0, X, 1, 0, CNORM, 1, 0 );
7575
* // returns 1.0
7676
* // X => <Float64Array>[ 5.0, 0.0, 5.0 ]
77+
* // CNORM => <Float64Array>[ 0.0, 1.0, 3.0 ]
7778
*/
7879
function dlatrs( uplo, trans, diag, normin, N, A, strideA1, strideA2, offsetA, X, strideX, offsetX, CNORM, strideCNORM, offsetCNORM ) {
7980
var jfirst;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ var base = require( './base.js' );
6464
* var scale = dlatrs( 'row-major', 'upper', 'no-transpose', 'non-unit', 'no', 3, A, 3, X, CNORM );
6565
* // returns 1.0
6666
* // X => <Float64Array>[ 5.0, 0.0, 5.0 ]
67+
* // CNORM => <Float64Array>[ 0.0, 1.0, 3.0 ]
6768
*/
6869
function dlatrs( order, uplo, trans, diag, normin, N, A, LDA, X, CNORM ) {
6970
var sa1;

lib/node_modules/@stdlib/lapack/base/dlatrs/lib/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* var scale = dlatrs( 'row-major', 'upper', 'no-transpose', 'non-unit', 'no', 3, A, 3, X, CNORM );
3535
* // returns 1.0
3636
* // X => <Float64Array>[ 5.0, 0.0, 5.0 ]
37+
* // CNORM => <Float64Array>[ 0.0, 1.0, 3.0 ]
3738
*/
3839

3940
// MODULES //

lib/node_modules/@stdlib/lapack/base/dlatrs/lib/ndarray.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ var base = require( './base.js' );
6565
* var scale = dlatrs( 'upper', 'no-transpose', 'non-unit', 'no', 3, A, 3, 1, 0, X, 1, 0, CNORM, 1, 0 );
6666
* // returns 1.0
6767
* // X => <Float64Array>[ 5.0, 0.0, 5.0 ]
68+
* // CNORM => <Float64Array>[ 0.0, 1.0, 3.0 ]
6869
*/
6970
function dlatrs( uplo, trans, diag, normin, N, A, strideA1, strideA2, offsetA, X, strideX, offsetX, CNORM, strideCNORM, offsetCNORM ) {
7071
if ( !isMatrixTriangle( uplo ) ) {
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"order": "column-major",
3+
4+
"uplo": "upper",
5+
"trans": "no-transpose",
6+
"diag": "non-unit",
7+
"normin": "no",
8+
9+
"N": 3,
10+
"LDA": 3,
11+
12+
"A": [ 2.0, 0.0, 0.0, 1.0, 3.0, 0.0, -1.0, 2.0, 4.0 ],
13+
"strideA1": 1,
14+
"strideA2": 3,
15+
"offsetA": 0,
16+
17+
"A_mat": [
18+
[ 2.0, 1.0, -1.0 ],
19+
[ 0.0, 3.0, 2.0 ],
20+
[ 0.0, 0.0, 4.0 ]
21+
],
22+
23+
"X": [ 5.0, 10.0, 20.0 ],
24+
"strideX": 1,
25+
"offsetX": 0,
26+
27+
"CNORM": [ 0.0, 0.0, 0.0 ],
28+
"strideCNORM": 1,
29+
"offsetCNORM": 0,
30+
31+
"expectedX": [ 5.0, 0.0, 5.0 ],
32+
"expectedCNORM": [ 0.0, 1.0, 3.0 ],
33+
"scale": 1.0
34+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"order": "row-major",
3+
4+
"uplo": "upper",
5+
"trans": "no-transpose",
6+
"diag": "non-unit",
7+
"normin": "no",
8+
9+
"N": 3,
10+
"LDA": 3,
11+
12+
"A": [ 2.0, 1.0, -1.0, 0.0, 3.0, 2.0, 0.0, 0.0, 4.0 ],
13+
"strideA1": 3,
14+
"strideA2": 1,
15+
"offsetA": 0,
16+
17+
"A_mat": [
18+
[ 2.0, 1.0, -1.0 ],
19+
[ 0.0, 3.0, 2.0 ],
20+
[ 0.0, 0.0, 4.0 ]
21+
],
22+
23+
"X": [ 5.0, 10.0, 20.0 ],
24+
"strideX": 1,
25+
"offsetX": 0,
26+
27+
"CNORM": [ 0.0, 0.0, 0.0 ],
28+
"strideCNORM": 1,
29+
"offsetCNORM": 0,
30+
31+
"expectedX": [ 5.0, 0.0, 5.0 ],
32+
"expectedCNORM": [ 0.0, 1.0, 3.0 ],
33+
"scale": 1.0
34+
}

0 commit comments

Comments
 (0)