gftool.pade.Averager
- gftool.pade.Averager(z_in, coeff, *, valid_pades, kind: KindSelector)[source]
Create function for averaging Padé scheme.
- Parameters:
- z_in(N_in,) complex ndarray
Complex mesh used to calculate coeff.
- coeff(…, N_in) complex ndarray
Coefficients for Padé, calculated from pade.coefficients.
- valid_padeslist_like of bool
Mask which continuations are correct, all Padés where valid_pades evaluates to false will be ignored for the average.
- kind{KindGf, KindSelf}
Defines the asymptotic of the continued function and the number of minimum and maximum input points used for Padé. For
KindGf
the function goes like \(1/z\) for large z, forKindSelf
the function behaves like a constant for large z.
- Returns:
- function
The continued function f(z) (z, ) -> Result. f(z).x contains the function values f(z).err the associated variance.
- Raises:
- TypeError
If valid_pades not of type bool
- RuntimeError
If all there are none elements of valid_pades that evaluate to True.