Skip to content

Commit c6bd8f6

Browse files
committed
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 ---
1 parent f4a90b1 commit c6bd8f6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/node_modules/@stdlib/lapack/base/dgttrf/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ var IPIV0 = new Int32Array( [ 0, 0, 0, 0 ] );
180180

181181
// Create offset views...
182182
var DL = new Float64Array( DL0.buffer, DL0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
183-
var D = new Float64Array( D0.buffer, D0.BYTES_PER_ELEMENT*1 );
184-
var DU = new Float64Array( DU0.buffer, DU0.BYTES_PER_ELEMENT*1 );
185-
var DU2 = new Float64Array( DU20.buffer, DU20.BYTES_PER_ELEMENT*1 );
186-
var IPIV = new Int32Array( IPIV0.buffer, IPIV0.BYTES_PER_ELEMENT*1 );
183+
var D = new Float64Array( D0.buffer, D0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
184+
var DU = new Float64Array( DU0.buffer, DU0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
185+
var DU2 = new Float64Array( DU20.buffer, DU20.BYTES_PER_ELEMENT*1 ); // start at 2nd element
186+
var IPIV = new Int32Array( IPIV0.buffer, IPIV0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
187187

188188
dgttrf( 3, DL, D, DU, DU2, IPIV );
189189
// DL0 => <Float64Array>[ 0.0, 0.3, ~0.22 ]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function dgttrf( N, DL, strideDL, offsetDL, D, strideD, offsetD, DU, strideDU, o
127127

128128
j = idu + strideDU;
129129
DU2[ idu2 ] = DU[ j ];
130-
DU[ j ] = -fact*DU[ j ];
130+
DU[ j ] *= -fact;
131131

132132
IPIV[ ip ] = i + 1;
133133
}

0 commit comments

Comments
 (0)