51 integer cc_dim1, cc_dim2, cc_offset, ch_dim1, ch_dim2, ch_dim3, ch_offset,
52 i__1, i__2, i__3, i__4;
58 integer i__, k, m1, m2, ic, m1d, m2s;
70 cc_offset = 1 + cc_dim1 * (1 + cc_dim2 * 6);
75 ch_offset = 1 + ch_dim1 * (1 + ch_dim2 * (1 + ch_dim3));
79 m1d = (*m - 1) * *im1 + 1;
81 arg = atan(1.) * 8. / 5.;
87 for (k = 1; k <= i__1; ++k) {
91 for (m1 = 1; i__3 < 0 ? m1 >= i__2 : m1 <= i__2; m1 += i__3) {
93 ch[m2 + ((k + ch_dim3) * ch_dim2 + 1) * ch_dim1] = cc[m1 + ((k *
94 5 + 1) * cc_dim2 + 1) * cc_dim1] + cc[m1 + (*ido + (k * 5
95 + 2) * cc_dim2) * cc_dim1] * 2. + cc[m1 + (*ido + (k * 5
96 + 4) * cc_dim2) * cc_dim1] * 2.;
97 ch[m2 + ((k + (ch_dim3 << 1)) * ch_dim2 + 1) * ch_dim1] = cc[m1 +
98 ((k * 5 + 1) * cc_dim2 + 1) * cc_dim1] + tr11 * 2. * cc[
99 m1 + (*ido + (k * 5 + 2) * cc_dim2) * cc_dim1] + tr12 *
100 2. * cc[m1 + (*ido + (k * 5 + 4) * cc_dim2) * cc_dim1] - (
101 ti11 * 2. * cc[m1 + ((k * 5 + 3) * cc_dim2 + 1) * cc_dim1]
102 + ti12 * 2. * cc[m1 + ((k * 5 + 5) * cc_dim2 + 1) *
104 ch[m2 + ((k + ch_dim3 * 3) * ch_dim2 + 1) * ch_dim1] = cc[m1 + ((
105 k * 5 + 1) * cc_dim2 + 1) * cc_dim1] + tr12 * 2. * cc[m1
106 + (*ido + (k * 5 + 2) * cc_dim2) * cc_dim1] + tr11 * 2. *
107 cc[m1 + (*ido + (k * 5 + 4) * cc_dim2) * cc_dim1] - (ti12
108 * 2. * cc[m1 + ((k * 5 + 3) * cc_dim2 + 1) * cc_dim1] -
109 ti11 * 2. * cc[m1 + ((k * 5 + 5) * cc_dim2 + 1) * cc_dim1]
111 ch[m2 + ((k + (ch_dim3 << 2)) * ch_dim2 + 1) * ch_dim1] = cc[m1 +
112 ((k * 5 + 1) * cc_dim2 + 1) * cc_dim1] + tr12 * 2. * cc[
113 m1 + (*ido + (k * 5 + 2) * cc_dim2) * cc_dim1] + tr11 *
114 2. * cc[m1 + (*ido + (k * 5 + 4) * cc_dim2) * cc_dim1] + (
115 ti12 * 2. * cc[m1 + ((k * 5 + 3) * cc_dim2 + 1) * cc_dim1]
116 - ti11 * 2. * cc[m1 + ((k * 5 + 5) * cc_dim2 + 1) *
118 ch[m2 + ((k + ch_dim3 * 5) * ch_dim2 + 1) * ch_dim1] = cc[m1 + ((
119 k * 5 + 1) * cc_dim2 + 1) * cc_dim1] + tr11 * 2. * cc[m1
120 + (*ido + (k * 5 + 2) * cc_dim2) * cc_dim1] + tr12 * 2. *
121 cc[m1 + (*ido + (k * 5 + 4) * cc_dim2) * cc_dim1] + (ti11
122 * 2. * cc[m1 + ((k * 5 + 3) * cc_dim2 + 1) * cc_dim1] +
123 ti12 * 2. * cc[m1 + ((k * 5 + 5) * cc_dim2 + 1) * cc_dim1]
134 for (k = 1; k <= i__1; ++k) {
136 for (i__ = 3; i__ <= i__3; i__ += 2) {
141 for (m1 = 1; i__4 < 0 ? m1 >= i__2 : m1 <= i__2; m1 += i__4) {
143 ch[m2 + (i__ - 1 + (k + ch_dim3) * ch_dim2) * ch_dim1] = cc[
144 m1 + (i__ - 1 + (k * 5 + 1) * cc_dim2) * cc_dim1] + (
145 cc[m1 + (i__ - 1 + (k * 5 + 3) * cc_dim2) * cc_dim1]
146 + cc[m1 + (ic - 1 + (k * 5 + 2) * cc_dim2) * cc_dim1])
147 + (cc[m1 + (i__ - 1 + (k * 5 + 5) * cc_dim2) *
148 cc_dim1] + cc[m1 + (ic - 1 + (k * 5 + 4) * cc_dim2) *
150 ch[m2 + (i__ + (k + ch_dim3) * ch_dim2) * ch_dim1] = cc[m1 + (
151 i__ + (k * 5 + 1) * cc_dim2) * cc_dim1] + (cc[m1 + (
152 i__ + (k * 5 + 3) * cc_dim2) * cc_dim1] - cc[m1 + (ic
153 + (k * 5 + 2) * cc_dim2) * cc_dim1]) + (cc[m1 + (i__
154 + (k * 5 + 5) * cc_dim2) * cc_dim1] - cc[m1 + (ic + (
155 k * 5 + 4) * cc_dim2) * cc_dim1]);
156 ch[m2 + (i__ - 1 + (k + (ch_dim3 << 1)) * ch_dim2) * ch_dim1]
157 = wa1[i__ - 2] * (cc[m1 + (i__ - 1 + (k * 5 + 1) *
158 cc_dim2) * cc_dim1] + tr11 * (cc[m1 + (i__ - 1 + (k *
159 5 + 3) * cc_dim2) * cc_dim1] + cc[m1 + (ic - 1 + (k *
160 5 + 2) * cc_dim2) * cc_dim1]) + tr12 * (cc[m1 + (i__
161 - 1 + (k * 5 + 5) * cc_dim2) * cc_dim1] + cc[m1 + (ic
162 - 1 + (k * 5 + 4) * cc_dim2) * cc_dim1]) - (ti11 * (
163 cc[m1 + (i__ + (k * 5 + 3) * cc_dim2) * cc_dim1] + cc[
164 m1 + (ic + (k * 5 + 2) * cc_dim2) * cc_dim1]) + ti12 *
165 (cc[m1 + (i__ + (k * 5 + 5) * cc_dim2) * cc_dim1] +
166 cc[m1 + (ic + (k * 5 + 4) * cc_dim2) * cc_dim1]))) -
167 wa1[i__ - 1] * (cc[m1 + (i__ + (k * 5 + 1) * cc_dim2)
168 * cc_dim1] + tr11 * (cc[m1 + (i__ + (k * 5 + 3) *
169 cc_dim2) * cc_dim1] - cc[m1 + (ic + (k * 5 + 2) *
170 cc_dim2) * cc_dim1]) + tr12 * (cc[m1 + (i__ + (k * 5
171 + 5) * cc_dim2) * cc_dim1] - cc[m1 + (ic + (k * 5 + 4)
172 * cc_dim2) * cc_dim1]) + (ti11 * (cc[m1 + (i__ - 1 +
173 (k * 5 + 3) * cc_dim2) * cc_dim1] - cc[m1 + (ic - 1 +
174 (k * 5 + 2) * cc_dim2) * cc_dim1]) + ti12 * (cc[m1 + (
175 i__ - 1 + (k * 5 + 5) * cc_dim2) * cc_dim1] - cc[m1 +
176 (ic - 1 + (k * 5 + 4) * cc_dim2) * cc_dim1])));
177 ch[m2 + (i__ + (k + (ch_dim3 << 1)) * ch_dim2) * ch_dim1] =
178 wa1[i__ - 2] * (cc[m1 + (i__ + (k * 5 + 1) * cc_dim2)
179 * cc_dim1] + tr11 * (cc[m1 + (i__ + (k * 5 + 3) *
180 cc_dim2) * cc_dim1] - cc[m1 + (ic + (k * 5 + 2) *
181 cc_dim2) * cc_dim1]) + tr12 * (cc[m1 + (i__ + (k * 5
182 + 5) * cc_dim2) * cc_dim1] - cc[m1 + (ic + (k * 5 + 4)
183 * cc_dim2) * cc_dim1]) + (ti11 * (cc[m1 + (i__ - 1 +
184 (k * 5 + 3) * cc_dim2) * cc_dim1] - cc[m1 + (ic - 1 +
185 (k * 5 + 2) * cc_dim2) * cc_dim1]) + ti12 * (cc[m1 + (
186 i__ - 1 + (k * 5 + 5) * cc_dim2) * cc_dim1] - cc[m1 +
187 (ic - 1 + (k * 5 + 4) * cc_dim2) * cc_dim1]))) + wa1[
188 i__ - 1] * (cc[m1 + (i__ - 1 + (k * 5 + 1) * cc_dim2)
189 * cc_dim1] + tr11 * (cc[m1 + (i__ - 1 + (k * 5 + 3) *
190 cc_dim2) * cc_dim1] + cc[m1 + (ic - 1 + (k * 5 + 2) *
191 cc_dim2) * cc_dim1]) + tr12 * (cc[m1 + (i__ - 1 + (k *
192 5 + 5) * cc_dim2) * cc_dim1] + cc[m1 + (ic - 1 + (k *
193 5 + 4) * cc_dim2) * cc_dim1]) - (ti11 * (cc[m1 + (
194 i__ + (k * 5 + 3) * cc_dim2) * cc_dim1] + cc[m1 + (ic
195 + (k * 5 + 2) * cc_dim2) * cc_dim1]) + ti12 * (cc[m1
196 + (i__ + (k * 5 + 5) * cc_dim2) * cc_dim1] + cc[m1 + (
197 ic + (k * 5 + 4) * cc_dim2) * cc_dim1])));
198 ch[m2 + (i__ - 1 + (k + ch_dim3 * 3) * ch_dim2) * ch_dim1] =
199 wa2[i__ - 2] * (cc[m1 + (i__ - 1 + (k * 5 + 1) *
200 cc_dim2) * cc_dim1] + tr12 * (cc[m1 + (i__ - 1 + (k *
201 5 + 3) * cc_dim2) * cc_dim1] + cc[m1 + (ic - 1 + (k *
202 5 + 2) * cc_dim2) * cc_dim1]) + tr11 * (cc[m1 + (i__
203 - 1 + (k * 5 + 5) * cc_dim2) * cc_dim1] + cc[m1 + (ic
204 - 1 + (k * 5 + 4) * cc_dim2) * cc_dim1]) - (ti12 * (
205 cc[m1 + (i__ + (k * 5 + 3) * cc_dim2) * cc_dim1] + cc[
206 m1 + (ic + (k * 5 + 2) * cc_dim2) * cc_dim1]) - ti11 *
207 (cc[m1 + (i__ + (k * 5 + 5) * cc_dim2) * cc_dim1] +
208 cc[m1 + (ic + (k * 5 + 4) * cc_dim2) * cc_dim1]))) -
209 wa2[i__ - 1] * (cc[m1 + (i__ + (k * 5 + 1) * cc_dim2)
210 * cc_dim1] + tr12 * (cc[m1 + (i__ + (k * 5 + 3) *
211 cc_dim2) * cc_dim1] - cc[m1 + (ic + (k * 5 + 2) *
212 cc_dim2) * cc_dim1]) + tr11 * (cc[m1 + (i__ + (k * 5
213 + 5) * cc_dim2) * cc_dim1] - cc[m1 + (ic + (k * 5 + 4)
214 * cc_dim2) * cc_dim1]) + (ti12 * (cc[m1 + (i__ - 1 +
215 (k * 5 + 3) * cc_dim2) * cc_dim1] - cc[m1 + (ic - 1 +
216 (k * 5 + 2) * cc_dim2) * cc_dim1]) - ti11 * (cc[m1 + (
217 i__ - 1 + (k * 5 + 5) * cc_dim2) * cc_dim1] - cc[m1 +
218 (ic - 1 + (k * 5 + 4) * cc_dim2) * cc_dim1])));
219 ch[m2 + (i__ + (k + ch_dim3 * 3) * ch_dim2) * ch_dim1] = wa2[
220 i__ - 2] * (cc[m1 + (i__ + (k * 5 + 1) * cc_dim2) *
221 cc_dim1] + tr12 * (cc[m1 + (i__ + (k * 5 + 3) *
222 cc_dim2) * cc_dim1] - cc[m1 + (ic + (k * 5 + 2) *
223 cc_dim2) * cc_dim1]) + tr11 * (cc[m1 + (i__ + (k * 5
224 + 5) * cc_dim2) * cc_dim1] - cc[m1 + (ic + (k * 5 + 4)
225 * cc_dim2) * cc_dim1]) + (ti12 * (cc[m1 + (i__ - 1 +
226 (k * 5 + 3) * cc_dim2) * cc_dim1] - cc[m1 + (ic - 1 +
227 (k * 5 + 2) * cc_dim2) * cc_dim1]) - ti11 * (cc[m1 + (
228 i__ - 1 + (k * 5 + 5) * cc_dim2) * cc_dim1] - cc[m1 +
229 (ic - 1 + (k * 5 + 4) * cc_dim2) * cc_dim1]))) + wa2[
230 i__ - 1] * (cc[m1 + (i__ - 1 + (k * 5 + 1) * cc_dim2)
231 * cc_dim1] + tr12 * (cc[m1 + (i__ - 1 + (k * 5 + 3) *
232 cc_dim2) * cc_dim1] + cc[m1 + (ic - 1 + (k * 5 + 2) *
233 cc_dim2) * cc_dim1]) + tr11 * (cc[m1 + (i__ - 1 + (k *
234 5 + 5) * cc_dim2) * cc_dim1] + cc[m1 + (ic - 1 + (k *
235 5 + 4) * cc_dim2) * cc_dim1]) - (ti12 * (cc[m1 + (
236 i__ + (k * 5 + 3) * cc_dim2) * cc_dim1] + cc[m1 + (ic
237 + (k * 5 + 2) * cc_dim2) * cc_dim1]) - ti11 * (cc[m1
238 + (i__ + (k * 5 + 5) * cc_dim2) * cc_dim1] + cc[m1 + (
239 ic + (k * 5 + 4) * cc_dim2) * cc_dim1])));
240 ch[m2 + (i__ - 1 + (k + (ch_dim3 << 2)) * ch_dim2) * ch_dim1]
241 = wa3[i__ - 2] * (cc[m1 + (i__ - 1 + (k * 5 + 1) *
242 cc_dim2) * cc_dim1] + tr12 * (cc[m1 + (i__ - 1 + (k *
243 5 + 3) * cc_dim2) * cc_dim1] + cc[m1 + (ic - 1 + (k *
244 5 + 2) * cc_dim2) * cc_dim1]) + tr11 * (cc[m1 + (i__
245 - 1 + (k * 5 + 5) * cc_dim2) * cc_dim1] + cc[m1 + (ic
246 - 1 + (k * 5 + 4) * cc_dim2) * cc_dim1]) + (ti12 * (
247 cc[m1 + (i__ + (k * 5 + 3) * cc_dim2) * cc_dim1] + cc[
248 m1 + (ic + (k * 5 + 2) * cc_dim2) * cc_dim1]) - ti11 *
249 (cc[m1 + (i__ + (k * 5 + 5) * cc_dim2) * cc_dim1] +
250 cc[m1 + (ic + (k * 5 + 4) * cc_dim2) * cc_dim1]))) -
251 wa3[i__ - 1] * (cc[m1 + (i__ + (k * 5 + 1) * cc_dim2)
252 * cc_dim1] + tr12 * (cc[m1 + (i__ + (k * 5 + 3) *
253 cc_dim2) * cc_dim1] - cc[m1 + (ic + (k * 5 + 2) *
254 cc_dim2) * cc_dim1]) + tr11 * (cc[m1 + (i__ + (k * 5
255 + 5) * cc_dim2) * cc_dim1] - cc[m1 + (ic + (k * 5 + 4)
256 * cc_dim2) * cc_dim1]) - (ti12 * (cc[m1 + (i__ - 1 +
257 (k * 5 + 3) * cc_dim2) * cc_dim1] - cc[m1 + (ic - 1 +
258 (k * 5 + 2) * cc_dim2) * cc_dim1]) - ti11 * (cc[m1 + (
259 i__ - 1 + (k * 5 + 5) * cc_dim2) * cc_dim1] - cc[m1 +
260 (ic - 1 + (k * 5 + 4) * cc_dim2) * cc_dim1])));
261 ch[m2 + (i__ + (k + (ch_dim3 << 2)) * ch_dim2) * ch_dim1] =
262 wa3[i__ - 2] * (cc[m1 + (i__ + (k * 5 + 1) * cc_dim2)
263 * cc_dim1] + tr12 * (cc[m1 + (i__ + (k * 5 + 3) *
264 cc_dim2) * cc_dim1] - cc[m1 + (ic + (k * 5 + 2) *
265 cc_dim2) * cc_dim1]) + tr11 * (cc[m1 + (i__ + (k * 5
266 + 5) * cc_dim2) * cc_dim1] - cc[m1 + (ic + (k * 5 + 4)
267 * cc_dim2) * cc_dim1]) - (ti12 * (cc[m1 + (i__ - 1 +
268 (k * 5 + 3) * cc_dim2) * cc_dim1] - cc[m1 + (ic - 1 +
269 (k * 5 + 2) * cc_dim2) * cc_dim1]) - ti11 * (cc[m1 + (
270 i__ - 1 + (k * 5 + 5) * cc_dim2) * cc_dim1] - cc[m1 +
271 (ic - 1 + (k * 5 + 4) * cc_dim2) * cc_dim1]))) + wa3[
272 i__ - 1] * (cc[m1 + (i__ - 1 + (k * 5 + 1) * cc_dim2)
273 * cc_dim1] + tr12 * (cc[m1 + (i__ - 1 + (k * 5 + 3) *
274 cc_dim2) * cc_dim1] + cc[m1 + (ic - 1 + (k * 5 + 2) *
275 cc_dim2) * cc_dim1]) + tr11 * (cc[m1 + (i__ - 1 + (k *
276 5 + 5) * cc_dim2) * cc_dim1] + cc[m1 + (ic - 1 + (k *
277 5 + 4) * cc_dim2) * cc_dim1]) + (ti12 * (cc[m1 + (
278 i__ + (k * 5 + 3) * cc_dim2) * cc_dim1] + cc[m1 + (ic
279 + (k * 5 + 2) * cc_dim2) * cc_dim1]) - ti11 * (cc[m1
280 + (i__ + (k * 5 + 5) * cc_dim2) * cc_dim1] + cc[m1 + (
281 ic + (k * 5 + 4) * cc_dim2) * cc_dim1])));
282 ch[m2 + (i__ - 1 + (k + ch_dim3 * 5) * ch_dim2) * ch_dim1] =
283 wa4[i__ - 2] * (cc[m1 + (i__ - 1 + (k * 5 + 1) *
284 cc_dim2) * cc_dim1] + tr11 * (cc[m1 + (i__ - 1 + (k *
285 5 + 3) * cc_dim2) * cc_dim1] + cc[m1 + (ic - 1 + (k *
286 5 + 2) * cc_dim2) * cc_dim1]) + tr12 * (cc[m1 + (i__
287 - 1 + (k * 5 + 5) * cc_dim2) * cc_dim1] + cc[m1 + (ic
288 - 1 + (k * 5 + 4) * cc_dim2) * cc_dim1]) + (ti11 * (
289 cc[m1 + (i__ + (k * 5 + 3) * cc_dim2) * cc_dim1] + cc[
290 m1 + (ic + (k * 5 + 2) * cc_dim2) * cc_dim1]) + ti12 *
291 (cc[m1 + (i__ + (k * 5 + 5) * cc_dim2) * cc_dim1] +
292 cc[m1 + (ic + (k * 5 + 4) * cc_dim2) * cc_dim1]))) -
293 wa4[i__ - 1] * (cc[m1 + (i__ + (k * 5 + 1) * cc_dim2)
294 * cc_dim1] + tr11 * (cc[m1 + (i__ + (k * 5 + 3) *
295 cc_dim2) * cc_dim1] - cc[m1 + (ic + (k * 5 + 2) *
296 cc_dim2) * cc_dim1]) + tr12 * (cc[m1 + (i__ + (k * 5
297 + 5) * cc_dim2) * cc_dim1] - cc[m1 + (ic + (k * 5 + 4)
298 * cc_dim2) * cc_dim1]) - (ti11 * (cc[m1 + (i__ - 1 +
299 (k * 5 + 3) * cc_dim2) * cc_dim1] - cc[m1 + (ic - 1 +
300 (k * 5 + 2) * cc_dim2) * cc_dim1]) + ti12 * (cc[m1 + (
301 i__ - 1 + (k * 5 + 5) * cc_dim2) * cc_dim1] - cc[m1 +
302 (ic - 1 + (k * 5 + 4) * cc_dim2) * cc_dim1])));
303 ch[m2 + (i__ + (k + ch_dim3 * 5) * ch_dim2) * ch_dim1] = wa4[
304 i__ - 2] * (cc[m1 + (i__ + (k * 5 + 1) * cc_dim2) *
305 cc_dim1] + tr11 * (cc[m1 + (i__ + (k * 5 + 3) *
306 cc_dim2) * cc_dim1] - cc[m1 + (ic + (k * 5 + 2) *
307 cc_dim2) * cc_dim1]) + tr12 * (cc[m1 + (i__ + (k * 5
308 + 5) * cc_dim2) * cc_dim1] - cc[m1 + (ic + (k * 5 + 4)
309 * cc_dim2) * cc_dim1]) - (ti11 * (cc[m1 + (i__ - 1 +
310 (k * 5 + 3) * cc_dim2) * cc_dim1] - cc[m1 + (ic - 1 +
311 (k * 5 + 2) * cc_dim2) * cc_dim1]) + ti12 * (cc[m1 + (
312 i__ - 1 + (k * 5 + 5) * cc_dim2) * cc_dim1] - cc[m1 +
313 (ic - 1 + (k * 5 + 4) * cc_dim2) * cc_dim1]))) + wa4[
314 i__ - 1] * (cc[m1 + (i__ - 1 + (k * 5 + 1) * cc_dim2)
315 * cc_dim1] + tr11 * (cc[m1 + (i__ - 1 + (k * 5 + 3) *
316 cc_dim2) * cc_dim1] + cc[m1 + (ic - 1 + (k * 5 + 2) *
317 cc_dim2) * cc_dim1]) + tr12 * (cc[m1 + (i__ - 1 + (k *
318 5 + 5) * cc_dim2) * cc_dim1] + cc[m1 + (ic - 1 + (k *
319 5 + 4) * cc_dim2) * cc_dim1]) + (ti11 * (cc[m1 + (
320 i__ + (k * 5 + 3) * cc_dim2) * cc_dim1] + cc[m1 + (ic
321 + (k * 5 + 2) * cc_dim2) * cc_dim1]) + ti12 * (cc[m1
322 + (i__ + (k * 5 + 5) * cc_dim2) * cc_dim1] + cc[m1 + (
323 ic + (k * 5 + 4) * cc_dim2) * cc_dim1])));