gesc2#
Functions
-
void sgesc2(const INT n, const f32 *restrict A, const INT lda, f32 *restrict rhs, const INT *restrict ipiv, const INT *restrict jpiv, f32 *scale)#
SGESC2 solves a system of linear equations.
with a generalA * X = scale * RHS
n-by-nmatrixAusing the LU factorization with complete pivoting computed by SGETC2.Parameters
innThe number of columns of the matrix
A.inAArray of dimension (
lda,n). On entry, the LU part of the factorization of the n-by-n matrixAcomputed by SGETC2: A = P * L * U * QinldaThe leading dimension of the array
A.lda>=max(1,n).inoutrhsArray of dimension
n. On entry, the right hand side vector b. On exit, the solution vector X.inipivArray of dimension
n. The pivot indices; for0<=i<n, row i of the matrix has been interchanged with rowipiv[i].injpivArray of dimension
n. The pivot indices; for0<=j<n, column j of the matrix has been interchanged with columnjpiv[j].outscaleOn exit,
scalecontains the scale factor.scaleis chosen0<=scale<=1to prevent overflow in the solution.
void sgesc2(
const INT n,
const f32* restrict A,
const INT lda,
f32* restrict rhs,
const INT* restrict ipiv,
const INT* restrict jpiv,
f32* scale
);
Functions
-
void dgesc2(const INT n, const f64 *restrict A, const INT lda, f64 *restrict rhs, const INT *restrict ipiv, const INT *restrict jpiv, f64 *scale)#
DGESC2 solves a system of linear equations.
with a generalA * X = scale * RHS
n-by-nmatrixAusing the LU factorization with complete pivoting computed by DGETC2.Parameters
innThe number of columns of the matrix
A.inAArray of dimension (
lda,n). On entry, the LU part of the factorization of the n-by-n matrixAcomputed by DGETC2: A = P * L * U * QinldaThe leading dimension of the array
A.lda>=max(1,n).inoutrhsArray of dimension
n. On entry, the right hand side vector b. On exit, the solution vector X.inipivArray of dimension
n. The pivot indices; for0<=i<n, row i of the matrix has been interchanged with rowipiv[i].injpivArray of dimension
n. The pivot indices; for0<=j<n, column j of the matrix has been interchanged with columnjpiv[j].outscaleOn exit,
scalecontains the scale factor.scaleis chosen0<=scale<=1to prevent overflow in the solution.
void dgesc2(
const INT n,
const f64* restrict A,
const INT lda,
f64* restrict rhs,
const INT* restrict ipiv,
const INT* restrict jpiv,
f64* scale
);
Functions
-
void cgesc2(const INT n, const c64 *restrict A, const INT lda, c64 *restrict rhs, const INT *restrict ipiv, const INT *restrict jpiv, f32 *scale)#
CGESC2 solves a system of linear equations.
with a generalA * X = scale * RHS
n-by-nmatrixAusing the LU factorization with complete pivoting computed by CGETC2.Parameters
innThe number of columns of the matrix
A.inAComplex array, dimension (
lda,n). On entry, the LU part of the factorization of the n-by-n matrixAcomputed by CGETC2: A = P * L * U * QinldaThe leading dimension of the array
A.lda>=max(1,n).inoutrhsComplex array, dimension
n. On entry, the right hand side vector b. On exit, the solution vector X.inipivArray of dimension
n. The pivot indices; for0<=i<n, row i of the matrix has been interchanged with rowipiv[i].injpivArray of dimension
n. The pivot indices; for0<=j<n, column j of the matrix has been interchanged with columnjpiv[j].outscaleOn exit,
scalecontains the scale factor.scaleis chosen0<=scale<=1to prevent overflow in the solution.
void cgesc2(
const INT n,
const c64* restrict A,
const INT lda,
c64* restrict rhs,
const INT* restrict ipiv,
const INT* restrict jpiv,
f32* scale
);
Functions
-
void zgesc2(const INT n, const c128 *restrict A, const INT lda, c128 *restrict rhs, const INT *restrict ipiv, const INT *restrict jpiv, f64 *scale)#
ZGESC2 solves a system of linear equations.
with a generalA * X = scale * RHS
n-by-nmatrixAusing the LU factorization with complete pivoting computed by ZGETC2.Parameters
innThe number of columns of the matrix
A.inAComplex*16 array, dimension (
lda,n). On entry, the LU part of the factorization of the n-by-n matrixAcomputed by ZGETC2: A = P * L * U * QinldaThe leading dimension of the array
A.lda>=max(1,n).inoutrhsComplex*16 array, dimension
n. On entry, the right hand side vector b. On exit, the solution vector X.inipivArray of dimension
n. The pivot indices; for0<=i<n, row i of the matrix has been interchanged with rowipiv[i].injpivArray of dimension
n. The pivot indices; for0<=j<n, column j of the matrix has been interchanged with columnjpiv[j].outscaleOn exit,
scalecontains the scale factor.scaleis chosen0<=scale<=1to prevent overflow in the solution.
void zgesc2(
const INT n,
const c128* restrict A,
const INT lda,
c128* restrict rhs,
const INT* restrict ipiv,
const INT* restrict jpiv,
f64* scale
);