kernel/nfsft/api.h
Go to the documentation of this file.
/*
* Copyright (c) 2002, 2017 Jens Keiner, Stefan Kunis, Daniel Potts
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 51
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef API_H
#define API_H
#include "config.h"
#include "nfft3.h"
/* "Default exponent of maximum bandwidth" */
#define BWEXP_MAX 10
/* "Default maximum bandwidth" */
#define BW_MAX 1024
#define ROW(k) (k*(wisdom.N_MAX+2))
#define ROWK(k) (k*(wisdom.N_MAX+2)+k)
#ifdef HAVE_STDBOOL_H
#include <stdbool.h>
#else
typedef enum {false = 0,true = 1} bool;
#endif
//#define FIRST_L (int)floor(ntilde/(double)plength)
//#define LAST_L (int)ceil((Mtilde+1)/(double)plength)-1
struct nfsft_wisdom
{
bool initialized;
unsigned int flags;
int N_MAX;
int T_MAX;
/* Data for the direct algorithms */
double *alpha;
double *beta;
double *gamma;
/* Data for fast algorithms. */
double threshold;
#ifdef _OPENMP
int nthreads;
fpt_set *set_threads;
#else
fpt_set set;
#endif
};
/* \} */
#endif
nfsft_wisdom::gamma
double * gamma
Precomputed recursion coefficients /f$\gamma_k^n/f$ for /f$k = 0,/ldots, N_{\text{max}...
Definition kernel/nfsft/api.h:86
nfsft_wisdom::set
fpt_set set
Structure for discrete polynomial transform (DPT).
Definition kernel/nfsft/api.h:97
nfsft_wisdom::beta
double * beta
Precomputed recursion coefficients /f$\beta_k^n/f$ for /f$k = 0,/ldots, N_{\text{max}...
Definition kernel/nfsft/api.h:80
nfsft_wisdom::alpha
double * alpha
Precomputed recursion coefficients /f$\alpha_k^n/f$ for /f$k = 0,/ldots, N_{\text{max}...
Definition kernel/nfsft/api.h:74
nfsft_wisdom::initialized
bool initialized
Indicates wether the structure has been initialized.
Definition kernel/nfsft/api.h:59
nfsft_wisdom::N_MAX
int N_MAX
Stores precomputation flags.
Definition kernel/nfsft/api.h:63
nfsft_wisdom::threshold
double threshold
The threshold /f$\kappa/f$.
Definition kernel/nfsft/api.h:91
nfsft_wisdom::T_MAX
int T_MAX
The logarithm /f$t = \log_2 N_{\text{max}}/f$ of the maximum bandwidth.
Definition kernel/nfsft/api.h:65
nfft3.h
Header file for the nfft3 library.
fpt_set
struct fpt_set_s_ * fpt_set
A set of precomputed data for a set of DPT transforms of equal maximum length.
Definition nfft3.h:633
nfsft_wisdom
Wisdom structure.
Definition kernel/nfsft/api.h:57