Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ double precision function benchmark( iterations, len )
! ..
! External functions:
interface
subroutine ccopy( N, cx, strideX, cy, strideY )
complex :: cx(*), cy(*)
subroutine ccopy( N, x, strideX, y, strideY )
complex :: x(*), y(*)
integer :: strideX, strideY, N
end subroutine ccopy
end interface
Expand Down Expand Up @@ -207,4 +207,4 @@ subroutine main()
end do
call print_summary( count, count )
end subroutine main
end program bench
end program bench
16 changes: 8 additions & 8 deletions lib/node_modules/@stdlib/blas/base/ccopy/src/ccopy.f
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@
! > * We will gladly answer any questions regarding the software. If a modification is done, however, it is the responsibility of the person who modified the routine to provide support.
!
! @param {integer} N - number of indexed elements
! @param {Array<complex>} cx - input array
! @param {integer} strideX - `cx` stride length
! @param {Array<complex>} cy - output array
! @param {integer} strideY - `cy` stride length
! @param {Array<complex>} x - input array
! @param {integer} strideX - `x` stride length
! @param {Array<complex>} y - output array
! @param {integer} strideY - `y` stride length
!<
subroutine ccopy( N, cx, strideX, cy, strideY )
subroutine ccopy( N, x, strideX, y, strideY )
implicit none
! ..
! Scalar arguments:
integer :: strideX, strideY, N
! ..
! Array arguments:
complex :: cx(*), cy(*)
complex :: x(*), y(*)
! ..
! Local scalars:
integer :: ix, iy, i
Expand All @@ -71,7 +71,7 @@ subroutine ccopy( N, cx, strideX, cy, strideY )
! ..
if ( strideX == 1 .AND. strideY == 1 ) then
do i = 1, N
cy( i ) = cx( i )
y( i ) = x( i )
end do
else
if ( strideX < 0 ) then
Expand All @@ -85,7 +85,7 @@ subroutine ccopy( N, cx, strideX, cy, strideY )
iy = 1
end if
do i = 1, N
cy( iy ) = cx( ix )
y( iy ) = x( ix )
ix = ix + strideX
iy = iy + strideY
end do
Expand Down