-
Notifications
You must be signed in to change notification settings - Fork 0
Yorick plug-in for NFFT, the nonequispaced fast Fourier transform
License
emmt/ynfft
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
YNFFT is a Yorick plugin for NFFT (nonequispaced fast Fourier transform). Installation ============ 1. Make sure you have installed the NFFT library from <http://www-user.tu-chemnitz.de/~potts/nfft/>, the FFTW library from <http://www.fftw.org/> and Yorick from <http://yorick.github.com/>. 2. Unpack the plug-in code somewhere. 3. Configure for compilation. There are two possibilities: a/ For an "in-place" build, go to the source directory of the plug-in code (where this README file is located) and run the configuration script: cd SRC_DIR ./configure --cflags=... --deplibs=... For instance: ./configure --cflags='-I/usr/local/include' --deplibs='-L/usr/local/lib -lnfft3 -lfftw3' or, to use OpenMP: ./configure --cflags='-I/usr/local/include -fopenmp -Ofast -march=native -mfpmath=sse -pedantic -pipe -std=c99' --deplibs='-L/usr/local/lib -lnfft3 -lnfft3_threads -lfftw3_threads -lfftw3' To see the configuration options, call: ./configure --help b/ To compile in a different build directory, say $BUILD_DIR, create the build directory, go to the build directory, and run the configuration script: mkdir -p $BUILD_DIR cd $BUILD_DIR $SRC_DIR/configure --cflags=... --deplibs=... where $SRC_DIR is the path to the source directory of the plug-in code. To see the configuration options, call: $SRC_DIR/configure --help 4. Compile the code: make 5. Optionally, check the plugin: make tests You may have to set some environment variable for the dynamic loader (LD_LIBRARY_PATH on Linux) if the NFFT library is installed in a non-standard location, e.g.: LD_LIBRARY_PATH=$PREFIX/lib make tests 4. Finally, install the plug-in in Yorick directories: make install Alternative installation method =============================== Replace step No. 3 of the installation procedure (see above) by: 3.1. Edit the file "Makefile" and check the values of the variables PKG_DEPLIBS, PKG_CFLAGS and PKG_LDFLAGS; for instance, assuming PREFIX is a variable with the top directory where FFTW and NFFT libraries are installed: PKG_DEPLIBS=-L$(PREFIX)/lib -lnfft3 -lfftw3 PKG_CFLAGS=-I$(PREFIX)/include PKG_LDFLAGS= 3.2. Update the paths in the file "Makefile" for compilation by executing the following command: yorick -batch make.i where "yorick" can be replaced by the full path to your Yorick interpreter if not installed in a standard location. Credits ======= * Yorick <http://yorick.github.com/> * NFFT library <http://www-user.tu-chemnitz.de/~potts/nfft/> * FFTW library <http://www.fftw.org/>
About
Yorick plug-in for NFFT, the nonequispaced fast Fourier transform
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published