pub trait ChunkableFunction<T> {
// Required methods
fn apply_chunk(
&self,
input: &ArrayView<'_, T, Ix1>,
output: &mut ArrayViewMut<'_, T, Ix1>,
) -> SpecialResult<()>;
fn name(&self) -> &str;
}Expand description
Trait for functions that can be applied in chunks
Required Methods§
Sourcefn apply_chunk(
&self,
input: &ArrayView<'_, T, Ix1>,
output: &mut ArrayViewMut<'_, T, Ix1>,
) -> SpecialResult<()>
fn apply_chunk( &self, input: &ArrayView<'_, T, Ix1>, output: &mut ArrayViewMut<'_, T, Ix1>, ) -> SpecialResult<()>
Apply the function to a chunk of data