#include <triqs/utility/time_pt.hpp>
Represents the imaginary-time segment \( [0, \beta] \).
Definition at line 249 of file time_pt.hpp.
|
|
double | beta |
| | Inverse temperature \( \beta \).
|
◆ 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.
◆ 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
-
| RNG | Random number generator type. |
- Parameters
-
| rng | Random 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
-
| RNG | Random number generator type. |
- Parameters
-
| rng | Random number generator. |
| tp | Exclusive 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]
Draw a uniform random point in \( [\tau_1, \tau_2[ \).
- Template Parameters
-
| RNG | Random number generator type. |
- Parameters
-
| rng | Random number generator. |
| tp1 | Inclusive lower bound \( \tau_1 \). |
| tp2 | Exclusive 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
-
| x | Value 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: