1 SUBROUTINE csyr( UPLO, N, ALPHA, X, INCX, A, LDA )
14 COMPLEX A( LDA, * ), X( * )
77 parameter( zero = ( 0.0e+0, 0.0e+0 ) )
80 INTEGER I, INFO, IX, J, JX, KX
98 IF( .NOT.lsame( uplo,
'U' ) .AND. .NOT.lsame( uplo,
'L' ) )
THEN
100 ELSE IF( n.LT.0 )
THEN
102 ELSE IF( incx.EQ.0 )
THEN
104 ELSE IF( lda.LT.
max( 1, n ) )
THEN
108 CALL xerbla(
'CSYR', info )
114 IF( ( n.EQ.0 ) .OR. ( alpha.EQ.zero ) )
121 kx = 1 - ( n-1 )*incx
122 ELSE IF( incx.NE.1 )
THEN
130 IF( lsame( uplo,
'U' ) )
THEN
136 IF( x( j ).NE.zero )
THEN
139 a( i, j ) = a( i, j ) + x( i )*temp
146 IF( x( jx ).NE.zero )
THEN
150 a( i, j ) = a( i, j ) + x( ix )*temp
163 IF( x( j ).NE.zero )
THEN
166 a( i, j ) = a( i, j ) + x( i )*temp
173 IF( x( jx ).NE.zero )
THEN
177 a( i, j ) = a( i, j ) + x( ix )*temp