getrs#

Functions

void sgetrs(
    const char*          trans,
    const INT            n,
    const INT            nrhs,
    const f32*  restrict A,
    const INT            lda,
    const INT*  restrict ipiv,
          f32*  restrict B,
    const INT            ldb,
          INT*           info
);
void sgetrs(const char *trans, const INT n, const INT nrhs, const f32 *restrict A, const INT lda, const INT *restrict ipiv, f32 *restrict B, const INT ldb, INT *info)#

SGETRS solves a system of linear equations.

A * X = B  or  A**T * X = B

with a general n-by-n matrix A using the LU factorization computed by SGETRF.

Parameters

in
trans

Specifies the form of the system of equations:

  • ’N’: A * X = B (No transpose)

  • ’T’: A**T * X = B (Transpose)

  • ’C’: A**T * X = B (Conjugate transpose = Transpose)

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
A

Array of dimension (lda, n). The factors L and U from the factorization A = P*L*U as computed by sgetrf.

in
lda

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

in
ipiv

Array of dimension n. The pivot indices from sgetrf; row i was interchanged with row ipiv[i].

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=-i, the i-th argument had an illegal value

Functions

void dgetrs(
    const char*          trans,
    const INT            n,
    const INT            nrhs,
    const f64*  restrict A,
    const INT            lda,
    const INT*  restrict ipiv,
          f64*  restrict B,
    const INT            ldb,
          INT*           info
);
void dgetrs(const char *trans, const INT n, const INT nrhs, const f64 *restrict A, const INT lda, const INT *restrict ipiv, f64 *restrict B, const INT ldb, INT *info)#

DGETRS solves a system of linear equations.

A * X = B  or  A**T * X = B

with a general n-by-n matrix A using the LU factorization computed by DGETRF.

Parameters

in
trans

Specifies the form of the system of equations:

  • ’N’: A * X = B (No transpose)

  • ’T’: A**T * X = B (Transpose)

  • ’C’: A**T * X = B (Conjugate transpose = Transpose)

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
A

Array of dimension (lda, n). The factors L and U from the factorization A = P*L*U as computed by dgetrf.

in
lda

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

in
ipiv

Array of dimension n. The pivot indices from dgetrf; row i was interchanged with row ipiv[i].

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=-i, the i-th argument had an illegal value

Functions

void cgetrs(
    const char*          trans,
    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 cgetrs(const char *trans, 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)#

CGETRS solves a system of linear equations.

A * X = B,  A**T * X = B,  or  A**H * X = B

with a general n-by-n matrix A using the LU factorization computed by CGETRF.

Parameters

in
trans

Specifies the form of the system of equations:

  • ’N’: A * X = B (No transpose)

  • ’T’: A**T * X = B (Transpose)

  • ’C’: A**H * X = B (Conjugate transpose)

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
A

Array of dimension (lda, n). The factors L and U from the factorization A = P*L*U as computed by cgetrf.

in
lda

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

in
ipiv

Array of dimension n. The pivot indices from cgetrf; row i was interchanged with row ipiv[i].

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=-i, the i-th argument had an illegal value

Functions

void zgetrs(
    const char*          trans,
    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 zgetrs(const char *trans, 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)#

ZGETRS solves a system of linear equations.

A * X = B,  A**T * X = B,  or  A**H * X = B

with a general n-by-n matrix A using the LU factorization computed by ZGETRF.

Parameters

in
trans

Specifies the form of the system of equations:

  • ’N’: A * X = B (No transpose)

  • ’T’: A**T * X = B (Transpose)

  • ’C’: A**H * X = B (Conjugate transpose)

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
A

Array of dimension (lda, n). The factors L and U from the factorization A = P*L*U as computed by zgetrf.

in
lda

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

in
ipiv

Array of dimension n. The pivot indices from zgetrf; row i was interchanged with row ipiv[i].

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=-i, the i-th argument had an illegal value