NFFT Logo 3.0 API Reference
Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

flags.c File Reference

Testing the nfft. More...

#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "util.h"
#include "nfft3.h"
#include "options.h"

Go to the source code of this file.

Functions

void flags_cp (nfft_plan *dst, nfft_plan *src)
void time_accuracy (int d, int N, int M, int n, int m, unsigned test_ndft, unsigned test_pre_full_psi)
void accuracy_pre_lin_psi (int d, int N, int M, int n, int m, int K)
int main (int argc, char **argv)

Variables

unsigned test_fg = 0
unsigned test_fftw = 0
unsigned test = 0


Detailed Description

Testing the nfft.

Author:
Stefan Kunis
References: Time and Memory Requirements of the Nonequispaced FFT

Definition in file flags.c.


Function Documentation

void time_accuracy int  d,
int  N,
int  M,
int  n,
int  m,
unsigned  test_ndft,
unsigned  test_pre_full_psi
 

output vector ndft

init pseudo random nodes

init pseudo random Fourier coefficients

NDFT

NFFTs

finalise

Definition at line 46 of file flags.c.

References nfft_plan::d, nfft_plan::f, nfft_plan::f_hat, FFT_OUT_OF_PLACE, FFTW_INIT, FG_PSI, flags_cp(), nfft_plan::M_total, MALLOC_F, MALLOC_F_HAT, MALLOC_X, nfft_plan::MEASURE_TIME_t, nfft_plan::N_total, ndft_trafo(), nfft_error_l_2_complex(), nfft_finalize(), nfft_init_guru(), nfft_precompute_one_psi(), nfft_second(), NFFT_SWAP_complex, nfft_trafo(), nfft_vrand_shifted_unit_double(), nfft_vrand_unit_complex(), PRE_FG_PSI, PRE_FULL_PSI, PRE_LIN_PSI, PRE_PHI_HUT, PRE_PSI, test_fftw, test_fg, and nfft_plan::x.

Referenced by main().

void accuracy_pre_lin_psi int  d,
int  N,
int  M,
int  n,
int  m,
int  K
 

output vector ndft

realloc psi

precomputation can be done before the nodes are initialised

init pseudo random nodes

init pseudo random Fourier coefficients

compute exact result

NFFT

finalise

Definition at line 199 of file flags.c.

References nfft_plan::d, nfft_plan::f, nfft_plan::f_hat, FFT_OUT_OF_PLACE, FFTW_INIT, nfft_plan::K, nfft_plan::M_total, MALLOC_F, MALLOC_F_HAT, MALLOC_X, nfft_plan::N_total, ndft_trafo(), nfft_error_l_2_complex(), nfft_finalize(), nfft_init_guru(), nfft_precompute_one_psi(), NFFT_SWAP_complex, nfft_trafo(), nfft_vrand_shifted_unit_double(), nfft_vrand_unit_complex(), PRE_LIN_PSI, PRE_PHI_HUT, nfft_plan::psi, and nfft_plan::x.

Referenced by main().


Generated on 1 Nov 2006 by Doxygen 1.4.4