Skip to content

Commit a00dcc2

Browse files
committed
docs: change package naming for blas/base/saxpy
--- 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 1bbed39 commit a00dcc2

File tree

1 file changed

+7
-7
lines changed
  • lib/node_modules/@stdlib/blas/base/saxpy/lib

1 file changed

+7
-7
lines changed

lib/node_modules/@stdlib/blas/base/saxpy/lib/ndarray.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
23+
var f32 = require( '@stdlib/number/float64/base/to-float32' );
2424

2525

2626
// VARIABLES //
@@ -71,7 +71,7 @@ function saxpy( N, alpha, x, strideX, offsetX, y, strideY, offsetY ) {
7171
// If we have a remainder, run a clean-up loop...
7272
if ( m > 0 ) {
7373
for ( i = 0; i < m; i++ ) {
74-
y[ iy ] += float64ToFloat32( alpha * x[ ix ] );
74+
y[ iy ] += f32( alpha * x[ ix ] );
7575
ix += strideX;
7676
iy += strideY;
7777
}
@@ -80,17 +80,17 @@ function saxpy( N, alpha, x, strideX, offsetX, y, strideY, offsetY ) {
8080
return y;
8181
}
8282
for ( i = m; i < N; i += M ) {
83-
y[ iy ] += float64ToFloat32( alpha * x[ ix ] );
84-
y[ iy+1 ] += float64ToFloat32( alpha * x[ ix+1 ] );
85-
y[ iy+2 ] += float64ToFloat32( alpha * x[ ix+2 ] );
86-
y[ iy+3 ] += float64ToFloat32( alpha * x[ ix+3 ] );
83+
y[ iy ] += f32( alpha * x[ ix ] );
84+
y[ iy+1 ] += f32( alpha * x[ ix+1 ] );
85+
y[ iy+2 ] += f32( alpha * x[ ix+2 ] );
86+
y[ iy+3 ] += f32( alpha * x[ ix+3 ] );
8787
ix += M;
8888
iy += M;
8989
}
9090
return y;
9191
}
9292
for ( i = 0; i < N; i++ ) {
93-
y[ iy ] += float64ToFloat32( alpha * x[ ix ] );
93+
y[ iy ] += f32( alpha * x[ ix ] );
9494
ix += strideX;
9595
iy += strideY;
9696
}

0 commit comments

Comments
 (0)