14 #include <unsupported/Eigen/FFT>
18 #include "eckit/config/Configuration.h"
19 #include "eckit/exception/Exceptions.h"
29 const eckit::Configuration & config)
30 : resol_(resol.npoints()),
31 rscale_(1.0/config.getDouble(
"length_scale"))
34 unsigned int size =
resol_/2+1;
35 std::vector<double> locfct(
resol_);
36 for (
unsigned int jj = 0; jj <
resol_; ++jj) {
38 locfct[jj] = std::exp(-0.5*zz*zz);
41 Eigen::FFT<double> fft;
42 std::vector<std::complex<double> > four(size);
43 fft.fwd(four, locfct);
46 for (
unsigned int jj = 0; jj < size; ++jj) {
47 coefs_[jj] = std::real(four[jj]);
54 unsigned int size =
resol_/2+1;
55 Eigen::FFT<double> fft;
56 std::vector<std::complex<double> > four(size);
58 for (
unsigned int jj = 0; jj < size; ++jj) {
67 os <<
"LocalizationMatrixL95::print not implemented";