57 integer cc_dim2, cc_dim3, cc_dim4, cc_offset, ch_dim2, ch_dim3, ch_offset,
58 wa_dim1, wa_offset, i__1, i__2, i__3, i__4;
64 doublereal di3, di4, di5, di2, cr2, cr3, cr5, cr4, ti2, ti3, ti4;
66 doublereal ti5, dr3, dr4, dr5, dr2, tr2, tr3, tr4, tr5, chold1, chold2;
70 wa_offset = 1 + wa_dim1 * 5;
75 cc_offset = 1 + 2 * (1 + cc_dim2 * (1 + cc_dim3 * (1 + cc_dim4)));
79 ch_offset = 1 + 2 * (1 + ch_dim2 * (1 + ch_dim3 * 6));
86 m1d = (*lot - 1) * *im1 + 1;
88 if (*ido > 1 || *na == 1) {
92 for (k = 1; k <= i__1; ++k) {
95 for (m1 = 1; i__3 < 0 ? m1 >= i__2 : m1 <= i__2; m1 += i__3) {
96 ti5 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
97 1) + 2] - cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
99 ti2 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
100 1) + 2] + cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
102 ti4 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
103 + 2] - cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
105 ti3 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
106 + 2] + cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
108 tr5 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
109 1) + 1] - cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
111 tr2 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
112 1) + 1] + cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
114 tr4 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
115 + 1] - cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
117 tr3 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
118 + 1] + cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
120 chold1 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) +
122 chold2 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) +
124 cr2 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 1]
125 + tr11 * tr2 + tr12 * tr3;
126 ci2 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 2]
127 + tr11 * ti2 + tr12 * ti3;
128 cr3 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 1]
129 + tr12 * tr2 + tr11 * tr3;
130 ci3 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 2]
131 + tr12 * ti2 + tr11 * ti3;
132 cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 1] =
134 cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 2] =
136 cr5 = ti11 * tr5 + ti12 * tr4;
137 ci5 = ti11 * ti5 + ti12 * ti4;
138 cr4 = ti12 * tr5 - ti11 * tr4;
139 ci4 = ti12 * ti5 - ti11 * ti4;
140 cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 << 1) + 1]
142 cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) * cc_dim2 << 1) + 1] =
144 cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 << 1) + 2]
146 cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1) + 2] =
148 cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1) + 1] =
150 cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) * cc_dim2 << 1) + 1]
152 cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) * cc_dim2 << 1) + 2]
154 cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) * cc_dim2 << 1) + 2] =
162 for (k = 1; k <= i__3; ++k) {
166 for (m1 = 1; i__1 < 0 ? m1 >= i__2 : m1 <= i__2; m1 += i__1) {
168 ti5 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
169 1) + 2] - cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
171 ti2 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
172 1) + 2] + cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
174 ti4 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
175 + 2] - cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
177 ti3 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
178 + 2] + cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
180 tr5 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
181 1) + 1] - cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
183 tr2 = cc[(m1 + (k + ((cc_dim4 << 1) + 1) * cc_dim3) * cc_dim2 <<
184 1) + 1] + cc[(m1 + (k + (cc_dim4 * 5 + 1) * cc_dim3) *
186 tr4 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
187 + 1] - cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
189 tr3 = cc[(m1 + (k + (cc_dim4 * 3 + 1) * cc_dim3) * cc_dim2 << 1)
190 + 1] + cc[(m1 + (k + ((cc_dim4 << 2) + 1) * cc_dim3) *
192 ch[(m2 + (k + ch_dim3 * 6) * ch_dim2 << 1) + 1] = cc[(m1 + (k + (
193 cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 1] + tr2 + tr3;
194 ch[(m2 + (k + ch_dim3 * 6) * ch_dim2 << 1) + 2] = cc[(m1 + (k + (
195 cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 2] + ti2 + ti3;
196 cr2 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 1]
197 + tr11 * tr2 + tr12 * tr3;
198 ci2 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 2]
199 + tr11 * ti2 + tr12 * ti3;
200 cr3 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 1]
201 + tr12 * tr2 + tr11 * tr3;
202 ci3 = cc[(m1 + (k + (cc_dim4 + 1) * cc_dim3) * cc_dim2 << 1) + 2]
203 + tr12 * ti2 + tr11 * ti3;
204 cr5 = ti11 * tr5 + ti12 * tr4;
205 ci5 = ti11 * ti5 + ti12 * ti4;
206 cr4 = ti12 * tr5 - ti11 * tr4;
207 ci4 = ti12 * ti5 - ti11 * ti4;
208 ch[(m2 + (k + ch_dim3 * 7) * ch_dim2 << 1) + 1] = cr2 - ci5;
209 ch[(m2 + (k + ch_dim3 * 10) * ch_dim2 << 1) + 1] = cr2 + ci5;
210 ch[(m2 + (k + ch_dim3 * 7) * ch_dim2 << 1) + 2] = ci2 + cr5;
211 ch[(m2 + (k + (ch_dim3 << 3)) * ch_dim2 << 1) + 2] = ci3 + cr4;
212 ch[(m2 + (k + (ch_dim3 << 3)) * ch_dim2 << 1) + 1] = cr3 - ci4;
213 ch[(m2 + (k + ch_dim3 * 9) * ch_dim2 << 1) + 1] = cr3 + ci4;
214 ch[(m2 + (k + ch_dim3 * 9) * ch_dim2 << 1) + 2] = ci3 - cr4;
215 ch[(m2 + (k + ch_dim3 * 10) * ch_dim2 << 1) + 2] = ci2 - cr5;
223 for (i__ = 2; i__ <= i__1; ++i__) {
225 for (k = 1; k <= i__2; ++k) {
229 for (m1 = 1; i__4 < 0 ? m1 >= i__3 : m1 <= i__3; m1 += i__4) {
231 ti5 = cc[(m1 + (k + (i__ + (cc_dim4 << 1)) * cc_dim3) *
232 cc_dim2 << 1) + 2] - cc[(m1 + (k + (i__ + cc_dim4 * 5)
233 * cc_dim3) * cc_dim2 << 1) + 2];
234 ti2 = cc[(m1 + (k + (i__ + (cc_dim4 << 1)) * cc_dim3) *
235 cc_dim2 << 1) + 2] + cc[(m1 + (k + (i__ + cc_dim4 * 5)
236 * cc_dim3) * cc_dim2 << 1) + 2];
237 ti4 = cc[(m1 + (k + (i__ + cc_dim4 * 3) * cc_dim3) * cc_dim2
238 << 1) + 2] - cc[(m1 + (k + (i__ + (cc_dim4 << 2)) *
239 cc_dim3) * cc_dim2 << 1) + 2];
240 ti3 = cc[(m1 + (k + (i__ + cc_dim4 * 3) * cc_dim3) * cc_dim2
241 << 1) + 2] + cc[(m1 + (k + (i__ + (cc_dim4 << 2)) *
242 cc_dim3) * cc_dim2 << 1) + 2];
243 tr5 = cc[(m1 + (k + (i__ + (cc_dim4 << 1)) * cc_dim3) *
244 cc_dim2 << 1) + 1] - cc[(m1 + (k + (i__ + cc_dim4 * 5)
245 * cc_dim3) * cc_dim2 << 1) + 1];
246 tr2 = cc[(m1 + (k + (i__ + (cc_dim4 << 1)) * cc_dim3) *
247 cc_dim2 << 1) + 1] + cc[(m1 + (k + (i__ + cc_dim4 * 5)
248 * cc_dim3) * cc_dim2 << 1) + 1];
249 tr4 = cc[(m1 + (k + (i__ + cc_dim4 * 3) * cc_dim3) * cc_dim2
250 << 1) + 1] - cc[(m1 + (k + (i__ + (cc_dim4 << 2)) *
251 cc_dim3) * cc_dim2 << 1) + 1];
252 tr3 = cc[(m1 + (k + (i__ + cc_dim4 * 3) * cc_dim3) * cc_dim2
253 << 1) + 1] + cc[(m1 + (k + (i__ + (cc_dim4 << 2)) *
254 cc_dim3) * cc_dim2 << 1) + 1];
255 ch[(m2 + (k + (i__ * 5 + 1) * ch_dim3) * ch_dim2 << 1) + 1] =
256 cc[(m1 + (k + (i__ + cc_dim4) * cc_dim3) * cc_dim2 <<
258 ch[(m2 + (k + (i__ * 5 + 1) * ch_dim3) * ch_dim2 << 1) + 2] =
259 cc[(m1 + (k + (i__ + cc_dim4) * cc_dim3) * cc_dim2 <<
261 cr2 = cc[(m1 + (k + (i__ + cc_dim4) * cc_dim3) * cc_dim2 << 1)
262 + 1] + tr11 * tr2 + tr12 * tr3;
263 ci2 = cc[(m1 + (k + (i__ + cc_dim4) * cc_dim3) * cc_dim2 << 1)
264 + 2] + tr11 * ti2 + tr12 * ti3;
265 cr3 = cc[(m1 + (k + (i__ + cc_dim4) * cc_dim3) * cc_dim2 << 1)
266 + 1] + tr12 * tr2 + tr11 * tr3;
267 ci3 = cc[(m1 + (k + (i__ + cc_dim4) * cc_dim3) * cc_dim2 << 1)
268 + 2] + tr12 * ti2 + tr11 * ti3;
269 cr5 = ti11 * tr5 + ti12 * tr4;
270 ci5 = ti11 * ti5 + ti12 * ti4;
271 cr4 = ti12 * tr5 - ti11 * tr4;
272 ci4 = ti12 * ti5 - ti11 * ti4;
281 ch[(m2 + (k + (i__ * 5 + 2) * ch_dim3) * ch_dim2 << 1) + 1] =
282 wa[i__ + wa_dim1 * 5] * dr2 - wa[i__ + wa_dim1 * 9] *
284 ch[(m2 + (k + (i__ * 5 + 2) * ch_dim3) * ch_dim2 << 1) + 2] =
285 wa[i__ + wa_dim1 * 5] * di2 + wa[i__ + wa_dim1 * 9] *
287 ch[(m2 + (k + (i__ * 5 + 3) * ch_dim3) * ch_dim2 << 1) + 1] =
288 wa[i__ + wa_dim1 * 6] * dr3 - wa[i__ + wa_dim1 * 10] *
290 ch[(m2 + (k + (i__ * 5 + 3) * ch_dim3) * ch_dim2 << 1) + 2] =
291 wa[i__ + wa_dim1 * 6] * di3 + wa[i__ + wa_dim1 * 10] *
293 ch[(m2 + (k + (i__ * 5 + 4) * ch_dim3) * ch_dim2 << 1) + 1] =
294 wa[i__ + wa_dim1 * 7] * dr4 - wa[i__ + wa_dim1 * 11] *
296 ch[(m2 + (k + (i__ * 5 + 4) * ch_dim3) * ch_dim2 << 1) + 2] =
297 wa[i__ + wa_dim1 * 7] * di4 + wa[i__ + wa_dim1 * 11] *
299 ch[(m2 + (k + (i__ * 5 + 5) * ch_dim3) * ch_dim2 << 1) + 1] =
300 wa[i__ + (wa_dim1 << 3)] * dr5 - wa[i__ + wa_dim1 *
302 ch[(m2 + (k + (i__ * 5 + 5) * ch_dim3) * ch_dim2 << 1) + 2] =
303 wa[i__ + (wa_dim1 << 3)] * di5 + wa[i__ + wa_dim1 *