Skip to content

Commit cc8df37

Browse files
authored
chore: update variable name
Signed-off-by: Shabareesh Shetty <[email protected]>
1 parent fa46b36 commit cc8df37

File tree

1 file changed

+13
-13
lines changed
  • lib/node_modules/@stdlib/blas/base/csrot/src

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,22 @@
4242
! > * 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.
4343
!
4444
! @param {integer} N - number of indexed elements
45-
! @param {Array<complex>} cx - first input array
46-
! @param {integer} strideX - `cx` stride length
47-
! @param {Array<complex>} cy - second input array
48-
! @param {integer} strideY - `cy` stride length
45+
! @param {Array<complex>} x - first input array
46+
! @param {integer} strideX - `x` stride length
47+
! @param {Array<complex>} y - second input array
48+
! @param {integer} strideY - `y` stride length
4949
! @param {real} c - cosine of the angle of rotation
5050
! @param {real} s - sine of the angle of rotation
5151
!<
52-
subroutine csrot( N, cx, strideX, cy, strideY, c, s )
52+
subroutine csrot( N, x, strideX, y, strideY, c, s )
5353
implicit none
5454
! ..
5555
! Scalar arguments:
5656
integer :: strideX, strideY, N
5757
real :: c, s
5858
! ..
5959
! Array arguments:
60-
complex :: cx(*), cy(*)
60+
complex :: x(*), y(*)
6161
! ..
6262
! Local scalars:
6363
integer :: ix, iy, i
@@ -69,9 +69,9 @@ subroutine csrot( N, cx, strideX, cy, strideY, c, s )
6969
! ..
7070
if ( strideX == 1 .AND. strideY == 1 ) then
7171
do i = 1, N
72-
ctmp = ( c*cx( i ) ) + ( s*cy( i ) )
73-
cy( i ) = ( c*cy( i ) ) - ( s*cx( i ) )
74-
cx( i ) = ctmp
72+
ctmp = ( c*x( i ) ) + ( s*y( i ) )
73+
y( i ) = ( c*y( i ) ) - ( s*x( i ) )
74+
x( i ) = ctmp
7575
end do
7676
else
7777
if ( strideX < 0 ) then
@@ -85,12 +85,12 @@ subroutine csrot( N, cx, strideX, cy, strideY, c, s )
8585
iy = 1
8686
end if
8787
do i = 1, N
88-
ctmp = ( c*cx( ix ) ) + ( s*cy( iy ) )
89-
cy( iy ) = ( c*cy( iy ) ) - ( s*cx( ix ) )
90-
cx( ix ) = ctmp
88+
ctmp = ( c*x( ix ) ) + ( s*y( iy ) )
89+
y( iy ) = ( c*y( iy ) ) - ( s*x( ix ) )
90+
x( ix ) = ctmp
9191
ix = ix + strideX
9292
iy = iy + strideY
9393
end do
9494
end if
9595
return
96-
end subroutine csrot
96+
end subroutine csrot

0 commit comments

Comments
 (0)