3
0
mirror of https://github.com/triqs/dft_tools synced 2025-01-12 05:58:18 +01:00

fourier_matsubara: still some useless & removed

This commit is contained in:
Laura Messio 2013-07-19 10:56:26 +02:00 committed by Olivier Parcollet
parent a69e2f52aa
commit c9f6666914
2 changed files with 5 additions and 7 deletions

View File

@ -44,7 +44,7 @@ namespace triqs { namespace gf {
tqa::vector<dcomplex> g_in, g_out;
void direct ( gf_view<imfreq,scalar_valued> &gw , gf_view<imtime,scalar_valued> const& gt) {
void direct (gf_view<imfreq,scalar_valued> gw, gf_view<imtime,scalar_valued> const gt) {
using namespace impl_local_matsubara;
auto ta = gt(freq_infty());
//TO BE MODIFIED AFTER SCALAR IMPLEMENTATION TODO
@ -81,8 +81,6 @@ namespace triqs { namespace gf {
gw.singularity() = gt.singularity();// set tail
}
void inverse(gf_view<imtime,scalar_valued> gt, gf_view<imfreq,scalar_valued> const gw){
using namespace impl_local_matsubara;
static bool Green_Function_Are_Complex_in_time = false;

View File

@ -33,14 +33,14 @@ namespace triqs { namespace gf {
void inverse_fourier_impl (gf_view<imtime,scalar_valued> gt, gf_view<imfreq,scalar_valued> const gw, scalar_valued);
void inverse_fourier_impl (gf_view<imtime,matrix_valued> gt, gf_view<imfreq,matrix_valued> const gw, matrix_valued);
inline gf_view<imfreq,matrix_valued> fourier (gf_view<imtime,matrix_valued> const & gt) {
inline gf_view<imfreq,matrix_valued> fourier (gf_view<imtime,matrix_valued> const gt) {
size_t L = (gt.mesh().kind() == full_bins ? gt.mesh().size()-1 : gt.mesh().size() );
auto gw = make_gf<imfreq,matrix_valued>(gt.domain().beta, gt.domain().statistic , gt.data().shape().front_pop(), L);
auto V = gw();
fourier_impl(V, gt, matrix_valued());
return gw;
}
inline gf_view<imfreq,scalar_valued> fourier (gf_view<imtime,scalar_valued> const & gt) {
inline gf_view<imfreq,scalar_valued> fourier (gf_view<imtime,scalar_valued> const gt) {
size_t L = (gt.mesh().kind() == full_bins ? gt.mesh().size()-1 : gt.mesh().size() );
auto gw = make_gf<imfreq,scalar_valued>(gt.domain().beta, gt.domain().statistic, L);
auto V = gw();
@ -48,7 +48,7 @@ namespace triqs { namespace gf {
return gw;
}
inline gf_view<imtime, matrix_valued> inverse_fourier (gf_view<imfreq, matrix_valued> const & gw, mesh_kind mk = half_bins) {
inline gf_view<imtime, matrix_valued> inverse_fourier (gf_view<imfreq, matrix_valued> const gw, mesh_kind mk = half_bins) {
double pi = std::acos(-1);
size_t L = (mk == full_bins ? gw.mesh().size()+1 : gw.mesh().size() );
auto gt = make_gf<imtime,matrix_valued>(gw.domain().beta, gw.domain().statistic, gw.data().shape().front_pop(), L);
@ -56,7 +56,7 @@ namespace triqs { namespace gf {
inverse_fourier_impl(V, gw, matrix_valued());
return gt;
}
inline gf_view<imtime,scalar_valued> inverse_fourier (gf_view<imfreq,scalar_valued> const & gw, mesh_kind mk = half_bins) {
inline gf_view<imtime,scalar_valued> inverse_fourier (gf_view<imfreq,scalar_valued> const gw, mesh_kind mk = half_bins) {
double pi = std::acos(-1);
size_t L = (mk == full_bins ? gw.mesh().size()+1 : gw.mesh().size() );
auto gt = make_gf<imtime,scalar_valued>(gw.domain().beta, gw.domain().statistic, L);