136 SUBROUTINE csyr( UPLO, N, ALPHA, X, INCX, A, LDA )
149 COMPLEX a( lda, * ), x( * )
156 parameter( zero = ( 0.0e+0, 0.0e+0 ) )
159 INTEGER i, info, ix, j, jx, kx
177 IF( .NOT.
lsame( uplo,
'U' ) .AND. .NOT.
lsame( uplo,
'L' ) )
THEN
179 ELSE IF( n.LT.0 )
THEN
181 ELSE IF( incx.EQ.0 )
THEN
183 ELSE IF( lda.LT.max( 1, n ) )
THEN
187 CALL
xerbla(
'CSYR ', info )
193 IF( ( n.EQ.0 ) .OR. ( alpha.EQ.zero ) )
199 kx = 1 - ( n-1 )*incx
200 ELSE IF( incx.NE.1 )
THEN
208 IF(
lsame( uplo,
'U' ) )
THEN
214 IF( x( j ).NE.zero )
THEN
217 a( i, j ) = a( i, j ) + x( i )*temp
224 IF( x( jx ).NE.zero )
THEN
228 a( i, j ) = a( i, j ) + x( ix )*temp
241 IF( x( j ).NE.zero )
THEN
244 a( i, j ) = a( i, j ) + x( i )*temp
251 IF( x( jx ).NE.zero )
THEN
255 a( i, j ) = a( i, j ) + x( ix )*temp