pub struct ParallelReduction;Expand description
Parallel reduction operations
Implementations§
Source§impl ParallelReduction
impl ParallelReduction
Sourcepub fn sum<F: Float>(
array: &Array<F, IxDyn>,
config: &ParallelConfig,
) -> Result<F, ThreadPoolError>
pub fn sum<F: Float>( array: &Array<F, IxDyn>, config: &ParallelConfig, ) -> Result<F, ThreadPoolError>
Parallel sum reduction
Sourcepub fn sum_axis<F: Float>(
array: &Array<F, IxDyn>,
axis: usize,
config: &ParallelConfig,
) -> Result<Array<F, IxDyn>, ThreadPoolError>
pub fn sum_axis<F: Float>( array: &Array<F, IxDyn>, axis: usize, config: &ParallelConfig, ) -> Result<Array<F, IxDyn>, ThreadPoolError>
Parallel sum along axis
Sourcepub fn max<F: Float>(
array: &Array<F, IxDyn>,
config: &ParallelConfig,
) -> Result<F, ThreadPoolError>
pub fn max<F: Float>( array: &Array<F, IxDyn>, config: &ParallelConfig, ) -> Result<F, ThreadPoolError>
Parallel maximum reduction
Sourcepub fn min<F: Float>(
array: &Array<F, IxDyn>,
config: &ParallelConfig,
) -> Result<F, ThreadPoolError>
pub fn min<F: Float>( array: &Array<F, IxDyn>, config: &ParallelConfig, ) -> Result<F, ThreadPoolError>
Parallel minimum reduction
Sourcepub fn mean<F: Float>(
array: &Array<F, IxDyn>,
config: &ParallelConfig,
) -> Result<F, ThreadPoolError>
pub fn mean<F: Float>( array: &Array<F, IxDyn>, config: &ParallelConfig, ) -> Result<F, ThreadPoolError>
Parallel mean reduction
Sourcepub fn variance<F: Float>(
array: &Array<F, IxDyn>,
config: &ParallelConfig,
) -> Result<F, ThreadPoolError>
pub fn variance<F: Float>( array: &Array<F, IxDyn>, config: &ParallelConfig, ) -> Result<F, ThreadPoolError>
Parallel variance reduction
Auto Trait Implementations§
impl Freeze for ParallelReduction
impl RefUnwindSafe for ParallelReduction
impl Send for ParallelReduction
impl Sync for ParallelReduction
impl Unpin for ParallelReduction
impl UnsafeUnpin for ParallelReduction
impl UnwindSafe for ParallelReduction
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