Skip to main content

eval_batch_parallel

Function eval_batch_parallel 

Source
pub fn eval_batch_parallel<O>(obj: &O, x: ArrayView2<'_, f64>) -> Array1<f64>
where O: Objective<f64> + ?Sized,
Expand description

Parallel multi-walker / multi-start batch evaluation for Objective<f64>.

Uses Rayon when x.nrows() >= EVAL_BATCH_PARALLEL_MIN. Prefer Objective::eval_batch when the implementor has a specialized batch path (Python/CUTEst); this helper is the native Sync hot path.