pub struct ConvolutionOperator<F> { /* private fields */ }
Expand description
Convolution operator for matrix-free convolution operations
Implementations§
Source§impl<F: Float + NumAssign + Sum + Copy + Send + Sync + SimdUnifiedOps> ConvolutionOperator<F>
impl<F: Float + NumAssign + Sum + Copy + Send + Sync + SimdUnifiedOps> ConvolutionOperator<F>
Sourcepub fn new(kernel: Vec<F>, input_size: usize, mode: ConvolutionMode) -> Self
pub fn new(kernel: Vec<F>, input_size: usize, mode: ConvolutionMode) -> Self
Create a new convolution operator
Sourcepub fn with_options(
kernel: Vec<F>,
input_size: usize,
mode: ConvolutionMode,
options: EnhancedOperatorOptions,
) -> Self
pub fn with_options( kernel: Vec<F>, input_size: usize, mode: ConvolutionMode, options: EnhancedOperatorOptions, ) -> Self
Create with custom options
Trait Implementations§
Source§impl<F: Float + NumAssign + Sum + Copy + Send + Sync + SimdUnifiedOps> LinearOperator<F> for ConvolutionOperator<F>
impl<F: Float + NumAssign + Sum + Copy + Send + Sync + SimdUnifiedOps> LinearOperator<F> for ConvolutionOperator<F>
Source§fn has_adjoint(&self) -> bool
fn has_adjoint(&self) -> bool
Check if the operator supports adjoint operations
Source§fn rmatvec(&self, x: &[F]) -> SparseResult<Vec<F>>
fn rmatvec(&self, x: &[F]) -> SparseResult<Vec<F>>
Apply the adjoint of the operator to a vector: y = A^H * x
Default implementation returns an error
Auto Trait Implementations§
impl<F> Freeze for ConvolutionOperator<F>
impl<F> RefUnwindSafe for ConvolutionOperator<F>where
F: RefUnwindSafe,
impl<F> Send for ConvolutionOperator<F>where
F: Send,
impl<F> Sync for ConvolutionOperator<F>where
F: Sync,
impl<F> Unpin for ConvolutionOperator<F>where
F: Unpin,
impl<F> UnwindSafe for ConvolutionOperator<F>where
F: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more