ParallelMetric

Trait ParallelMetric 

Source
pub trait ParallelMetric<T, D>
where T: Send + Sync, D: Dimension,
{ // 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§

Source

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.

Implementors§