/home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/common/quadrature/matsubara.hh Source File#
|
DiFfRG
|
matsubara.hh
Go to the documentation of this file.
47 MatsubaraQuadrature(const NT T, const NT typical_E = 1., const int step = 2, const int min_size = 0,
A quadrature rule for (bosonic) Matsubara frequencies, based on the method of Monien [1]....
Definition matsubara.hh:25
int m_size
The number of nodes in the quadrature rule.
Definition matsubara.hh:128
int predict_size(const NT T, const NT typical_E=1., const int step=2)
Calculate the number of nodes needed for a given temperature and typical energy scale.
MatsubaraQuadrature(const NT T, const NT typical_E=1., const int step=2, const int min_size=0, const int max_size=256, const int vacuum_quad_size=48, const int precision_factor=1)
Create a new quadrature rule for Matsubara frequencies.
auto sum(const F &f) const
Compute a matsubara sum of a given function.
Definition matsubara.hh:86
Kokkos::View< NT *, CPU_memory > host_weights
Definition matsubara.hh:123
void write_data(const std::vector< NT > &x, const std::vector< NT > &w)
MatsubaraQuadrature()
Kokkos::View< const NT *, MemorySpace > nodes() const
Definition matsubara.hh:94
Kokkos::View< NT *, GPU_memory > device_weights
Definition matsubara.hh:120
Kokkos::View< NT *, GPU_memory > device_nodes
Definition matsubara.hh:119
Kokkos::View< NT *, CPU_memory > host_nodes
Definition matsubara.hh:122
Kokkos::View< const NT *, MemorySpace > weights() const
Definition matsubara.hh:105
void reinit(const NT T, const NT typical_E=1., const int step=2, const int min_size=0, const int max_size=256, const int vacuum_quad_size=48, const int precision_factor=1)
Update the quadrature rule with new parameters.
NT get_typical_E() const
Get the typical energy scale of the quadrature rule.
Definition complex_math.hh:10
Generated by