gesv#
Functions
-
void sgesv(const INT n, const INT nrhs, f32 *restrict A, const INT lda, INT *restrict ipiv, f32 *restrict B, const INT ldb, INT *info)#
SGESV computes the solution to a real system of linear equations.
whereA * X = B
Ais ann-by-nmatrix and X andBaren-by-nrhsmatrices.The LU decomposition with partial pivoting and row interchanges is used to factor
Aaswhere P is a permutation matrix, L is unit lower triangular, and U is upper triangular. The factored form ofA = P * L * U
Ais then used to solve the system of equations A * X = B.Parameters
innThe number of linear equations, i.e., the order of the matrix
A.n>=0.innrhsThe number of right hand sides, i.e., the number of columns of the matrix
B.nrhs>=0.inoutAArray of dimension (
lda,n). On entry, then-by-ncoefficient matrixA. On exit, the factors L and U from the factorization A = P*L*U; the unit diagonal elements of L are not stored.inldaThe leading dimension of the array
A.lda>=max(1,n).outipivArray of dimension
n. The pivot indices that define the permutation matrix P; row i of the matrix was interchanged with rowipiv[i].inoutBArray of dimension (
ldb,nrhs). On entry, then-by-nrhsright hand side matrixB. On exit, ifinfo=0, then-by-nrhssolution matrix X.inldbThe leading dimension of the array
B.ldb>=max(1,n).outinfoinfo=0: successful exitinfo<0: ifinfo=-i, the i-th argument had an illegal valueinfo>0: ifinfo=i, U(i,i) is exactly zero. The factorization has been completed, but the factor U is exactly singular, so the solution could not be computed.
void sgesv(
const INT n,
const INT nrhs,
f32* restrict A,
const INT lda,
INT* restrict ipiv,
f32* restrict B,
const INT ldb,
INT* info
);
Functions
-
void dgesv(const INT n, const INT nrhs, f64 *restrict A, const INT lda, INT *restrict ipiv, f64 *restrict B, const INT ldb, INT *info)#
DGESV computes the solution to a real system of linear equations.
whereA * X = B
Ais ann-by-nmatrix and X andBaren-by-nrhsmatrices.The LU decomposition with partial pivoting and row interchanges is used to factor
Aaswhere P is a permutation matrix, L is unit lower triangular, and U is upper triangular. The factored form ofA = P * L * U
Ais then used to solve the system of equations A * X = B.Parameters
innThe number of linear equations, i.e., the order of the matrix
A.n>=0.innrhsThe number of right hand sides, i.e., the number of columns of the matrix
B.nrhs>=0.inoutAArray of dimension (
lda,n). On entry, then-by-ncoefficient matrixA. On exit, the factors L and U from the factorization A = P*L*U; the unit diagonal elements of L are not stored.inldaThe leading dimension of the array
A.lda>=max(1,n).outipivArray of dimension
n. The pivot indices that define the permutation matrix P; row i of the matrix was interchanged with rowipiv[i].inoutBArray of dimension (
ldb,nrhs). On entry, then-by-nrhsright hand side matrixB. On exit, ifinfo=0, then-by-nrhssolution matrix X.inldbThe leading dimension of the array
B.ldb>=max(1,n).outinfoinfo=0: successful exitinfo<0: ifinfo=-i, the i-th argument had an illegal valueinfo>0: ifinfo=i, U(i,i) is exactly zero. The factorization has been completed, but the factor U is exactly singular, so the solution could not be computed.
void dgesv(
const INT n,
const INT nrhs,
f64* restrict A,
const INT lda,
INT* restrict ipiv,
f64* restrict B,
const INT ldb,
INT* info
);
Functions
-
void cgesv(const INT n, const INT nrhs, c64 *restrict A, const INT lda, INT *restrict ipiv, c64 *restrict B, const INT ldb, INT *info)#
CGESV computes the solution to a complex system of linear equations.
whereA * X = B
Ais ann-by-nmatrix and X andBaren-by-nrhsmatrices.The LU decomposition with partial pivoting and row interchanges is used to factor
Aaswhere P is a permutation matrix, L is unit lower triangular, and U is upper triangular. The factored form ofA = P * L * U
Ais then used to solve the system of equations A * X = B.Parameters
innThe number of linear equations, i.e., the order of the matrix
A.n>=0.innrhsThe number of right hand sides, i.e., the number of columns of the matrix
B.nrhs>=0.inoutAArray of dimension (
lda,n). On entry, then-by-ncoefficient matrixA. On exit, the factors L and U from the factorization A = P*L*U; the unit diagonal elements of L are not stored.inldaThe leading dimension of the array
A.lda>=max(1,n).outipivArray of dimension
n. The pivot indices that define the permutation matrix P; row i of the matrix was interchanged with rowipiv[i].inoutBArray of dimension (
ldb,nrhs). On entry, then-by-nrhsright hand side matrixB. On exit, ifinfo=0, then-by-nrhssolution matrix X.inldbThe leading dimension of the array
B.ldb>=max(1,n).outinfoinfo=0: successful exitinfo<0: ifinfo=-i, the i-th argument had an illegal valueinfo>0: ifinfo=i, U(i,i) is exactly zero. The factorization has been completed, but the factor U is exactly singular, so the solution could not be computed.
void cgesv(
const INT n,
const INT nrhs,
c64* restrict A,
const INT lda,
INT* restrict ipiv,
c64* restrict B,
const INT ldb,
INT* info
);
Functions
-
void zgesv(const INT n, const INT nrhs, c128 *restrict A, const INT lda, INT *restrict ipiv, c128 *restrict B, const INT ldb, INT *info)#
ZGESV computes the solution to a complex system of linear equations.
whereA * X = B
Ais ann-by-nmatrix and X andBaren-by-nrhsmatrices.The LU decomposition with partial pivoting and row interchanges is used to factor
Aaswhere P is a permutation matrix, L is unit lower triangular, and U is upper triangular. The factored form ofA = P * L * U
Ais then used to solve the system of equations A * X = B.Parameters
innThe number of linear equations, i.e., the order of the matrix
A.n>=0.innrhsThe number of right hand sides, i.e., the number of columns of the matrix
B.nrhs>=0.inoutAArray of dimension (
lda,n). On entry, then-by-ncoefficient matrixA. On exit, the factors L and U from the factorization A = P*L*U; the unit diagonal elements of L are not stored.inldaThe leading dimension of the array
A.lda>=max(1,n).outipivArray of dimension
n. The pivot indices that define the permutation matrix P; row i of the matrix was interchanged with rowipiv[i].inoutBArray of dimension (
ldb,nrhs). On entry, then-by-nrhsright hand side matrixB. On exit, ifinfo=0, then-by-nrhssolution matrix X.inldbThe leading dimension of the array
B.ldb>=max(1,n).outinfoinfo=0: successful exitinfo<0: ifinfo=-i, the i-th argument had an illegal valueinfo>0: ifinfo=i, U(i,i) is exactly zero. The factorization has been completed, but the factor U is exactly singular, so the solution could not be computed.
void zgesv(
const INT n,
const INT nrhs,
c128* restrict A,
const INT lda,
INT* restrict ipiv,
c128* restrict B,
const INT ldb,
INT* info
);