158 SUBROUTINE csymv( UPLO, N, ALPHA, A, LDA, X, INCX, BETA, Y, INCY )
167 INTEGER INCX, INCY, LDA, N
171 COMPLEX A( lda, * ), X( * ), Y( * )
178 parameter ( one = ( 1.0e+0, 0.0e+0 ) )
180 parameter ( zero = ( 0.0e+0, 0.0e+0 ) )
183 INTEGER I, INFO, IX, IY, J, JX, JY, KX, KY
201 IF( .NOT.lsame( uplo,
'U' ) .AND. .NOT.lsame( uplo,
'L' ) )
THEN
203 ELSE IF( n.LT.0 )
THEN
205 ELSE IF( lda.LT.max( 1, n ) )
THEN
207 ELSE IF( incx.EQ.0 )
THEN
209 ELSE IF( incy.EQ.0 )
THEN
213 CALL xerbla(
'CSYMV ', info )
219 IF( ( n.EQ.0 ) .OR. ( ( alpha.EQ.zero ) .AND. ( beta.EQ.one ) ) )
227 kx = 1 - ( n-1 )*incx
232 ky = 1 - ( n-1 )*incy
241 IF( beta.NE.one )
THEN
243 IF( beta.EQ.zero )
THEN
254 IF( beta.EQ.zero )
THEN
261 y( iy ) = beta*y( iy )
269 IF( lsame( uplo,
'U' ) )
THEN
273 IF( ( incx.EQ.1 ) .AND. ( incy.EQ.1 ) )
THEN
278 y( i ) = y( i ) + temp1*a( i, j )
279 temp2 = temp2 + a( i, j )*x( i )
281 y( j ) = y( j ) + temp1*a( j, j ) + alpha*temp2
287 temp1 = alpha*x( jx )
292 y( iy ) = y( iy ) + temp1*a( i, j )
293 temp2 = temp2 + a( i, j )*x( ix )
297 y( jy ) = y( jy ) + temp1*a( j, j ) + alpha*temp2
306 IF( ( incx.EQ.1 ) .AND. ( incy.EQ.1 ) )
THEN
310 y( j ) = y( j ) + temp1*a( j, j )
312 y( i ) = y( i ) + temp1*a( i, j )
313 temp2 = temp2 + a( i, j )*x( i )
315 y( j ) = y( j ) + alpha*temp2
321 temp1 = alpha*x( jx )
323 y( jy ) = y( jy ) + temp1*a( j, j )
329 y( iy ) = y( iy ) + temp1*a( i, j )
330 temp2 = temp2 + a( i, j )*x( ix )
332 y( jy ) = y( jy ) + alpha*temp2
subroutine csymv(UPLO, N, ALPHA, A, LDA, X, INCX, BETA, Y, INCY)
CSYMV computes a matrix-vector product for a complex symmetric matrix.
subroutine xerbla(SRNAME, INFO)
XERBLA