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 (ik = 1; ik <= i__1; ++ik) {
105 ch2[(ik + ch2_dim2) * ch2_dim1 + 1] = c2[(ik + c2_dim2) * c2_dim1 + 1]
110 for (j = 2; j <= i__1; ++j) {
112 for (k = 1; k <= i__2; ++k) {
113 ch[((k + j * ch_dim3) * ch_dim2 + 1) * ch_dim1 + 1] = c1[((k + j *
114 c1_dim3) * c1_dim2 + 1) * c1_dim1 + 1];
124 for (j = 2; j <= i__1; ++j) {
128 for (i__ = 3; i__ <= i__2; i__ += 2) {
131 for (k = 1; k <= i__3; ++k) {
132 ch[(i__ - 1 + (k + j * ch_dim3) * ch_dim2) * ch_dim1 + 1] =
133 wa[idij - 1] * c1[(i__ - 1 + (k + j * c1_dim3) *
134 c1_dim2) * c1_dim1 + 1] + wa[idij] * c1[(i__ + (k + j
135 * c1_dim3) * c1_dim2) * c1_dim1 + 1];
136 ch[(i__ + (k + j * ch_dim3) * ch_dim2) * ch_dim1 + 1] = wa[
137 idij - 1] * c1[(i__ + (k + j * c1_dim3) * c1_dim2) *
138 c1_dim1 + 1] - wa[idij] * c1[(i__ - 1 + (k + j *
139 c1_dim3) * c1_dim2) * c1_dim1 + 1];
150 for (j = 2; j <= i__1; ++j) {
153 for (k = 1; k <= i__2; ++k) {
156 for (i__ = 3; i__ <= i__3; i__ += 2) {
158 ch[(i__ - 1 + (k + j * ch_dim3) * ch_dim2) * ch_dim1 + 1] =
159 wa[idij - 1] * c1[(i__ - 1 + (k + j * c1_dim3) *
160 c1_dim2) * c1_dim1 + 1] + wa[idij] * c1[(i__ + (k + j
161 * c1_dim3) * c1_dim2) * c1_dim1 + 1];
162 ch[(i__ + (k + j * ch_dim3) * ch_dim2) * ch_dim1 + 1] = wa[
163 idij - 1] * c1[(i__ + (k + j * c1_dim3) * c1_dim2) *
164 c1_dim1 + 1] - wa[idij] * c1[(i__ - 1 + (k + j *
165 c1_dim3) * c1_dim2) * c1_dim1 + 1];
177 for (j = 2; j <= i__1; ++j) {
180 for (k = 1; k <= i__2; ++k) {
182 for (i__ = 3; i__ <= i__3; i__ += 2) {
183 c1[(i__ - 1 + (k + j * c1_dim3) * c1_dim2) * c1_dim1 + 1] =
184 ch[(i__ - 1 + (k + j * ch_dim3) * ch_dim2) * ch_dim1
185 + 1] + ch[(i__ - 1 + (k + jc * ch_dim3) * ch_dim2) *
187 c1[(i__ - 1 + (k + jc * c1_dim3) * c1_dim2) * c1_dim1 + 1] =
188 ch[(i__ + (k + j * ch_dim3) * ch_dim2) * ch_dim1 + 1]
189 - ch[(i__ + (k + jc * ch_dim3) * ch_dim2) * ch_dim1 +
191 c1[(i__ + (k + j * c1_dim3) * c1_dim2) * c1_dim1 + 1] = ch[(
192 i__ + (k + j * ch_dim3) * ch_dim2) * ch_dim1 + 1] +
193 ch[(i__ + (k + jc * ch_dim3) * ch_dim2) * ch_dim1 + 1]
195 c1[(i__ + (k + jc * c1_dim3) * c1_dim2) * c1_dim1 + 1] = ch[(
196 i__ - 1 + (k + jc * ch_dim3) * ch_dim2) * ch_dim1 + 1]
197 - ch[(i__ - 1 + (k + j * ch_dim3) * ch_dim2) *
208 for (j = 2; j <= i__1; ++j) {
211 for (i__ = 3; i__ <= i__2; i__ += 2) {
213 for (k = 1; k <= i__3; ++k) {
214 c1[(i__ - 1 + (k + j * c1_dim3) * c1_dim2) * c1_dim1 + 1] =
215 ch[(i__ - 1 + (k + j * ch_dim3) * ch_dim2) * ch_dim1
216 + 1] + ch[(i__ - 1 + (k + jc * ch_dim3) * ch_dim2) *
218 c1[(i__ - 1 + (k + jc * c1_dim3) * c1_dim2) * c1_dim1 + 1] =
219 ch[(i__ + (k + j * ch_dim3) * ch_dim2) * ch_dim1 + 1]
220 - ch[(i__ + (k + jc * ch_dim3) * ch_dim2) * ch_dim1 +
222 c1[(i__ + (k + j * c1_dim3) * c1_dim2) * c1_dim1 + 1] = ch[(
223 i__ + (k + j * ch_dim3) * ch_dim2) * ch_dim1 + 1] +
224 ch[(i__ + (k + jc * ch_dim3) * ch_dim2) * ch_dim1 + 1]
226 c1[(i__ + (k + jc * c1_dim3) * c1_dim2) * c1_dim1 + 1] = ch[(
227 i__ - 1 + (k + jc * ch_dim3) * ch_dim2) * ch_dim1 + 1]
228 - ch[(i__ - 1 + (k + j * ch_dim3) * ch_dim2) *
239 for (ik = 1; ik <= i__1; ++ik) {
240 c2[(ik + c2_dim2) * c2_dim1 + 1] = ch2[(ik + ch2_dim2) * ch2_dim1 + 1]
246 for (j = 2; j <= i__1; ++j) {
249 for (k = 1; k <= i__2; ++k) {
250 c1[((k + j * c1_dim3) * c1_dim2 + 1) * c1_dim1 + 1] = ch[((k + j *
251 ch_dim3) * ch_dim2 + 1) * ch_dim1 + 1] + ch[((k + jc *
252 ch_dim3) * ch_dim2 + 1) * ch_dim1 + 1];
253 c1[((k + jc * c1_dim3) * c1_dim2 + 1) * c1_dim1 + 1] = ch[((k +
254 jc * ch_dim3) * ch_dim2 + 1) * ch_dim1 + 1] - ch[((k + j *
255 ch_dim3) * ch_dim2 + 1) * ch_dim1 + 1];
264 for (l = 2; l <= i__1; ++l) {
266 ar1h = dcp * ar1 - dsp * ai1;
267 ai1 = dcp * ai1 + dsp * ar1;
270 for (ik = 1; ik <= i__2; ++ik) {
271 ch2[(ik + l * ch2_dim2) * ch2_dim1 + 1] = c2[(ik + c2_dim2) *
272 c2_dim1 + 1] + ar1 * c2[(ik + (c2_dim2 << 1)) * c2_dim1 +
274 ch2[(ik + lc * ch2_dim2) * ch2_dim1 + 1] = ai1 * c2[(ik + *ip *
275 c2_dim2) * c2_dim1 + 1];
283 for (j = 3; j <= i__2; ++j) {
285 ar2h = dc2 * ar2 - ds2 * ai2;
286 ai2 = dc2 * ai2 + ds2 * ar2;
289 for (ik = 1; ik <= i__3; ++ik) {
290 ch2[(ik + l * ch2_dim2) * ch2_dim1 + 1] += ar2 * c2[(ik + j *
291 c2_dim2) * c2_dim1 + 1];
292 ch2[(ik + lc * ch2_dim2) * ch2_dim1 + 1] += ai2 * c2[(ik + jc
293 * c2_dim2) * c2_dim1 + 1];
301 for (j = 2; j <= i__1; ++j) {
303 for (ik = 1; ik <= i__2; ++ik) {
304 ch2[(ik + ch2_dim2) * ch2_dim1 + 1] += c2[(ik + j * c2_dim2) *
315 for (k = 1; k <= i__1; ++k) {
317 for (i__ = 1; i__ <= i__2; ++i__) {
318 cc[(i__ + (k * cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] = ch[(i__ +
319 (k + ch_dim3) * ch_dim2) * ch_dim1 + 1];
327 for (i__ = 1; i__ <= i__1; ++i__) {
329 for (k = 1; k <= i__2; ++k) {
330 cc[(i__ + (k * cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] = ch[(i__ +
331 (k + ch_dim3) * ch_dim2) * ch_dim1 + 1];
338 for (j = 2; j <= i__1; ++j) {
342 for (k = 1; k <= i__2; ++k) {
343 cc[(*ido + (j2 - 2 + k * cc_dim3) * cc_dim2) * cc_dim1 + 1] = ch[(
344 (k + j * ch_dim3) * ch_dim2 + 1) * ch_dim1 + 1];
345 cc[((j2 - 1 + k * cc_dim3) * cc_dim2 + 1) * cc_dim1 + 1] = ch[((k
346 + jc * ch_dim3) * ch_dim2 + 1) * ch_dim1 + 1];
358 for (j = 2; j <= i__1; ++j) {
362 for (k = 1; k <= i__2; ++k) {
364 for (i__ = 3; i__ <= i__3; i__ += 2) {
366 cc[(i__ - 1 + (j2 - 1 + k * cc_dim3) * cc_dim2) * cc_dim1 + 1]
367 = ch[(i__ - 1 + (k + j * ch_dim3) * ch_dim2) *
368 ch_dim1 + 1] + ch[(i__ - 1 + (k + jc * ch_dim3) *
369 ch_dim2) * ch_dim1 + 1];
370 cc[(ic - 1 + (j2 - 2 + k * cc_dim3) * cc_dim2) * cc_dim1 + 1]
371 = ch[(i__ - 1 + (k + j * ch_dim3) * ch_dim2) *
372 ch_dim1 + 1] - ch[(i__ - 1 + (k + jc * ch_dim3) *
373 ch_dim2) * ch_dim1 + 1];
374 cc[(i__ + (j2 - 1 + k * cc_dim3) * cc_dim2) * cc_dim1 + 1] =
375 ch[(i__ + (k + j * ch_dim3) * ch_dim2) * ch_dim1 + 1]
376 + ch[(i__ + (k + jc * ch_dim3) * ch_dim2) * ch_dim1 +
378 cc[(ic + (j2 - 2 + k * cc_dim3) * cc_dim2) * cc_dim1 + 1] =
379 ch[(i__ + (k + jc * ch_dim3) * ch_dim2) * ch_dim1 + 1]
380 - ch[(i__ + (k + j * ch_dim3) * ch_dim2) * ch_dim1 +
391 for (j = 2; j <= i__1; ++j) {
395 for (i__ = 3; i__ <= i__2; i__ += 2) {
398 for (k = 1; k <= i__3; ++k) {
399 cc[(i__ - 1 + (j2 - 1 + k * cc_dim3) * cc_dim2) * cc_dim1 + 1]
400 = ch[(i__ - 1 + (k + j * ch_dim3) * ch_dim2) *
401 ch_dim1 + 1] + ch[(i__ - 1 + (k + jc * ch_dim3) *
402 ch_dim2) * ch_dim1 + 1];
403 cc[(ic - 1 + (j2 - 2 + k * cc_dim3) * cc_dim2) * cc_dim1 + 1]
404 = ch[(i__ - 1 + (k + j * ch_dim3) * ch_dim2) *
405 ch_dim1 + 1] - ch[(i__ - 1 + (k + jc * ch_dim3) *
406 ch_dim2) * ch_dim1 + 1];
407 cc[(i__ + (j2 - 1 + k * cc_dim3) * cc_dim2) * cc_dim1 + 1] =
408 ch[(i__ + (k + j * ch_dim3) * ch_dim2) * ch_dim1 + 1]
409 + ch[(i__ + (k + jc * ch_dim3) * ch_dim2) * ch_dim1 +
411 cc[(ic + (j2 - 2 + k * cc_dim3) * cc_dim2) * cc_dim1 + 1] =
412 ch[(i__ + (k + jc * ch_dim3) * ch_dim2) * ch_dim1 + 1]
413 - ch[(i__ + (k + j * ch_dim3) * ch_dim2) * ch_dim1 +