Skip to content

Commit 586ab55

Browse files
committed
chore: add implementation
--- 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: na - 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 0dc7cda commit 586ab55

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/node_modules/@stdlib/blas/base/zdscal/benchmark/fortran/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ endif
7878
INCLUDE ?=
7979

8080
# List of Fortran source files:
81-
SOURCE_FILES ?= ../../src/zdrot.f
81+
SOURCE_FILES ?= ../../src/zdscal.f
8282

8383
# List of Fortran targets:
8484
f_targets := benchmark.length.out

lib/node_modules/@stdlib/blas/base/zdscal/benchmark/fortran/benchmark.length.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ program bench
2020
implicit none
2121
! ..
2222
! Local constants:
23-
character(5), parameter :: name = 'zdscal' ! if changed, be sure to adjust length
23+
character(6), parameter :: name = 'zdscal' ! if changed, be sure to adjust length
2424
integer, parameter :: iterations = 10000000
2525
integer, parameter :: repeats = 3
2626
integer, parameter :: min = 1

lib/node_modules/@stdlib/blas/base/zdscal/src/zdscal.f

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,20 @@ subroutine zdscal( N, alpha, x, strideX )
6060
integer :: ix, i, nstrideX
6161
! ..
6262
! Intrinsic functions:
63-
intrinsic dble, dcmplx, dimag
63+
intrinsic dble, cmplx, aimag
6464
! ..
6565
if ( N <= 0 .OR. strideX <= 0 .OR. alpha == 1.0 ) then
6666
return
6767
end if
6868
! ..
6969
if ( strideX == 1 ) then
7070
do i = 1, N
71-
x( i ) = dcmplx(alpha*dble(x(i)),alpha*dimag(x(i)))
71+
x( i ) = cmplx(alpha*dble(x(i)),alpha*aimag(x(i)))
7272
end do
7373
else
7474
nstrideX = N * strideX;
7575
do i = 1, nstrideX, strideX
76-
x( i ) = dcmplx(alpha*dble(x(i)),alpha*dimag(x(i)))
76+
x( i ) = cmplx(alpha*dble(x(i)),alpha*aimag(x(i)))
7777
end do
7878
end if
7979
return

0 commit comments

Comments
 (0)