78 x_offset = 1 + x_dim1;
87 if ((i__1 = *
n - 2) < 0) {
89 }
else if (i__1 == 0) {
95 x1h = x[x_dim1 + 1] + x[(x_dim1 << 1) + 1];
96 x[(x_dim1 << 1) + 1] = (x[x_dim1 + 1] - x[(x_dim1 << 1) + 1]) * .5;
97 x[x_dim1 + 1] = x1h * .5;
103 x1p3 = x[x_dim1 + 1] + x[x_dim1 * 3 + 1];
104 tx2 = x[(x_dim1 << 1) + 1] + x[(x_dim1 << 1) + 1];
105 x[(x_dim1 << 1) + 1] = (x[x_dim1 + 1] - x[x_dim1 * 3 + 1]) * .5;
106 x[x_dim1 + 1] = (x1p3 + tx2) * .25;
107 x[x_dim1 * 3 + 1] = (x1p3 - tx2) * .25;
110 dsum = x[x_dim1 + 1] - x[*
n * x_dim1 + 1];
111 x[x_dim1 + 1] += x[*
n * x_dim1 + 1];
113 for (k = 2; k <= i__1; ++k) {
115 t1 = x[k * x_dim1 + 1] + x[kc * x_dim1 + 1];
116 t2 = x[k * x_dim1 + 1] - x[kc * x_dim1 + 1];
117 dsum += wsave[kc] * t2;
119 x[k * x_dim1 + 1] = t1 - t2;
120 x[kc * x_dim1 + 1] = t1 + t2;
127 x[(ns2 + 1) * x_dim1 + 1] += x[(ns2 + 1) * x_dim1 + 1];
129 lenx = *inc * (nm1 - 1) + 1;
133 rfft1f_(&nm1, inc, &x[x_offset], &lenx, &wsave[*
n + 1], &lnsv, work, &
146 x[nm1 * x_dim1 + 1] += x[nm1 * x_dim1 + 1];
149 for (i__ = 3; i__ <= i__1; i__ += 2) {
150 xi = x[i__ * x_dim1 + 1] * .5;
151 x[i__ * x_dim1 + 1] = x[(i__ - 1) * x_dim1 + 1] * .5;
152 x[(i__ - 1) * x_dim1 + 1] = dsum;
159 x[*
n * x_dim1 + 1] = dsum;
162 x[*
n * x_dim1 + 1] *= .5;