50 integer ch_dim1, ch_dim2, ch_dim3, ch_offset, cc_dim1, cc_dim2, cc_dim3,
51 cc_offset, c1_dim1, c1_dim2, c1_dim3, c1_offset, c2_dim1, c2_dim2,
52 c2_offset, ch2_dim1, ch2_dim2, ch2_offset, i__1, i__2, i__3;
58 integer i__, j, k, l, j2, ic, jc, lc, ik, is;
69 c2_offset = 1 + c2_dim1 * (1 + c2_dim2);
74 c1_offset = 1 + c1_dim1 * (1 + c1_dim2 * (1 + c1_dim3));
79 cc_offset = 1 + cc_dim1 * (1 + cc_dim2 * (1 + cc_dim3));
83 ch2_offset = 1 + ch2_dim1 * (1 + ch2_dim2);
88 ch_offset = 1 + ch_dim1 * (1 + ch_dim2 * (1 + ch_dim3));
104 for (k = 1; k <= i__1; ++k) {
106 for (i__ = 1; i__ <= i__2; ++i__) {
107 ch[(i__ + (k + ch_dim3) * ch_dim2) * ch_dim1 + 1] = cc[(i__ + (k *
108 cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1];
116 for (i__ = 1; i__ <= i__1; ++i__) {
118 for (k = 1; k <= i__2; ++k) {
119 ch[(i__ + (k + ch_dim3) * ch_dim2) * ch_dim1 + 1] = cc[(i__ + (k *
120 cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1];
127 for (j = 2; j <= i__1; ++j) {
131 for (k = 1; k <= i__2; ++k) {
132 ch[((k + j * ch_dim3) * ch_dim2 + 1) * ch_dim1 + 1] = cc[(*ido + (
133 j2 - 2 + k * cc_dim3) * cc_dim2) * cc_dim1 + 1] + cc[(*
134 ido + (j2 - 2 + k * cc_dim3) * cc_dim2) * cc_dim1 + 1];
135 ch[((k + jc * ch_dim3) * ch_dim2 + 1) * ch_dim1 + 1] = cc[((j2 -
136 1 + k * cc_dim3) * cc_dim2 + 1) * cc_dim1 + 1] + cc[((j2
137 - 1 + k * cc_dim3) * cc_dim2 + 1) * cc_dim1 + 1];
150 for (j = 2; j <= i__1; ++j) {
153 for (k = 1; k <= i__2; ++k) {
155 for (i__ = 3; i__ <= i__3; i__ += 2) {
157 ch[(i__ - 1 + (k + j * ch_dim3) * ch_dim2) * ch_dim1 + 1] =
158 cc[(i__ - 1 + ((j << 1) - 1 + k * cc_dim3) * cc_dim2)
159 * cc_dim1 + 1] + cc[(ic - 1 + ((j << 1) - 2 + k *
160 cc_dim3) * cc_dim2) * cc_dim1 + 1];
161 ch[(i__ - 1 + (k + jc * ch_dim3) * ch_dim2) * ch_dim1 + 1] =
162 cc[(i__ - 1 + ((j << 1) - 1 + k * cc_dim3) * cc_dim2)
163 * cc_dim1 + 1] - cc[(ic - 1 + ((j << 1) - 2 + k *
164 cc_dim3) * cc_dim2) * cc_dim1 + 1];
165 ch[(i__ + (k + j * ch_dim3) * ch_dim2) * ch_dim1 + 1] = cc[(
166 i__ + ((j << 1) - 1 + k * cc_dim3) * cc_dim2) *
167 cc_dim1 + 1] - cc[(ic + ((j << 1) - 2 + k * cc_dim3) *
168 cc_dim2) * cc_dim1 + 1];
169 ch[(i__ + (k + jc * ch_dim3) * ch_dim2) * ch_dim1 + 1] = cc[(
170 i__ + ((j << 1) - 1 + k * cc_dim3) * cc_dim2) *
171 cc_dim1 + 1] + cc[(ic + ((j << 1) - 2 + k * cc_dim3) *
172 cc_dim2) * cc_dim1 + 1];
182 for (j = 2; j <= i__1; ++j) {
185 for (i__ = 3; i__ <= i__2; i__ += 2) {
188 for (k = 1; k <= i__3; ++k) {
189 ch[(i__ - 1 + (k + j * ch_dim3) * ch_dim2) * ch_dim1 + 1] =
190 cc[(i__ - 1 + ((j << 1) - 1 + k * cc_dim3) * cc_dim2)
191 * cc_dim1 + 1] + cc[(ic - 1 + ((j << 1) - 2 + k *
192 cc_dim3) * cc_dim2) * cc_dim1 + 1];
193 ch[(i__ - 1 + (k + jc * ch_dim3) * ch_dim2) * ch_dim1 + 1] =
194 cc[(i__ - 1 + ((j << 1) - 1 + k * cc_dim3) * cc_dim2)
195 * cc_dim1 + 1] - cc[(ic - 1 + ((j << 1) - 2 + k *
196 cc_dim3) * cc_dim2) * cc_dim1 + 1];
197 ch[(i__ + (k + j * ch_dim3) * ch_dim2) * ch_dim1 + 1] = cc[(
198 i__ + ((j << 1) - 1 + k * cc_dim3) * cc_dim2) *
199 cc_dim1 + 1] - cc[(ic + ((j << 1) - 2 + k * cc_dim3) *
200 cc_dim2) * cc_dim1 + 1];
201 ch[(i__ + (k + jc * ch_dim3) * ch_dim2) * ch_dim1 + 1] = cc[(
202 i__ + ((j << 1) - 1 + k * cc_dim3) * cc_dim2) *
203 cc_dim1 + 1] + cc[(ic + ((j << 1) - 2 + k * cc_dim3) *
204 cc_dim2) * cc_dim1 + 1];
215 for (l = 2; l <= i__1; ++l) {
217 ar1h = dcp * ar1 - dsp * ai1;
218 ai1 = dcp * ai1 + dsp * ar1;
221 for (ik = 1; ik <= i__2; ++ik) {
222 c2[(ik + l * c2_dim2) * c2_dim1 + 1] = ch2[(ik + ch2_dim2) *
223 ch2_dim1 + 1] + ar1 * ch2[(ik + (ch2_dim2 << 1)) *
225 c2[(ik + lc * c2_dim2) * c2_dim1 + 1] = ai1 * ch2[(ik + *ip *
226 ch2_dim2) * ch2_dim1 + 1];
234 for (j = 3; j <= i__2; ++j) {
236 ar2h = dc2 * ar2 - ds2 * ai2;
237 ai2 = dc2 * ai2 + ds2 * ar2;
240 for (ik = 1; ik <= i__3; ++ik) {
241 c2[(ik + l * c2_dim2) * c2_dim1 + 1] += ar2 * ch2[(ik + j *
242 ch2_dim2) * ch2_dim1 + 1];
243 c2[(ik + lc * c2_dim2) * c2_dim1 + 1] += ai2 * ch2[(ik + jc *
244 ch2_dim2) * ch2_dim1 + 1];
252 for (j = 2; j <= i__1; ++j) {
254 for (ik = 1; ik <= i__2; ++ik) {
255 ch2[(ik + ch2_dim2) * ch2_dim1 + 1] += ch2[(ik + j * ch2_dim2) *
262 for (j = 2; j <= i__1; ++j) {
265 for (k = 1; k <= i__2; ++k) {
266 ch[((k + j * ch_dim3) * ch_dim2 + 1) * ch_dim1 + 1] = c1[((k + j *
267 c1_dim3) * c1_dim2 + 1) * c1_dim1 + 1] - c1[((k + jc *
268 c1_dim3) * c1_dim2 + 1) * c1_dim1 + 1];
269 ch[((k + jc * ch_dim3) * ch_dim2 + 1) * ch_dim1 + 1] = c1[((k + j
270 * c1_dim3) * c1_dim2 + 1) * c1_dim1 + 1] + c1[((k + jc *
271 c1_dim3) * c1_dim2 + 1) * c1_dim1 + 1];
283 for (j = 2; j <= i__1; ++j) {
286 for (k = 1; k <= i__2; ++k) {
288 for (i__ = 3; i__ <= i__3; i__ += 2) {
289 ch[(i__ - 1 + (k + j * ch_dim3) * ch_dim2) * ch_dim1 + 1] =
290 c1[(i__ - 1 + (k + j * c1_dim3) * c1_dim2) * c1_dim1
291 + 1] - c1[(i__ + (k + jc * c1_dim3) * c1_dim2) *
293 ch[(i__ - 1 + (k + jc * ch_dim3) * ch_dim2) * ch_dim1 + 1] =
294 c1[(i__ - 1 + (k + j * c1_dim3) * c1_dim2) * c1_dim1
295 + 1] + c1[(i__ + (k + jc * c1_dim3) * c1_dim2) *
297 ch[(i__ + (k + j * ch_dim3) * ch_dim2) * ch_dim1 + 1] = c1[(
298 i__ + (k + j * c1_dim3) * c1_dim2) * c1_dim1 + 1] +
299 c1[(i__ - 1 + (k + jc * c1_dim3) * c1_dim2) * c1_dim1
301 ch[(i__ + (k + jc * ch_dim3) * ch_dim2) * ch_dim1 + 1] = c1[(
302 i__ + (k + j * c1_dim3) * c1_dim2) * c1_dim1 + 1] -
303 c1[(i__ - 1 + (k + jc * c1_dim3) * c1_dim2) * c1_dim1
314 for (j = 2; j <= i__1; ++j) {
317 for (i__ = 3; i__ <= i__2; i__ += 2) {
319 for (k = 1; k <= i__3; ++k) {
320 ch[(i__ - 1 + (k + j * ch_dim3) * ch_dim2) * ch_dim1 + 1] =
321 c1[(i__ - 1 + (k + j * c1_dim3) * c1_dim2) * c1_dim1
322 + 1] - c1[(i__ + (k + jc * c1_dim3) * c1_dim2) *
324 ch[(i__ - 1 + (k + jc * ch_dim3) * ch_dim2) * ch_dim1 + 1] =
325 c1[(i__ - 1 + (k + j * c1_dim3) * c1_dim2) * c1_dim1
326 + 1] + c1[(i__ + (k + jc * c1_dim3) * c1_dim2) *
328 ch[(i__ + (k + j * ch_dim3) * ch_dim2) * ch_dim1 + 1] = c1[(
329 i__ + (k + j * c1_dim3) * c1_dim2) * c1_dim1 + 1] +
330 c1[(i__ - 1 + (k + jc * c1_dim3) * c1_dim2) * c1_dim1
332 ch[(i__ + (k + jc * ch_dim3) * ch_dim2) * ch_dim1 + 1] = c1[(
333 i__ + (k + j * c1_dim3) * c1_dim2) * c1_dim1 + 1] -
334 c1[(i__ - 1 + (k + jc * c1_dim3) * c1_dim2) * c1_dim1
347 for (ik = 1; ik <= i__1; ++ik) {
348 c2[(ik + c2_dim2) * c2_dim1 + 1] = ch2[(ik + ch2_dim2) * ch2_dim1 + 1]
353 for (j = 2; j <= i__1; ++j) {
355 for (k = 1; k <= i__2; ++k) {
356 c1[((k + j * c1_dim3) * c1_dim2 + 1) * c1_dim1 + 1] = ch[((k + j *
357 ch_dim3) * ch_dim2 + 1) * ch_dim1 + 1];
367 for (j = 2; j <= i__1; ++j) {
371 for (i__ = 3; i__ <= i__2; i__ += 2) {
374 for (k = 1; k <= i__3; ++k) {
375 c1[(i__ - 1 + (k + j * c1_dim3) * c1_dim2) * c1_dim1 + 1] =
376 wa[idij - 1] * ch[(i__ - 1 + (k + j * ch_dim3) *
377 ch_dim2) * ch_dim1 + 1] - wa[idij] * ch[(i__ + (k + j
378 * ch_dim3) * ch_dim2) * ch_dim1 + 1];
379 c1[(i__ + (k + j * c1_dim3) * c1_dim2) * c1_dim1 + 1] = wa[
380 idij - 1] * ch[(i__ + (k + j * ch_dim3) * ch_dim2) *
381 ch_dim1 + 1] + wa[idij] * ch[(i__ - 1 + (k + j *
382 ch_dim3) * ch_dim2) * ch_dim1 + 1];
393 for (j = 2; j <= i__1; ++j) {
396 for (k = 1; k <= i__2; ++k) {
399 for (i__ = 3; i__ <= i__3; i__ += 2) {
401 c1[(i__ - 1 + (k + j * c1_dim3) * c1_dim2) * c1_dim1 + 1] =
402 wa[idij - 1] * ch[(i__ - 1 + (k + j * ch_dim3) *
403 ch_dim2) * ch_dim1 + 1] - wa[idij] * ch[(i__ + (k + j
404 * ch_dim3) * ch_dim2) * ch_dim1 + 1];
405 c1[(i__ + (k + j * c1_dim3) * c1_dim2) * c1_dim1 + 1] = wa[
406 idij - 1] * ch[(i__ + (k + j * ch_dim3) * ch_dim2) *
407 ch_dim1 + 1] + wa[idij] * ch[(i__ - 1 + (k + j *
408 ch_dim3) * ch_dim2) * ch_dim1 + 1];