132 SUBROUTINE csyr( UPLO, N, ALPHA, X, INCX, A, LDA )
144 COMPLEX A( LDA, * ), X( * )
151 parameter( zero = ( 0.0e+0, 0.0e+0 ) )
154 INTEGER I, INFO, IX, J, JX, KX
172 IF( .NOT.lsame( uplo,
'U' ) .AND.
173 $ .NOT.lsame( uplo,
'L' ) )
THEN
175 ELSE IF( n.LT.0 )
THEN
177 ELSE IF( incx.EQ.0 )
THEN
179 ELSE IF( lda.LT.max( 1, n ) )
THEN
183 CALL xerbla(
'CSYR ', info )
189 IF( ( n.EQ.0 ) .OR. ( alpha.EQ.zero ) )
195 kx = 1 - ( n-1 )*incx
196 ELSE IF( incx.NE.1 )
THEN
204 IF( lsame( uplo,
'U' ) )
THEN
210 IF( x( j ).NE.zero )
THEN
213 a( i, j ) = a( i, j ) + x( i )*temp
220 IF( x( jx ).NE.zero )
THEN
224 a( i, j ) = a( i, j ) + x( ix )*temp
237 IF( x( j ).NE.zero )
THEN
240 a( i, j ) = a( i, j ) + x( i )*temp
247 IF( x( jx ).NE.zero )
THEN
251 a( i, j ) = a( i, j ) + x( ix )*temp
subroutine csyr(uplo, n, alpha, x, incx, a, lda)
CSYR performs the symmetric rank-1 update of a complex symmetric matrix.