1SGETRS(1) LAPACK routine (version 3.1) SGETRS(1)
2
3
4
6 SGETRS - a system of linear equations A * X = B or A' * X = B with a
7 general N-by-N matrix A using the LU factorization computed by SGETRF
8
10 SUBROUTINE SGETRS( TRANS, N, NRHS, A, LDA, IPIV, B, LDB, INFO )
11
12 CHARACTER TRANS
13
14 INTEGER INFO, LDA, LDB, N, NRHS
15
16 INTEGER IPIV( * )
17
18 REAL A( LDA, * ), B( LDB, * )
19
21 SGETRS solves a system of linear equations
22 A * X = B or A' * X = B with a general N-by-N matrix A using the
23 LU factorization computed by SGETRF.
24
25
27 TRANS (input) CHARACTER*1
28 Specifies the form of the system of equations:
29 = 'N': A * X = B (No transpose)
30 = 'T': A'* X = B (Transpose)
31 = 'C': A'* X = B (Conjugate transpose = Transpose)
32
33 N (input) INTEGER
34 The order of the matrix A. N >= 0.
35
36 NRHS (input) INTEGER
37 The number of right hand sides, i.e., the number of columns of
38 the matrix B. NRHS >= 0.
39
40 A (input) REAL array, dimension (LDA,N)
41 The factors L and U from the factorization A = P*L*U as com‐
42 puted by SGETRF.
43
44 LDA (input) INTEGER
45 The leading dimension of the array A. LDA >= max(1,N).
46
47 IPIV (input) INTEGER array, dimension (N)
48 The pivot indices from SGETRF; for 1<=i<=N, row i of the matrix
49 was interchanged with row IPIV(i).
50
51 B (input/output) REAL array, dimension (LDB,NRHS)
52 On entry, the right hand side matrix B. On exit, the solution
53 matrix X.
54
55 LDB (input) INTEGER
56 The leading dimension of the array B. LDB >= max(1,N).
57
58 INFO (output) INTEGER
59 = 0: successful exit
60 < 0: if INFO = -i, the i-th argument had an illegal value
61
62
63
64 LAPACK routine (version 3.1) November 2006 SGETRS(1)