51 integer ch_dim2, ch_dim3, ch_dim4, ch_offset, cc_dim2, cc_dim3, cc_dim4,
52 cc_offset, cc1_dim2, cc1_dim3, cc1_offset, ch1_dim2, ch1_dim3,
53 ch1_offset, wa_dim1, wa_dim2, wa_offset, i__1, i__2, i__3, i__4,
57 integer i__, j, k, l, m1, m2, jc, lc, ki, m1d, m2s;
68 wa_offset = 1 + wa_dim1 * (1 + wa_dim2);
72 cc1_offset = 1 + 2 * (1 + cc1_dim2 * (1 + cc1_dim3));
77 cc_offset = 1 + 2 * (1 + cc_dim2 * (1 + cc_dim3 * (1 + cc_dim4)));
81 ch1_offset = 1 + 2 * (1 + ch1_dim2 * (1 + ch1_dim3));
86 ch_offset = 1 + 2 * (1 + ch_dim2 * (1 + ch_dim3 * (1 + ch_dim4)));
90 m1d = (*lot - 1) * *im1 + 1;
95 for (ki = 1; ki <= i__1; ++ki) {
99 for (m1 = 1; i__3 < 0 ? m1 >= i__2 : m1 <= i__2; m1 += i__3) {
101 ch1[(m2 + (ki + ch1_dim3) * ch1_dim2 << 1) + 1] = cc1[(m1 + (ki +
102 cc1_dim3) * cc1_dim2 << 1) + 1];
103 ch1[(m2 + (ki + ch1_dim3) * ch1_dim2 << 1) + 2] = cc1[(m1 + (ki +
104 cc1_dim3) * cc1_dim2 << 1) + 2];
109 for (j = 2; j <= i__3; ++j) {
112 for (ki = 1; ki <= i__2; ++ki) {
116 for (m1 = 1; i__4 < 0 ? m1 >= i__1 : m1 <= i__1; m1 += i__4) {
118 ch1[(m2 + (ki + j * ch1_dim3) * ch1_dim2 << 1) + 1] = cc1[(m1
119 + (ki + j * cc1_dim3) * cc1_dim2 << 1) + 1] + cc1[(m1
120 + (ki + jc * cc1_dim3) * cc1_dim2 << 1) + 1];
121 ch1[(m2 + (ki + jc * ch1_dim3) * ch1_dim2 << 1) + 1] = cc1[(
122 m1 + (ki + j * cc1_dim3) * cc1_dim2 << 1) + 1] - cc1[(
123 m1 + (ki + jc * cc1_dim3) * cc1_dim2 << 1) + 1];
124 ch1[(m2 + (ki + j * ch1_dim3) * ch1_dim2 << 1) + 2] = cc1[(m1
125 + (ki + j * cc1_dim3) * cc1_dim2 << 1) + 2] + cc1[(m1
126 + (ki + jc * cc1_dim3) * cc1_dim2 << 1) + 2];
127 ch1[(m2 + (ki + jc * ch1_dim3) * ch1_dim2 << 1) + 2] = cc1[(
128 m1 + (ki + j * cc1_dim3) * cc1_dim2 << 1) + 2] - cc1[(
129 m1 + (ki + jc * cc1_dim3) * cc1_dim2 << 1) + 2];
136 for (j = 2; j <= i__3; ++j) {
138 for (ki = 1; ki <= i__4; ++ki) {
142 for (m1 = 1; i__2 < 0 ? m1 >= i__1 : m1 <= i__1; m1 += i__2) {
144 cc1[(m1 + (ki + cc1_dim3) * cc1_dim2 << 1) + 1] += ch1[(m2 + (
145 ki + j * ch1_dim3) * ch1_dim2 << 1) + 1];
146 cc1[(m1 + (ki + cc1_dim3) * cc1_dim2 << 1) + 2] += ch1[(m2 + (
147 ki + j * ch1_dim3) * ch1_dim2 << 1) + 2];
154 for (l = 2; l <= i__3; ++l) {
157 for (ki = 1; ki <= i__2; ++ki) {
161 for (m1 = 1; i__4 < 0 ? m1 >= i__1 : m1 <= i__1; m1 += i__4) {
163 cc1[(m1 + (ki + l * cc1_dim3) * cc1_dim2 << 1) + 1] = ch1[(m2
164 + (ki + ch1_dim3) * ch1_dim2 << 1) + 1] + wa[(l - 1 +
165 wa_dim2) * wa_dim1 + 1] * ch1[(m2 + (ki + (ch1_dim3 <<
166 1)) * ch1_dim2 << 1) + 1];
167 cc1[(m1 + (ki + lc * cc1_dim3) * cc1_dim2 << 1) + 1] = wa[(l
168 - 1 + (wa_dim2 << 1)) * wa_dim1 + 1] * ch1[(m2 + (ki
169 + *ip * ch1_dim3) * ch1_dim2 << 1) + 1];
170 cc1[(m1 + (ki + l * cc1_dim3) * cc1_dim2 << 1) + 2] = ch1[(m2
171 + (ki + ch1_dim3) * ch1_dim2 << 1) + 2] + wa[(l - 1 +
172 wa_dim2) * wa_dim1 + 1] * ch1[(m2 + (ki + (ch1_dim3 <<
173 1)) * ch1_dim2 << 1) + 2];
174 cc1[(m1 + (ki + lc * cc1_dim3) * cc1_dim2 << 1) + 2] = wa[(l
175 - 1 + (wa_dim2 << 1)) * wa_dim1 + 1] * ch1[(m2 + (ki
176 + *ip * ch1_dim3) * ch1_dim2 << 1) + 2];
181 for (j = 3; j <= i__4; ++j) {
183 idlj = (l - 1) * (j - 1) % *ip;
184 war = wa[(idlj + wa_dim2) * wa_dim1 + 1];
185 wai = wa[(idlj + (wa_dim2 << 1)) * wa_dim1 + 1];
187 for (ki = 1; ki <= i__1; ++ki) {
191 for (m1 = 1; i__5 < 0 ? m1 >= i__2 : m1 <= i__2; m1 += i__5) {
193 cc1[(m1 + (ki + l * cc1_dim3) * cc1_dim2 << 1) + 1] +=
194 war * ch1[(m2 + (ki + j * ch1_dim3) * ch1_dim2 <<
196 cc1[(m1 + (ki + lc * cc1_dim3) * cc1_dim2 << 1) + 1] +=
197 wai * ch1[(m2 + (ki + jc * ch1_dim3) * ch1_dim2 <<
199 cc1[(m1 + (ki + l * cc1_dim3) * cc1_dim2 << 1) + 2] +=
200 war * ch1[(m2 + (ki + j * ch1_dim3) * ch1_dim2 <<
202 cc1[(m1 + (ki + lc * cc1_dim3) * cc1_dim2 << 1) + 2] +=
203 wai * ch1[(m2 + (ki + jc * ch1_dim3) * ch1_dim2 <<
212 if (*ido > 1 || *na == 1) {
216 for (j = 2; j <= i__3; ++j) {
219 for (ki = 1; ki <= i__4; ++ki) {
222 for (m1 = 1; i__2 < 0 ? m1 >= i__5 : m1 <= i__5; m1 += i__2) {
223 chold1 = cc1[(m1 + (ki + j * cc1_dim3) * cc1_dim2 << 1) + 1]
224 - cc1[(m1 + (ki + jc * cc1_dim3) * cc1_dim2 << 1) + 2]
226 chold2 = cc1[(m1 + (ki + j * cc1_dim3) * cc1_dim2 << 1) + 1]
227 + cc1[(m1 + (ki + jc * cc1_dim3) * cc1_dim2 << 1) + 2]
229 cc1[(m1 + (ki + j * cc1_dim3) * cc1_dim2 << 1) + 1] = chold1;
230 cc1[(m1 + (ki + jc * cc1_dim3) * cc1_dim2 << 1) + 2] = cc1[(
231 m1 + (ki + j * cc1_dim3) * cc1_dim2 << 1) + 2] - cc1[(
232 m1 + (ki + jc * cc1_dim3) * cc1_dim2 << 1) + 1];
233 cc1[(m1 + (ki + j * cc1_dim3) * cc1_dim2 << 1) + 2] += cc1[(
234 m1 + (ki + jc * cc1_dim3) * cc1_dim2 << 1) + 1];
235 cc1[(m1 + (ki + jc * cc1_dim3) * cc1_dim2 << 1) + 1] = chold2;
244 for (ki = 1; ki <= i__3; ++ki) {
248 for (m1 = 1; i__5 < 0 ? m1 >= i__2 : m1 <= i__2; m1 += i__5) {
250 ch1[(m2 + (ki + ch1_dim3) * ch1_dim2 << 1) + 1] = cc1[(m1 + (ki +
251 cc1_dim3) * cc1_dim2 << 1) + 1];
252 ch1[(m2 + (ki + ch1_dim3) * ch1_dim2 << 1) + 2] = cc1[(m1 + (ki +
253 cc1_dim3) * cc1_dim2 << 1) + 2];
258 for (j = 2; j <= i__5; ++j) {
261 for (ki = 1; ki <= i__2; ++ki) {
265 for (m1 = 1; i__4 < 0 ? m1 >= i__3 : m1 <= i__3; m1 += i__4) {
267 ch1[(m2 + (ki + j * ch1_dim3) * ch1_dim2 << 1) + 1] = cc1[(m1
268 + (ki + j * cc1_dim3) * cc1_dim2 << 1) + 1] - cc1[(m1
269 + (ki + jc * cc1_dim3) * cc1_dim2 << 1) + 2];
270 ch1[(m2 + (ki + jc * ch1_dim3) * ch1_dim2 << 1) + 1] = cc1[(
271 m1 + (ki + j * cc1_dim3) * cc1_dim2 << 1) + 1] + cc1[(
272 m1 + (ki + jc * cc1_dim3) * cc1_dim2 << 1) + 2];
273 ch1[(m2 + (ki + jc * ch1_dim3) * ch1_dim2 << 1) + 2] = cc1[(
274 m1 + (ki + j * cc1_dim3) * cc1_dim2 << 1) + 2] - cc1[(
275 m1 + (ki + jc * cc1_dim3) * cc1_dim2 << 1) + 1];
276 ch1[(m2 + (ki + j * ch1_dim3) * ch1_dim2 << 1) + 2] = cc1[(m1
277 + (ki + j * cc1_dim3) * cc1_dim2 << 1) + 2] + cc1[(m1
278 + (ki + jc * cc1_dim3) * cc1_dim2 << 1) + 1];
288 for (i__ = 1; i__ <= i__5; ++i__) {
290 for (k = 1; k <= i__4; ++k) {
294 for (m1 = 1; i__2 < 0 ? m1 >= i__3 : m1 <= i__3; m1 += i__2) {
296 cc[(m1 + (k + (i__ * cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1)
297 + 1] = ch[(m2 + (k + (i__ + ch_dim4) * ch_dim3) *
299 cc[(m1 + (k + (i__ * cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1)
300 + 2] = ch[(m2 + (k + (i__ + ch_dim4) * ch_dim3) *
308 for (j = 2; j <= i__5; ++j) {
310 for (k = 1; k <= i__2; ++k) {
314 for (m1 = 1; i__4 < 0 ? m1 >= i__3 : m1 <= i__3; m1 += i__4) {
316 cc[(m1 + (k + (j + cc_dim4) * cc_dim3) * cc_dim2 << 1) + 1] =
317 ch[(m2 + (k + (j * ch_dim4 + 1) * ch_dim3) * ch_dim2
319 cc[(m1 + (k + (j + cc_dim4) * cc_dim3) * cc_dim2 << 1) + 2] =
320 ch[(m2 + (k + (j * ch_dim4 + 1) * ch_dim3) * ch_dim2
328 for (j = 2; j <= i__5; ++j) {
330 for (i__ = 2; i__ <= i__4; ++i__) {
332 for (k = 1; k <= i__3; ++k) {
336 for (m1 = 1; i__1 < 0 ? m1 >= i__2 : m1 <= i__2; m1 += i__1) {
338 cc[(m1 + (k + (j + i__ * cc_dim4) * cc_dim3) * cc_dim2 <<
339 1) + 1] = wa[i__ + (j - 1 + wa_dim2) * wa_dim1] *
340 ch[(m2 + (k + (i__ + j * ch_dim4) * ch_dim3) *
341 ch_dim2 << 1) + 1] - wa[i__ + (j - 1 + (wa_dim2 <<
342 1)) * wa_dim1] * ch[(m2 + (k + (i__ + j *
343 ch_dim4) * ch_dim3) * ch_dim2 << 1) + 2];
344 cc[(m1 + (k + (j + i__ * cc_dim4) * cc_dim3) * cc_dim2 <<
345 1) + 2] = wa[i__ + (j - 1 + wa_dim2) * wa_dim1] *
346 ch[(m2 + (k + (i__ + j * ch_dim4) * ch_dim3) *
347 ch_dim2 << 1) + 2] + wa[i__ + (j - 1 + (wa_dim2 <<
348 1)) * wa_dim1] * ch[(m2 + (k + (i__ + j *
349 ch_dim4) * ch_dim3) * ch_dim2 << 1) + 1];