41 auto const &old_m = g.
mesh();
43 auto const &new_m = new_gf.
mesh();
47 for (
auto const &tau : old_m) {
48 long index = std::lround(
static_cast<double>(tau) / new_m.delta());
49 if (index == prev_index) {
52 new_gf[index - 1] /=
static_cast<double>(norm);
56 new_gf[index] += g[tau];
58 if (norm != 1) new_gf[new_m.size() - 1] /= norm;
A read-only, non-owning view of a Green's function.
mesh_t const & mesh() const
Get the mesh of the Green's function.
std::array< long, Target::rank > target_shape() const
Get the shape of the target.
The owning Green's function container.
data_t & data() &
Get the data array.
mesh_t const & mesh() const
Get the mesh of the Green's function.
Provides the triqs::gfs::gf_const_view container, a read-only non-owning view of a Green's function.
Provides imaginary-time Green's function utilities.
Provides the Green's function class.
gf< mesh::imtime > rebinning_tau(gf_const_view< mesh::imtime > const &g, size_t new_n_tau)
Rebin an imaginary-time Green's function onto a coarser uniform mesh.
Provides a mesh type on the imaginary time axis.