106 SUBROUTINE zpotf2( UPLO, N, A, LDA, INFO )
117 COMPLEX*16 A( LDA, * )
123 DOUBLE PRECISION ONE, ZERO
124 parameter( one = 1.0d+0, zero = 0.0d+0 )
126 parameter( cone = ( 1.0d+0, 0.0d+0 ) )
134 LOGICAL LSAME, DISNAN
136 EXTERNAL lsame, zdotc, disnan
142 INTRINSIC dble, max, sqrt
149 upper = lsame( uplo,
'U' )
150 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
152 ELSE IF( n.LT.0 )
THEN
154 ELSE IF( lda.LT.max( 1, n ) )
THEN
158 CALL xerbla(
'ZPOTF2', -info )
175 ajj = dble( a( j, j ) ) - dble( zdotc( j-1, a( 1, j ), 1,
177 IF( ajj.LE.zero.OR.disnan( ajj ) )
THEN
187 CALL zlacgv( j-1, a( 1, j ), 1 )
188 CALL zgemv(
'Transpose', j-1, n-j, -cone, a( 1, j+1 ),
189 $ lda, a( 1, j ), 1, cone, a( j, j+1 ), lda )
190 CALL zlacgv( j-1, a( 1, j ), 1 )
191 CALL zdscal( n-j, one / ajj, a( j, j+1 ), lda )
202 ajj = dble( a( j, j ) ) - dble( zdotc( j-1, a( j, 1 ),
205 IF( ajj.LE.zero.OR.disnan( ajj ) )
THEN
215 CALL zlacgv( j-1, a( j, 1 ), lda )
216 CALL zgemv(
'No transpose', n-j, j-1, -cone, a( j+1,
218 $ lda, a( j, 1 ), lda, cone, a( j+1, j ), 1 )
219 CALL zlacgv( j-1, a( j, 1 ), lda )
220 CALL zdscal( n-j, one / ajj, a( j+1, j ), 1 )
subroutine zgemv(trans, m, n, alpha, a, lda, x, incx, beta, y, incy)
ZGEMV
subroutine zpotf2(uplo, n, a, lda, info)
ZPOTF2 computes the Cholesky factorization of a symmetric/Hermitian positive definite matrix (unblock...