136 SUBROUTINE zsyr( UPLO, N, ALPHA, X, INCX, A, LDA )
149 COMPLEX*16 A( lda, * ), X( * )
156 parameter ( zero = ( 0.0d+0, 0.0d+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(
'ZSYR ', 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
subroutine xerbla(SRNAME, INFO)
XERBLA
subroutine zsyr(UPLO, N, ALPHA, X, INCX, A, LDA)
ZSYR performs the symmetric rank-1 update of a complex symmetric matrix.