39 const int N = 1000000;
40 const int M = 1000000;
44 printf(
"nthreads = %d\n", nfft_get_num_threads());
56 nfft_precompute_one_psi(&p);
58 t = nfft_elapsed_seconds(t1,t0);
59 fprintf(stderr,
"precompute elapsed time: %.3f seconds\n",t);
68 t = nfft_elapsed_seconds(t1,t0);
69 fprintf(stderr,
"compute elapsed time: %.3f seconds\n",t);
75 fftw_cleanup_threads();
void nfft_vrand_unit_complex(fftw_complex *x, int n)
Inits a vector of random complex numbers in .
fftw_complex * f_hat
Vector of Fourier coefficients, size is N_total * sizeof( fftw_complex )
void nfft_trafo(nfft_plan *ths)
user routines
int M_total
Total number of samples.
Header file for utility functions used by the nfft3 library.
void nfft_vrand_shifted_unit_double(double *x, int n)
Inits a vector of random double numbers in .
unsigned nfft_flags
Flags for precomputation, (de)allocation, and FFTW usage, default setting is PRE_PHI_HUT | PRE_PSI | ...
double * x
Nodes in time/spatial domain, size is doubles.
int N_total
Total number of Fourier coefficients.