mirror of
https://github.com/triqs/dft_tools
synced 2024-11-01 11:43:47 +01:00
579368f24b
- lazy_fourier and co --> fourier - ex fourier --> make_gf_from_fourier to make a new gf - = fourier (g) works only iif lhs is a view, like scalar. - updated python (commented fourier method).
25 lines
559 B
C++
25 lines
559 B
C++
#define TRIQS_ARRAYS_ENFORCE_BOUNDCHECK
|
|
#include <triqs/gfs.hpp>
|
|
#include <triqs/gfs/local/fourier_matsubara.hpp>
|
|
using namespace triqs::gfs;
|
|
#define TEST(X) std::cout << BOOST_PP_STRINGIZE((X)) << " ---> "<< (X) <<std::endl<<std::endl;
|
|
|
|
int main() {
|
|
|
|
triqs::gfs::freq_infty inf;
|
|
|
|
double beta =1;
|
|
auto G = gf<imfreq> {{beta, Fermion}, {2,2}};
|
|
auto Gc = G;
|
|
auto G3 = G;
|
|
auto Gt = gf<imtime> {{beta, Fermion,100}, {2,2}};
|
|
|
|
auto gt = make_gf_from_inverse_fourier(G);
|
|
auto gw = make_gf_from_fourier(gt);
|
|
|
|
//gw() = fourier(gt);
|
|
G() = fourier(Gt);
|
|
}
|
|
|
|
|