1.5.1
CCC
 
FFT.cpp File Reference
#include "Basic/VectorNumT.hpp"
#include "Basic/FFT.hpp"
#include "Arrays/Array.hpp"
#include "Core/fftn.hpp"
#include <math.h>

Functions

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

Function Documentation

◆ evalCovFFTSpatial()

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

◆ evalCovFFTTimeSlice()

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()

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