diff --git a/triqs/gf/local/fourier_matsubara.cpp b/triqs/gf/local/fourier_matsubara.cpp index 90447f60..eed9c309 100644 --- a/triqs/gf/local/fourier_matsubara.cpp +++ b/triqs/gf/local/fourier_matsubara.cpp @@ -44,7 +44,7 @@ namespace triqs { namespace gf { tqa::vector g_in, g_out; - void direct ( gf_view &gw , gf_view const& gt) { + void direct (gf_view gw, gf_view 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 gt, gf_view const gw){ using namespace impl_local_matsubara; static bool Green_Function_Are_Complex_in_time = false; diff --git a/triqs/gf/local/fourier_matsubara.hpp b/triqs/gf/local/fourier_matsubara.hpp index fab132a4..bc8abc72 100644 --- a/triqs/gf/local/fourier_matsubara.hpp +++ b/triqs/gf/local/fourier_matsubara.hpp @@ -33,14 +33,14 @@ namespace triqs { namespace gf { void inverse_fourier_impl (gf_view gt, gf_view const gw, scalar_valued); void inverse_fourier_impl (gf_view gt, gf_view const gw, matrix_valued); - inline gf_view fourier (gf_view const & gt) { + inline gf_view fourier (gf_view const gt) { size_t L = (gt.mesh().kind() == full_bins ? gt.mesh().size()-1 : gt.mesh().size() ); auto gw = make_gf(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 fourier (gf_view const & gt) { + inline gf_view fourier (gf_view const gt) { size_t L = (gt.mesh().kind() == full_bins ? gt.mesh().size()-1 : gt.mesh().size() ); auto gw = make_gf(gt.domain().beta, gt.domain().statistic, L); auto V = gw(); @@ -48,7 +48,7 @@ namespace triqs { namespace gf { return gw; } - inline gf_view inverse_fourier (gf_view const & gw, mesh_kind mk = half_bins) { + inline gf_view inverse_fourier (gf_view 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(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 inverse_fourier (gf_view const & gw, mesh_kind mk = half_bins) { + inline gf_view inverse_fourier (gf_view 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(gw.domain().beta, gw.domain().statistic, L);