File: cla_gercond_c

package info (click to toggle)
ruby-lapack 1.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 28,552 kB
  • sloc: ansic: 191,612; ruby: 3,934; makefile: 8
file content (128 lines) | stat: -rwxr-xr-x 3,709 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
--- 
:name: cla_gercond_c
:md5sum: 973bbc06a0c6b2901d91af027d777425
:category: :function
:type: real
:arguments: 
- trans: 
    :type: char
    :intent: input
- n: 
    :type: integer
    :intent: input
- a: 
    :type: complex
    :intent: input
    :dims: 
    - lda
    - n
- lda: 
    :type: integer
    :intent: input
- af: 
    :type: complex
    :intent: input
    :dims: 
    - ldaf
    - n
- ldaf: 
    :type: integer
    :intent: input
- ipiv: 
    :type: integer
    :intent: input
    :dims: 
    - n
- c: 
    :type: real
    :intent: input
    :dims: 
    - n
- capply: 
    :type: logical
    :intent: input
- info: 
    :type: integer
    :intent: output
- work: 
    :type: complex
    :intent: input
    :dims: 
    - 2*n
- rwork: 
    :type: real
    :intent: input
    :dims: 
    - n
:substitutions: {}

:fortran_help: "      REAL FUNCTION CLA_GERCOND_C( TRANS, N, A, LDA, AF, LDAF, IPIV, C, CAPPLY, INFO, WORK, RWORK )\n\n\
  *  Purpose\n\
  *  =======\n\
  * \n\
  *     CLA_GERCOND_C computes the infinity norm condition number of\n\
  *     op(A) * inv(diag(C)) where C is a REAL vector.\n\
  *\n\n\
  *  Arguments\n\
  *  =========\n\
  *\n\
  *     TRANS   (input) CHARACTER*1\n\
  *     Specifies the form of the system of equations:\n\
  *       = 'N':  A * X = B     (No transpose)\n\
  *       = 'T':  A**T * X = B  (Transpose)\n\
  *       = 'C':  A**H * X = B  (Conjugate Transpose = Transpose)\n\
  *\n\
  *     N       (input) INTEGER\n\
  *     The number of linear equations, i.e., the order of the\n\
  *     matrix A.  N >= 0.\n\
  *\n\
  *     A       (input) COMPLEX array, dimension (LDA,N)\n\
  *     On entry, the N-by-N matrix A\n\
  *\n\
  *     LDA     (input) INTEGER\n\
  *     The leading dimension of the array A.  LDA >= max(1,N).\n\
  *\n\
  *     AF      (input) COMPLEX array, dimension (LDAF,N)\n\
  *     The factors L and U from the factorization\n\
  *     A = P*L*U as computed by CGETRF.\n\
  *\n\
  *     LDAF    (input) INTEGER\n\
  *     The leading dimension of the array AF.  LDAF >= max(1,N).\n\
  *\n\
  *     IPIV    (input) INTEGER array, dimension (N)\n\
  *     The pivot indices from the factorization A = P*L*U\n\
  *     as computed by CGETRF; row i of the matrix was interchanged\n\
  *     with row IPIV(i).\n\
  *\n\
  *     C       (input) REAL array, dimension (N)\n\
  *     The vector C in the formula op(A) * inv(diag(C)).\n\
  *\n\
  *     CAPPLY  (input) LOGICAL\n\
  *     If .TRUE. then access the vector C in the formula above.\n\
  *\n\
  *     INFO    (output) INTEGER\n\
  *       = 0:  Successful exit.\n\
  *     i > 0:  The ith argument is invalid.\n\
  *\n\
  *     WORK    (input) COMPLEX array, dimension (2*N).\n\
  *     Workspace.\n\
  *\n\
  *     RWORK   (input) REAL array, dimension (N).\n\
  *     Workspace.\n\
  *\n\n\
  *  =====================================================================\n\
  *\n\
  *     .. Local Scalars ..\n      LOGICAL            NOTRANS\n      INTEGER            KASE, I, J\n      REAL               AINVNM, ANORM, TMP\n      COMPLEX            ZDUM\n\
  *     ..\n\
  *     .. Local Arrays ..\n      INTEGER            ISAVE( 3 )\n\
  *     ..\n\
  *     .. External Functions ..\n      LOGICAL            LSAME\n      EXTERNAL           LSAME\n\
  *     ..\n\
  *     .. External Subroutines ..\n      EXTERNAL           CLACN2, CGETRS, XERBLA\n\
  *     ..\n\
  *     .. Intrinsic Functions ..\n      INTRINSIC          ABS, MAX, REAL, AIMAG\n\
  *     ..\n\
  *     .. Statement Functions ..\n      REAL               CABS1\n\
  *     ..\n\
  *     .. Statement Function Definitions ..\n      CABS1( ZDUM ) = ABS( REAL( ZDUM ) ) + ABS( AIMAG( ZDUM ) )\n\
  *     ..\n"