16#include "utilities_slsim.h"
24 GaussianField(
size_t Nx,
size_t Ny):
27 kappak.resize(Nx*(Ny/2+1));
28 std::vector<double> image(Nx*Ny);
30 pbackward = fftw_plan_dft_c2r_2d(Nx,Ny
31 ,
reinterpret_cast<fftw_complex*
>(kappak.data())
32 ,image.data(), FFTW_ESTIMATE);
36 fftw_destroy_plan(pbackward);
38 void GaussianField2D(
double *image,std::function<
double(
double,
double)> PofK,
41 void GaussianField2D(std::vector<double> &image,std::function<
double(
double,
double)> PofK,
44 void GaussianField2D(std::valarray<double> &image,std::function<
double(
double,
double)> PofK,
49 std::vector<std::complex<double> > kappak;
59void index_to_k_2d(
size_t k
66void GaussianField2D(
double *image,std::function<
double(
double,
double)> PofK,
This is a class for generating random numbers. It simplifies and fool proofs initialization and allow...
Definition utilities_slsim.h:1059