57 integer cc_dim1, cc_dim2, cc_dim3, cc_offset, ch_dim1, ch_dim2, ch_offset,
58 wa_dim1, wa_offset, i__1, i__2;
62 doublereal sn, ci2, ci3, ci4, ci5, di3, di4, di5, di2, cr2, cr3, cr5, cr4,
63 dr3, dr4, ti2, ti3, ti4, ti5, dr5, dr2, tr2, tr3, tr4, tr5,
68 wa_offset = 1 + wa_dim1 * 5;
73 cc_offset = 1 + cc_dim1 * (1 + cc_dim2 * (1 + cc_dim3));
77 ch_offset = 1 + ch_dim1 * (1 + ch_dim2 * 6);
92 for (k = 1; k <= i__1; ++k) {
93 ti5 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2] - cc[(k
94 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 2];
95 ti2 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2] + cc[(k
96 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 2];
97 ti4 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2] - cc[(k + ((
98 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 2];
99 ti3 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2] + cc[(k + ((
100 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 2];
101 tr5 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] - cc[(k
102 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 1];
103 tr2 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] + cc[(k
104 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 1];
105 tr4 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1] - cc[(k + ((
106 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 1];
107 tr3 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1] + cc[(k + ((
108 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 1];
109 chold1 = sn * (cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] + tr2
111 chold2 = sn * (cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] + ti2
113 cr2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] + tr11 * tr2 +
115 ci2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] + tr11 * ti2 +
117 cr3 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] + tr12 * tr2 +
119 ci3 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] + tr12 * ti2 +
121 cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] = chold1;
122 cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] = chold2;
123 cr5 = ti11 * tr5 + ti12 * tr4;
124 ci5 = ti11 * ti5 + ti12 * ti4;
125 cr4 = ti12 * tr5 - ti11 * tr4;
126 ci4 = ti12 * ti5 - ti11 * ti4;
127 cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] = sn * (cr2 -
129 cc[(k + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 1] = sn * (cr2 + ci5)
131 cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2] = sn * (ci2 +
133 cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2] = sn * (ci3 + cr4)
135 cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1] = sn * (cr3 - ci4)
137 cc[(k + ((cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 1] = sn * (cr3 +
139 cc[(k + ((cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 2] = sn * (ci3 -
141 cc[(k + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 2] = sn * (ci2 - cr5)
148 for (k = 1; k <= i__1; ++k) {
149 ti5 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2] - cc[(k
150 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 2];
151 ti2 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2] + cc[(k
152 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 2];
153 ti4 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2] - cc[(k + ((
154 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 2];
155 ti3 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2] + cc[(k + ((
156 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 2];
157 tr5 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] - cc[(k
158 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 1];
159 tr2 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] + cc[(k
160 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 1];
161 tr4 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1] - cc[(k + ((
162 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 1];
163 tr3 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1] + cc[(k + ((
164 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 1];
165 ch[(k + ch_dim2 * 6) * ch_dim1 + 1] = sn * (cc[(k + (cc_dim3 + 1) *
166 cc_dim2) * cc_dim1 + 1] + tr2 + tr3);
167 ch[(k + ch_dim2 * 6) * ch_dim1 + 2] = sn * (cc[(k + (cc_dim3 + 1) *
168 cc_dim2) * cc_dim1 + 2] + ti2 + ti3);
169 cr2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] + tr11 * tr2 +
171 ci2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] + tr11 * ti2 +
173 cr3 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] + tr12 * tr2 +
175 ci3 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] + tr12 * ti2 +
177 cr5 = ti11 * tr5 + ti12 * tr4;
178 ci5 = ti11 * ti5 + ti12 * ti4;
179 cr4 = ti12 * tr5 - ti11 * tr4;
180 ci4 = ti12 * ti5 - ti11 * ti4;
181 ch[(k + ch_dim2 * 7) * ch_dim1 + 1] = sn * (cr2 - ci5);
182 ch[(k + ch_dim2 * 10) * ch_dim1 + 1] = sn * (cr2 + ci5);
183 ch[(k + ch_dim2 * 7) * ch_dim1 + 2] = sn * (ci2 + cr5);
184 ch[(k + (ch_dim2 << 3)) * ch_dim1 + 2] = sn * (ci3 + cr4);
185 ch[(k + (ch_dim2 << 3)) * ch_dim1 + 1] = sn * (cr3 - ci4);
186 ch[(k + ch_dim2 * 9) * ch_dim1 + 1] = sn * (cr3 + ci4);
187 ch[(k + ch_dim2 * 9) * ch_dim1 + 2] = sn * (ci3 - cr4);
188 ch[(k + ch_dim2 * 10) * ch_dim1 + 2] = sn * (ci2 - cr5);
194 for (k = 1; k <= i__1; ++k) {
195 ti5 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2] - cc[(k
196 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 2];
197 ti2 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2] + cc[(k
198 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 2];
199 ti4 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2] - cc[(k + ((
200 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 2];
201 ti3 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2] + cc[(k + ((
202 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 2];
203 tr5 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] - cc[(k
204 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 1];
205 tr2 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] + cc[(k
206 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 1];
207 tr4 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1] - cc[(k + ((
208 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 1];
209 tr3 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1] + cc[(k + ((
210 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 1];
211 ch[(k + ch_dim2 * 6) * ch_dim1 + 1] = cc[(k + (cc_dim3 + 1) * cc_dim2)
212 * cc_dim1 + 1] + tr2 + tr3;
213 ch[(k + ch_dim2 * 6) * ch_dim1 + 2] = cc[(k + (cc_dim3 + 1) * cc_dim2)
214 * cc_dim1 + 2] + ti2 + ti3;
215 cr2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] + tr11 * tr2 +
217 ci2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] + tr11 * ti2 +
219 cr3 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] + tr12 * tr2 +
221 ci3 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] + tr12 * ti2 +
223 cr5 = ti11 * tr5 + ti12 * tr4;
224 ci5 = ti11 * ti5 + ti12 * ti4;
225 cr4 = ti12 * tr5 - ti11 * tr4;
226 ci4 = ti12 * ti5 - ti11 * ti4;
227 ch[(k + ch_dim2 * 7) * ch_dim1 + 1] = cr2 - ci5;
228 ch[(k + ch_dim2 * 10) * ch_dim1 + 1] = cr2 + ci5;
229 ch[(k + ch_dim2 * 7) * ch_dim1 + 2] = ci2 + cr5;
230 ch[(k + (ch_dim2 << 3)) * ch_dim1 + 2] = ci3 + cr4;
231 ch[(k + (ch_dim2 << 3)) * ch_dim1 + 1] = cr3 - ci4;
232 ch[(k + ch_dim2 * 9) * ch_dim1 + 1] = cr3 + ci4;
233 ch[(k + ch_dim2 * 9) * ch_dim1 + 2] = ci3 - cr4;
234 ch[(k + ch_dim2 * 10) * ch_dim1 + 2] = ci2 - cr5;
238 for (i__ = 2; i__ <= i__1; ++i__) {
240 for (k = 1; k <= i__2; ++k) {
241 ti5 = cc[(k + (i__ + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 2] -
242 cc[(k + (i__ + cc_dim3 * 5) * cc_dim2) * cc_dim1 + 2];
243 ti2 = cc[(k + (i__ + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 2] +
244 cc[(k + (i__ + cc_dim3 * 5) * cc_dim2) * cc_dim1 + 2];
245 ti4 = cc[(k + (i__ + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 2] - cc[(
246 k + (i__ + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 2];
247 ti3 = cc[(k + (i__ + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 2] + cc[(
248 k + (i__ + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 2];
249 tr5 = cc[(k + (i__ + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 1] -
250 cc[(k + (i__ + cc_dim3 * 5) * cc_dim2) * cc_dim1 + 1];
251 tr2 = cc[(k + (i__ + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 1] +
252 cc[(k + (i__ + cc_dim3 * 5) * cc_dim2) * cc_dim1 + 1];
253 tr4 = cc[(k + (i__ + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 1] - cc[(
254 k + (i__ + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 1];
255 tr3 = cc[(k + (i__ + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 1] + cc[(
256 k + (i__ + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 1];
257 ch[(k + (i__ * 5 + 1) * ch_dim2) * ch_dim1 + 1] = cc[(k + (i__ +
258 cc_dim3) * cc_dim2) * cc_dim1 + 1] + tr2 + tr3;
259 ch[(k + (i__ * 5 + 1) * ch_dim2) * ch_dim1 + 2] = cc[(k + (i__ +
260 cc_dim3) * cc_dim2) * cc_dim1 + 2] + ti2 + ti3;
261 cr2 = cc[(k + (i__ + cc_dim3) * cc_dim2) * cc_dim1 + 1] + tr11 *
263 ci2 = cc[(k + (i__ + cc_dim3) * cc_dim2) * cc_dim1 + 2] + tr11 *
265 cr3 = cc[(k + (i__ + cc_dim3) * cc_dim2) * cc_dim1 + 1] + tr12 *
267 ci3 = cc[(k + (i__ + cc_dim3) * cc_dim2) * cc_dim1 + 2] + tr12 *
269 cr5 = ti11 * tr5 + ti12 * tr4;
270 ci5 = ti11 * ti5 + ti12 * ti4;
271 cr4 = ti12 * tr5 - ti11 * tr4;
272 ci4 = ti12 * ti5 - ti11 * ti4;
281 ch[(k + (i__ * 5 + 2) * ch_dim2) * ch_dim1 + 1] = wa[i__ +
282 wa_dim1 * 5] * dr2 + wa[i__ + wa_dim1 * 9] * di2;
283 ch[(k + (i__ * 5 + 2) * ch_dim2) * ch_dim1 + 2] = wa[i__ +
284 wa_dim1 * 5] * di2 - wa[i__ + wa_dim1 * 9] * dr2;
285 ch[(k + (i__ * 5 + 3) * ch_dim2) * ch_dim1 + 1] = wa[i__ +
286 wa_dim1 * 6] * dr3 + wa[i__ + wa_dim1 * 10] * di3;
287 ch[(k + (i__ * 5 + 3) * ch_dim2) * ch_dim1 + 2] = wa[i__ +
288 wa_dim1 * 6] * di3 - wa[i__ + wa_dim1 * 10] * dr3;
289 ch[(k + (i__ * 5 + 4) * ch_dim2) * ch_dim1 + 1] = wa[i__ +
290 wa_dim1 * 7] * dr4 + wa[i__ + wa_dim1 * 11] * di4;
291 ch[(k + (i__ * 5 + 4) * ch_dim2) * ch_dim1 + 2] = wa[i__ +
292 wa_dim1 * 7] * di4 - wa[i__ + wa_dim1 * 11] * dr4;
293 ch[(k + (i__ * 5 + 5) * ch_dim2) * ch_dim1 + 1] = wa[i__ + (
294 wa_dim1 << 3)] * dr5 + wa[i__ + wa_dim1 * 12] * di5;
295 ch[(k + (i__ * 5 + 5) * ch_dim2) * ch_dim1 + 2] = wa[i__ + (
296 wa_dim1 << 3)] * di5 - wa[i__ + wa_dim1 * 12] * dr5;