pub trait ParallelMetric<T, D>{
// Required method
fn compute_parallel(
&self,
x: &ArrayBase<impl Data<Elem = T>, D>,
config: &ParallelConfig,
) -> Result<f64>;
}Expand description
Trait for metrics that can be computed in parallel
Required Methods§
Sourcefn compute_parallel(
&self,
x: &ArrayBase<impl Data<Elem = T>, D>,
config: &ParallelConfig,
) -> Result<f64>
fn compute_parallel( &self, x: &ArrayBase<impl Data<Elem = T>, D>, config: &ParallelConfig, ) -> Result<f64>
Compute the metric in parallel
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.