From c6bd8f6c23111bed16543a9487cead29435353fa Mon Sep 17 00:00:00 2001 From: Aayush Khanna Date: Tue, 17 Jun 2025 06:06:59 +0000 Subject: [PATCH] chore: minor cleanup in dgttrf --- 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: passed - 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 --- --- lib/node_modules/@stdlib/lapack/base/dgttrf/README.md | 8 ++++---- lib/node_modules/@stdlib/lapack/base/dgttrf/lib/base.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/node_modules/@stdlib/lapack/base/dgttrf/README.md b/lib/node_modules/@stdlib/lapack/base/dgttrf/README.md index f68fd7569c11..ec6ea4c7dcc1 100644 --- a/lib/node_modules/@stdlib/lapack/base/dgttrf/README.md +++ b/lib/node_modules/@stdlib/lapack/base/dgttrf/README.md @@ -180,10 +180,10 @@ var IPIV0 = new Int32Array( [ 0, 0, 0, 0 ] ); // Create offset views... var DL = new Float64Array( DL0.buffer, DL0.BYTES_PER_ELEMENT*1 ); // start at 2nd element -var D = new Float64Array( D0.buffer, D0.BYTES_PER_ELEMENT*1 ); -var DU = new Float64Array( DU0.buffer, DU0.BYTES_PER_ELEMENT*1 ); -var DU2 = new Float64Array( DU20.buffer, DU20.BYTES_PER_ELEMENT*1 ); -var IPIV = new Int32Array( IPIV0.buffer, IPIV0.BYTES_PER_ELEMENT*1 ); +var D = new Float64Array( D0.buffer, D0.BYTES_PER_ELEMENT*1 ); // start at 2nd element +var DU = new Float64Array( DU0.buffer, DU0.BYTES_PER_ELEMENT*1 ); // start at 2nd element +var DU2 = new Float64Array( DU20.buffer, DU20.BYTES_PER_ELEMENT*1 ); // start at 2nd element +var IPIV = new Int32Array( IPIV0.buffer, IPIV0.BYTES_PER_ELEMENT*1 ); // start at 2nd element dgttrf( 3, DL, D, DU, DU2, IPIV ); // DL0 => [ 0.0, 0.3, ~0.22 ] diff --git a/lib/node_modules/@stdlib/lapack/base/dgttrf/lib/base.js b/lib/node_modules/@stdlib/lapack/base/dgttrf/lib/base.js index 220793a456a3..24f9ff8e298d 100644 --- a/lib/node_modules/@stdlib/lapack/base/dgttrf/lib/base.js +++ b/lib/node_modules/@stdlib/lapack/base/dgttrf/lib/base.js @@ -127,7 +127,7 @@ function dgttrf( N, DL, strideDL, offsetDL, D, strideD, offsetD, DU, strideDU, o j = idu + strideDU; DU2[ idu2 ] = DU[ j ]; - DU[ j ] = -fact*DU[ j ]; + DU[ j ] *= -fact; IPIV[ ip ] = i + 1; }