Open egcpvanloon opened 5 years ago
Hey @egcpvanloon This part is indeed not well documented.
auto g_real = make_gf_from_fourier<1>(g0);
should do what you want (i.e. Fourier transform only the mesh with idx 1).
@Wentzell Thanks, that was exactly what I was looking for!
Dear TRIQS developers,
I am working with a Green's function that depends on iw and k. I wish to do a Fourier transform on k only, i.e. to a function of iw and r. I was wondering if there is a nice and convenient way to do this or if you have suggestions for how I can implement it. There is Fourier functionality in gfs/transform, but I do not really understand how to deal with Cartesian products there, i.e., to only transform the second component. There is also not so much documentation on this aspect, as far as I could see.
Sample code:
Now, how to get g_real from g0?
Best regards,
Erik