29 static void simple_test_nfst_1d(
void)
42 p.
x[j] = 0.5 * ((
double)rand()) / RAND_MAX;
46 nfst_precompute_psi( &p);
50 p.
f_hat[k] = (
double)rand() / RAND_MAX;
55 nfst_trafo_direct(&p);
63 nfst_adjoint_direct(&p);
77 printf(
"computing one dimensional ndst, nfst and adjoint ndst, nfst\n\n");
78 simple_test_nfst_1d();
unsigned nfst_flags
flags for precomputation, malloc
int N_total
Total number of Fourier coefficients.
void nfst_trafo(nfst_plan *ths_plan)
user routines
int M_total
Total number of samples.
double * f_hat
Vector of Fourier coefficients, size is N_total * sizeof( double )
void nfft_vpr_double(double *x, int n, const char *text)
Prints a vector of doubles numbers.
Header file for utility functions used by the nfft3 library.
double * x
nodes (in time/spatial domain)
double * f
Vector of samples, size is M_total * sizeof( double )