Skip to content

Commit 9bb5c38

Browse files
committed
feat: add main export
--- 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: na - 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 b7e80eb commit 9bb5c38

File tree

5 files changed

+77
-5
lines changed

5 files changed

+77
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2025 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
'use strict';
20+
21+
/**
22+
* LAPACK routine to compute the row and column scaling factors intended to equilibrate a symmetric positive definite matrix `A` in packed storage and reduce it's condition number (with respect to the two-norm).
23+
*
24+
* @module @stdlib/lapack/base/dppequ
25+
*
26+
* @example
27+
* var Float64Array = require( '@stdlib/array/float64' );
28+
* var dppequ = require( '@stdlib/lapack/base/dppequ' );
29+
*
30+
* var AP = new Float64Array( [ 1.0, 2.0, 3.0, 5.0, 6.0, 9.0 ] );
31+
* var S = new Float64Array( 3 );
32+
* var out = new Float64Array( 2 );
33+
*
34+
* dppequ( 'row-major', 'L', 3, AP, S, out );
35+
* // S => <Float64Array>[ 1, ~0.58, ~0.33 ]
36+
* // out => <Float64Array>[ ~0.33, 9 ]
37+
*
38+
* @example
39+
* var Float64Array = require( '@stdlib/array/float64' );
40+
* var dppequ = require( '@stdlib/lapack/base/dppequ' );
41+
*
42+
* var AP = new Float64Array( [ 1.0, 2.0, 3.0, 5.0, 6.0, 9.0 ] );
43+
* var S = new Float64Array( 3 );
44+
* var out = new Float64Array( 2 );
45+
*
46+
* dppequ.ndarray( 'row-major', 'L', 3, AP, 1, 0, S, 1, 0, out, 1, 0 );
47+
* // S => <Float64Array>[ 1, ~0.58, ~0.33 ]
48+
* // out => <Float64Array>[ ~0.33, 9 ]
49+
*/
50+
51+
// MODULES //
52+
53+
var join = require( 'path' ).join;
54+
var tryRequire = require( '@stdlib/utils/try-require' );
55+
var isError = require( '@stdlib/assert/is-error' );
56+
var main = require( './main.js' );
57+
58+
59+
// MAIN //
60+
61+
var dppequ;
62+
var tmp = tryRequire( join( __dirname, './native.js' ) );
63+
if ( isError( tmp ) ) {
64+
dppequ = main;
65+
} else {
66+
dppequ = tmp;
67+
}
68+
69+
70+
// EXPORTS //
71+
72+
module.exports = dppequ;

lib/node_modules/@stdlib/lapack/base/dppequ/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@ var base = require( './base.js' );
2828
// MAIN //
2929

3030
/**
31-
* Computes the row and column scaling factors intended to equilibrate a symmetric positive definite matrix `A` in packed storage and reduce it's condition number (with respect to the two-norm).
31+
* Computes the row and column scaling factors intended to equilibrate a symmetric positive definite matrix `A` in packed storage and reduce it's condition number (with respect to the two-norm) using alternative indexing semantics.
3232
*
3333
* @param {string} order - specifies whether `AP` is packed in row-major or column-major order
3434
* @param {string} uplo - 'Upper' or 'Lower' triangle of `A` is stored

0 commit comments

Comments
 (0)