58 integer r_dim1, r_offset, i__1, i__2, i__3;
68 integer ldh, ldw, ldx, ier1, modl, modm, mmsav, lwsav, mwsav;
82 r_offset = 1 + r_dim1;
96 if (*
lensav < lwsav + mwsav + mmsav) {
104 if (*lenwrk < (*l + 1) * *m) {
122 rfftmf_(m, ldim, l, &c__1, &r__[r_offset], &i__1, &wsave[1], &i__2, &work[
131 ldx = ((*l + 1) / 2 << 1) - 1;
133 for (i__ = 2; i__ <= i__1; ++i__) {
135 for (j = 1; j <= i__2; ++j) {
136 r__[i__ + j * r_dim1] *= .5;
140 for (j = 1; j <= i__1; ++j) {
142 for (i__ = 3; i__ <= i__2; i__ += 2) {
143 r__[i__ + j * r_dim1] = -r__[i__ + j * r_dim1];
160 rfftmf_(&c__1, &c__1, m, ldim, &r__[r_offset], &i__1, &wsave[lwsav +
161 mwsav + 1], &mmsav, &work[1], lenwrk, &ier1);
162 i__1 = ((*m + 1) / 2 << 1) - 1;
163 for (j = 2; j <= i__1; ++j) {
164 r__[j * r_dim1 + 1] *= .5;
167 for (j = 3; j <= i__1; j += 2) {
168 r__[j * r_dim1 + 1] = -r__[j * r_dim1 + 1];
177 r2w_(ldim, &ldw, l, m, &r__[r_offset], &work[1]);
181 cfftmf_(&i__1, &c__1, m, &ldh, &work[2], &i__2, &wsave[lwsav + 1], &
182 mwsav, &r__[r_offset], &i__3, &ier1);
188 w2r_(ldim, &ldw, l, m, &r__[r_offset], &work[1]);
193 rfftmf_(&c__1, &c__1, m, ldim, &r__[*l + r_dim1], &i__1, &wsave[lwsav
194 + mwsav + 1], &mmsav, &work[1], lenwrk, &ier1);
195 i__1 = ((*m + 1) / 2 << 1) - 1;
196 for (j = 2; j <= i__1; ++j) {
197 r__[*l + j * r_dim1] *= .5;
200 for (j = 3; j <= i__1; j += 2) {
201 r__[*l + j * r_dim1] = -r__[*l + j * r_dim1];