Convolution

Trait Convolution 

Source
pub trait Convolution {
    // Required method
    fn convolve<const KERNEL_SIZE: usize>(
        &mut self,
        kernel: SeparableKernel<KERNEL_SIZE>,
        stride: usize,
    );

    // Provided method
    fn compute_signal_index(
        stride: usize,
        kernel_size: usize,
        kernel_index: isize,
        signal_index: usize,
        max: usize,
    ) -> u32 { ... }
}

Required Methods§

Source

fn convolve<const KERNEL_SIZE: usize>( &mut self, kernel: SeparableKernel<KERNEL_SIZE>, stride: usize, )

Provided Methods§

Source

fn compute_signal_index( stride: usize, kernel_size: usize, kernel_index: isize, signal_index: usize, max: usize, ) -> u32

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Convolution for Array1<f32>

Source§

fn convolve<const KERNEL_SIZE: usize>( &mut self, kernel: SeparableKernel<KERNEL_SIZE>, stride: usize, )

Source§

impl Convolution for Array2<f32>

Source§

fn convolve<const KERNEL_SIZE: usize>( &mut self, kernel: SeparableKernel<KERNEL_SIZE>, stride: usize, )

Source§

impl Convolution for Array3<f32>

Source§

fn convolve<const KERNEL_SIZE: usize>( &mut self, kernel: SeparableKernel<KERNEL_SIZE>, stride: usize, )

Implementors§