108 SUBROUTINE cpotf2( UPLO, N, A, LDA, INFO )
126 parameter( one = 1.0e+0, zero = 0.0e+0 )
128 parameter( cone = ( 1.0e+0, 0.0e+0 ) )
136 LOGICAL LSAME, SISNAN
138 EXTERNAL lsame, cdotc, sisnan
144 INTRINSIC max, real, sqrt
151 upper = lsame( uplo,
'U' )
152 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
154 ELSE IF( n.LT.0 )
THEN
156 ELSE IF( lda.LT.max( 1, n ) )
THEN
160 CALL xerbla(
'CPOTF2', -info )
177 ajj = real( real( a( j, j ) ) - cdotc( j-1, a( 1, j ), 1,
179 IF( ajj.LE.zero.OR.sisnan( ajj ) )
THEN
189 CALL clacgv( j-1, a( 1, j ), 1 )
190 CALL cgemv(
'Transpose', j-1, n-j, -cone, a( 1, j+1 ),
191 $ lda, a( 1, j ), 1, cone, a( j, j+1 ), lda )
192 CALL clacgv( j-1, a( 1, j ), 1 )
193 CALL csscal( n-j, one / ajj, a( j, j+1 ), lda )
204 ajj = real( real( a( j, j ) ) - cdotc( j-1, a( j, 1 ), lda,
206 IF( ajj.LE.zero.OR.sisnan( ajj ) )
THEN
216 CALL clacgv( j-1, a( j, 1 ), lda )
217 CALL cgemv(
'No transpose', n-j, j-1, -cone, a( j+1, 1 ),
218 $ lda, a( j, 1 ), lda, cone, a( j+1, j ), 1 )
219 CALL clacgv( j-1, a( j, 1 ), lda )
220 CALL csscal( n-j, one / ajj, a( j+1, j ), 1 )
subroutine xerbla(srname, info)
subroutine cgemv(trans, m, n, alpha, a, lda, x, incx, beta, y, incy)
CGEMV
subroutine clacgv(n, x, incx)
CLACGV conjugates a complex vector.
subroutine cpotf2(uplo, n, a, lda, info)
CPOTF2 computes the Cholesky factorization of a symmetric/Hermitian positive definite matrix (unblock...
subroutine csscal(n, sa, cx, incx)
CSSCAL