55 integer cc_dim1, cc_dim2, cc_dim3, cc_offset, ch_dim1, ch_dim2, ch_offset,
56 wa_dim1, wa_offset, i__1, i__2;
60 doublereal ci2, ci3, di2, di3, cr2, cr3, dr2, dr3, ti2, tr2;
64 wa_offset = 1 + wa_dim1 * 3;
69 cc_offset = 1 + cc_dim1 * (1 + cc_dim2 * (1 + cc_dim3));
73 ch_offset = 1 + ch_dim1 * (1 + (ch_dim2 << 2));
78 if (*ido > 1 || *na == 1) {
82 for (k = 1; k <= i__1; ++k) {
83 tr2 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] + cc[(k
84 + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1];
85 cr2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] + taur * tr2;
86 cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] += tr2;
87 ti2 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2] + cc[(k
88 + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2];
89 ci2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] + taur * ti2;
90 cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] += ti2;
91 cr3 = taui * (cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1]
92 - cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1]);
93 ci3 = taui * (cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2]
94 - cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2]);
95 cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] = cr2 - ci3;
96 cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1] = cr2 + ci3;
97 cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2] = ci2 + cr3;
98 cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2] = ci2 - cr3;
104 for (k = 1; k <= i__1; ++k) {
105 tr2 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1] + cc[(k
106 + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1];
107 cr2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 1] + taur * tr2;
108 ch[(k + (ch_dim2 << 2)) * ch_dim1 + 1] = cc[(k + (cc_dim3 + 1) *
109 cc_dim2) * cc_dim1 + 1] + tr2;
110 ti2 = cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2] + cc[(k
111 + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2];
112 ci2 = cc[(k + (cc_dim3 + 1) * cc_dim2) * cc_dim1 + 2] + taur * ti2;
113 ch[(k + (ch_dim2 << 2)) * ch_dim1 + 2] = cc[(k + (cc_dim3 + 1) *
114 cc_dim2) * cc_dim1 + 2] + ti2;
115 cr3 = taui * (cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 1]
116 - cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 1]);
117 ci3 = taui * (cc[(k + ((cc_dim3 << 1) + 1) * cc_dim2) * cc_dim1 + 2]
118 - cc[(k + (cc_dim3 * 3 + 1) * cc_dim2) * cc_dim1 + 2]);
119 ch[(k + ch_dim2 * 5) * ch_dim1 + 1] = cr2 - ci3;
120 ch[(k + ch_dim2 * 6) * ch_dim1 + 1] = cr2 + ci3;
121 ch[(k + ch_dim2 * 5) * ch_dim1 + 2] = ci2 + cr3;
122 ch[(k + ch_dim2 * 6) * ch_dim1 + 2] = ci2 - cr3;
129 for (i__ = 2; i__ <= i__1; ++i__) {
131 for (k = 1; k <= i__2; ++k) {
132 tr2 = cc[(k + (i__ + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 1] +
133 cc[(k + (i__ + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 1];
134 cr2 = cc[(k + (i__ + cc_dim3) * cc_dim2) * cc_dim1 + 1] + taur *
136 ch[(k + (i__ * 3 + 1) * ch_dim2) * ch_dim1 + 1] = cc[(k + (i__ +
137 cc_dim3) * cc_dim2) * cc_dim1 + 1] + tr2;
138 ti2 = cc[(k + (i__ + (cc_dim3 << 1)) * cc_dim2) * cc_dim1 + 2] +
139 cc[(k + (i__ + cc_dim3 * 3) * cc_dim2) * cc_dim1 + 2];
140 ci2 = cc[(k + (i__ + cc_dim3) * cc_dim2) * cc_dim1 + 2] + taur *
142 ch[(k + (i__ * 3 + 1) * ch_dim2) * ch_dim1 + 2] = cc[(k + (i__ +
143 cc_dim3) * cc_dim2) * cc_dim1 + 2] + ti2;
144 cr3 = taui * (cc[(k + (i__ + (cc_dim3 << 1)) * cc_dim2) * cc_dim1
145 + 1] - cc[(k + (i__ + cc_dim3 * 3) * cc_dim2) * cc_dim1 +
147 ci3 = taui * (cc[(k + (i__ + (cc_dim3 << 1)) * cc_dim2) * cc_dim1
148 + 2] - cc[(k + (i__ + cc_dim3 * 3) * cc_dim2) * cc_dim1 +
154 ch[(k + (i__ * 3 + 2) * ch_dim2) * ch_dim1 + 2] = wa[i__ +
155 wa_dim1 * 3] * di2 + wa[i__ + wa_dim1 * 5] * dr2;
156 ch[(k + (i__ * 3 + 2) * ch_dim2) * ch_dim1 + 1] = wa[i__ +
157 wa_dim1 * 3] * dr2 - wa[i__ + wa_dim1 * 5] * di2;
158 ch[(k + (i__ * 3 + 3) * ch_dim2) * ch_dim1 + 2] = wa[i__ + (
159 wa_dim1 << 2)] * di3 + wa[i__ + wa_dim1 * 6] * dr3;
160 ch[(k + (i__ * 3 + 3) * ch_dim2) * ch_dim1 + 1] = wa[i__ + (
161 wa_dim1 << 2)] * dr3 - wa[i__ + wa_dim1 * 6] * di3;