50 integer cc_dim1, cc_dim2, cc_offset, ch_dim1, ch_dim2, ch_dim3, ch_offset,
69 cc_offset = 1 + cc_dim1 * (1 + cc_dim2 * 6);
74 ch_offset = 1 + ch_dim1 * (1 + ch_dim2 * (1 + ch_dim3));
78 arg = atan(1.) * 8. / 5.;
84 for (k = 1; k <= i__1; ++k) {
85 ch[((k + ch_dim3) * ch_dim2 + 1) * ch_dim1 + 1] = cc[((k * 5 + 1) *
86 cc_dim2 + 1) * cc_dim1 + 1] + cc[(*ido + (k * 5 + 2) *
87 cc_dim2) * cc_dim1 + 1] * 2. + cc[(*ido + (k * 5 + 4) *
88 cc_dim2) * cc_dim1 + 1] * 2.;
89 ch[((k + (ch_dim3 << 1)) * ch_dim2 + 1) * ch_dim1 + 1] = cc[((k * 5 +
90 1) * cc_dim2 + 1) * cc_dim1 + 1] + tr11 * 2. * cc[(*ido + (k *
91 5 + 2) * cc_dim2) * cc_dim1 + 1] + tr12 * 2. * cc[(*ido + (k
92 * 5 + 4) * cc_dim2) * cc_dim1 + 1] - (ti11 * 2. * cc[((k * 5
93 + 3) * cc_dim2 + 1) * cc_dim1 + 1] + ti12 * 2. * cc[((k * 5 +
94 5) * cc_dim2 + 1) * cc_dim1 + 1]);
95 ch[((k + ch_dim3 * 3) * ch_dim2 + 1) * ch_dim1 + 1] = cc[((k * 5 + 1)
96 * cc_dim2 + 1) * cc_dim1 + 1] + tr12 * 2. * cc[(*ido + (k * 5
97 + 2) * cc_dim2) * cc_dim1 + 1] + tr11 * 2. * cc[(*ido + (k *
98 5 + 4) * cc_dim2) * cc_dim1 + 1] - (ti12 * 2. * cc[((k * 5 +
99 3) * cc_dim2 + 1) * cc_dim1 + 1] - ti11 * 2. * cc[((k * 5 + 5)
100 * cc_dim2 + 1) * cc_dim1 + 1]);
101 ch[((k + (ch_dim3 << 2)) * ch_dim2 + 1) * ch_dim1 + 1] = cc[((k * 5 +
102 1) * cc_dim2 + 1) * cc_dim1 + 1] + tr12 * 2. * cc[(*ido + (k *
103 5 + 2) * cc_dim2) * cc_dim1 + 1] + tr11 * 2. * cc[(*ido + (k
104 * 5 + 4) * cc_dim2) * cc_dim1 + 1] + (ti12 * 2. * cc[((k * 5
105 + 3) * cc_dim2 + 1) * cc_dim1 + 1] - ti11 * 2. * cc[((k * 5 +
106 5) * cc_dim2 + 1) * cc_dim1 + 1]);
107 ch[((k + ch_dim3 * 5) * ch_dim2 + 1) * ch_dim1 + 1] = cc[((k * 5 + 1)
108 * cc_dim2 + 1) * cc_dim1 + 1] + tr11 * 2. * cc[(*ido + (k * 5
109 + 2) * cc_dim2) * cc_dim1 + 1] + tr12 * 2. * cc[(*ido + (k *
110 5 + 4) * cc_dim2) * cc_dim1 + 1] + (ti11 * 2. * cc[((k * 5 +
111 3) * cc_dim2 + 1) * cc_dim1 + 1] + ti12 * 2. * cc[((k * 5 + 5)
112 * cc_dim2 + 1) * cc_dim1 + 1]);
120 for (k = 1; k <= i__1; ++k) {
122 for (i__ = 3; i__ <= i__2; i__ += 2) {
124 ch[(i__ - 1 + (k + ch_dim3) * ch_dim2) * ch_dim1 + 1] = cc[(i__ -
125 1 + (k * 5 + 1) * cc_dim2) * cc_dim1 + 1] + (cc[(i__ - 1
126 + (k * 5 + 3) * cc_dim2) * cc_dim1 + 1] + cc[(ic - 1 + (k
127 * 5 + 2) * cc_dim2) * cc_dim1 + 1]) + (cc[(i__ - 1 + (k *
128 5 + 5) * cc_dim2) * cc_dim1 + 1] + cc[(ic - 1 + (k * 5 +
129 4) * cc_dim2) * cc_dim1 + 1]);
130 ch[(i__ + (k + ch_dim3) * ch_dim2) * ch_dim1 + 1] = cc[(i__ + (k *
131 5 + 1) * cc_dim2) * cc_dim1 + 1] + (cc[(i__ + (k * 5 + 3)
132 * cc_dim2) * cc_dim1 + 1] - cc[(ic + (k * 5 + 2) *
133 cc_dim2) * cc_dim1 + 1]) + (cc[(i__ + (k * 5 + 5) *
134 cc_dim2) * cc_dim1 + 1] - cc[(ic + (k * 5 + 4) * cc_dim2)
136 ch[(i__ - 1 + (k + (ch_dim3 << 1)) * ch_dim2) * ch_dim1 + 1] =
137 wa1[i__ - 2] * (cc[(i__ - 1 + (k * 5 + 1) * cc_dim2) *
138 cc_dim1 + 1] + tr11 * (cc[(i__ - 1 + (k * 5 + 3) *
139 cc_dim2) * cc_dim1 + 1] + cc[(ic - 1 + (k * 5 + 2) *
140 cc_dim2) * cc_dim1 + 1]) + tr12 * (cc[(i__ - 1 + (k * 5 +
141 5) * cc_dim2) * cc_dim1 + 1] + cc[(ic - 1 + (k * 5 + 4) *
142 cc_dim2) * cc_dim1 + 1]) - (ti11 * (cc[(i__ + (k * 5 + 3)
143 * cc_dim2) * cc_dim1 + 1] + cc[(ic + (k * 5 + 2) *
144 cc_dim2) * cc_dim1 + 1]) + ti12 * (cc[(i__ + (k * 5 + 5) *
145 cc_dim2) * cc_dim1 + 1] + cc[(ic + (k * 5 + 4) * cc_dim2)
146 * cc_dim1 + 1]))) - wa1[i__ - 1] * (cc[(i__ + (k * 5 + 1)
147 * cc_dim2) * cc_dim1 + 1] + tr11 * (cc[(i__ + (k * 5 + 3)
148 * cc_dim2) * cc_dim1 + 1] - cc[(ic + (k * 5 + 2) *
149 cc_dim2) * cc_dim1 + 1]) + tr12 * (cc[(i__ + (k * 5 + 5) *
150 cc_dim2) * cc_dim1 + 1] - cc[(ic + (k * 5 + 4) * cc_dim2)
151 * cc_dim1 + 1]) + (ti11 * (cc[(i__ - 1 + (k * 5 + 3) *
152 cc_dim2) * cc_dim1 + 1] - cc[(ic - 1 + (k * 5 + 2) *
153 cc_dim2) * cc_dim1 + 1]) + ti12 * (cc[(i__ - 1 + (k * 5 +
154 5) * cc_dim2) * cc_dim1 + 1] - cc[(ic - 1 + (k * 5 + 4) *
155 cc_dim2) * cc_dim1 + 1])));
156 ch[(i__ + (k + (ch_dim3 << 1)) * ch_dim2) * ch_dim1 + 1] = wa1[
157 i__ - 2] * (cc[(i__ + (k * 5 + 1) * cc_dim2) * cc_dim1 +
158 1] + tr11 * (cc[(i__ + (k * 5 + 3) * cc_dim2) * cc_dim1 +
159 1] - cc[(ic + (k * 5 + 2) * cc_dim2) * cc_dim1 + 1]) +
160 tr12 * (cc[(i__ + (k * 5 + 5) * cc_dim2) * cc_dim1 + 1] -
161 cc[(ic + (k * 5 + 4) * cc_dim2) * cc_dim1 + 1]) + (ti11 *
162 (cc[(i__ - 1 + (k * 5 + 3) * cc_dim2) * cc_dim1 + 1] - cc[
163 (ic - 1 + (k * 5 + 2) * cc_dim2) * cc_dim1 + 1]) + ti12 *
164 (cc[(i__ - 1 + (k * 5 + 5) * cc_dim2) * cc_dim1 + 1] - cc[
165 (ic - 1 + (k * 5 + 4) * cc_dim2) * cc_dim1 + 1]))) + wa1[
166 i__ - 1] * (cc[(i__ - 1 + (k * 5 + 1) * cc_dim2) *
167 cc_dim1 + 1] + tr11 * (cc[(i__ - 1 + (k * 5 + 3) *
168 cc_dim2) * cc_dim1 + 1] + cc[(ic - 1 + (k * 5 + 2) *
169 cc_dim2) * cc_dim1 + 1]) + tr12 * (cc[(i__ - 1 + (k * 5 +
170 5) * cc_dim2) * cc_dim1 + 1] + cc[(ic - 1 + (k * 5 + 4) *
171 cc_dim2) * cc_dim1 + 1]) - (ti11 * (cc[(i__ + (k * 5 + 3)
172 * cc_dim2) * cc_dim1 + 1] + cc[(ic + (k * 5 + 2) *
173 cc_dim2) * cc_dim1 + 1]) + ti12 * (cc[(i__ + (k * 5 + 5) *
174 cc_dim2) * cc_dim1 + 1] + cc[(ic + (k * 5 + 4) * cc_dim2)
176 ch[(i__ - 1 + (k + ch_dim3 * 3) * ch_dim2) * ch_dim1 + 1] = wa2[
177 i__ - 2] * (cc[(i__ - 1 + (k * 5 + 1) * cc_dim2) *
178 cc_dim1 + 1] + tr12 * (cc[(i__ - 1 + (k * 5 + 3) *
179 cc_dim2) * cc_dim1 + 1] + cc[(ic - 1 + (k * 5 + 2) *
180 cc_dim2) * cc_dim1 + 1]) + tr11 * (cc[(i__ - 1 + (k * 5 +
181 5) * cc_dim2) * cc_dim1 + 1] + cc[(ic - 1 + (k * 5 + 4) *
182 cc_dim2) * cc_dim1 + 1]) - (ti12 * (cc[(i__ + (k * 5 + 3)
183 * cc_dim2) * cc_dim1 + 1] + cc[(ic + (k * 5 + 2) *
184 cc_dim2) * cc_dim1 + 1]) - ti11 * (cc[(i__ + (k * 5 + 5) *
185 cc_dim2) * cc_dim1 + 1] + cc[(ic + (k * 5 + 4) * cc_dim2)
186 * cc_dim1 + 1]))) - wa2[i__ - 1] * (cc[(i__ + (k * 5 + 1)
187 * cc_dim2) * cc_dim1 + 1] + tr12 * (cc[(i__ + (k * 5 + 3)
188 * cc_dim2) * cc_dim1 + 1] - cc[(ic + (k * 5 + 2) *
189 cc_dim2) * cc_dim1 + 1]) + tr11 * (cc[(i__ + (k * 5 + 5) *
190 cc_dim2) * cc_dim1 + 1] - cc[(ic + (k * 5 + 4) * cc_dim2)
191 * cc_dim1 + 1]) + (ti12 * (cc[(i__ - 1 + (k * 5 + 3) *
192 cc_dim2) * cc_dim1 + 1] - cc[(ic - 1 + (k * 5 + 2) *
193 cc_dim2) * cc_dim1 + 1]) - ti11 * (cc[(i__ - 1 + (k * 5 +
194 5) * cc_dim2) * cc_dim1 + 1] - cc[(ic - 1 + (k * 5 + 4) *
195 cc_dim2) * cc_dim1 + 1])));
196 ch[(i__ + (k + ch_dim3 * 3) * ch_dim2) * ch_dim1 + 1] = wa2[i__ -
197 2] * (cc[(i__ + (k * 5 + 1) * cc_dim2) * cc_dim1 + 1] +
198 tr12 * (cc[(i__ + (k * 5 + 3) * cc_dim2) * cc_dim1 + 1] -
199 cc[(ic + (k * 5 + 2) * cc_dim2) * cc_dim1 + 1]) + tr11 * (
200 cc[(i__ + (k * 5 + 5) * cc_dim2) * cc_dim1 + 1] - cc[(ic
201 + (k * 5 + 4) * cc_dim2) * cc_dim1 + 1]) + (ti12 * (cc[(
202 i__ - 1 + (k * 5 + 3) * cc_dim2) * cc_dim1 + 1] - cc[(ic
203 - 1 + (k * 5 + 2) * cc_dim2) * cc_dim1 + 1]) - ti11 * (cc[
204 (i__ - 1 + (k * 5 + 5) * cc_dim2) * cc_dim1 + 1] - cc[(ic
205 - 1 + (k * 5 + 4) * cc_dim2) * cc_dim1 + 1]))) + wa2[i__
206 - 1] * (cc[(i__ - 1 + (k * 5 + 1) * cc_dim2) * cc_dim1 +
207 1] + tr12 * (cc[(i__ - 1 + (k * 5 + 3) * cc_dim2) *
208 cc_dim1 + 1] + cc[(ic - 1 + (k * 5 + 2) * cc_dim2) *
209 cc_dim1 + 1]) + tr11 * (cc[(i__ - 1 + (k * 5 + 5) *
210 cc_dim2) * cc_dim1 + 1] + cc[(ic - 1 + (k * 5 + 4) *
211 cc_dim2) * cc_dim1 + 1]) - (ti12 * (cc[(i__ + (k * 5 + 3)
212 * cc_dim2) * cc_dim1 + 1] + cc[(ic + (k * 5 + 2) *
213 cc_dim2) * cc_dim1 + 1]) - ti11 * (cc[(i__ + (k * 5 + 5) *
214 cc_dim2) * cc_dim1 + 1] + cc[(ic + (k * 5 + 4) * cc_dim2)
216 ch[(i__ - 1 + (k + (ch_dim3 << 2)) * ch_dim2) * ch_dim1 + 1] =
217 wa3[i__ - 2] * (cc[(i__ - 1 + (k * 5 + 1) * cc_dim2) *
218 cc_dim1 + 1] + tr12 * (cc[(i__ - 1 + (k * 5 + 3) *
219 cc_dim2) * cc_dim1 + 1] + cc[(ic - 1 + (k * 5 + 2) *
220 cc_dim2) * cc_dim1 + 1]) + tr11 * (cc[(i__ - 1 + (k * 5 +
221 5) * cc_dim2) * cc_dim1 + 1] + cc[(ic - 1 + (k * 5 + 4) *
222 cc_dim2) * cc_dim1 + 1]) + (ti12 * (cc[(i__ + (k * 5 + 3)
223 * cc_dim2) * cc_dim1 + 1] + cc[(ic + (k * 5 + 2) *
224 cc_dim2) * cc_dim1 + 1]) - ti11 * (cc[(i__ + (k * 5 + 5) *
225 cc_dim2) * cc_dim1 + 1] + cc[(ic + (k * 5 + 4) * cc_dim2)
226 * cc_dim1 + 1]))) - wa3[i__ - 1] * (cc[(i__ + (k * 5 + 1)
227 * cc_dim2) * cc_dim1 + 1] + tr12 * (cc[(i__ + (k * 5 + 3)
228 * cc_dim2) * cc_dim1 + 1] - cc[(ic + (k * 5 + 2) *
229 cc_dim2) * cc_dim1 + 1]) + tr11 * (cc[(i__ + (k * 5 + 5) *
230 cc_dim2) * cc_dim1 + 1] - cc[(ic + (k * 5 + 4) * cc_dim2)
231 * cc_dim1 + 1]) - (ti12 * (cc[(i__ - 1 + (k * 5 + 3) *
232 cc_dim2) * cc_dim1 + 1] - cc[(ic - 1 + (k * 5 + 2) *
233 cc_dim2) * cc_dim1 + 1]) - ti11 * (cc[(i__ - 1 + (k * 5 +
234 5) * cc_dim2) * cc_dim1 + 1] - cc[(ic - 1 + (k * 5 + 4) *
235 cc_dim2) * cc_dim1 + 1])));
236 ch[(i__ + (k + (ch_dim3 << 2)) * ch_dim2) * ch_dim1 + 1] = wa3[
237 i__ - 2] * (cc[(i__ + (k * 5 + 1) * cc_dim2) * cc_dim1 +
238 1] + tr12 * (cc[(i__ + (k * 5 + 3) * cc_dim2) * cc_dim1 +
239 1] - cc[(ic + (k * 5 + 2) * cc_dim2) * cc_dim1 + 1]) +
240 tr11 * (cc[(i__ + (k * 5 + 5) * cc_dim2) * cc_dim1 + 1] -
241 cc[(ic + (k * 5 + 4) * cc_dim2) * cc_dim1 + 1]) - (ti12 *
242 (cc[(i__ - 1 + (k * 5 + 3) * cc_dim2) * cc_dim1 + 1] - cc[
243 (ic - 1 + (k * 5 + 2) * cc_dim2) * cc_dim1 + 1]) - ti11 *
244 (cc[(i__ - 1 + (k * 5 + 5) * cc_dim2) * cc_dim1 + 1] - cc[
245 (ic - 1 + (k * 5 + 4) * cc_dim2) * cc_dim1 + 1]))) + wa3[
246 i__ - 1] * (cc[(i__ - 1 + (k * 5 + 1) * cc_dim2) *
247 cc_dim1 + 1] + tr12 * (cc[(i__ - 1 + (k * 5 + 3) *
248 cc_dim2) * cc_dim1 + 1] + cc[(ic - 1 + (k * 5 + 2) *
249 cc_dim2) * cc_dim1 + 1]) + tr11 * (cc[(i__ - 1 + (k * 5 +
250 5) * cc_dim2) * cc_dim1 + 1] + cc[(ic - 1 + (k * 5 + 4) *
251 cc_dim2) * cc_dim1 + 1]) + (ti12 * (cc[(i__ + (k * 5 + 3)
252 * cc_dim2) * cc_dim1 + 1] + cc[(ic + (k * 5 + 2) *
253 cc_dim2) * cc_dim1 + 1]) - ti11 * (cc[(i__ + (k * 5 + 5) *
254 cc_dim2) * cc_dim1 + 1] + cc[(ic + (k * 5 + 4) * cc_dim2)
256 ch[(i__ - 1 + (k + ch_dim3 * 5) * ch_dim2) * ch_dim1 + 1] = wa4[
257 i__ - 2] * (cc[(i__ - 1 + (k * 5 + 1) * cc_dim2) *
258 cc_dim1 + 1] + tr11 * (cc[(i__ - 1 + (k * 5 + 3) *
259 cc_dim2) * cc_dim1 + 1] + cc[(ic - 1 + (k * 5 + 2) *
260 cc_dim2) * cc_dim1 + 1]) + tr12 * (cc[(i__ - 1 + (k * 5 +
261 5) * cc_dim2) * cc_dim1 + 1] + cc[(ic - 1 + (k * 5 + 4) *
262 cc_dim2) * cc_dim1 + 1]) + (ti11 * (cc[(i__ + (k * 5 + 3)
263 * cc_dim2) * cc_dim1 + 1] + cc[(ic + (k * 5 + 2) *
264 cc_dim2) * cc_dim1 + 1]) + ti12 * (cc[(i__ + (k * 5 + 5) *
265 cc_dim2) * cc_dim1 + 1] + cc[(ic + (k * 5 + 4) * cc_dim2)
266 * cc_dim1 + 1]))) - wa4[i__ - 1] * (cc[(i__ + (k * 5 + 1)
267 * cc_dim2) * cc_dim1 + 1] + tr11 * (cc[(i__ + (k * 5 + 3)
268 * cc_dim2) * cc_dim1 + 1] - cc[(ic + (k * 5 + 2) *
269 cc_dim2) * cc_dim1 + 1]) + tr12 * (cc[(i__ + (k * 5 + 5) *
270 cc_dim2) * cc_dim1 + 1] - cc[(ic + (k * 5 + 4) * cc_dim2)
271 * cc_dim1 + 1]) - (ti11 * (cc[(i__ - 1 + (k * 5 + 3) *
272 cc_dim2) * cc_dim1 + 1] - cc[(ic - 1 + (k * 5 + 2) *
273 cc_dim2) * cc_dim1 + 1]) + ti12 * (cc[(i__ - 1 + (k * 5 +
274 5) * cc_dim2) * cc_dim1 + 1] - cc[(ic - 1 + (k * 5 + 4) *
275 cc_dim2) * cc_dim1 + 1])));
276 ch[(i__ + (k + ch_dim3 * 5) * ch_dim2) * ch_dim1 + 1] = wa4[i__ -
277 2] * (cc[(i__ + (k * 5 + 1) * cc_dim2) * cc_dim1 + 1] +
278 tr11 * (cc[(i__ + (k * 5 + 3) * cc_dim2) * cc_dim1 + 1] -
279 cc[(ic + (k * 5 + 2) * cc_dim2) * cc_dim1 + 1]) + tr12 * (
280 cc[(i__ + (k * 5 + 5) * cc_dim2) * cc_dim1 + 1] - cc[(ic
281 + (k * 5 + 4) * cc_dim2) * cc_dim1 + 1]) - (ti11 * (cc[(
282 i__ - 1 + (k * 5 + 3) * cc_dim2) * cc_dim1 + 1] - cc[(ic
283 - 1 + (k * 5 + 2) * cc_dim2) * cc_dim1 + 1]) + ti12 * (cc[
284 (i__ - 1 + (k * 5 + 5) * cc_dim2) * cc_dim1 + 1] - cc[(ic
285 - 1 + (k * 5 + 4) * cc_dim2) * cc_dim1 + 1]))) + wa4[i__
286 - 1] * (cc[(i__ - 1 + (k * 5 + 1) * cc_dim2) * cc_dim1 +
287 1] + tr11 * (cc[(i__ - 1 + (k * 5 + 3) * cc_dim2) *
288 cc_dim1 + 1] + cc[(ic - 1 + (k * 5 + 2) * cc_dim2) *
289 cc_dim1 + 1]) + tr12 * (cc[(i__ - 1 + (k * 5 + 5) *
290 cc_dim2) * cc_dim1 + 1] + cc[(ic - 1 + (k * 5 + 4) *
291 cc_dim2) * cc_dim1 + 1]) + (ti11 * (cc[(i__ + (k * 5 + 3)
292 * cc_dim2) * cc_dim1 + 1] + cc[(ic + (k * 5 + 2) *
293 cc_dim2) * cc_dim1 + 1]) + ti12 * (cc[(i__ + (k * 5 + 5) *
294 cc_dim2) * cc_dim1 + 1] + cc[(ic + (k * 5 + 4) * cc_dim2)