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

NAME

6       ZTRTRS - solves a triangular system of the form   A * X = B, A**T * X =
7       B, or A**H * X = B,
8

SYNOPSIS

10       SUBROUTINE ZTRTRS( UPLO, TRANS, DIAG, N, NRHS, A, LDA, B, LDB, INFO )
11
12           CHARACTER      DIAG, TRANS, UPLO
13
14           INTEGER        INFO, LDA, LDB, N, NRHS
15
16           COMPLEX*16     A( LDA, * ), B( LDB, * )
17

PURPOSE

19       ZTRTRS solves a triangular system of the form where A is  a  triangular
20       matrix  of  order  N, and B is an N-by-NRHS matrix.  A check is made to
21       verify that A is nonsingular.
22

ARGUMENTS

24       UPLO    (input) CHARACTER*1
25               = 'U':  A is upper triangular;
26               = 'L':  A is lower triangular.
27
28       TRANS   (input) CHARACTER*1
29               Specifies the form of the system of equations:
30               = 'N':  A * X = B     (No transpose)
31               = 'T':  A**T * X = B  (Transpose)
32               = 'C':  A**H * X = B  (Conjugate transpose)
33
34       DIAG    (input) CHARACTER*1
35               = 'N':  A is non-unit triangular;
36               = 'U':  A is unit triangular.
37
38       N       (input) INTEGER
39               The order of the matrix A.  N >= 0.
40
41       NRHS    (input) INTEGER
42               The number of right hand sides, i.e., the number of columns  of
43               the matrix B.  NRHS >= 0.
44
45       A       (input) COMPLEX*16 array, dimension (LDA,N)
46               The  triangular  matrix  A.   If UPLO = 'U', the leading N-by-N
47               upper triangular part of the array A contains the upper  trian‐
48               gular  matrix,  and  the strictly lower triangular part of A is
49               not referenced.  If UPLO = 'L', the leading N-by-N lower trian‐
50               gular part of the array A contains the lower triangular matrix,
51               and the strictly upper triangular part of A is not  referenced.
52               If  DIAG  = 'U', the diagonal elements of A are also not refer‐
53               enced and are assumed to be 1.
54
55       LDA     (input) INTEGER
56               The leading dimension of the array A.  LDA >= max(1,N).
57
58       B       (input/output) COMPLEX*16 array, dimension (LDB,NRHS)
59               On entry, the right hand side matrix B.  On exit, if INFO =  0,
60               the solution matrix X.
61
62       LDB     (input) INTEGER
63               The leading dimension of the array B.  LDB >= max(1,N).
64
65       INFO    (output) INTEGER
66               = 0:  successful exit
67               < 0: if INFO = -i, the i-th argument had an illegal value
68               > 0: if INFO = i, the i-th diagonal element of A is zero, indi‐
69               cating that the matrix is singular and the solutions X have not
70               been computed.
71
72
73
74 LAPACK routine (version 3.2)    November 2008                       ZTRTRS(1)
Impressum