1.2.3
CCC
 
FFT.hpp File Reference
#include "gstlearn_export.hpp"
#include "Arrays/Array.hpp"
#include <math.h>
#include <complex>
#include <functional>

Functions

GSTLEARN_EXPORT int FFTn (int ndim, const VectorInt &dims, VectorDouble &Re, VectorDouble &Im, int iSign=1, double scaling=1.)
 
GSTLEARN_EXPORT Array evalCovFFTTimeSlice (const VectorDouble &hmax, double time, int N, std::function< std::complex< double >(VectorDouble, double)> funcSpectrum)
 
GSTLEARN_EXPORT Array evalCovFFTSpatial (const VectorDouble &hmax, int N, std::function< double(const VectorDouble &)> funcSpectrum)
 

Function Documentation

GSTLEARN_EXPORT Array evalCovFFTSpatial ( const VectorDouble hmax,
int  N,
std::function< double(const VectorDouble &)>  funcSpectrum 
)
GSTLEARN_EXPORT Array evalCovFFTTimeSlice ( const VectorDouble hmax,
double  time,
int  N,
std::function< std::complex< double >(VectorDouble, double)>  funcSpectrum 
)

perform the FFT transform for a First-Order Space Time evolution equation

Parameters
hmaxMaximum spatial distances (Dimension: spatial ndim)
timeTime of the covariance slice
NDiscretization number (in each spatial dimension)
funcSpectrumExternal adequate spectrum evaluation function
Returns
Array of spatio-temporal covariance
GSTLEARN_EXPORT int FFTn ( int  ndim,
const VectorInt dims,
VectorDouble Re,
VectorDouble Im,
int  iSign,
double  scaling 
)

Calculate the FFT in a space of dimension N

Returns
Error return code