1SGETRS(1) LAPACK routine (version 3.2) SGETRS(1)
2
3
4
6 SGETRS - solves a system of linear equations A * X = B or A' * X = B
7 with a general N-by-N matrix A using the LU factorization computed by
8 SGETRF
9
11 SUBROUTINE SGETRS( TRANS, N, NRHS, A, LDA, IPIV, B, LDB, INFO )
12
13 CHARACTER TRANS
14
15 INTEGER INFO, LDA, LDB, N, NRHS
16
17 INTEGER IPIV( * )
18
19 REAL A( LDA, * ), B( LDB, * )
20
22 SGETRS solves a system of linear equations
23 A * X = B or A' * X = B with a general N-by-N matrix A using the
24 LU factorization computed by SGETRF.
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.2) November 2008 SGETRS(1)