134 SUBROUTINE csyr( UPLO, N, ALPHA, X, INCX, A, LDA )
146 COMPLEX A( LDA, * ), X( * )
153 parameter( zero = ( 0.0e+0, 0.0e+0 ) )
156 INTEGER I, INFO, IX, J, JX, KX
174 IF( .NOT.lsame( uplo,
'U' ) .AND. .NOT.lsame( uplo,
'L' ) )
THEN
176 ELSE IF( n.LT.0 )
THEN
178 ELSE IF( incx.EQ.0 )
THEN
180 ELSE IF( lda.LT.max( 1, n ) )
THEN
184 CALL xerbla(
'CSYR ', info )
190 IF( ( n.EQ.0 ) .OR. ( alpha.EQ.zero ) )
196 kx = 1 - ( n-1 )*incx
197 ELSE IF( incx.NE.1 )
THEN
205 IF( lsame( uplo,
'U' ) )
THEN
211 IF( x( j ).NE.zero )
THEN
214 a( i, j ) = a( i, j ) + x( i )*temp
221 IF( x( jx ).NE.zero )
THEN
225 a( i, j ) = a( i, j ) + x( ix )*temp
238 IF( x( j ).NE.zero )
THEN
241 a( i, j ) = a( i, j ) + x( i )*temp
248 IF( x( jx ).NE.zero )
THEN
252 a( i, j ) = a( i, j ) + x( ix )*temp
subroutine xerbla(srname, info)
subroutine csyr(uplo, n, alpha, x, incx, a, lda)
CSYR performs the symmetric rank-1 update of a complex symmetric matrix.