57 integer cc_dim2, cc_dim3, cc_dim4, cc_offset, ch_dim2, ch_dim3, ch_offset,
58 wa_dim1, wa_offset, i__1, i__2, i__3, i__4;
64 doublereal di3, di4, di5, di2, cr2, cr3, cr5, cr4, ti2, ti3, ti4;
66 doublereal ti5, dr3, dr4, dr5, dr2, tr2, tr3, tr4, tr5, chold1, chold2;
70 wa_offset = 1 + wa_dim1 * 5;
75 cc_offset = 1 + 2 * (1 + cc_dim2 * (1 + cc_dim3 * (1 + cc_dim4)));
79 ch_offset = 1 + 2 * (1 + ch_dim2 * (1 + ch_dim3 * 6));
86 m1d = (*lot - 1) * *im1 + 1;
96 for (k = 1; k <= i__1; ++k) {
99 for (m1 = 1; i__3 < 0 ? m1 >= i__2 : m1 <= i__2; m1 += i__3) {
100 ti5 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
101 1) + 2] - cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
103 ti2 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
104 1) + 2] + cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
106 ti4 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
107 + 2] - cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
109 ti3 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
110 + 2] + cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
112 tr5 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
113 1) + 1] - cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
115 tr2 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
116 1) + 1] + cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
118 tr4 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
119 + 1] - cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
121 tr3 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
122 + 1] + cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
124 chold1 = sn * (cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 <<
125 1) + 1] + tr2 + tr3);
126 chold2 = sn * (cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 <<
127 1) + 2] + ti2 + ti3);
128 cr2 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 1]
129 + tr11 * tr2 + tr12 * tr3;
130 ci2 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 2]
131 + tr11 * ti2 + tr12 * ti3;
132 cr3 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 1]
133 + tr12 * tr2 + tr11 * tr3;
134 ci3 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 2]
135 + tr12 * ti2 + tr11 * ti3;
136 cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 1] =
138 cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 2] =
140 cr5 = ti11 * tr5 + ti12 * tr4;
141 ci5 = ti11 * ti5 + ti12 * ti4;
142 cr4 = ti12 * tr5 - ti11 * tr4;
143 ci4 = ti12 * ti5 - ti11 * ti4;
144 cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 << 1) + 1]
146 cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) * cc_dim2 << 1) + 1] =
148 cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 << 1) + 2]
150 cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1) + 2] =
152 cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1) + 1] =
154 cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) * cc_dim2 << 1) + 1]
156 cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) * cc_dim2 << 1) + 2]
158 cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) * cc_dim2 << 1) + 2] =
166 for (k = 1; k <= i__3; ++k) {
170 for (m1 = 1; i__1 < 0 ? m1 >= i__2 : m1 <= i__2; m1 += i__1) {
172 ti5 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
173 1) + 2] - cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
175 ti2 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
176 1) + 2] + cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
178 ti4 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
179 + 2] - cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
181 ti3 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
182 + 2] + cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
184 tr5 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
185 1) + 1] - cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
187 tr2 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
188 1) + 1] + cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
190 tr4 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
191 + 1] - cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
193 tr3 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
194 + 1] + cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
196 ch[(m2 + (k + ch_dim3 * 6) * ch_dim2 << 1) + 1] = sn * (cc[(m1 + (
197 k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 1] + tr2 +
199 ch[(m2 + (k + ch_dim3 * 6) * ch_dim2 << 1) + 2] = sn * (cc[(m1 + (
200 k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 2] + ti2 +
202 cr2 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 1]
203 + tr11 * tr2 + tr12 * tr3;
204 ci2 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 2]
205 + tr11 * ti2 + tr12 * ti3;
206 cr3 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 1]
207 + tr12 * tr2 + tr11 * tr3;
208 ci3 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 2]
209 + tr12 * ti2 + tr11 * ti3;
210 cr5 = ti11 * tr5 + ti12 * tr4;
211 ci5 = ti11 * ti5 + ti12 * ti4;
212 cr4 = ti12 * tr5 - ti11 * tr4;
213 ci4 = ti12 * ti5 - ti11 * ti4;
214 ch[(m2 + (k + ch_dim3 * 7) * ch_dim2 << 1) + 1] = sn * (cr2 - ci5)
216 ch[(m2 + (k + ch_dim3 * 10) * ch_dim2 << 1) + 1] = sn * (cr2 +
218 ch[(m2 + (k + ch_dim3 * 7) * ch_dim2 << 1) + 2] = sn * (ci2 + cr5)
220 ch[(m2 + (k + (ch_dim3 << 3)) * ch_dim2 << 1) + 2] = sn * (ci3 +
222 ch[(m2 + (k + (ch_dim3 << 3)) * ch_dim2 << 1) + 1] = sn * (cr3 -
224 ch[(m2 + (k + ch_dim3 * 9) * ch_dim2 << 1) + 1] = sn * (cr3 + ci4)
226 ch[(m2 + (k + ch_dim3 * 9) * ch_dim2 << 1) + 2] = sn * (ci3 - cr4)
228 ch[(m2 + (k + ch_dim3 * 10) * ch_dim2 << 1) + 2] = sn * (ci2 -
236 for (k = 1; k <= i__1; ++k) {
240 for (m1 = 1; i__3 < 0 ? m1 >= i__2 : m1 <= i__2; m1 += i__3) {
242 ti5 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
243 1) + 2] - cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
245 ti2 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
246 1) + 2] + cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
248 ti4 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
249 + 2] - cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
251 ti3 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
252 + 2] + cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
254 tr5 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
255 1) + 1] - cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
257 tr2 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
258 1) + 1] + cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
260 tr4 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
261 + 1] - cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
263 tr3 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
264 + 1] + cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
266 ch[(m2 + (k + ch_dim3 * 6) * ch_dim2 << 1) + 1] = cc[(m1 + (k + (
267 cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 1] + tr2 + tr3;
268 ch[(m2 + (k + ch_dim3 * 6) * ch_dim2 << 1) + 2] = cc[(m1 + (k + (
269 cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 2] + ti2 + ti3;
270 cr2 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 1]
271 + tr11 * tr2 + tr12 * tr3;
272 ci2 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 2]
273 + tr11 * ti2 + tr12 * ti3;
274 cr3 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 1]
275 + tr12 * tr2 + tr11 * tr3;
276 ci3 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 2]
277 + tr12 * ti2 + tr11 * ti3;
278 cr5 = ti11 * tr5 + ti12 * tr4;
279 ci5 = ti11 * ti5 + ti12 * ti4;
280 cr4 = ti12 * tr5 - ti11 * tr4;
281 ci4 = ti12 * ti5 - ti11 * ti4;
282 ch[(m2 + (k + ch_dim3 * 7) * ch_dim2 << 1) + 1] = cr2 - ci5;
283 ch[(m2 + (k + ch_dim3 * 10) * ch_dim2 << 1) + 1] = cr2 + ci5;
284 ch[(m2 + (k + ch_dim3 * 7) * ch_dim2 << 1) + 2] = ci2 + cr5;
285 ch[(m2 + (k + (ch_dim3 << 3)) * ch_dim2 << 1) + 2] = ci3 + cr4;
286 ch[(m2 + (k + (ch_dim3 << 3)) * ch_dim2 << 1) + 1] = cr3 - ci4;
287 ch[(m2 + (k + ch_dim3 * 9) * ch_dim2 << 1) + 1] = cr3 + ci4;
288 ch[(m2 + (k + ch_dim3 * 9) * ch_dim2 << 1) + 2] = ci3 - cr4;
289 ch[(m2 + (k + ch_dim3 * 10) * ch_dim2 << 1) + 2] = ci2 - cr5;
294 for (i__ = 2; i__ <= i__3; ++i__) {
296 for (k = 1; k <= i__2; ++k) {
300 for (m1 = 1; i__4 < 0 ? m1 >= i__1 : m1 <= i__1; m1 += i__4) {
302 ti5 = cc[(m1 + (k + (i__ + (cc_dim4 << 1)) * cc_dim3) *
303 cc_dim2 << 1) + 2] - cc[(m1 + (k + (i__ + cc_dim4 * 5)
304 * cc_dim3) * cc_dim2 << 1) + 2];
305 ti2 = cc[(m1 + (k + (i__ + (cc_dim4 << 1)) * cc_dim3) *
306 cc_dim2 << 1) + 2] + cc[(m1 + (k + (i__ + cc_dim4 * 5)
307 * cc_dim3) * cc_dim2 << 1) + 2];
308 ti4 = cc[(m1 + (k + (i__ + cc_dim4 * 3) * cc_dim3) * cc_dim2
309 << 1) + 2] - cc[(m1 + (k + (i__ + (cc_dim4 << 2)) *
310 cc_dim3) * cc_dim2 << 1) + 2];
311 ti3 = cc[(m1 + (k + (i__ + cc_dim4 * 3) * cc_dim3) * cc_dim2
312 << 1) + 2] + cc[(m1 + (k + (i__ + (cc_dim4 << 2)) *
313 cc_dim3) * cc_dim2 << 1) + 2];
314 tr5 = cc[(m1 + (k + (i__ + (cc_dim4 << 1)) * cc_dim3) *
315 cc_dim2 << 1) + 1] - cc[(m1 + (k + (i__ + cc_dim4 * 5)
316 * cc_dim3) * cc_dim2 << 1) + 1];
317 tr2 = cc[(m1 + (k + (i__ + (cc_dim4 << 1)) * cc_dim3) *
318 cc_dim2 << 1) + 1] + cc[(m1 + (k + (i__ + cc_dim4 * 5)
319 * cc_dim3) * cc_dim2 << 1) + 1];
320 tr4 = cc[(m1 + (k + (i__ + cc_dim4 * 3) * cc_dim3) * cc_dim2
321 << 1) + 1] - cc[(m1 + (k + (i__ + (cc_dim4 << 2)) *
322 cc_dim3) * cc_dim2 << 1) + 1];
323 tr3 = cc[(m1 + (k + (i__ + cc_dim4 * 3) * cc_dim3) * cc_dim2
324 << 1) + 1] + cc[(m1 + (k + (i__ + (cc_dim4 << 2)) *
325 cc_dim3) * cc_dim2 << 1) + 1];
326 ch[(m2 + (k + (i__ * 5 + 1) * ch_dim3) * ch_dim2 << 1) + 1] =
327 cc[(m1 + (k + (i__ + cc_dim4) * cc_dim3) * cc_dim2 <<
329 ch[(m2 + (k + (i__ * 5 + 1) * ch_dim3) * ch_dim2 << 1) + 2] =
330 cc[(m1 + (k + (i__ + cc_dim4) * cc_dim3) * cc_dim2 <<
332 cr2 = cc[(m1 + (k + (i__ + cc_dim4) * cc_dim3) * cc_dim2 << 1)
333 + 1] + tr11 * tr2 + tr12 * tr3;
334 ci2 = cc[(m1 + (k + (i__ + cc_dim4) * cc_dim3) * cc_dim2 << 1)
335 + 2] + tr11 * ti2 + tr12 * ti3;
336 cr3 = cc[(m1 + (k + (i__ + cc_dim4) * cc_dim3) * cc_dim2 << 1)
337 + 1] + tr12 * tr2 + tr11 * tr3;
338 ci3 = cc[(m1 + (k + (i__ + cc_dim4) * cc_dim3) * cc_dim2 << 1)
339 + 2] + tr12 * ti2 + tr11 * ti3;
340 cr5 = ti11 * tr5 + ti12 * tr4;
341 ci5 = ti11 * ti5 + ti12 * ti4;
342 cr4 = ti12 * tr5 - ti11 * tr4;
343 ci4 = ti12 * ti5 - ti11 * ti4;
352 ch[(m2 + (k + (i__ * 5 + 2) * ch_dim3) * ch_dim2 << 1) + 1] =
353 wa[i__ + wa_dim1 * 5] * dr2 + wa[i__ + wa_dim1 * 9] *
355 ch[(m2 + (k + (i__ * 5 + 2) * ch_dim3) * ch_dim2 << 1) + 2] =
356 wa[i__ + wa_dim1 * 5] * di2 - wa[i__ + wa_dim1 * 9] *
358 ch[(m2 + (k + (i__ * 5 + 3) * ch_dim3) * ch_dim2 << 1) + 1] =
359 wa[i__ + wa_dim1 * 6] * dr3 + wa[i__ + wa_dim1 * 10] *
361 ch[(m2 + (k + (i__ * 5 + 3) * ch_dim3) * ch_dim2 << 1) + 2] =
362 wa[i__ + wa_dim1 * 6] * di3 - wa[i__ + wa_dim1 * 10] *
364 ch[(m2 + (k + (i__ * 5 + 4) * ch_dim3) * ch_dim2 << 1) + 1] =
365 wa[i__ + wa_dim1 * 7] * dr4 + wa[i__ + wa_dim1 * 11] *
367 ch[(m2 + (k + (i__ * 5 + 4) * ch_dim3) * ch_dim2 << 1) + 2] =
368 wa[i__ + wa_dim1 * 7] * di4 - wa[i__ + wa_dim1 * 11] *
370 ch[(m2 + (k + (i__ * 5 + 5) * ch_dim3) * ch_dim2 << 1) + 1] =
371 wa[i__ + (wa_dim1 << 3)] * dr5 + wa[i__ + wa_dim1 *
373 ch[(m2 + (k + (i__ * 5 + 5) * ch_dim3) * ch_dim2 << 1) + 2] =
374 wa[i__ + (wa_dim1 << 3)] * di5 - wa[i__ + wa_dim1 *