Skip to content

Commit 4686b1a

Browse files
committed
fix: remove redundant code
--- 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 e31c8b8 commit 4686b1a

File tree

1 file changed

+3
-5
lines changed
  • lib/node_modules/@stdlib/lapack/base/dgttrf/lib

1 file changed

+3
-5
lines changed

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

+3-5
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,19 @@ function dgttrf( N, DL, strideDL, offsetDL, D, strideD, offsetD, DU, strideDU, o
7777
}
7878

7979
idl = offsetDL;
80+
id = offsetD;
81+
idu = offsetDU;
8082
idu2 = offsetDU2;
81-
8283
ip = offsetIPIV;
84+
8385
for ( i = 0; i < N; i++ ) {
8486
IPIV[ ip + (strideIPIV*i) ] = i;
8587
}
8688

87-
idu = offsetDU;
8889
for ( i = 0; i < N-2; i++ ) {
8990
DU2[ idu + (strideDU*i) ] = 0;
9091
}
9192

92-
idl = offsetDL;
93-
idu2 = offsetDU2;
94-
id = offsetD;
9593
for ( i = 0; i < N-2; i++ ) {
9694
if ( abs( D[ id + (strideD*i) ] ) >= abs( DL[ idl + (strideDL*i) ] ) ) { // no row interchange required
9795
if ( D[ id ] !== 0.0 ) {

0 commit comments

Comments
 (0)