132 #include "proto_f77.h" 136 int* facto_ini(
int ) ;
137 double* trigo_ini(
int ) ;
140 void cipcossin(
const int* deg,
const int* dimc,
const int* dimf,
141 double* cf,
double* ff)
159 cout <<
"cipcossin: np+2 > n1c : np = " << np <<
" , n1c = " 165 cout <<
"cipcossin: np > n1f : np = " << np <<
" , n1f = " 171 cout <<
"cipcossin: n3f > n3c : n3f = " << n3f <<
" , n3c = " 177 cout <<
"cipcossin: n2f > n2c : n2f = " << n2f <<
" , n2c = " 184 int* facto = facto_ini(np) ;
185 double* trigo = trigo_ini(np) ;
188 double* t1 = (
double*)( malloc( (np+2)*
sizeof(
double) ) ) ;
191 int n2n3c = n2c * n3c ;
192 for (i=2; i<np; i += 2 ) {
193 for (j=0; j<n2c; j++) {
194 for (k=0; k<n3c; k++) {
195 index = n2n3c * i + n3c * j + k ;
203 for (i=3; i<np+1; i += 2 ) {
204 for (j=0; j<n2c; j++) {
205 for (k=0; k<n3c; k++) {
206 index = n2n3c * i + n3c * j + k ;
220 for (j=0; j<n2c; j++) {
221 for (k=0; k<n3c; k++) {
223 index = n3c * j + k ;
226 double* debut = cf + index ;
228 F77_fft991( debut, t1, trigo, facto, &inc, &jump, &np,
237 int n2n3f = n2f * n3f ;
238 for (i=0; i<np; i++) {
239 for (j=0; j<n2f; j++) {
240 for (k=0; k<n3f; k++) {
241 int indexc = n2n3c * i + n3c * j + k ;
242 int indexf = n2n3f * i + n3f * j + k ;
243 ff[indexf] = cf[indexc] ;