TRIQS/triqs_ctint 4.0.0
A TRIQS application
Loading...
Searching...
No Matches
triqs_ctint::tau_t

#include <triqs_ctint/vertex.hpp>

Detailed Description

A point in imaginary time, i.e. $\tau \in [0,\beta]$, but defined on a very fine grid. The position in the segment is given by an uint32_t, i.e. a very long integer. This allows exact comparisons, which notoriously dangerous on floating point number.

Definition at line 17 of file vertex.hpp.

Public Member Functions

 operator double () const
 Cast to corresponding double value in $[0,\beta]$.

Static Public Member Functions

static constexpr tau_t get_beta ()
 Return \tau = \beta.
static constexpr tau_t get_beta_minus ()
 Return \tau = beta^{-} = \beta - \delta.
static constexpr tau_t get_beta_minus_minus ()
 Return \tau = beta^{–} = \beta - 2*\delta.
template<typename RNG>
static tau_t get_random (RNG &rng)
 Get a random point in $[0,\beta[$.
static constexpr tau_t get_zero ()
 Return \tau = 0.
static constexpr tau_t get_zero_plus ()
 Return \tau = 0^{+} = 0 + \delta.
static constexpr tau_t get_zero_plus_plus ()
 Return \tau = 0^{++} = 0 + 2*\delta.

Public Attributes

uint32_t n = 0
 $\tau$ value, represented as an integer on a very fine grid

Static Public Attributes

static double beta = 0.0
 Inverse temperature associated with all $\tau$ points.
static constexpr uint32_t n_max = std::numeric_limits<uint32_t>::max()
 Maximum value that can be stored inside a uint32_t.

Friends

std::ostream & operator<< (std::ostream &out, tau_t const &tau)
 Operator allowing output to std::ostream.

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