You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/blas/base/csrot/src/csrot.f
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -42,22 +42,22 @@
42
42
! > * 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.
43
43
!
44
44
! @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
49
49
! @param {real} c - cosine of the angle of rotation
50
50
! @param {real} s - sine of the angle of rotation
51
51
!<
52
-
subroutinecsrot( N, cx, strideX, cy, strideY, c, s )
52
+
subroutinecsrot( N, x, strideX, y, strideY, c, s )
53
53
implicit none
54
54
! ..
55
55
! Scalar arguments:
56
56
integer:: strideX, strideY, N
57
57
real:: c, s
58
58
! ..
59
59
! Array arguments:
60
-
complex::cx(*), cy(*)
60
+
complex::x(*), y(*)
61
61
! ..
62
62
! Local scalars:
63
63
integer:: ix, iy, i
@@ -69,9 +69,9 @@ subroutine csrot( N, cx, strideX, cy, strideY, c, s )
69
69
! ..
70
70
if ( strideX == 1.AND. strideY == 1 ) then
71
71
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
75
75
end do
76
76
else
77
77
if ( strideX < 0 ) then
@@ -85,12 +85,12 @@ subroutine csrot( N, cx, strideX, cy, strideY, c, s )
0 commit comments