Skip to main content

SVEKernel

Trait SVEKernel 

Source
pub trait SVEKernel: AbstractKernel {
    type SVEHintsType<T: Copy + Debug + Send + Sync + CustomNumeric + 'static>: SVEHints<T> + Clone;

    // Required methods
    fn xmax(&self) -> f64;
    fn ymax(&self) -> f64;
    fn sve_hints<T>(&self, epsilon: f64) -> Self::SVEHintsType<T>
       where T: Copy + Debug + Send + Sync + CustomNumeric + 'static;

    // Provided methods
    fn xmin(&self) -> f64 { ... }
    fn ymin(&self) -> f64 { ... }
}
Expand description

The domain of a kernel and the discretization hints of its SVE

This is what crate::sve::compute_sve needs of a kernel besides its values (AbstractKernel) and its strategy (ExpandableKernel).

Required Associated Types§

Source

type SVEHintsType<T: Copy + Debug + Send + Sync + CustomNumeric + 'static>: SVEHints<T> + Clone

Associated type for SVE hints

Required Methods§

Source

fn xmax(&self) -> f64

Get the upper bound of the x domain

Source

fn ymax(&self) -> f64

Get the upper bound of the y domain

Source

fn sve_hints<T>(&self, epsilon: f64) -> Self::SVEHintsType<T>
where T: Copy + Debug + Send + Sync + CustomNumeric + 'static,

Create SVE hints for this kernel type.

Provides discretization hints for singular value expansion computation. The hints include segment information and numerical parameters optimized for the specific kernel type.

@param epsilon Target accuracy for the SVE computation @return SVE hints specific to this kernel type

Provided Methods§

Source

fn xmin(&self) -> f64

Lower bound of the x domain. Defaults to the symmetric case -xmax.

Source

fn ymin(&self) -> f64

Lower bound of the y domain. Defaults to the symmetric case -ymax.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§