Skip to content

Commit 6a08789

Browse files
authored
docs: change variable naming in blas/base/zcopy
PR-URL: #6821 Reviewed-by: Athan Reines <[email protected]>
1 parent f2f1317 commit 6a08789

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

lib/node_modules/@stdlib/blas/base/zcopy/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 zcopy( N, zx, strideX, zy, strideY )
121-
complex(kind=kind(0.0d0)) :: zx(*), zy(*)
120+
subroutine zcopy( N, x, strideX, y, strideY )
121+
complex(kind=kind(0.0d0)) :: x(*), y(*)
122122
integer :: strideX, strideY, N
123123
end subroutine zcopy
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/zcopy/src/zcopy.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<double>>} zx - input array
52-
! @param {integer} strideX - `zx` stride length
53-
! @param {Array<complex<double>>} zy - output array
54-
! @param {integer} strideY - `zy` stride length
51+
! @param {Array<complex<double>>} x - input array
52+
! @param {integer} strideX - `x` stride length
53+
! @param {Array<complex<double>>} y - output array
54+
! @param {integer} strideY - `y` stride length
5555
!<
56-
subroutine zcopy( N, zx, strideX, zy, strideY )
56+
subroutine zcopy( N, x, strideX, y, strideY )
5757
implicit none
5858
! ..
5959
! Scalar arguments:
6060
integer :: strideX, strideY, N
6161
! ..
6262
! Array arguments:
63-
complex(kind=kind(0.0d0)) :: zx(*), zy(*)
63+
complex(kind=kind(0.0d0)) :: x(*), y(*)
6464
! ..
6565
! Local scalars:
6666
integer :: ix, iy, i
@@ -71,7 +71,7 @@ subroutine zcopy( N, zx, strideX, zy, strideY )
7171
! ..
7272
if ( strideX == 1 .AND. strideY == 1 ) then
7373
do i = 1, N
74-
zy( i ) = zx( i )
74+
y( i ) = x( i )
7575
end do
7676
else
7777
if ( strideX < 0 ) then
@@ -85,7 +85,7 @@ subroutine zcopy( N, zx, strideX, zy, strideY )
8585
iy = 1
8686
end if
8787
do i = 1, N
88-
zy( iy ) = zx( ix )
88+
y( iy ) = x( ix )
8989
ix = ix + strideX
9090
iy = iy + strideY
9191
end do

lib/node_modules/@stdlib/blas/base/zcopy/src/zcopy_f.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ void API_SUFFIX(c_zcopy)( const CBLAS_INT N, const void *X, const CBLAS_INT stri
4747
* @param offsetY starting index for Y
4848
*/
4949
void API_SUFFIX(c_zcopy_ndarray)( const CBLAS_INT N, const void *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, void *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY ) {
50-
stdlib_complex128_t *zx = (stdlib_complex128_t *)X;
51-
stdlib_complex128_t *zy = (stdlib_complex128_t *)Y;
50+
stdlib_complex128_t *x = (stdlib_complex128_t *)X;
51+
stdlib_complex128_t *y = (stdlib_complex128_t *)Y;
5252

53-
zx += stdlib_strided_min_view_buffer_index( N, strideX, offsetX );
54-
zy += stdlib_strided_min_view_buffer_index( N, strideY, offsetY );
55-
zcopy( &N, (void *)zx, &strideX, (void *)zy, &strideY );
53+
x += stdlib_strided_min_view_buffer_index( N, strideX, offsetX );
54+
y += stdlib_strided_min_view_buffer_index( N, strideY, offsetY );
55+
zcopy( &N, (void *)x, &strideX, (void *)y, &strideY );
5656
}

0 commit comments

Comments
 (0)