Skip to main content

matsubara_sampling_points_from_uhat

Function matsubara_sampling_points_from_uhat 

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

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

MatsubaraPointMethod::SignChanges: the sign changes of uhat_full[l] (after the parity adjustment of l), or the extrema of the last function when uhat_full has no function l, as in SparseIR.jl; bosonic sets always include n = 0. mitigate adds points near the outer frequencies (fencing).

MatsubaraPointMethod::PairSelection: as many frequencies as functions, rounded up to an even number for fermions and an odd one including n = 0 for bosons, chosen among the frequencies of the grid of the sign-change search (spacing about 2% at high frequency); mitigate adds about 10% more frequencies (oversampling that minimizes the noise variance of the fit).

ยงErrors