136 parameter( zero = 0.0e+0, one = 1.0e+0 )
146 EXTERNAL lsame, cdotc
159 upper = lsame( uplo,
'U' )
160 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
162 ELSE IF( n.LT.0 )
THEN
166 CALL xerbla(
'CPPTRF', -info )
187 $
CALL ctpsv(
'Upper',
'Conjugate transpose',
'Non-unit',
188 $ j-1, ap, ap( jc ), 1 )
192 ajj = real( real( ap( jj ) ) - cdotc( j-1,
193 $ ap( jc ), 1, ap( jc ), 1 ) )
194 IF( ajj.LE.zero )
THEN
198 ap( jj ) = sqrt( ajj )
209 ajj = real( ap( jj ) )
210 IF( ajj.LE.zero )
THEN
221 CALL csscal( n-j, one / ajj, ap( jj+1 ), 1 )
222 CALL chpr(
'Lower', n-j, -one, ap( jj+1 ), 1,
subroutine xerbla(srname, info)
subroutine chpr(uplo, n, alpha, x, incx, ap)
CHPR
subroutine cpptrf(uplo, n, ap, info)
CPPTRF
subroutine csscal(n, sa, cx, incx)
CSSCAL
subroutine ctpsv(uplo, trans, diag, n, ap, x, incx)
CTPSV