Skip to content

Commit 40feafc

Browse files
committed
chore: cleanup
--- 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 5f73e5b commit 40feafc

File tree

1 file changed

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

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ function dlarf1f( side, M, N, V, strideV, offsetV, tau, C, strideC1, strideC2, o
8282
lastv = N;
8383
}
8484

85-
// Determine the offset for V ----- can we set i = offsetV straight away????
86-
// i = offsetV + stride2offset( lastv, strideV );
87-
i = offsetV;
85+
if ( strideV > 0 ) {
86+
i = offsetV + ( ( lastv - 1 ) * strideV );
87+
} else {
88+
i = offsetV;
89+
}
8890

8991
while ( lastv > 0 && V[ i ] === 0.0 ) {
9092
lastv -= 1;

0 commit comments

Comments
 (0)