hptrs#

Functions

void chptrs(
    const char*          uplo,
    const INT            n,
    const INT            nrhs,
    const c64*  restrict AP,
    const INT*  restrict ipiv,
          c64*  restrict B,
    const INT            ldb,
          INT*           info
);
void chptrs(const char *uplo, const INT n, const INT nrhs, const c64 *restrict AP, const INT *restrict ipiv, c64 *restrict B, const INT ldb, INT *info)#

CHPTRS solves a system of linear equations A*X = B with a complex Hermitian matrix A stored in packed format using the factorization A = U*D*U**H or A = L*D*L**H computed by CHPTRF.

Parameters

in
uplo

Specifies whether the details of the factorization are stored as an upper or lower triangular matrix:

  • = ‘U’: Upper triangular, form is A = U*D*U**H

  • = ‘L’: Lower triangular, form is A = L*D*L**H

in
n

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

in
nrhs

The number of right hand sides, i.e., the number of columns of the matrix B. nrhs >= 0.

in
AP

The block diagonal matrix D and the multipliers used to obtain the factor U or L as computed by CHPTRF, stored as a packed triangular matrix of dimension n*(n+1)/2.

in
ipiv

Details of the interchanges and the block structure of D as determined by CHPTRF. Array of dimension n.

inout
B

On entry, the right hand side matrix B of dimension (ldb, nrhs). On exit, the solution matrix X.

in
ldb

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

out
info

Exit status:

  • = 0: successful exit

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

Functions

void zhptrs(
    const char*          uplo,
    const INT            n,
    const INT            nrhs,
    const c128* restrict AP,
    const INT*  restrict ipiv,
          c128* restrict B,
    const INT            ldb,
          INT*           info
);
void zhptrs(const char *uplo, const INT n, const INT nrhs, const c128 *restrict AP, const INT *restrict ipiv, c128 *restrict B, const INT ldb, INT *info)#

ZHPTRS solves a system of linear equations A*X = B with a complex Hermitian matrix A stored in packed format using the factorization A = U*D*U**H or A = L*D*L**H computed by ZHPTRF.

Parameters

in
uplo

Specifies whether the details of the factorization are stored as an upper or lower triangular matrix:

  • = ‘U’: Upper triangular, form is A = U*D*U**H

  • = ‘L’: Lower triangular, form is A = L*D*L**H

in
n

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

in
nrhs

The number of right hand sides, i.e., the number of columns of the matrix B. nrhs >= 0.

in
AP

The block diagonal matrix D and the multipliers used to obtain the factor U or L as computed by ZHPTRF, stored as a packed triangular matrix of dimension n*(n+1)/2.

in
ipiv

Details of the interchanges and the block structure of D as determined by ZHPTRF. Array of dimension n.

inout
B

On entry, the right hand side matrix B of dimension (ldb, nrhs). On exit, the solution matrix X.

in
ldb

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

out
info

Exit status:

  • = 0: successful exit

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