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 general N-by-N matrix A using the LU factorization with complete pivoting computed by SGETC2.A * X = scale * RHS
Parameters
innThe order of the matrix A. n >= 0.
inAThe LU part of the factorization of the n-by-n matrix A computed by SGETC2: A = P * L * U * Q Array of dimension (lda, n).
inldaThe leading dimension of the array A. lda >= max(1, n).
inoutrhsOn entry, the right hand side vector b. On exit, the solution vector X. Array of dimension n.
inipivThe pivot indices; for 0 <= i < n, row i of the matrix has been interchanged with row ipiv[i]. Array of dimension n, 0-based.
injpivThe pivot indices; for 0 <= j < n, column j of the matrix has been interchanged with column jpiv[j]. Array of dimension n, 0-based.
outscaleOn exit, SCALE contains the scale factor. SCALE is chosen 0 <= SCALE <= 1 to 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 general N-by-N matrix A using the LU factorization with complete pivoting computed by DGETC2.A * X = scale * RHS
Parameters
innThe order of the matrix A. n >= 0.
inAThe LU part of the factorization of the n-by-n matrix A computed by DGETC2: A = P * L * U * Q Array of dimension (lda, n).
inldaThe leading dimension of the array A. lda >= max(1, n).
inoutrhsOn entry, the right hand side vector b. On exit, the solution vector X. Array of dimension n.
inipivThe pivot indices; for 0 <= i < n, row i of the matrix has been interchanged with row ipiv[i]. Array of dimension n, 0-based.
injpivThe pivot indices; for 0 <= j < n, column j of the matrix has been interchanged with column jpiv[j]. Array of dimension n, 0-based.
outscaleOn exit, SCALE contains the scale factor. SCALE is chosen 0 <= SCALE <= 1 to 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 general N-by-N matrix A using the LU factorization with complete pivoting computed by CGETC2.A * X = scale * RHS
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 matrix A computed by CGETC2: A = P * L * U * Q
inldaThe 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.
inipivThe pivot indices; for 0 <= i < n, row i of the matrix has been interchanged with row ipiv[i]. Array of dimension n, 0-based.
injpivThe pivot indices; for 0 <= j < n, column j of the matrix has been interchanged with column jpiv[j]. Array of dimension n, 0-based.
outscaleOn exit, SCALE contains the scale factor. SCALE is chosen 0 <= SCALE <= 1 to 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 general N-by-N matrix A using the LU factorization with complete pivoting computed by ZGETC2.A * X = scale * RHS
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 matrix A computed by ZGETC2: A = P * L * U * Q
inldaThe 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.
inipivThe pivot indices; for 0 <= i < n, row i of the matrix has been interchanged with row ipiv[i]. Array of dimension n, 0-based.
injpivThe pivot indices; for 0 <= j < n, column j of the matrix has been interchanged with column jpiv[j]. Array of dimension n, 0-based.
outscaleOn exit, SCALE contains the scale factor. SCALE is chosen 0 <= SCALE <= 1 to 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
);