1.5.0
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, const std::function< std::complex< double >(VectorDouble, double)> &funcSpectrum)
 
GSTLEARN_EXPORT Array evalCovFFTSpatial (const VectorDouble &hmax, int N, const std::function< double(const VectorDouble &)> &funcSpectrum)
 

Function Documentation

◆ evalCovFFTSpatial()

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

◆ evalCovFFTTimeSlice()

GSTLEARN_EXPORT Array evalCovFFTTimeSlice ( const VectorDouble hmax,
double  time,
int  N,
const 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

◆ FFTn()

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