hetrs#

Functions

void chetrs(
    const char*          uplo,
    const INT            n,
    const INT            nrhs,
    const c64*  restrict A,
    const INT            lda,
    const INT*  restrict ipiv,
          c64*  restrict B,
    const INT            ldb,
          INT*           info
);
void chetrs(const char *uplo, const INT n, const INT nrhs, const c64 *restrict A, const INT lda, const INT *restrict ipiv, c64 *restrict B, const INT ldb, INT *info)#

CHETRS solves a system of linear equations A*X = B with a complex Hermitian matrix A using the factorization A = U*D*U**H or A = L*D*L**H computed by CHETRF.

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.

in
nrhs

The number of right hand sides. nrhs >= 0.

in
A

Complex*16 array, dimension (lda, n). The block diagonal matrix D and the multipliers used to obtain the factor U or L as computed by CHETRF.

in
lda

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

in
ipiv

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

inout
B

Complex*16 array, dimension (ldb, nrhs). On entry, the right hand side matrix B. On exit, the solution matrix X.

in
ldb

The leading dimension of B. ldb >= max(1, n).

out
info

  • = 0: successful exit

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

Functions

void zhetrs(
    const char*          uplo,
    const INT            n,
    const INT            nrhs,
    const c128* restrict A,
    const INT            lda,
    const INT*  restrict ipiv,
          c128* restrict B,
    const INT            ldb,
          INT*           info
);
void zhetrs(const char *uplo, const INT n, const INT nrhs, const c128 *restrict A, const INT lda, const INT *restrict ipiv, c128 *restrict B, const INT ldb, INT *info)#

ZHETRS solves a system of linear equations A*X = B with a complex Hermitian matrix A using the factorization A = U*D*U**H or A = L*D*L**H computed by ZHETRF.

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.

in
nrhs

The number of right hand sides. nrhs >= 0.

in
A

Complex*16 array, dimension (lda, n). The block diagonal matrix D and the multipliers used to obtain the factor U or L as computed by ZHETRF.

in
lda

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

in
ipiv

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

inout
B

Complex*16 array, dimension (ldb, nrhs). On entry, the right hand side matrix B. On exit, the solution matrix X.

in
ldb

The leading dimension of B. ldb >= max(1, n).

out
info

  • = 0: successful exit

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