pub trait ConvolutionExt<T: Copy>where
Self: Sized,{
type Output;
// Required methods
fn conv2d<U: Data<Elem = T>>(
&self,
kernel: ArrayBase<U, Ix3>,
) -> Result<Self::Output, Error>;
fn conv2d_inplace<U: Data<Elem = T>>(
&mut self,
kernel: ArrayBase<U, Ix3>,
) -> Result<(), Error>;
fn conv2d_with_padding<U: Data<Elem = T>>(
&self,
kernel: ArrayBase<U, Ix3>,
strategy: &impl PaddingStrategy<T>,
) -> Result<Self::Output, Error>;
fn conv2d_inplace_with_padding<U: Data<Elem = T>>(
&mut self,
kernel: ArrayBase<U, Ix3>,
strategy: &impl PaddingStrategy<T>,
) -> Result<(), Error>;
}
Expand description
Perform image convolutions
Required Associated Types§
Required Methods§
Sourcefn conv2d<U: Data<Elem = T>>(
&self,
kernel: ArrayBase<U, Ix3>,
) -> Result<Self::Output, Error>
fn conv2d<U: Data<Elem = T>>( &self, kernel: ArrayBase<U, Ix3>, ) -> Result<Self::Output, Error>
Perform a convolution returning the resultant data applies the default padding of zero padding
Sourcefn conv2d_inplace<U: Data<Elem = T>>(
&mut self,
kernel: ArrayBase<U, Ix3>,
) -> Result<(), Error>
fn conv2d_inplace<U: Data<Elem = T>>( &mut self, kernel: ArrayBase<U, Ix3>, ) -> Result<(), Error>
Performs the convolution inplace mutating the containers data applies the default padding of zero padding
Sourcefn conv2d_with_padding<U: Data<Elem = T>>(
&self,
kernel: ArrayBase<U, Ix3>,
strategy: &impl PaddingStrategy<T>,
) -> Result<Self::Output, Error>
fn conv2d_with_padding<U: Data<Elem = T>>( &self, kernel: ArrayBase<U, Ix3>, strategy: &impl PaddingStrategy<T>, ) -> Result<Self::Output, Error>
Perform a convolution returning the resultant data applies the default padding of zero padding
Sourcefn conv2d_inplace_with_padding<U: Data<Elem = T>>(
&mut self,
kernel: ArrayBase<U, Ix3>,
strategy: &impl PaddingStrategy<T>,
) -> Result<(), Error>
fn conv2d_inplace_with_padding<U: Data<Elem = T>>( &mut self, kernel: ArrayBase<U, Ix3>, strategy: &impl PaddingStrategy<T>, ) -> Result<(), Error>
Performs the convolution inplace mutating the containers data applies the default padding of zero padding
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.