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

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

in
lda

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

in
ipiv

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

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

Exit status:

  • = 0: successful exit

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

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

in
lda

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

in
ipiv

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

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

Exit status:

  • = 0: successful exit

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

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

in
lda

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

in
ipiv

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

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

Exit status:

  • = 0: successful exit

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

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

in
lda

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

in
ipiv

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

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

Exit status:

  • = 0: successful exit

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