Skip to main content

default_matsubara_sampling_points_from_uhat

Function default_matsubara_sampling_points_from_uhat 

Source
pub fn default_matsubara_sampling_points_from_uhat<S>(
    uhat_full: &PiecewiseLegendreFTVector<S>,
    l: usize,
    mitigate: bool,
    positive_only: bool,
) -> Result<Vec<MatsubaraFreq<S>>, Error>
where S: StatisticsType + 'static,
Expand description

Default Matsubara sampling points for a basis of size l, from the Matsubara basis functions uhat_full alone

For functions with a definite parity, the points are those of MatsubaraPointMethod::SignChanges, as in SparseIR.jl; for functions without one (symm = 0, as from an SVE that is not centrosymmetric), those of MatsubaraPointMethod::PairSelection. This is what FiniteTempBasis::default_matsubara_sampling_points computes, for a caller that holds the functions but not the basis.

ยงErrors

Error::EmptyInput if uhat_full is empty