pub struct MovingAverageOperation { /* private fields */ }Expand description
Example: Custom moving average operation
Implementations§
Trait Implementations§
Source§impl SimdOperation for MovingAverageOperation
impl SimdOperation for MovingAverageOperation
Source§fn description(&self) -> &str
fn description(&self) -> &str
Description of what the operation does
Source§fn execute_f32(
&self,
input: &[f32],
output: &mut [f32],
) -> Result<(), PluginError>
fn execute_f32( &self, input: &[f32], output: &mut [f32], ) -> Result<(), PluginError>
Execute the operation on f32 data
Source§fn execute_f64(
&self,
input: &[f64],
output: &mut [f64],
) -> Result<(), PluginError>
fn execute_f64( &self, input: &[f64], output: &mut [f64], ) -> Result<(), PluginError>
Execute the operation on f64 data
Source§fn required_input_size(&self, output_size: usize) -> usize
fn required_input_size(&self, output_size: usize) -> usize
Get the required input size for a given output size
Source§fn supports_inplace(&self) -> bool
fn supports_inplace(&self) -> bool
Check if the operation supports in-place execution
Source§fn simd_requirements(&self) -> SimdRequirements
fn simd_requirements(&self) -> SimdRequirements
Get the SIMD width requirements
Auto Trait Implementations§
impl Freeze for MovingAverageOperation
impl RefUnwindSafe for MovingAverageOperation
impl Send for MovingAverageOperation
impl Sync for MovingAverageOperation
impl Unpin for MovingAverageOperation
impl UnsafeUnpin for MovingAverageOperation
impl UnwindSafe for MovingAverageOperation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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