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

  • '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

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

in
lda

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

inout
B

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

in
ldb

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

out
info

  • info=0: successful exit

  • info<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

  • '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

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

in
lda

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

inout
B

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

in
ldb

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

out
info

  • info=0: successful exit

  • info<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

  • '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

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

in
lda

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

inout
B

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

in
ldb

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

out
info

  • info=0: successful exit

  • info<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

  • '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

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

in
lda

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

inout
B

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

in
ldb

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

out
info

  • info=0: successful exit

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