#[non_exhaustive]pub enum ConvolutionMode {
Full,
Same,
Valid,
}Expand description
Which part of a convolution convolution_matrix produces (as numpy.convolve’s mode).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Full
All m + n − 1 outputs.
Same
max(m, n) outputs, centred.
Valid
The max(m, n) − min(m, n) + 1 outputs computed without padding.
Trait Implementations§
Source§impl Clone for ConvolutionMode
impl Clone for ConvolutionMode
impl Copy for ConvolutionMode
Source§impl Debug for ConvolutionMode
impl Debug for ConvolutionMode
impl Eq for ConvolutionMode
Source§impl PartialEq for ConvolutionMode
impl PartialEq for ConvolutionMode
impl StructuralPartialEq for ConvolutionMode
Auto Trait Implementations§
impl Freeze for ConvolutionMode
impl RefUnwindSafe for ConvolutionMode
impl Send for ConvolutionMode
impl Sync for ConvolutionMode
impl Unpin for ConvolutionMode
impl UnsafeUnpin for ConvolutionMode
impl UnwindSafe for ConvolutionMode
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