potri#

Functions

void spotri(
    const char*          uplo,
    const INT            n,
          f32*  restrict A,
    const INT            lda,
          INT*           info
);
void spotri(const char *uplo, const INT n, f32 *restrict A, const INT lda, INT *info)#

SPOTRI 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 SPOTRF.

Parameters

in
uplo

Specifies whether the factor stored in A is upper or lower triangular. = ‘U’: Upper triangle of A is stored = ‘L’: Lower triangle of A is stored

in
n

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

inout
A

On entry, the triangular factor U or L from the Cholesky factorization A = U**T*U or A = L*L**T, as computed by spotrf. On exit, the upper or lower triangle of the (symmetric) inverse of A, overwriting the input factor U or L. Array of dimension (lda, n).

in
lda

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

out
info

  • = 0: successful exit

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

  • > 0: if info = k, the (k,k) element of the factor U or L is zero, and the inverse could not be computed.

Functions

void dpotri(
    const char*          uplo,
    const INT            n,
          f64*  restrict A,
    const INT            lda,
          INT*           info
);
void dpotri(const char *uplo, const INT n, f64 *restrict A, const INT lda, INT *info)#

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

Specifies whether the factor stored in A is upper or lower triangular. = ‘U’: Upper triangle of A is stored = ‘L’: Lower triangle of A is stored

in
n

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

inout
A

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. Array of dimension (lda, n).

in
lda

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

out
info

  • = 0: successful exit

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

  • > 0: if info = k, the (k,k) element of the factor U or L is zero, and the inverse could not be computed.

Functions

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

CPOTRI computes the inverse of a complex Hermitian positive definite matrix A using the Cholesky factorization A = U**H*U or A = L*L**H computed by CPOTRF.

Parameters

in
uplo

Specifies whether the factor stored in A is upper or lower triangular. = ‘U’: Upper triangle of A is stored = ‘L’: Lower triangle of A is stored

in
n

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

inout
A

On entry, the triangular factor U or L from the Cholesky factorization A = U**H*U or A = L*L**H, as computed by cpotrf. On exit, the upper or lower triangle of the (Hermitian) inverse of A, overwriting the input factor U or L. Array of dimension (lda, n).

in
lda

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

out
info

  • = 0: successful exit

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

  • > 0: if info = k, the (k,k) element of the factor U or L is zero, and the inverse could not be computed.

Functions

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

ZPOTRI computes the inverse of a complex Hermitian positive definite matrix A using the Cholesky factorization A = U**H*U or A = L*L**H computed by ZPOTRF.

Parameters

in
uplo

Specifies whether the factor stored in A is upper or lower triangular. = ‘U’: Upper triangle of A is stored = ‘L’: Lower triangle of A is stored

in
n

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

inout
A

On entry, the triangular factor U or L from the Cholesky factorization A = U**H*U or A = L*L**H, as computed by zpotrf. On exit, the upper or lower triangle of the (Hermitian) inverse of A, overwriting the input factor U or L. Array of dimension (lda, n).

in
lda

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

out
info

  • = 0: successful exit

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

  • > 0: if info = k, the (k,k) element of the factor U or L is zero, and the inverse could not be computed.