ZGESV Example
For a detailed description
and reference information on this function, please visit:
The routine solves the system of linear equations for
X
:A*X = B
where
- Ais a square matrix.
- The columns of matrixBare individual right-hand sides.
- The columns ofXare the corresponding solutions.
The matrix
B
is overwritten by X
.The
LU
decomposition with partial pivoting and
row interchanges is used to factor A
as:A = P*L*U
where
- Pis a permutation matrix.
- Lis a unit lower triangular.
- Uis an upper triangular.
The factored form of .
A
is then used to solve the
system of equations A
*X
= B
Fortran-77 Interface
C Interface
Please refer to the Matrix Layout section
of the C Interface Conventions for the description of Row Major (C default) and Column
Major (Fortran default).