LAPACK 3.12.1
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ dpotri()

subroutine dpotri ( character uplo,
integer n,
double precision, dimension( lda, * ) a,
integer lda,
integer info )

DPOTRI

Download DPOTRI + dependencies [TGZ] [ZIP] [TXT]

Purpose:
!>
!> DPOTRI computes the inverse of a real symmetric positive definite
!> matrix A using the Cholesky factorization A = U**T*U or A = L*L**T
!> computed by DPOTRF.
!> 
Parameters
[in]UPLO
!>          UPLO is CHARACTER*1
!>          = 'U':  Upper triangle of A is stored;
!>          = 'L':  Lower triangle of A is stored.
!> 
[in]N
!>          N is INTEGER
!>          The order of the matrix A.  N >= 0.
!> 
[in,out]A
!>          A is DOUBLE PRECISION array, dimension (LDA,N)
!>          On entry, the triangular factor U or L from the Cholesky
!>          factorization A = U**T*U or A = L*L**T, as computed by
!>          DPOTRF.
!>          On exit, the upper or lower triangle of the (symmetric)
!>          inverse of A, overwriting the input factor U or L.
!> 
[in]LDA
!>          LDA is INTEGER
!>          The leading dimension of the array A.  LDA >= max(1,N).
!> 
[out]INFO
!>          INFO is INTEGER
!>          = 0:  successful exit
!>          < 0:  if INFO = -i, the i-th argument had an illegal value
!>          > 0:  if INFO = i, the (i,i) element of the factor U or L is
!>                zero, and the inverse could not be computed.
!> 
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.

Definition at line 92 of file dpotri.f.

93*
94* -- LAPACK computational routine --
95* -- LAPACK is a software package provided by Univ. of Tennessee, --
96* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
97*
98* .. Scalar Arguments ..
99 CHARACTER UPLO
100 INTEGER INFO, LDA, N
101* ..
102* .. Array Arguments ..
103 DOUBLE PRECISION A( LDA, * )
104* ..
105*
106* =====================================================================
107*
108* .. External Functions ..
109 LOGICAL LSAME
110 EXTERNAL lsame
111* ..
112* .. External Subroutines ..
113 EXTERNAL dlauum, dtrtri, xerbla
114* ..
115* .. Intrinsic Functions ..
116 INTRINSIC max
117* ..
118* .. Executable Statements ..
119*
120* Test the input parameters.
121*
122 info = 0
123 IF( .NOT.lsame( uplo, 'U' ) .AND.
124 $ .NOT.lsame( uplo, 'L' ) ) THEN
125 info = -1
126 ELSE IF( n.LT.0 ) THEN
127 info = -2
128 ELSE IF( lda.LT.max( 1, n ) ) THEN
129 info = -4
130 END IF
131 IF( info.NE.0 ) THEN
132 CALL xerbla( 'DPOTRI', -info )
133 RETURN
134 END IF
135*
136* Quick return if possible
137*
138 IF( n.EQ.0 )
139 $ RETURN
140*
141* Invert the triangular Cholesky factor U or L.
142*
143 CALL dtrtri( uplo, 'Non-unit', n, a, lda, info )
144 IF( info.GT.0 )
145 $ RETURN
146*
147* Form inv(U) * inv(U)**T or inv(L)**T * inv(L).
148*
149 CALL dlauum( uplo, n, a, lda, info )
150*
151 RETURN
152*
153* End of DPOTRI
154*
subroutine xerbla(srname, info)
Definition cblat2.f:3285
subroutine dlauum(uplo, n, a, lda, info)
DLAUUM computes the product UUH or LHL, where U and L are upper or lower triangular matrices (blocked...
Definition dlauum.f:100
logical function lsame(ca, cb)
LSAME
Definition lsame.f:48
subroutine dtrtri(uplo, diag, n, a, lda, info)
DTRTRI
Definition dtrtri.f:107
Here is the call graph for this function:
Here is the caller graph for this function: