pub trait KernelProperties: SVEKernel {
// Required methods
fn ypower(&self) -> i32;
fn conv_radius(&self) -> f64;
fn regularizer<S>(&self, beta: f64, omega: f64) -> f64
where S: StatisticsType + 'static;
}Expand description
The physical properties of a kernel, on top of its SVE (SVEKernel)
Required Methods§
Sourcefn ypower(&self) -> i32
fn ypower(&self) -> i32
Power with which the y coordinate scales.
For most kernels, this is 0 (no scaling). For RegularizedBoseKernel, this is 1 (linear scaling).
Sourcefn conv_radius(&self) -> f64
fn conv_radius(&self) -> f64
Convergence radius of the Matsubara basis asymptotic model
For improved numerical accuracy, IR basis functions on Matsubara axis can be evaluated from asymptotic expression for |n| > conv_radius.
Sourcefn regularizer<S>(&self, beta: f64, omega: f64) -> f64where
S: StatisticsType + 'static,
fn regularizer<S>(&self, beta: f64, omega: f64) -> f64where
S: StatisticsType + 'static,
A regularizer for a bosonic kernel for avoiding a divergence at omega = 0.
The bosonic kernel diverges at omega = 0. This function returns a regularizer w(beta, omega) that avoids this divergence.
G(τ) = - ∫ K(τ, ω) ρ(ω) dω = - ∫ [K(τ, ω) w(ω)] [ρ(ω)/w(ω)] dω.
The spectral function ρ(ω) and the weight function w(ω) must vanish linearly at omega = 0. For a fermionic kernel, this function is expected to return 1.0.
§Arguments
beta- Inverse temperatureomega- Frequency
§Returns
The regularizer value w(beta, omega)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".