pub struct LogisticKernel { /* private fields */ }Expand description
Logistic kernel for fermionic and bosonic analytical continuation
For bosons the spectral function is divided by the regularizer tanh(βω/2).
This kernel implements K(x, y) = exp(-Λy(x + 1)/2)/(1 + exp(-Λy)) where x ∈ [-1, 1] and y ∈ [-1, 1]
Implementations§
Source§impl LogisticKernel
impl LogisticKernel
Sourcepub fn new(lambda: f64) -> Result<LogisticKernel, Error>
pub fn new(lambda: f64) -> Result<LogisticKernel, Error>
Create a new logistic kernel with the given cutoff parameter
§Arguments
lambda- Kernel cutoff Λ = β ωmax, positive and finite. The SVE grid, and the memory it needs, grows with Λ.
§Errors
Error::InvalidParameter if lambda is not positive and finite
Trait Implementations§
Source§impl AbstractKernel for LogisticKernel
impl AbstractKernel for LogisticKernel
Source§impl CentrosymmKernel for LogisticKernel
impl CentrosymmKernel for LogisticKernel
Source§fn compute_reduced<T>(&self, x: T, y: T, symmetry: SymmetryType) -> T
fn compute_reduced<T>(&self, x: T, y: T, symmetry: SymmetryType) -> T
Compute the reduced kernel value Read more
Source§impl Clone for LogisticKernel
impl Clone for LogisticKernel
Source§fn clone(&self) -> LogisticKernel
fn clone(&self) -> LogisticKernel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LogisticKernel
Source§impl Debug for LogisticKernel
impl Debug for LogisticKernel
Source§impl KernelProperties for LogisticKernel
impl KernelProperties for LogisticKernel
Source§type SVEHintsType<T: Copy + Debug + Send + Sync + CustomNumeric + 'static> = LogisticSVEHints<T>
type SVEHintsType<T: Copy + Debug + Send + Sync + CustomNumeric + 'static> = LogisticSVEHints<T>
Associated type for SVE hints
Source§fn conv_radius(&self) -> f64
fn conv_radius(&self) -> f64
Convergence radius of the Matsubara basis asymptotic model Read more
Source§fn 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. Read more
Source§fn sve_hints<T>(
&self,
epsilon: f64,
) -> <LogisticKernel as KernelProperties>::SVEHintsType<T>
fn sve_hints<T>( &self, epsilon: f64, ) -> <LogisticKernel as KernelProperties>::SVEHintsType<T>
Create SVE hints for this kernel type. Read more
Auto Trait Implementations§
impl Freeze for LogisticKernel
impl RefUnwindSafe for LogisticKernel
impl Send for LogisticKernel
impl Sync for LogisticKernel
impl Unpin for LogisticKernel
impl UnsafeUnpin for LogisticKernel
impl UnwindSafe for LogisticKernel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> MaybeSend for Twhere
T: Send,
impl<T> MaybeSendSync for T
impl<T> MaybeSync for Twhere
T: Sync,
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.