Skip to content

Commit f2f1317

Browse files
authored
docs: change variable naming in blas/base/ccopy
PR-URL: #6820 Reviewed-by: Athan Reines <[email protected]>
1 parent 942294c commit f2f1317

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ double precision function benchmark( iterations, len )
117117
! ..
118118
! External functions:
119119
interface
120-
subroutine ccopy( N, cx, strideX, cy, strideY )
121-
complex :: cx(*), cy(*)
120+
subroutine ccopy( N, x, strideX, y, strideY )
121+
complex :: x(*), y(*)
122122
integer :: strideX, strideY, N
123123
end subroutine ccopy
124124
end interface
@@ -207,4 +207,4 @@ subroutine main()
207207
end do
208208
call print_summary( count, count )
209209
end subroutine main
210-
end program bench
210+
end program bench

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,19 @@
4848
! > * 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.
4949
!
5050
! @param {integer} N - number of indexed elements
51-
! @param {Array<complex>} cx - input array
52-
! @param {integer} strideX - `cx` stride length
53-
! @param {Array<complex>} cy - output array
54-
! @param {integer} strideY - `cy` stride length
51+
! @param {Array<complex>} x - input array
52+
! @param {integer} strideX - `x` stride length
53+
! @param {Array<complex>} y - output array
54+
! @param {integer} strideY - `y` stride length
5555
!<
56-
subroutine ccopy( N, cx, strideX, cy, strideY )
56+
subroutine ccopy( N, x, strideX, y, strideY )
5757
implicit none
5858
! ..
5959
! Scalar arguments:
6060
integer :: strideX, strideY, N
6161
! ..
6262
! Array arguments:
63-
complex :: cx(*), cy(*)
63+
complex :: x(*), y(*)
6464
! ..
6565
! Local scalars:
6666
integer :: ix, iy, i
@@ -71,7 +71,7 @@ subroutine ccopy( N, cx, strideX, cy, strideY )
7171
! ..
7272
if ( strideX == 1 .AND. strideY == 1 ) then
7373
do i = 1, N
74-
cy( i ) = cx( i )
74+
y( i ) = x( i )
7575
end do
7676
else
7777
if ( strideX < 0 ) then
@@ -85,7 +85,7 @@ subroutine ccopy( N, cx, strideX, cy, strideY )
8585
iy = 1
8686
end if
8787
do i = 1, N
88-
cy( iy ) = cx( ix )
88+
y( iy ) = x( ix )
8989
ix = ix + strideX
9090
iy = iy + strideY
9191
end do

0 commit comments

Comments
 (0)