Skip to content

Commit c35b722

Browse files
authored
Merge pull request #452 from timleslie/use-zx-in-zdrot
Use ZX, ZY rather than CX, CY in ZDROT
2 parents 16e1fb9 + 74288e9 commit c35b722

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

BLAS/SRC/zdrot.f

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
* Definition:
99
* ===========
1010
*
11-
* SUBROUTINE ZDROT( N, CX, INCX, CY, INCY, C, S )
11+
* SUBROUTINE ZDROT( N, ZX, INCX, ZY, INCY, C, S )
1212
*
1313
* .. Scalar Arguments ..
1414
* INTEGER INCX, INCY, N
1515
* DOUBLE PRECISION C, S
1616
* ..
1717
* .. Array Arguments ..
18-
* COMPLEX*16 CX( * ), CY( * )
18+
* COMPLEX*16 ZX( * ), ZY( * )
1919
* ..
2020
*
2121
*
@@ -39,36 +39,36 @@
3939
*> N must be at least zero.
4040
*> \endverbatim
4141
*>
42-
*> \param[in,out] CX
42+
*> \param[in,out] ZX
4343
*> \verbatim
44-
*> CX is COMPLEX*16 array, dimension at least
44+
*> ZX is COMPLEX*16 array, dimension at least
4545
*> ( 1 + ( N - 1 )*abs( INCX ) ).
46-
*> Before entry, the incremented array CX must contain the n
47-
*> element vector cx. On exit, CX is overwritten by the updated
46+
*> Before entry, the incremented array ZX must contain the n
47+
*> element vector cx. On exit, ZX is overwritten by the updated
4848
*> vector cx.
4949
*> \endverbatim
5050
*>
5151
*> \param[in] INCX
5252
*> \verbatim
5353
*> INCX is INTEGER
5454
*> On entry, INCX specifies the increment for the elements of
55-
*> CX. INCX must not be zero.
55+
*> ZX. INCX must not be zero.
5656
*> \endverbatim
5757
*>
58-
*> \param[in,out] CY
58+
*> \param[in,out] ZY
5959
*> \verbatim
60-
*> CY is COMPLEX*16 array, dimension at least
60+
*> ZY is COMPLEX*16 array, dimension at least
6161
*> ( 1 + ( N - 1 )*abs( INCY ) ).
62-
*> Before entry, the incremented array CY must contain the n
63-
*> element vector cy. On exit, CY is overwritten by the updated
62+
*> Before entry, the incremented array ZY must contain the n
63+
*> element vector cy. On exit, ZY is overwritten by the updated
6464
*> vector cy.
6565
*> \endverbatim
6666
*>
6767
*> \param[in] INCY
6868
*> \verbatim
6969
*> INCY is INTEGER
7070
*> On entry, INCY specifies the increment for the elements of
71-
*> CY. INCY must not be zero.
71+
*> ZY. INCY must not be zero.
7272
*> \endverbatim
7373
*>
7474
*> \param[in] C
@@ -96,7 +96,7 @@
9696
*> \ingroup complex16_blas_level1
9797
*
9898
* =====================================================================
99-
SUBROUTINE ZDROT( N, CX, INCX, CY, INCY, C, S )
99+
SUBROUTINE ZDROT( N, ZX, INCX, ZY, INCY, C, S )
100100
*
101101
* -- Reference BLAS level1 routine (version 3.7.0) --
102102
* -- Reference BLAS is a software package provided by Univ. of Tennessee, --
@@ -108,7 +108,7 @@ SUBROUTINE ZDROT( N, CX, INCX, CY, INCY, C, S )
108108
DOUBLE PRECISION C, S
109109
* ..
110110
* .. Array Arguments ..
111-
COMPLEX*16 CX( * ), CY( * )
111+
COMPLEX*16 ZX( * ), ZY( * )
112112
* ..
113113
*
114114
* =====================================================================
@@ -126,9 +126,9 @@ SUBROUTINE ZDROT( N, CX, INCX, CY, INCY, C, S )
126126
* code for both increments equal to 1
127127
*
128128
DO I = 1, N
129-
CTEMP = C*CX( I ) + S*CY( I )
130-
CY( I ) = C*CY( I ) - S*CX( I )
131-
CX( I ) = CTEMP
129+
CTEMP = C*ZX( I ) + S*ZY( I )
130+
ZY( I ) = C*ZY( I ) - S*ZX( I )
131+
ZX( I ) = CTEMP
132132
END DO
133133
ELSE
134134
*
@@ -142,9 +142,9 @@ SUBROUTINE ZDROT( N, CX, INCX, CY, INCY, C, S )
142142
IF( INCY.LT.0 )
143143
$ IY = ( -N+1 )*INCY + 1
144144
DO I = 1, N
145-
CTEMP = C*CX( IX ) + S*CY( IY )
146-
CY( IY ) = C*CY( IY ) - S*CX( IX )
147-
CX( IX ) = CTEMP
145+
CTEMP = C*ZX( IX ) + S*ZY( IY )
146+
ZY( IY ) = C*ZY( IY ) - S*ZX( IX )
147+
ZX( IX ) = CTEMP
148148
IX = IX + INCX
149149
IY = IY + INCY
150150
END DO

0 commit comments

Comments
 (0)