Skip to main content

AbstractKernel

Trait AbstractKernel 

Source
pub trait AbstractKernel: Send + Sync {
    // Required method
    fn compute<T: CustomNumeric + Copy + Debug>(&self, x: T, y: T) -> T;
}
Expand description

Trait for general kernels (both centrosymmetric and non-centrosymmetric)

This trait provides the basic interface for computing kernel values. Centrosymmetric kernels implement ReducedKernel as well, which provides additional optimizations.

Required Methods§

Source

fn compute<T: CustomNumeric + Copy + Debug>(&self, x: T, y: T) -> T

Compute the kernel value K(x, y) with high precision

§Arguments
  • x - The x coordinate (typically in [xmin, xmax])
  • y - The y coordinate (typically in [ymin, ymax])
§Returns

The kernel value K(x, y)

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§