hptri#
Functions
-
void chptri(const char *uplo, const INT n, c64 *restrict AP, const INT *restrict ipiv, c64 *restrict work, INT *info)#
CHPTRI computes the inverse of a complex Hermitian indefinite matrix A in packed storage using the factorization A = U*D*U**H or A = L*D*L**H computed by CHPTRF.
Parameters
inuplo'U': Upper triangular, form is A = U*D*U**H'L': Lower triangular, form is A = L*D*L**H
innThe order of the matrix A.
n>=0.inoutAPArray of dimension
n*(n+1)/2. On entry, the block diagonal matrix D and the multipliers used to obtain the factor U or L as computed bychptrf, stored as a packed triangular matrix. On exit, ifinfo=0, the (Hermitian) inverse of the original matrix, stored as a packed triangular matrix. The j-th column ofinv(A)is stored in the array AP as follows: ifuplo='U',AP[i + j*(j+1)/2] = inv(A)(i,j)for0<=i<=j; ifuplo='L',AP[i + j*(2*n-j-1)/2] = inv(A)(i,j)forj<=i<=n-1.inipivArray of dimension
n. Details of the interchanges and the block structure of D as determined bychptrf.outworkWorkspace array of dimension
n.outinfoinfo=0: successful exitinfo<0: ifinfo=-i, the i-th argument had an illegal valueinfo>0: ifinfo=i,D(i,i)=0; the matrix is singular and its inverse could not be computed.
void chptri(
const char* uplo,
const INT n,
c64* restrict AP,
const INT* restrict ipiv,
c64* restrict work,
INT* info
);
Functions
-
void zhptri(const char *uplo, const INT n, c128 *restrict AP, const INT *restrict ipiv, c128 *restrict work, INT *info)#
ZHPTRI computes the inverse of a complex Hermitian indefinite matrix A in packed storage using the factorization A = U*D*U**H or A = L*D*L**H computed by ZHPTRF.
Parameters
inuplo'U': Upper triangular, form is A = U*D*U**H'L': Lower triangular, form is A = L*D*L**H
innThe order of the matrix A.
n>=0.inoutAPArray of dimension
n*(n+1)/2. On entry, the block diagonal matrix D and the multipliers used to obtain the factor U or L as computed byzhptrf, stored as a packed triangular matrix. On exit, ifinfo=0, the (Hermitian) inverse of the original matrix, stored as a packed triangular matrix. The j-th column ofinv(A)is stored in the array AP as follows: ifuplo='U',AP[i + j*(j+1)/2] = inv(A)(i,j)for0<=i<=j; ifuplo='L',AP[i + j*(2*n-j-1)/2] = inv(A)(i,j)forj<=i<=n-1.inipivArray of dimension
n. Details of the interchanges and the block structure of D as determined byzhptrf.outworkWorkspace array of dimension
n.outinfoinfo=0: successful exitinfo<0: ifinfo=-i, the i-th argument had an illegal valueinfo>0: ifinfo=i,D(i,i)=0; the matrix is singular and its inverse could not be computed.
void zhptri(
const char* uplo,
const INT n,
c128* restrict AP,
const INT* restrict ipiv,
c128* restrict work,
INT* info
);