These subroutines solve the system Ax = b for
x, where A is a general matrix and x and
b are vectors. Using the iopt argument, they can
also solve the real system
ATx = b or the complex
system AHx = b for
x. These subroutines use the results of the factorization of
matrix A, produced by a preceding call to SGEF/SGEFCD,
DGEF/DGEFP/DGEFCD, CGEF, or ZGEF, respectively.
| A, b, x | Subroutine |
| Short-precision real | SGES |
| Long-precision real | DGES |
| Short-precision complex | CGES |
| Long-precision complex | ZGES |
| Fortran | CALL SGES | DGES | CGES | ZGES (a, lda, n, ipvt, bx, iopt) |
| C and C++ | sges | dges | cges | zges (a, lda, n, ipvt, bx, iopt); |
| PL/I | CALL SGES | DGES | CGES | ZGES (a, lda, n, ipvt, bx, iopt); |
If iopt = 0, A is used in the computation.
If iopt = 1, AT is used in SGES and DGES. AH is used in CGES and ZGES.
Specified as: a fullword integer; iopt = 0 or 1.
The system Ax = b is solved for x, where A is a general matrix and x and b are vectors. Using the iopt argument, this subroutine can also solve the real system ATx = b or the complex system AHx = b for x. These subroutines use the results of the factorization of matrix A, produced by a preceding call to SGEF/SGEFCD, DGEF/DGEFP/DGEFCD, CGEF, or ZGEF, respectively. For a description of how A is factored, see SGEF, DGEF, CGEF, and ZGEF--General Matrix Factorization.
If n is 0, no computation is performed. See references [36] and [38].
None
This part of the example shows how to solve the system Ax = b, where matrix A is the same matrix factored in the Example 1 for SGEF and DGEF.
A LDA N IPVT BX IOPT
| | | | | |
CALL SGES( A , 9 , 9 , IPVT , BX , 0 )
BX = (1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0)
This part of the example shows how to solve the system ATx = b, where matrix A is the input matrix factored in Example 1 for SGEF and DGEF. Most of the input is the same in Part 2 as in Part 1.
A LDA N IPVT BX IOPT
| | | | | |
CALL SGES( A , 9 , 9 , IPVT , BX , 1 )
BX = (1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0)
This part of the example shows how to solve the system Ax = b, where matrix A is the same matrix factored in the Example 2 for CGEF and ZGEF.
A LDA N IPVT BX IOPT
| | | | | |
CALL CGES( A , 4 , 4 , IPVT , BX , 0 )
BX = ((9.0, 0.0), (5.0, 1.0), (1.0, 6.0), (3.0, 4.0))
This part of the example shows how to solve the system AHx = b, where matrix A is the input matrix factored in Example 2 for CGEF and ZGEF. Most of the input is the same in Part 2 as in Part 1.
A LDA N IPVT BX IOPT
| | | | | |
CALL CGES( A , 4 , 4 , IPVT , BX , 1 )
BX = ((9.0, 0.0), (5.0, 1.0), (1.0, 6.0), (3.0, 4.0))