![]() |
NFFT
3.3.1
|
00001 /* 00002 * Copyright (c) 2002, 2016 Jens Keiner, Stefan Kunis, Daniel Potts 00003 * 00004 * This program is free software; you can redistribute it and/or modify it under 00005 * the terms of the GNU General Public License as published by the Free Software 00006 * Foundation; either version 2 of the License, or (at your option) any later 00007 * version. 00008 * 00009 * This program is distributed in the hope that it will be useful, but WITHOUT 00010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00011 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 00012 * details. 00013 * 00014 * You should have received a copy of the GNU General Public License along with 00015 * this program; if not, write to the Free Software Foundation, Inc., 51 00016 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00017 */ 00018 00024 #ifndef API_H 00025 #define API_H 00026 00027 #include "config.h" 00028 #include "nfft3.h" 00029 00034 /* "Default exponent of maximum bandwidth" */ 00035 #define BWEXP_MAX 10 00036 00037 /* "Default maximum bandwidth" */ 00038 #define BW_MAX 1024 00039 00040 #define ROW(k) (k*(wisdom.N_MAX+2)) 00041 #define ROWK(k) (k*(wisdom.N_MAX+2)+k) 00042 00043 #ifdef HAVE_STDBOOL_H 00044 #include <stdbool.h> 00045 #else 00046 typedef enum {false = 0,true = 1} bool; 00047 #endif 00048 00049 //#define FIRST_L (int)floor(ntilde/(double)plength) 00050 //#define LAST_L (int)ceil((Mtilde+1)/(double)plength)-1 00051 00052 00056 struct nfsft_wisdom 00057 { 00059 bool initialized; 00060 unsigned int flags; 00063 int N_MAX; 00065 int T_MAX; 00066 00067 /* Data for the direct algorithms */ 00068 00074 double *alpha; 00080 double *beta; 00086 double *gamma; 00087 00088 /* Data for fast algorithms. */ 00089 00091 double threshold; 00092 #ifdef _OPENMP 00093 int nthreads; 00094 fpt_set *set_threads; 00095 #else 00096 00097 fpt_set set; 00098 #endif 00099 }; 00100 /* \} */ 00101 #endif 00102