50 integer cc_dim1, cc_dim2, cc_dim3, cc_offset, ch_dim1, ch_dim2, ch_offset,
51 wa_dim1, wa_offset, i__1, i__2;
55 doublereal ci2, ci3, ci4, cr2, cr3, cr4, ti1, ti2, ti3, ti4, tr1, tr2,
63 wa_offset = 1 + (wa_dim1 << 2);
68 cc_offset = 1 + cc_dim1 * (1 + cc_dim2 * (1 + cc_dim3));
72 ch_offset = 1 + ch_dim1 * (1 + ch_dim2 * 5);
76 if (*ido > 1 || *na == 1) {
80 for (k = 1; k <= i__1; ++k) {
81 ti1 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] - cc[(k + (
82 cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2];
83 ti2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] + cc[(k + (
84 cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2];
85 tr4 = cc[(k + ((cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 2] - cc[(k
86 + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2];
87 ti3 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2] + cc[(k
88 + ((cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 2];
89 tr1 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] - cc[(k + (
90 cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1];
91 tr2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] + cc[(k + (
92 cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1];
93 ti4 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] - cc[(k
94 + ((cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 1];
95 tr3 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] + cc[(k
96 + ((cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 1];
97 cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] = tr2 + tr3;
98 cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1] = tr2 - tr3;
99 cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] = ti2 + ti3;
100 cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2] = ti2 - ti3;
101 cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] = tr1 + tr4;
102 cc[(k + ((cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 1] = tr1 - tr4;
103 cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2] = ti1 + ti4;
104 cc[(k + ((cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 2] = ti1 - ti4;
110 for (k = 1; k <= i__1; ++k) {
111 ti1 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] - cc[(k + (
112 cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2];
113 ti2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] + cc[(k + (
114 cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2];
115 tr4 = cc[(k + ((cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 2] - cc[(k
116 + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2];
117 ti3 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2] + cc[(k
118 + ((cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 2];
119 tr1 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] - cc[(k + (
120 cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1];
121 tr2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] + cc[(k + (
122 cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1];
123 ti4 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] - cc[(k
124 + ((cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 1];
125 tr3 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] + cc[(k
126 + ((cc_dim3 << 2) + 1) * cc_dim2) * cc_dim1 + 1];
127 ch[(k + ch_dim2 * 5) * ch_dim1 + 1] = tr2 + tr3;
128 ch[(k + ch_dim2 * 7) * ch_dim1 + 1] = tr2 - tr3;
129 ch[(k + ch_dim2 * 5) * ch_dim1 + 2] = ti2 + ti3;
130 ch[(k + ch_dim2 * 7) * ch_dim1 + 2] = ti2 - ti3;
131 ch[(k + ch_dim2 * 6) * ch_dim1 + 1] = tr1 + tr4;
132 ch[(k + (ch_dim2 << 3)) * ch_dim1 + 1] = tr1 - tr4;
133 ch[(k + ch_dim2 * 6) * ch_dim1 + 2] = ti1 + ti4;
134 ch[(k + (ch_dim2 << 3)) * ch_dim1 + 2] = ti1 - ti4;
141 for (i__ = 2; i__ <= i__1; ++i__) {
143 for (k = 1; k <= i__2; ++k) {
144 ti1 = cc[(k + (i__ + cc_dim3) * cc_dim2) * cc_dim1 + 2] - cc[(k +
145 (i__ + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 2];
146 ti2 = cc[(k + (i__ + cc_dim3) * cc_dim2) * cc_dim1 + 2] + cc[(k +
147 (i__ + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 2];
148 ti3 = cc[(k + (i__ + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 2] +
149 cc[(k + (i__ + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 2];
150 tr4 = cc[(k + (i__ + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 2] -
151 cc[(k + (i__ + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 2];
152 tr1 = cc[(k + (i__ + cc_dim3) * cc_dim2) * cc_dim1 + 1] - cc[(k +
153 (i__ + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 1];
154 tr2 = cc[(k + (i__ + cc_dim3) * cc_dim2) * cc_dim1 + 1] + cc[(k +
155 (i__ + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 1];
156 ti4 = cc[(k + (i__ + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 1] -
157 cc[(k + (i__ + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 1];
158 tr3 = cc[(k + (i__ + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 1] +
159 cc[(k + (i__ + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 1];
160 ch[(k + ((i__ << 2) + 1) * ch_dim2) * ch_dim1 + 1] = tr2 + tr3;
162 ch[(k + ((i__ << 2) + 1) * ch_dim2) * ch_dim1 + 2] = ti2 + ti3;
168 ch[(k + ((i__ << 2) + 2) * ch_dim2) * ch_dim1 + 1] = wa[i__ + (
169 wa_dim1 << 2)] * cr2 - wa[i__ + wa_dim1 * 7] * ci2;
170 ch[(k + ((i__ << 2) + 2) * ch_dim2) * ch_dim1 + 2] = wa[i__ + (
171 wa_dim1 << 2)] * ci2 + wa[i__ + wa_dim1 * 7] * cr2;
172 ch[(k + ((i__ << 2) + 3) * ch_dim2) * ch_dim1 + 1] = wa[i__ +
173 wa_dim1 * 5] * cr3 - wa[i__ + (wa_dim1 << 3)] * ci3;
174 ch[(k + ((i__ << 2) + 3) * ch_dim2) * ch_dim1 + 2] = wa[i__ +
175 wa_dim1 * 5] * ci3 + wa[i__ + (wa_dim1 << 3)] * cr3;
176 ch[(k + ((i__ << 2) + 4) * ch_dim2) * ch_dim1 + 1] = wa[i__ +
177 wa_dim1 * 6] * cr4 - wa[i__ + wa_dim1 * 9] * ci4;
178 ch[(k + ((i__ << 2) + 4) * ch_dim2) * ch_dim1 + 2] = wa[i__ +
179 wa_dim1 * 6] * ci4 + wa[i__ + wa_dim1 * 9] * cr4;