Skip to content

Commit cfd7e08

Browse files
committed
fix: apply suggestions from code review
--- 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 7e103e6 commit cfd7e08

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • lib/node_modules/@stdlib/blas/ext/base/ddiff/lib

lib/node_modules/@stdlib/blas/ext/base/ddiff/lib/base.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function base( N, x, strideX, offsetX, N1, prepend, strideP, offsetP, N2, append
5757
if ( total <= 1 ) {
5858
return out;
5959
}
60-
// Calculate the forward difference over the input array...
60+
// Compute forward differences:
6161
if ( N1 === 0 && N2 === 0 ) {
6262
ix = offsetX;
6363
io = offsetOut;
@@ -71,7 +71,7 @@ function base( N, x, strideX, offsetX, N1, prepend, strideP, offsetP, N2, append
7171
}
7272
return out;
7373
}
74-
// Calculate the forward difference over the list of prepended values...
74+
// Compute forward differences over the list of prepended values:
7575
if ( N1 > 0 ) {
7676
io = offsetOut;
7777
ip = offsetP;
@@ -101,7 +101,7 @@ function base( N, x, strideX, offsetX, N1, prepend, strideP, offsetP, N2, append
101101
prev = append[ offsetA ];
102102
io = offsetOut;
103103
}
104-
// Calculate the forward difference over the input array...
104+
// Compute forward differences over the input array:
105105
if ( N > 0 ) {
106106
ix = offsetX;
107107
if ( N1 === 0 ) {
@@ -131,7 +131,7 @@ function base( N, x, strideX, offsetX, N1, prepend, strideP, offsetP, N2, append
131131
io += strideOut;
132132
}
133133
}
134-
// Calculate the forward difference over the list of appended values...
134+
// Compute forward differences over the list of appended values:
135135
if ( N2 > 0 ) {
136136
ia = offsetA + strideA;
137137
for ( i = 1; i < N2; i++ ) {

0 commit comments

Comments
 (0)