triqs.utility.utilities.TimePt
- class triqs.utility.utilities.TimePt
Bases:
objectA point in imaginary time, \(\tau_n \in [0, \beta]\), stored on a very fine integer grid.
Each time point is identified by an integer position \(n \in [0, N_\mathrm{max}]\) of type uint64_t and the inverse temperature \(\beta\). Its floating-point value is \(\beta * n / N_\mathrm{max}\).
Comparing two time points reduces to integer comparison, which avoids the well-known pitfalls of floating-point equality.
Various arithmetic operations are defined between time points and between time points and scalar double values.
Dispatched C++ constructor(s).
[1] () [2] (n_: int, beta_: float)
[1] Default constructor creates the point \(\tau_0\) for \(\beta = 0\).
[2] Construct a point \(\tau_n\) from an integer grid position and the inverse temperature.
- Parameters:
- n_int
Integer position \(n \in [0, N_\text{max}]\) on the grid.
- beta_float
Inverse temperature \(\beta\).