kernel/nfsft/api.h
/*
* 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$^n/f$ for /f$k = 0,/ldots, N_{{max}}; n=-k,/ldots,k/f$ of associated Legendre-functions /f$P_k^n/f$.
Definition: kernel/nfsft/api.h:86
nfsft_wisdom
Wisdom structure.
Definition: kernel/nfsft/api.h:56
nfsft_wisdom::N_MAX
int N_MAX
Stores precomputation flags.
Definition: kernel/nfsft/api.h:63
nfsft_wisdom::initialized
bool initialized
Indicates wether the structure has been initialized.
Definition: kernel/nfsft/api.h:59
fpt_set_s_
Holds data for a set of cascade summations.
Definition: fpt.h:65
nfsft_wisdom::alpha
double * alpha
Precomputed recursion coefficients /f$^n/f$ for /f$k = 0,/ldots, N_{{max}}; n=-k,/ldots,k/f$ of associated Legendre-functions /f$P_k^n/f$.
Definition: kernel/nfsft/api.h:74
nfsft_wisdom::threshold
double threshold
The threshold /f$/f$.
Definition: kernel/nfsft/api.h:91
nfsft_wisdom::beta
double * beta
Precomputed recursion coefficients /f$^n/f$ for /f$k = 0,/ldots, N_{{max}}; n=-k,/ldots,k/f$ of associated Legendre-functions /f$P_k^n/f$.
Definition: kernel/nfsft/api.h:80
nfft3.h
Header file for the nfft3 library.
nfsft_wisdom::T_MAX
int T_MAX
The logarithm /f$t = N_{{max}}/f$ of the maximum bandwidth.
Definition: kernel/nfsft/api.h:65