TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
triqs::utility::time_segment

#include <triqs/utility/time_pt.hpp>

Detailed Description

Represents the imaginary-time segment \( [0, \beta] \).

Definition at line 249 of file time_pt.hpp.

Public Member Functions

 time_segment (double beta_)
 Construct a segment \( [0, \beta] \) from an inverse temperature.
time_pt get_epsilon () const
 Get a time point representing one grid step \( \varepsilon = \beta / N_\text{max} \).
time_pt get_lower_pt () const
 Get the lower end of the segment.
template<typename RNG>
time_pt get_random_pt (RNG &rng) const
 Draw a uniform random point in \( [0, \beta[ \).
template<typename RNG>
time_pt get_random_pt (RNG &rng, time_pt tp) const
 Draw a uniform random point in \( [0, \tau[ \).
template<typename RNG>
time_pt get_random_pt (RNG &rng, time_pt tp1, time_pt tp2) const
 Draw a uniform random point in \( [\tau_1, \tau_2[ \).
time_pt get_upper_pt () const
 Get the upper end of the segment.
time_pt make_time_pt (double x) const
 Convert a double value to the nearest point on the grid.

Public Attributes

double beta
 Inverse temperature \( \beta \).

Constructor & Destructor Documentation

◆ time_segment()

triqs::utility::time_segment::time_segment ( double beta_)
inline

Construct a segment \( [0, \beta] \) from an inverse temperature.

Parameters
beta_Inverse temperature \( \beta \).

Definition at line 257 of file time_pt.hpp.

Member Function Documentation

◆ get_epsilon()

time_pt triqs::utility::time_segment::get_epsilon ( ) const
inlinenodiscard

Get a time point representing one grid step \( \varepsilon = \beta / N_\text{max} \).

Returns
Time point with grid position \( n = 1 \).

Definition at line 307 of file time_pt.hpp.

◆ get_lower_pt()

time_pt triqs::utility::time_segment::get_lower_pt ( ) const
inlinenodiscard

Get the lower end of the segment.

Returns
Time point with grid position \( n = 0 \).

Definition at line 301 of file time_pt.hpp.

◆ get_random_pt() [1/3]

template<typename RNG>
time_pt triqs::utility::time_segment::get_random_pt ( RNG & rng) const
inlinenodiscard

Draw a uniform random point in \( [0, \beta[ \).

Template Parameters
RNGRandom number generator type.
Parameters
rngRandom number generator.
Returns
A uniformly distributed time point on the current segment.

Definition at line 276 of file time_pt.hpp.

◆ get_random_pt() [2/3]

template<typename RNG>
time_pt triqs::utility::time_segment::get_random_pt ( RNG & rng,
time_pt tp ) const
inlinenodiscard

Draw a uniform random point in \( [0, \tau[ \).

Template Parameters
RNGRandom number generator type.
Parameters
rngRandom number generator.
tpExclusive upper bound \( \tau \).
Returns
A uniformly distributed time point on \( [0, \tau[ \).

Definition at line 267 of file time_pt.hpp.

◆ get_random_pt() [3/3]

template<typename RNG>
time_pt triqs::utility::time_segment::get_random_pt ( RNG & rng,
time_pt tp1,
time_pt tp2 ) const
inlinenodiscard

Draw a uniform random point in \( [\tau_1, \tau_2[ \).

Template Parameters
RNGRandom number generator type.
Parameters
rngRandom number generator.
tp1Inclusive lower bound \( \tau_1 \).
tp2Exclusive upper bound \( \tau_2 \).
Returns
A uniformly distributed time point on the interval \( [\tau_1, \tau_2[ \).

Definition at line 287 of file time_pt.hpp.

◆ get_upper_pt()

time_pt triqs::utility::time_segment::get_upper_pt ( ) const
inlinenodiscard

Get the upper end of the segment.

Returns
Time point with grid position \( n = N_\mathrm{max} \).

Definition at line 295 of file time_pt.hpp.

◆ make_time_pt()

time_pt triqs::utility::time_segment::make_time_pt ( double x) const
inlinenodiscard

Convert a double value to the nearest point on the grid.

Parameters
xValue in \( [0, \beta] \).
Returns
The corresponding time point on the grid.

Definition at line 315 of file time_pt.hpp.


The documentation for this struct was generated from the following file: