Function nuts_rs::sample_parallel

source ·
pub fn sample_parallel<M: CpuLogpFuncMaker<F> + 'static, F: CpuLogpFunc, I: InitPointFunc, R: Rng + ?Sized>(
    logp_func_maker: M,
    init_point_func: &mut I,
    settings: SamplerArgs,
    n_chains: u64,
    rng: &mut R,
    n_try_init: u64
) -> Result<(JoinHandle<Vec<ParallelChainResult>>, Receiver<(Box<[f64]>, Box<dyn SampleStats>)>), ParallelSamplingError>
Expand description

Sample several chains in parallel and return all of the samples live in a channel