Skip to content

Commit 06d6793

Browse files
committed
chore: fix spacings and documentation
--- 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: missing_dependencies - 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 4c9fb0c commit 06d6793

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/node_modules/@stdlib/stats/strided/dnancumin/docs/repl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
{{alias}}.ndarray( N, x, strideX, offsetX, y, strideY, offsetY )
6262
Computes the cumulative minimum of double-precision floating-point strided
63-
array elements using alternative indexing semantics.
63+
array elements using alternative indexing semantics ignoring `NaN` values.
6464

6565
While typed array views mandate a view offset based on the underlying
6666
buffer, the `offset` parameter supports indexing semantics based on a

lib/node_modules/@stdlib/stats/strided/dnancumin/lib/ndarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function dnancumin( N, x, strideX, offsetX, y, strideY, offsetY ) {
7676
v = x[ ix ];
7777

7878
if ( isnan( v ) === false ) {
79-
if ( flag === false ) { // seeing actual number for first time
79+
if ( flag === false ) {
8080
flag = true;
8181
min = v;
8282
} else if ( v < min || ( v === min && isNegativeZero( v ) ) ) {

lib/node_modules/@stdlib/stats/strided/dnancumin/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ void API_SUFFIX(stdlib_strided_dnancumin_ndarray)( const CBLAS_INT N, const doub
7979

8080
if ( !stdlib_base_is_nan( v ) ) {
8181
if ( !flag ) {
82-
flag = true;
82+
flag = true;
8383
min = v;
8484
} else if ( v < min || ( v == min && stdlib_base_is_negative_zero( v ) ) ) {
8585
min = v;
8686
}
8787
Y[ iy ] = min;
8888
} else if ( flag ) {
89-
Y[ iy ] = min;
89+
Y[ iy ] = min;
9090
}
9191
iy += strideY;
9292
}

0 commit comments

Comments
 (0)