Skip to content

Commit 2291d08

Browse files
committed
fix: 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: passed - task: lint_package_json status: na - task: lint_repl_help status: passed - 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 --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: passed - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent 733a732 commit 2291d08

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/node_modules/@stdlib/blas/ext/base/sapxsumkbn/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Adds a scalar constant to each single-precision floating-point strided array ele
180180
const float x[] = { 1.0f, 2.0f, 3.0f, 4.0f };
181181

182182
float v = stdlib_strided_sapxsumkbn( 4, 5.0f, x, 1 );
183-
// returns 30.0
183+
// returns 30.0f
184184
```
185185
186186
The function accepts the following arguments:
@@ -202,7 +202,7 @@ Adds a scalar constant to each single-precision floating-point strided array ele
202202
const float x[] = { 1.0f, 2.0f, 3.0f, 4.0f };
203203

204204
float v = stdlib_strided_sapxsumkbn_ndarray( 4, 5.0f, x, 1, 0 );
205-
// returns 30.0
205+
// returns 30.0f
206206
```
207207
208208
The function accepts the following arguments:

lib/node_modules/@stdlib/blas/ext/base/sapxsumkbn/docs/repl.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
array element and computes the sum using an improved Kahan–Babuška
55
algorithm.
66

7-
The `N` and stride parameters determine which elements in the strided
8-
array are accessed at runtime.
7+
The `N` and stride parameters determine which elements in the strided array
8+
are accessed at runtime.
99

1010
Indexing is relative to the first index. To introduce an offset, use a typed
1111
array view.
@@ -18,7 +18,7 @@
1818
Number of indexed elements.
1919

2020
alpha: number
21-
Scalar Constant.
21+
Scalar constant.
2222

2323
x: Float32Array
2424
Input array.

lib/node_modules/@stdlib/blas/ext/base/sapxsumkbn/lib/ndarray.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
24-
var abs = require( '@stdlib/math/base/special/abs' );
24+
var absf = require( '@stdlib/math/base/special/absf' );
2525

2626

2727
// MAIN //
@@ -72,7 +72,7 @@ function sapxsumkbn( N, alpha, x, strideX, offsetX ) {
7272
for ( i = 0; i < N; i++ ) {
7373
v = float64ToFloat32( alpha + x[ ix ] );
7474
t = float64ToFloat32( sum + v );
75-
if ( abs( sum ) >= abs( v ) ) {
75+
if ( absf( sum ) >= absf( v ) ) {
7676
c = float64ToFloat32( c + float64ToFloat32( float64ToFloat32( sum-t ) + v ) ); // eslint-disable-line max-len
7777
} else {
7878
c = float64ToFloat32( c + float64ToFloat32( float64ToFloat32( v-t ) + sum ) ); // eslint-disable-line max-len

0 commit comments

Comments
 (0)