1ZGETRS(1)                LAPACK routine (version 3.2)                ZGETRS(1)
2
3
4

NAME

6       ZGETRS  - solves a system of linear equations  A * X = B, A**T * X = B,
7       or A**H * X = B with a general N-by-N matrix A using the LU  factoriza‐
8       tion computed by ZGETRF
9

SYNOPSIS

11       SUBROUTINE ZGETRS( 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           COMPLEX*16     A( LDA, * ), B( LDB, * )
20

PURPOSE

22       ZGETRS solves a system of linear equations
23          A  *  X  = B,  A**T * X = B,  or  A**H * X = B with a general N-by-N
24       matrix A using the LU factorization computed by ZGETRF.
25

ARGUMENTS

27       TRANS   (input) CHARACTER*1
28               Specifies the form of the system of equations:
29               = 'N':  A * X = B     (No transpose)
30               = 'T':  A**T * X = B  (Transpose)
31               = 'C':  A**H * X = B  (Conjugate 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) COMPLEX*16 array, dimension (LDA,N)
41               The  factors  L  and U from the factorization A = P*L*U as com‐
42               puted by ZGETRF.
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 ZGETRF; for 1<=i<=N, row i of the matrix
49               was interchanged with row IPIV(i).
50
51       B       (input/output) COMPLEX*16 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                       ZGETRS(1)
Impressum