File: sla_porcond

package info (click to toggle)
ruby-lapack 1.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 28,572 kB
  • sloc: ansic: 191,612; ruby: 3,937; makefile: 6
file content (122 lines) | stat: -rw-r--r-- 3,564 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
--- 
:name: sla_porcond
:md5sum: f0d498acfd1d554092c078a19690e2e6
:category: :function
:type: real
:arguments: 
- uplo: 
    :type: char
    :intent: input
- n: 
    :type: integer
    :intent: input
- a: 
    :type: real
    :intent: input
    :dims: 
    - lda
    - n
- lda: 
    :type: integer
    :intent: input
- af: 
    :type: real
    :intent: input
    :dims: 
    - ldaf
    - n
- ldaf: 
    :type: integer
    :intent: input
- cmode: 
    :type: integer
    :intent: input
- c: 
    :type: real
    :intent: input
    :dims: 
    - n
- info: 
    :type: integer
    :intent: output
- work: 
    :type: real
    :intent: input
    :dims: 
    - 3*n
- iwork: 
    :type: integer
    :intent: input
    :dims: 
    - n
:substitutions: {}

:fortran_help: "      REAL FUNCTION SLA_PORCOND( UPLO, N, A, LDA, AF, LDAF, CMODE, C, INFO, WORK, IWORK )\n\n\
  *  Purpose\n\
  *  =======\n\
  *\n\
  *     SLA_PORCOND Estimates the Skeel condition number of  op(A) * op2(C)\n\
  *     where op2 is determined by CMODE as follows\n\
  *     CMODE =  1    op2(C) = C\n\
  *     CMODE =  0    op2(C) = I\n\
  *     CMODE = -1    op2(C) = inv(C)\n\
  *     The Skeel condition number  cond(A) = norminf( |inv(A)||A| )\n\
  *     is computed by computing scaling factors R such that\n\
  *     diag(R)*A*op2(C) is row equilibrated and computing the standard\n\
  *     infinity-norm condition number.\n\
  *\n\n\
  *  Arguments\n\
  *  ==========\n\
  *\n\
  *     UPLO    (input) CHARACTER*1\n\
  *       = 'U':  Upper triangle of A is stored;\n\
  *       = 'L':  Lower triangle of A is stored.\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) REAL 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) REAL array, dimension (LDAF,N)\n\
  *     The triangular factor U or L from the Cholesky factorization\n\
  *     A = U**T*U or A = L*L**T, as computed by SPOTRF.\n\
  *\n\
  *     LDAF    (input) INTEGER\n\
  *     The leading dimension of the array AF.  LDAF >= max(1,N).\n\
  *\n\
  *     CMODE   (input) INTEGER\n\
  *     Determines op2(C) in the formula op(A) * op2(C) as follows:\n\
  *     CMODE =  1    op2(C) = C\n\
  *     CMODE =  0    op2(C) = I\n\
  *     CMODE = -1    op2(C) = inv(C)\n\
  *\n\
  *     C       (input) REAL array, dimension (N)\n\
  *     The vector C in the formula op(A) * op2(C).\n\
  *\n\
  *     INFO    (output) INTEGER\n\
  *       = 0:  Successful exit.\n\
  *     i > 0:  The ith argument is invalid.\n\
  *\n\
  *     WORK    (input) REAL array, dimension (3*N).\n\
  *     Workspace.\n\
  *\n\
  *     IWORK   (input) INTEGER array, dimension (N).\n\
  *     Workspace.\n\
  *\n\n\
  *  =====================================================================\n\
  *\n\
  *     .. Local Scalars ..\n      INTEGER            KASE, I, J\n      REAL               AINVNM, TMP\n      LOGICAL            UP\n\
  *     ..\n\
  *     .. Array Arguments ..\n      INTEGER            ISAVE( 3 )\n\
  *     ..\n\
  *     .. External Functions ..\n      LOGICAL            LSAME\n      INTEGER            ISAMAX\n      EXTERNAL           LSAME, ISAMAX\n\
  *     ..\n\
  *     .. External Subroutines ..\n      EXTERNAL           SLACN2, SPOTRS, XERBLA\n\
  *     ..\n\
  *     .. Intrinsic Functions ..\n      INTRINSIC          ABS, MAX\n\
  *     ..\n"