pub struct SquareOperation;Expand description
Example: Custom square operation
Trait Implementations§
Source§impl SimdOperation for SquareOperation
impl SimdOperation for SquareOperation
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 supports_inplace(&self) -> bool
fn supports_inplace(&self) -> bool
Check if the operation supports in-place execution
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 simd_requirements(&self) -> SimdRequirements
fn simd_requirements(&self) -> SimdRequirements
Get the SIMD width requirements
Auto Trait Implementations§
impl Freeze for SquareOperation
impl RefUnwindSafe for SquareOperation
impl Send for SquareOperation
impl Sync for SquareOperation
impl Unpin for SquareOperation
impl UnsafeUnpin for SquareOperation
impl UnwindSafe for SquareOperation
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