/* nag_ftt_multid_single (c06pfc) Example Program. * * Copyright 2002 Numerical Algorithms Group. * * Mark 7, 2002. */ #include #include #include #include #include int main(void) { /* Scalars */ Integer i, l, n, ndim; Integer exit_status=0; NagError fail; /* Arrays */ Complex *x=0; Integer *nd=0; INIT_FAIL(fail); Vprintf("nag_fft_multid_single (c06pfc) Example Program Results\n"); /* Skip heading in data file */ Vscanf("%*[^\n]"); Vscanf("%ld%ld%ld", &ndim, &l, &n); if (n >= 1) { /* Allocate memory */ if ( !(x = NAG_ALLOC(n, Complex)) || !(nd = NAG_ALLOC(ndim, Integer)) ) { Vprintf("Allocation failure\n"); exit_status = -1; goto END; } for (i = 0; i < ndim; ++i) { Vscanf("%ld",&nd[i]); } /* Read in complex data and print out. */ Vscanf("%*[^\n]"); for (i = 0; i