57 integer cc_dim1, cc_dim2, cc_dim3, cc_offset, ch_dim1, ch_dim2, ch_offset,
58 wa_dim1, wa_offset, i__1, i__2;
62 doublereal ci2, ci3, ci4, ci5, di3, di4, di5, di2, cr2, cr3, cr5, cr4,
63 dr3, dr4, ti2, ti3, ti4, ti5, dr5, dr2, tr2, tr3, tr4, tr5,
68 wa_offset = 1 + wa_dim1 * 5;
73 cc_offset = 1 + cc_dim1 * (1 + cc_dim2 * (1 + cc_dim3));
77 ch_offset = 1 + ch_dim1 * (1 + ch_dim2 * 6);
84 if (*ido > 1 || *na == 1) {
88 for (k = 1; k <= i__1; ++k) {
89 ti5 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2] - cc[(k
90 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 2];
91 ti2 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2] + cc[(k
92 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 2];
93 ti4 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2] - cc[(k + ((
94 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 2];
95 ti3 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2] + cc[(k + ((
96 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 2];
97 tr5 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] - cc[(k
98 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 1];
99 tr2 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] + cc[(k
100 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 1];
101 tr4 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1] - cc[(k + ((
102 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 1];
103 tr3 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1] + cc[(k + ((
104 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 1];
105 chold1 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] + tr2 + tr3;
106 chold2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] + ti2 + ti3;
107 cr2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] + tr11 * tr2 +
109 ci2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] + tr11 * ti2 +
111 cr3 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] + tr12 * tr2 +
113 ci3 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] + tr12 * ti2 +
115 cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] = chold1;
116 cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] = chold2;
117 cr5 = ti11 * tr5 + ti12 * tr4;
118 ci5 = ti11 * ti5 + ti12 * ti4;
119 cr4 = ti12 * tr5 - ti11 * tr4;
120 ci4 = ti12 * ti5 - ti11 * ti4;
121 cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] = cr2 - ci5;
122 cc[(k + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 1] = cr2 + ci5;
123 cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2] = ci2 + cr5;
124 cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2] = ci3 + cr4;
125 cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1] = cr3 - ci4;
126 cc[(k + ((cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 1] = cr3 + ci4;
127 cc[(k + ((cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 2] = ci3 - cr4;
128 cc[(k + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 2] = ci2 - cr5;
134 for (k = 1; k <= i__1; ++k) {
135 ti5 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2] - cc[(k
136 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 2];
137 ti2 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2] + cc[(k
138 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 2];
139 ti4 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2] - cc[(k + ((
140 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 2];
141 ti3 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2] + cc[(k + ((
142 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 2];
143 tr5 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] - cc[(k
144 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 1];
145 tr2 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] + cc[(k
146 + (cc_dim3 * 5 + 1) * cc_dim2) * cc_dim1 + 1];
147 tr4 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1] - cc[(k + ((
148 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 1];
149 tr3 = cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1] + cc[(k + ((
150 cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 1];
151 ch[(k + ch_dim2 * 6) * ch_dim1 + 1] = cc[(k + (cc_dim3 + 1) * cc_dim2)
152 * cc_dim1 + 1] + tr2 + tr3;
153 ch[(k + ch_dim2 * 6) * ch_dim1 + 2] = cc[(k + (cc_dim3 + 1) * cc_dim2)
154 * cc_dim1 + 2] + ti2 + ti3;
155 cr2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] + tr11 * tr2 +
157 ci2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] + tr11 * ti2 +
159 cr3 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] + tr12 * tr2 +
161 ci3 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] + tr12 * ti2 +
163 cr5 = ti11 * tr5 + ti12 * tr4;
164 ci5 = ti11 * ti5 + ti12 * ti4;
165 cr4 = ti12 * tr5 - ti11 * tr4;
166 ci4 = ti12 * ti5 - ti11 * ti4;
167 ch[(k + ch_dim2 * 7) * ch_dim1 + 1] = cr2 - ci5;
168 ch[(k + ch_dim2 * 10) * ch_dim1 + 1] = cr2 + ci5;
169 ch[(k + ch_dim2 * 7) * ch_dim1 + 2] = ci2 + cr5;
170 ch[(k + (ch_dim2 << 3)) * ch_dim1 + 2] = ci3 + cr4;
171 ch[(k + (ch_dim2 << 3)) * ch_dim1 + 1] = cr3 - ci4;
172 ch[(k + ch_dim2 * 9) * ch_dim1 + 1] = cr3 + ci4;
173 ch[(k + ch_dim2 * 9) * ch_dim1 + 2] = ci3 - cr4;
174 ch[(k + ch_dim2 * 10) * ch_dim1 + 2] = ci2 - cr5;
181 for (i__ = 2; i__ <= i__1; ++i__) {
183 for (k = 1; k <= i__2; ++k) {
184 ti5 = cc[(k + (i__ + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 2] -
185 cc[(k + (i__ + cc_dim3 * 5) * cc_dim2) * cc_dim1 + 2];
186 ti2 = cc[(k + (i__ + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 2] +
187 cc[(k + (i__ + cc_dim3 * 5) * cc_dim2) * cc_dim1 + 2];
188 ti4 = cc[(k + (i__ + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 2] - cc[(
189 k + (i__ + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 2];
190 ti3 = cc[(k + (i__ + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 2] + cc[(
191 k + (i__ + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 2];
192 tr5 = cc[(k + (i__ + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 1] -
193 cc[(k + (i__ + cc_dim3 * 5) * cc_dim2) * cc_dim1 + 1];
194 tr2 = cc[(k + (i__ + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 1] +
195 cc[(k + (i__ + cc_dim3 * 5) * cc_dim2) * cc_dim1 + 1];
196 tr4 = cc[(k + (i__ + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 1] - cc[(
197 k + (i__ + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 1];
198 tr3 = cc[(k + (i__ + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 1] + cc[(
199 k + (i__ + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 1];
200 ch[(k + (i__ * 5 + 1) * ch_dim2) * ch_dim1 + 1] = cc[(k + (i__ +
201 cc_dim3) * cc_dim2) * cc_dim1 + 1] + tr2 + tr3;
202 ch[(k + (i__ * 5 + 1) * ch_dim2) * ch_dim1 + 2] = cc[(k + (i__ +
203 cc_dim3) * cc_dim2) * cc_dim1 + 2] + ti2 + ti3;
204 cr2 = cc[(k + (i__ + cc_dim3) * cc_dim2) * cc_dim1 + 1] + tr11 *
206 ci2 = cc[(k + (i__ + cc_dim3) * cc_dim2) * cc_dim1 + 2] + tr11 *
208 cr3 = cc[(k + (i__ + cc_dim3) * cc_dim2) * cc_dim1 + 1] + tr12 *
210 ci3 = cc[(k + (i__ + cc_dim3) * cc_dim2) * cc_dim1 + 2] + tr12 *
212 cr5 = ti11 * tr5 + ti12 * tr4;
213 ci5 = ti11 * ti5 + ti12 * ti4;
214 cr4 = ti12 * tr5 - ti11 * tr4;
215 ci4 = ti12 * ti5 - ti11 * ti4;
224 ch[(k + (i__ * 5 + 2) * ch_dim2) * ch_dim1 + 1] = wa[i__ +
225 wa_dim1 * 5] * dr2 - wa[i__ + wa_dim1 * 9] * di2;
226 ch[(k + (i__ * 5 + 2) * ch_dim2) * ch_dim1 + 2] = wa[i__ +
227 wa_dim1 * 5] * di2 + wa[i__ + wa_dim1 * 9] * dr2;
228 ch[(k + (i__ * 5 + 3) * ch_dim2) * ch_dim1 + 1] = wa[i__ +
229 wa_dim1 * 6] * dr3 - wa[i__ + wa_dim1 * 10] * di3;
230 ch[(k + (i__ * 5 + 3) * ch_dim2) * ch_dim1 + 2] = wa[i__ +
231 wa_dim1 * 6] * di3 + wa[i__ + wa_dim1 * 10] * dr3;
232 ch[(k + (i__ * 5 + 4) * ch_dim2) * ch_dim1 + 1] = wa[i__ +
233 wa_dim1 * 7] * dr4 - wa[i__ + wa_dim1 * 11] * di4;
234 ch[(k + (i__ * 5 + 4) * ch_dim2) * ch_dim1 + 2] = wa[i__ +
235 wa_dim1 * 7] * di4 + wa[i__ + wa_dim1 * 11] * dr4;
236 ch[(k + (i__ * 5 + 5) * ch_dim2) * ch_dim1 + 1] = wa[i__ + (
237 wa_dim1 << 3)] * dr5 - wa[i__ + wa_dim1 * 12] * di5;
238 ch[(k + (i__ * 5 + 5) * ch_dim2) * ch_dim1 + 2] = wa[i__ + (
239 wa_dim1 << 3)] * di5 + wa[i__ + wa_dim1 * 12] * dr5;