50 integer cc_dim1, cc_dim2, cc_dim3, cc_offset, ch_dim1, ch_dim2, ch_offset,
68 cc_offset = 1 + cc_dim1 * (1 + cc_dim2 * (1 + cc_dim3));
72 ch_offset = 1 + ch_dim1 * (1 + ch_dim2 * 5);
76 hsqt2 = sqrt(2.) / 2.;
78 for (k = 1; k <= i__1; ++k) {
79 ch[(((k << 2) + 1) * ch_dim2 + 1) * ch_dim1 + 1] = cc[((k + (cc_dim3
80 << 1)) * cc_dim2 + 1) * cc_dim1 + 1] + cc[((k + (cc_dim3 << 2)
81 ) * cc_dim2 + 1) * cc_dim1 + 1] + (cc[((k + cc_dim3) *
82 cc_dim2 + 1) * cc_dim1 + 1] + cc[((k + cc_dim3 * 3) * cc_dim2
84 ch[(*ido + ((k << 2) + 4) * ch_dim2) * ch_dim1 + 1] = cc[((k +
85 cc_dim3) * cc_dim2 + 1) * cc_dim1 + 1] + cc[((k + cc_dim3 * 3)
86 * cc_dim2 + 1) * cc_dim1 + 1] - (cc[((k + (cc_dim3 << 1)) *
87 cc_dim2 + 1) * cc_dim1 + 1] + cc[((k + (cc_dim3 << 2)) *
88 cc_dim2 + 1) * cc_dim1 + 1]);
89 ch[(*ido + ((k << 2) + 2) * ch_dim2) * ch_dim1 + 1] = cc[((k +
90 cc_dim3) * cc_dim2 + 1) * cc_dim1 + 1] - cc[((k + cc_dim3 * 3)
91 * cc_dim2 + 1) * cc_dim1 + 1];
92 ch[(((k << 2) + 3) * ch_dim2 + 1) * ch_dim1 + 1] = cc[((k + (cc_dim3
93 << 2)) * cc_dim2 + 1) * cc_dim1 + 1] - cc[((k + (cc_dim3 << 1)
94 ) * cc_dim2 + 1) * cc_dim1 + 1];
97 if ((i__1 = *ido - 2) < 0) {
99 }
else if (i__1 == 0) {
107 for (k = 1; k <= i__1; ++k) {
109 for (i__ = 3; i__ <= i__2; i__ += 2) {
111 ch[(i__ - 1 + ((k << 2) + 1) * ch_dim2) * ch_dim1 + 1] = wa1[i__
112 - 2] * cc[(i__ - 1 + (k + (cc_dim3 << 1)) * cc_dim2) *
113 cc_dim1 + 1] + wa1[i__ - 1] * cc[(i__ + (k + (cc_dim3 <<
114 1)) * cc_dim2) * cc_dim1 + 1] + (wa3[i__ - 2] * cc[(i__ -
115 1 + (k + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 1] + wa3[
116 i__ - 1] * cc[(i__ + (k + (cc_dim3 << 2)) * cc_dim2) *
117 cc_dim1 + 1]) + (cc[(i__ - 1 + (k + cc_dim3) * cc_dim2) *
118 cc_dim1 + 1] + (wa2[i__ - 2] * cc[(i__ - 1 + (k + cc_dim3
119 * 3) * cc_dim2) * cc_dim1 + 1] + wa2[i__ - 1] * cc[(i__ +
120 (k + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 1]));
121 ch[(ic - 1 + ((k << 2) + 4) * ch_dim2) * ch_dim1 + 1] = cc[(i__ -
122 1 + (k + cc_dim3) * cc_dim2) * cc_dim1 + 1] + (wa2[i__ -
123 2] * cc[(i__ - 1 + (k + cc_dim3 * 3) * cc_dim2) * cc_dim1
124 + 1] + wa2[i__ - 1] * cc[(i__ + (k + cc_dim3 * 3) *
125 cc_dim2) * cc_dim1 + 1]) - (wa1[i__ - 2] * cc[(i__ - 1 + (
126 k + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 1] + wa1[i__ -
127 1] * cc[(i__ + (k + (cc_dim3 << 1)) * cc_dim2) * cc_dim1
128 + 1] + (wa3[i__ - 2] * cc[(i__ - 1 + (k + (cc_dim3 << 2))
129 * cc_dim2) * cc_dim1 + 1] + wa3[i__ - 1] * cc[(i__ + (k +
130 (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 1]));
131 ch[(i__ + ((k << 2) + 1) * ch_dim2) * ch_dim1 + 1] = wa1[i__ - 2]
132 * cc[(i__ + (k + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 1]
133 - wa1[i__ - 1] * cc[(i__ - 1 + (k + (cc_dim3 << 1)) *
134 cc_dim2) * cc_dim1 + 1] + (wa3[i__ - 2] * cc[(i__ + (k + (
135 cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 1] - wa3[i__ - 1] *
136 cc[(i__ - 1 + (k + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 +
137 1]) + (cc[(i__ + (k + cc_dim3) * cc_dim2) * cc_dim1 + 1]
138 + (wa2[i__ - 2] * cc[(i__ + (k + cc_dim3 * 3) * cc_dim2) *
139 cc_dim1 + 1] - wa2[i__ - 1] * cc[(i__ - 1 + (k + cc_dim3
140 * 3) * cc_dim2) * cc_dim1 + 1]));
141 ch[(ic + ((k << 2) + 4) * ch_dim2) * ch_dim1 + 1] = wa1[i__ - 2] *
142 cc[(i__ + (k + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 1]
143 - wa1[i__ - 1] * cc[(i__ - 1 + (k + (cc_dim3 << 1)) *
144 cc_dim2) * cc_dim1 + 1] + (wa3[i__ - 2] * cc[(i__ + (k + (
145 cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 1] - wa3[i__ - 1] *
146 cc[(i__ - 1 + (k + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 +
147 1]) - (cc[(i__ + (k + cc_dim3) * cc_dim2) * cc_dim1 + 1]
148 + (wa2[i__ - 2] * cc[(i__ + (k + cc_dim3 * 3) * cc_dim2) *
149 cc_dim1 + 1] - wa2[i__ - 1] * cc[(i__ - 1 + (k + cc_dim3
150 * 3) * cc_dim2) * cc_dim1 + 1]));
151 ch[(i__ - 1 + ((k << 2) + 3) * ch_dim2) * ch_dim1 + 1] = wa1[i__
152 - 2] * cc[(i__ + (k + (cc_dim3 << 1)) * cc_dim2) *
153 cc_dim1 + 1] - wa1[i__ - 1] * cc[(i__ - 1 + (k + (cc_dim3
154 << 1)) * cc_dim2) * cc_dim1 + 1] - (wa3[i__ - 2] * cc[(
155 i__ + (k + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 1] -
156 wa3[i__ - 1] * cc[(i__ - 1 + (k + (cc_dim3 << 2)) *
157 cc_dim2) * cc_dim1 + 1]) + (cc[(i__ - 1 + (k + cc_dim3) *
158 cc_dim2) * cc_dim1 + 1] - (wa2[i__ - 2] * cc[(i__ - 1 + (
159 k + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 1] + wa2[i__ - 1]
160 * cc[(i__ + (k + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 1]));
161 ch[(ic - 1 + ((k << 2) + 2) * ch_dim2) * ch_dim1 + 1] = cc[(i__ -
162 1 + (k + cc_dim3) * cc_dim2) * cc_dim1 + 1] - (wa2[i__ -
163 2] * cc[(i__ - 1 + (k + cc_dim3 * 3) * cc_dim2) * cc_dim1
164 + 1] + wa2[i__ - 1] * cc[(i__ + (k + cc_dim3 * 3) *
165 cc_dim2) * cc_dim1 + 1]) - (wa1[i__ - 2] * cc[(i__ + (k +
166 (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 1] - wa1[i__ - 1] *
167 cc[(i__ - 1 + (k + (cc_dim3 << 1)) * cc_dim2) * cc_dim1
168 + 1] - (wa3[i__ - 2] * cc[(i__ + (k + (cc_dim3 << 2)) *
169 cc_dim2) * cc_dim1 + 1] - wa3[i__ - 1] * cc[(i__ - 1 + (k
170 + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 1]));
171 ch[(i__ + ((k << 2) + 3) * ch_dim2) * ch_dim1 + 1] = wa3[i__ - 2]
172 * cc[(i__ - 1 + (k + (cc_dim3 << 2)) * cc_dim2) * cc_dim1
173 + 1] + wa3[i__ - 1] * cc[(i__ + (k + (cc_dim3 << 2)) *
174 cc_dim2) * cc_dim1 + 1] - (wa1[i__ - 2] * cc[(i__ - 1 + (
175 k + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 1] + wa1[i__ -
176 1] * cc[(i__ + (k + (cc_dim3 << 1)) * cc_dim2) * cc_dim1
177 + 1]) + (cc[(i__ + (k + cc_dim3) * cc_dim2) * cc_dim1 + 1]
178 - (wa2[i__ - 2] * cc[(i__ + (k + cc_dim3 * 3) * cc_dim2)
179 * cc_dim1 + 1] - wa2[i__ - 1] * cc[(i__ - 1 + (k +
180 cc_dim3 * 3) * cc_dim2) * cc_dim1 + 1]));
181 ch[(ic + ((k << 2) + 2) * ch_dim2) * ch_dim1 + 1] = wa3[i__ - 2] *
182 cc[(i__ - 1 + (k + (cc_dim3 << 2)) * cc_dim2) * cc_dim1
183 + 1] + wa3[i__ - 1] * cc[(i__ + (k + (cc_dim3 << 2)) *
184 cc_dim2) * cc_dim1 + 1] - (wa1[i__ - 2] * cc[(i__ - 1 + (
185 k + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 1] + wa1[i__ -
186 1] * cc[(i__ + (k + (cc_dim3 << 1)) * cc_dim2) * cc_dim1
187 + 1]) - (cc[(i__ + (k + cc_dim3) * cc_dim2) * cc_dim1 + 1]
188 - (wa2[i__ - 2] * cc[(i__ + (k + cc_dim3 * 3) * cc_dim2)
189 * cc_dim1 + 1] - wa2[i__ - 1] * cc[(i__ - 1 + (k +
190 cc_dim3 * 3) * cc_dim2) * cc_dim1 + 1]));
200 for (k = 1; k <= i__1; ++k) {
201 ch[(*ido + ((k << 2) + 1) * ch_dim2) * ch_dim1 + 1] = hsqt2 * (cc[(*
202 ido + (k + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 1] - cc[(*
203 ido + (k + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 1]) + cc[(*
204 ido + (k + cc_dim3) * cc_dim2) * cc_dim1 + 1];
205 ch[(*ido + ((k << 2) + 3) * ch_dim2) * ch_dim1 + 1] = cc[(*ido + (k +
206 cc_dim3) * cc_dim2) * cc_dim1 + 1] - hsqt2 * (cc[(*ido + (k +
207 (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 1] - cc[(*ido + (k + (
208 cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 1]);
209 ch[(((k << 2) + 2) * ch_dim2 + 1) * ch_dim1 + 1] = -hsqt2 * (cc[(*ido
210 + (k + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 1] + cc[(*ido +
211 (k + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 1]) - cc[(*ido + (
212 k + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 1];
213 ch[(((k << 2) + 4) * ch_dim2 + 1) * ch_dim1 + 1] = -hsqt2 * (cc[(*ido
214 + (k + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 1] + cc[(*ido +
215 (k + (cc_dim3 << 2)) * cc_dim2) * cc_dim1 + 1]) + cc[(*ido + (
216 k + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 1];