36namespace triqs::mesh {
51 if (n_iw == -1) n_iw = (m.
size() - 1) / 6;
68 if (n_tau == -1) n_tau = 6 * (m.
last_index() + 1) + 1;
111 using std::numbers::pi;
112 auto const N =
static_cast<double>(m.
size());
113 auto const wmax = pi * (N - 1) / (N * m.
delta());
114 if (shift_half_bin)
return {-wmax + pi / N / m.
delta(), wmax + pi / N / m.
delta(), m.
size()};
115 return {-wmax, wmax, m.
size()};
134 using std::numbers::pi;
135 auto const N =
static_cast<double>(m.
size());
136 auto const tmax = pi * (N - 1) / (N * m.
delta());
137 if (shift_half_bin)
return {-tmax + pi / N / m.
delta(), tmax + pi / N / m.
delta(), m.
size()};
138 return {-tmax, tmax, m.
size()};
Provides a mesh type for Brillouin zones.
Brillouin zone mesh type.
auto const & dims() const
Get the number of mesh points in each of the three dimensions.
auto const & bz() const noexcept
Get the underlying Brillouin zone.
Cyclic lattice mesh type for Bravais lattices with Born-von Karman periodic boundary conditions.
auto const & lattice() const noexcept
Get the underlying Bravais lattice.
auto const & dims() const
Get the number of unit cells in each of the three dimensions.
value_t delta() const noexcept
Get the step size of the mesh, i.e. the distance between two consecutive mesh points.
long size() const noexcept
Get the size of the mesh, i.e. the number of mesh points.
Imaginary frequency discrete Lehmann representation (DLR) mesh type.
Imaginary time discrete Lehmann representation (DLR) mesh type.
Imaginary frequency mesh type.
statistic_enum statistic() const noexcept
Get the particle statistics.
double beta() const noexcept
Get the inverse temperature .
long last_index() const
Get the last Matsubara index, i.e. .
Imaginary time mesh type.
double beta() const noexcept
Get the inverse temperature .
statistic_enum statistic() const noexcept
Get the particle statistics.
Real frequency mesh type.
Provides a mesh type for Bravais lattices with Born-von Karman periodic boundary conditions.
Provides a mesh type for the discrete Lehmann representation in imaginary frequency space.
Provides a mesh type for the discrete Lehmann representation in imaginary time.
imfreq make_adjoint_mesh(imtime const &m, long n_iw=-1)
Create the adjoint imaginary-frequency mesh to a given imaginary-time mesh.
Provides a mesh type on the imaginary frequency axis.
Provides a mesh type on the imaginary time axis.
Provides a mesh type on the real frequency axis.
Provides a mesh type on the real time axis.