50 integer cc_dim1, cc_dim2, cc_offset, ch_dim1, ch_dim2, ch_dim3, ch_offset,
51 i__1, i__2, i__3, i__4;
57 integer i__, k, m1, m2, ic, m1d, m2s, idp2;
67 cc_offset = 1 + cc_dim1 * (1 + cc_dim2 * 5);
72 ch_offset = 1 + ch_dim1 * (1 + ch_dim2 * (1 + ch_dim3));
76 m1d = (*m - 1) * *im1 + 1;
80 for (k = 1; k <= i__1; ++k) {
84 for (m1 = 1; i__3 < 0 ? m1 >= i__2 : m1 <= i__2; m1 += i__3) {
86 ch[m2 + ((k + ch_dim3 * 3) * ch_dim2 + 1) * ch_dim1] = cc[m1 + (((
87 k << 2) + 1) * cc_dim2 + 1) * cc_dim1] + cc[m1 + (*ido + (
88 (k << 2) + 4) * cc_dim2) * cc_dim1] - (cc[m1 + (*ido + ((
89 k << 2) + 2) * cc_dim2) * cc_dim1] + cc[m1 + (*ido + ((k
90 << 2) + 2) * cc_dim2) * cc_dim1]);
91 ch[m2 + ((k + ch_dim3) * ch_dim2 + 1) * ch_dim1] = cc[m1 + (((k <<
92 2) + 1) * cc_dim2 + 1) * cc_dim1] + cc[m1 + (*ido + ((k
93 << 2) + 4) * cc_dim2) * cc_dim1] + (cc[m1 + (*ido + ((k <<
94 2) + 2) * cc_dim2) * cc_dim1] + cc[m1 + (*ido + ((k << 2)
95 + 2) * cc_dim2) * cc_dim1]);
96 ch[m2 + ((k + (ch_dim3 << 2)) * ch_dim2 + 1) * ch_dim1] = cc[m1 +
97 (((k << 2) + 1) * cc_dim2 + 1) * cc_dim1] - cc[m1 + (*ido
98 + ((k << 2) + 4) * cc_dim2) * cc_dim1] + (cc[m1 + (((k <<
99 2) + 3) * cc_dim2 + 1) * cc_dim1] + cc[m1 + (((k << 2) +
100 3) * cc_dim2 + 1) * cc_dim1]);
101 ch[m2 + ((k + (ch_dim3 << 1)) * ch_dim2 + 1) * ch_dim1] = cc[m1 +
102 (((k << 2) + 1) * cc_dim2 + 1) * cc_dim1] - cc[m1 + (*ido
103 + ((k << 2) + 4) * cc_dim2) * cc_dim1] - (cc[m1 + (((k <<
104 2) + 3) * cc_dim2 + 1) * cc_dim1] + cc[m1 + (((k << 2) +
105 3) * cc_dim2 + 1) * cc_dim1]);
110 if ((i__1 = *ido - 2) < 0) {
112 }
else if (i__1 == 0) {
120 for (k = 1; k <= i__1; ++k) {
122 for (i__ = 3; i__ <= i__3; i__ += 2) {
127 for (m1 = 1; i__4 < 0 ? m1 >= i__2 : m1 <= i__2; m1 += i__4) {
129 ch[m2 + (i__ - 1 + (k + ch_dim3) * ch_dim2) * ch_dim1] = cc[
130 m1 + (i__ - 1 + ((k << 2) + 1) * cc_dim2) * cc_dim1]
131 + cc[m1 + (ic - 1 + ((k << 2) + 4) * cc_dim2) *
132 cc_dim1] + (cc[m1 + (i__ - 1 + ((k << 2) + 3) *
133 cc_dim2) * cc_dim1] + cc[m1 + (ic - 1 + ((k << 2) + 2)
134 * cc_dim2) * cc_dim1]);
135 ch[m2 + (i__ + (k + ch_dim3) * ch_dim2) * ch_dim1] = cc[m1 + (
136 i__ + ((k << 2) + 1) * cc_dim2) * cc_dim1] - cc[m1 + (
137 ic + ((k << 2) + 4) * cc_dim2) * cc_dim1] + (cc[m1 + (
138 i__ + ((k << 2) + 3) * cc_dim2) * cc_dim1] - cc[m1 + (
139 ic + ((k << 2) + 2) * cc_dim2) * cc_dim1]);
140 ch[m2 + (i__ - 1 + (k + (ch_dim3 << 1)) * ch_dim2) * ch_dim1]
141 = wa1[i__ - 2] * (cc[m1 + (i__ - 1 + ((k << 2) + 1) *
142 cc_dim2) * cc_dim1] - cc[m1 + (ic - 1 + ((k << 2) + 4)
143 * cc_dim2) * cc_dim1] - (cc[m1 + (i__ + ((k << 2) +
144 3) * cc_dim2) * cc_dim1] + cc[m1 + (ic + ((k << 2) +
145 2) * cc_dim2) * cc_dim1])) - wa1[i__ - 1] * (cc[m1 + (
146 i__ + ((k << 2) + 1) * cc_dim2) * cc_dim1] + cc[m1 + (
147 ic + ((k << 2) + 4) * cc_dim2) * cc_dim1] + (cc[m1 + (
148 i__ - 1 + ((k << 2) + 3) * cc_dim2) * cc_dim1] - cc[
149 m1 + (ic - 1 + ((k << 2) + 2) * cc_dim2) * cc_dim1]));
150 ch[m2 + (i__ + (k + (ch_dim3 << 1)) * ch_dim2) * ch_dim1] =
151 wa1[i__ - 2] * (cc[m1 + (i__ + ((k << 2) + 1) *
152 cc_dim2) * cc_dim1] + cc[m1 + (ic + ((k << 2) + 4) *
153 cc_dim2) * cc_dim1] + (cc[m1 + (i__ - 1 + ((k << 2) +
154 3) * cc_dim2) * cc_dim1] - cc[m1 + (ic - 1 + ((k << 2)
155 + 2) * cc_dim2) * cc_dim1])) + wa1[i__ - 1] * (cc[m1
156 + (i__ - 1 + ((k << 2) + 1) * cc_dim2) * cc_dim1] -
157 cc[m1 + (ic - 1 + ((k << 2) + 4) * cc_dim2) * cc_dim1]
158 - (cc[m1 + (i__ + ((k << 2) + 3) * cc_dim2) *
159 cc_dim1] + cc[m1 + (ic + ((k << 2) + 2) * cc_dim2) *
161 ch[m2 + (i__ - 1 + (k + ch_dim3 * 3) * ch_dim2) * ch_dim1] =
162 wa2[i__ - 2] * (cc[m1 + (i__ - 1 + ((k << 2) + 1) *
163 cc_dim2) * cc_dim1] + cc[m1 + (ic - 1 + ((k << 2) + 4)
164 * cc_dim2) * cc_dim1] - (cc[m1 + (i__ - 1 + ((k << 2)
165 + 3) * cc_dim2) * cc_dim1] + cc[m1 + (ic - 1 + ((k <<
166 2) + 2) * cc_dim2) * cc_dim1])) - wa2[i__ - 1] * (cc[
167 m1 + (i__ + ((k << 2) + 1) * cc_dim2) * cc_dim1] - cc[
168 m1 + (ic + ((k << 2) + 4) * cc_dim2) * cc_dim1] - (cc[
169 m1 + (i__ + ((k << 2) + 3) * cc_dim2) * cc_dim1] - cc[
170 m1 + (ic + ((k << 2) + 2) * cc_dim2) * cc_dim1]));
171 ch[m2 + (i__ + (k + ch_dim3 * 3) * ch_dim2) * ch_dim1] = wa2[
172 i__ - 2] * (cc[m1 + (i__ + ((k << 2) + 1) * cc_dim2) *
173 cc_dim1] - cc[m1 + (ic + ((k << 2) + 4) * cc_dim2) *
174 cc_dim1] - (cc[m1 + (i__ + ((k << 2) + 3) * cc_dim2) *
175 cc_dim1] - cc[m1 + (ic + ((k << 2) + 2) * cc_dim2) *
176 cc_dim1])) + wa2[i__ - 1] * (cc[m1 + (i__ - 1 + ((k <<
177 2) + 1) * cc_dim2) * cc_dim1] + cc[m1 + (ic - 1 + ((
178 k << 2) + 4) * cc_dim2) * cc_dim1] - (cc[m1 + (i__ -
179 1 + ((k << 2) + 3) * cc_dim2) * cc_dim1] + cc[m1 + (
180 ic - 1 + ((k << 2) + 2) * cc_dim2) * cc_dim1]));
181 ch[m2 + (i__ - 1 + (k + (ch_dim3 << 2)) * ch_dim2) * ch_dim1]
182 = wa3[i__ - 2] * (cc[m1 + (i__ - 1 + ((k << 2) + 1) *
183 cc_dim2) * cc_dim1] - cc[m1 + (ic - 1 + ((k << 2) + 4)
184 * cc_dim2) * cc_dim1] + (cc[m1 + (i__ + ((k << 2) +
185 3) * cc_dim2) * cc_dim1] + cc[m1 + (ic + ((k << 2) +
186 2) * cc_dim2) * cc_dim1])) - wa3[i__ - 1] * (cc[m1 + (
187 i__ + ((k << 2) + 1) * cc_dim2) * cc_dim1] + cc[m1 + (
188 ic + ((k << 2) + 4) * cc_dim2) * cc_dim1] - (cc[m1 + (
189 i__ - 1 + ((k << 2) + 3) * cc_dim2) * cc_dim1] - cc[
190 m1 + (ic - 1 + ((k << 2) + 2) * cc_dim2) * cc_dim1]));
191 ch[m2 + (i__ + (k + (ch_dim3 << 2)) * ch_dim2) * ch_dim1] =
192 wa3[i__ - 2] * (cc[m1 + (i__ + ((k << 2) + 1) *
193 cc_dim2) * cc_dim1] + cc[m1 + (ic + ((k << 2) + 4) *
194 cc_dim2) * cc_dim1] - (cc[m1 + (i__ - 1 + ((k << 2) +
195 3) * cc_dim2) * cc_dim1] - cc[m1 + (ic - 1 + ((k << 2)
196 + 2) * cc_dim2) * cc_dim1])) + wa3[i__ - 1] * (cc[m1
197 + (i__ - 1 + ((k << 2) + 1) * cc_dim2) * cc_dim1] -
198 cc[m1 + (ic - 1 + ((k << 2) + 4) * cc_dim2) * cc_dim1]
199 + (cc[m1 + (i__ + ((k << 2) + 3) * cc_dim2) *
200 cc_dim1] + cc[m1 + (ic + ((k << 2) + 2) * cc_dim2) *
213 for (k = 1; k <= i__1; ++k) {
217 for (m1 = 1; i__4 < 0 ? m1 >= i__3 : m1 <= i__3; m1 += i__4) {
219 ch[m2 + (*ido + (k + ch_dim3) * ch_dim2) * ch_dim1] = cc[m1 + (*
220 ido + ((k << 2) + 1) * cc_dim2) * cc_dim1] + cc[m1 + (*
221 ido + ((k << 2) + 3) * cc_dim2) * cc_dim1] + (cc[m1 + (*
222 ido + ((k << 2) + 1) * cc_dim2) * cc_dim1] + cc[m1 + (*
223 ido + ((k << 2) + 3) * cc_dim2) * cc_dim1]);
224 ch[m2 + (*ido + (k + (ch_dim3 << 1)) * ch_dim2) * ch_dim1] =
225 sqrt2 * (cc[m1 + (*ido + ((k << 2) + 1) * cc_dim2) *
226 cc_dim1] - cc[m1 + (*ido + ((k << 2) + 3) * cc_dim2) *
227 cc_dim1] - (cc[m1 + (((k << 2) + 2) * cc_dim2 + 1) *
228 cc_dim1] + cc[m1 + (((k << 2) + 4) * cc_dim2 + 1) *
230 ch[m2 + (*ido + (k + ch_dim3 * 3) * ch_dim2) * ch_dim1] = cc[m1 +
231 (((k << 2) + 4) * cc_dim2 + 1) * cc_dim1] - cc[m1 + (((k
232 << 2) + 2) * cc_dim2 + 1) * cc_dim1] + (cc[m1 + (((k << 2)
233 + 4) * cc_dim2 + 1) * cc_dim1] - cc[m1 + (((k << 2) + 2)
234 * cc_dim2 + 1) * cc_dim1]);
235 ch[m2 + (*ido + (k + (ch_dim3 << 2)) * ch_dim2) * ch_dim1] =
236 -sqrt2 * (cc[m1 + (*ido + ((k << 2) + 1) * cc_dim2) *
237 cc_dim1] - cc[m1 + (*ido + ((k << 2) + 3) * cc_dim2) *
238 cc_dim1] + (cc[m1 + (((k << 2) + 2) * cc_dim2 + 1) *
239 cc_dim1] + cc[m1 + (((k << 2) + 4) * cc_dim2 + 1) *