Skip to content

Commit 7edcd89

Browse files
committed
refactor: replace cmul and cadd with muladd
--- 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 --- --- 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: na - 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 fe4e519 commit 7edcd89

File tree

1 file changed

+2
-3
lines changed
  • lib/node_modules/@stdlib/blas/base/zdotu/lib

1 file changed

+2
-3
lines changed

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

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

2323
var Complex128 = require( '@stdlib/complex/float64/ctor' );
24-
var cmul = require( '@stdlib/complex/float64/base/mul' );
25-
var cadd = require( '@stdlib/complex/float64/base/add' );
24+
var muladd = require( '@stdlib/complex/float64/base/mul-add' );
2625

2726

2827
// MAIN //
@@ -69,7 +68,7 @@ function zdotu( N, zx, strideX, offsetX, zy, strideY, offsetY ) {
6968
ix = offsetX;
7069
iy = offsetY;
7170
for ( i = 0; i < N; i++ ) {
72-
dot = cadd( cmul( zx.get( ix ), zy.get( iy ) ), dot );
71+
dot = muladd( zx.get( ix ), zy.get( iy ), dot );
7372
ix += strideX;
7473
iy += strideY;
7574
}

0 commit comments

Comments
 (0)