potrs#

Functions

void spotrs(
    const char*          uplo,
    const INT            n,
    const INT            nrhs,
    const f32*  restrict A,
    const INT            lda,
          f32*  restrict B,
    const INT            ldb,
          INT*           info
);
void spotrs(const char *uplo, const INT n, const INT nrhs, const f32 *restrict A, const INT lda, f32 *restrict B, const INT ldb, INT *info)#

SPOTRS solves a system of linear equations A*X = B with a 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.

in
nrhs

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

in
A

The triangular factor U or L from the Cholesky factorization A = U**T*U or A = L*L**T, as computed by spotrf. Array of dimension (lda, n).

in
lda

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

inout
B

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

in
ldb

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

out
info

  • = 0: successful exit

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

Functions

void dpotrs(
    const char*          uplo,
    const INT            n,
    const INT            nrhs,
    const f64*  restrict A,
    const INT            lda,
          f64*  restrict B,
    const INT            ldb,
          INT*           info
);
void dpotrs(const char *uplo, const INT n, const INT nrhs, const f64 *restrict A, const INT lda, f64 *restrict B, const INT ldb, INT *info)#

DPOTRS solves a system of linear equations A*X = B with a 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.

in
nrhs

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

in
A

The triangular factor U or L from the Cholesky factorization A = U**T*U or A = L*L**T, as computed by dpotrf. Array of dimension (lda, n).

in
lda

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

inout
B

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

in
ldb

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

out
info

  • = 0: successful exit

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

Functions

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

CPOTRS solves a system of linear equations A*X = B with a 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.

in
nrhs

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

in
A

The triangular factor U or L from the Cholesky factorization A = U**H*U or A = L*L**H, as computed by cpotrf. Array of dimension (lda, n).

in
lda

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

inout
B

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

in
ldb

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

out
info

  • = 0: successful exit

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

Functions

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

ZPOTRS solves a system of linear equations A*X = B with a 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.

in
nrhs

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

in
A

The triangular factor U or L from the Cholesky factorization A = U**H*U or A = L*L**H, as computed by zpotrf. Array of dimension (lda, n).

in
lda

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

inout
B

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

in
ldb

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

out
info

  • = 0: successful exit

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