hetri_rook#

Functions

void chetri_rook(
    const char*          uplo,
    const INT            n,
          c64*  restrict A,
    const INT            lda,
    const INT*  restrict ipiv,
          c64*  restrict work,
          INT*           info
);
void chetri_rook(const char *uplo, const INT n, c64 *restrict A, const INT lda, const INT *restrict ipiv, c64 *restrict work, INT *info)#

CHETRI_ROOK computes the inverse of a complex Hermitian indefinite matrix A using the factorization A = U*D*U**H or A = L*D*L**H computed by CHETRF_ROOK.

Parameters

in
uplo

= ‘U’: Upper triangular, A = U*D*U**H = ‘L’: Lower triangular, A = L*D*L**H

in
n

The order of the matrix A. n >= 0.

inout
A

Complex*16 array, dimension (lda, n). On entry, the factored matrix from CHETRF_ROOK. On exit, the (Hermitian) inverse of the original matrix.

in
lda

The leading dimension of A. lda >= max(1, n).

in
ipiv

Integer array, dimension (n). The pivot indices from CHETRF_ROOK.

out
work

Complex*16 array, dimension (n).

out
info

  • = 0: successful exit

  • < 0: if info = -i, the i-th argument had an illegal value

  • > 0: if info = i, D(i,i) = 0; the matrix is singular.

Functions

void zhetri_rook(
    const char*          uplo,
    const INT            n,
          c128* restrict A,
    const INT            lda,
    const INT*  restrict ipiv,
          c128* restrict work,
          INT*           info
);
void zhetri_rook(const char *uplo, const INT n, c128 *restrict A, const INT lda, const INT *restrict ipiv, c128 *restrict work, INT *info)#

ZHETRI_ROOK computes the inverse of a complex Hermitian indefinite matrix A using the factorization A = U*D*U**H or A = L*D*L**H computed by ZHETRF_ROOK.

Parameters

in
uplo

= ‘U’: Upper triangular, A = U*D*U**H = ‘L’: Lower triangular, A = L*D*L**H

in
n

The order of the matrix A. n >= 0.

inout
A

Complex*16 array, dimension (lda, n). On entry, the factored matrix from ZHETRF_ROOK. On exit, the (Hermitian) inverse of the original matrix.

in
lda

The leading dimension of A. lda >= max(1, n).

in
ipiv

Integer array, dimension (n). The pivot indices from ZHETRF_ROOK.

out
work

Complex*16 array, dimension (n).

out
info

  • = 0: successful exit

  • < 0: if info = -i, the i-th argument had an illegal value

  • > 0: if info = i, D(i,i) = 0; the matrix is singular.