File: slaeda

package info (click to toggle)
ruby-lapack 1.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 29,304 kB
  • ctags: 3,419
  • sloc: ansic: 190,572; ruby: 3,937; makefile: 4
file content (147 lines) | stat: -rw-r--r-- 4,357 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
--- 
:name: slaeda
:md5sum: 24a9751e7a3bb6e15256dfe9218457ca
:category: :subroutine
:arguments: 
- n: 
    :type: integer
    :intent: input
- tlvls: 
    :type: integer
    :intent: input
- curlvl: 
    :type: integer
    :intent: input
- curpbm: 
    :type: integer
    :intent: input
- prmptr: 
    :type: integer
    :intent: input
    :dims: 
    - n*LG(n)
- perm: 
    :type: integer
    :intent: input
    :dims: 
    - n*LG(n)
- givptr: 
    :type: integer
    :intent: input
    :dims: 
    - n*LG(n)
- givcol: 
    :type: integer
    :intent: input
    :dims: 
    - "2"
    - n*LG(n)
- givnum: 
    :type: real
    :intent: input
    :dims: 
    - "2"
    - n*LG(n)
- q: 
    :type: real
    :intent: input
    :dims: 
    - pow(n,2)
- qptr: 
    :type: integer
    :intent: input
    :dims: 
    - ldqptr
- z: 
    :type: real
    :intent: output
    :dims: 
    - n
- ztemp: 
    :type: real
    :intent: workspace
    :dims: 
    - n
- info: 
    :type: integer
    :intent: output
:substitutions: 
  n: ldqptr-2
:fortran_help: "      SUBROUTINE SLAEDA( N, TLVLS, CURLVL, CURPBM, PRMPTR, PERM, GIVPTR, GIVCOL, GIVNUM, Q, QPTR, Z, ZTEMP, INFO )\n\n\
  *  Purpose\n\
  *  =======\n\
  *\n\
  *  SLAEDA computes the Z vector corresponding to the merge step in the\n\
  *  CURLVLth step of the merge process with TLVLS steps for the CURPBMth\n\
  *  problem.\n\
  *\n\n\
  *  Arguments\n\
  *  =========\n\
  *\n\
  *  N      (input) INTEGER\n\
  *         The dimension of the symmetric tridiagonal matrix.  N >= 0.\n\
  *\n\
  *  TLVLS  (input) INTEGER\n\
  *         The total number of merging levels in the overall divide and\n\
  *         conquer tree.\n\
  *\n\
  *  CURLVL (input) INTEGER\n\
  *         The current level in the overall merge routine,\n\
  *         0 <= curlvl <= tlvls.\n\
  *\n\
  *  CURPBM (input) INTEGER\n\
  *         The current problem in the current level in the overall\n\
  *         merge routine (counting from upper left to lower right).\n\
  *\n\
  *  PRMPTR (input) INTEGER array, dimension (N lg N)\n\
  *         Contains a list of pointers which indicate where in PERM a\n\
  *         level's permutation is stored.  PRMPTR(i+1) - PRMPTR(i)\n\
  *         indicates the size of the permutation and incidentally the\n\
  *         size of the full, non-deflated problem.\n\
  *\n\
  *  PERM   (input) INTEGER array, dimension (N lg N)\n\
  *         Contains the permutations (from deflation and sorting) to be\n\
  *         applied to each eigenblock.\n\
  *\n\
  *  GIVPTR (input) INTEGER array, dimension (N lg N)\n\
  *         Contains a list of pointers which indicate where in GIVCOL a\n\
  *         level's Givens rotations are stored.  GIVPTR(i+1) - GIVPTR(i)\n\
  *         indicates the number of Givens rotations.\n\
  *\n\
  *  GIVCOL (input) INTEGER array, dimension (2, N lg N)\n\
  *         Each pair of numbers indicates a pair of columns to take place\n\
  *         in a Givens rotation.\n\
  *\n\
  *  GIVNUM (input) REAL array, dimension (2, N lg N)\n\
  *         Each number indicates the S value to be used in the\n\
  *         corresponding Givens rotation.\n\
  *\n\
  *  Q      (input) REAL array, dimension (N**2)\n\
  *         Contains the square eigenblocks from previous levels, the\n\
  *         starting positions for blocks are given by QPTR.\n\
  *\n\
  *  QPTR   (input) INTEGER array, dimension (N+2)\n\
  *         Contains a list of pointers which indicate where in Q an\n\
  *         eigenblock is stored.  SQRT( QPTR(i+1) - QPTR(i) ) indicates\n\
  *         the size of the block.\n\
  *\n\
  *  Z      (output) REAL array, dimension (N)\n\
  *         On output this vector contains the updating vector (the last\n\
  *         row of the first sub-eigenvector matrix and the first row of\n\
  *         the second sub-eigenvector matrix).\n\
  *\n\
  *  ZTEMP  (workspace) REAL array, dimension (N)\n\
  *\n\
  *  INFO   (output) INTEGER\n\
  *          = 0:  successful exit.\n\
  *          < 0:  if INFO = -i, the i-th argument had an illegal value.\n\
  *\n\n\
  *  Further Details\n\
  *  ===============\n\
  *\n\
  *  Based on contributions by\n\
  *     Jeff Rutter, Computer Science Division, University of California\n\
  *     at Berkeley, USA\n\
  *\n\
  *  =====================================================================\n\
  *\n"