Trait nuts_rs::CpuLogpFunc

source ·
pub trait CpuLogpFunc {
    type LogpError: Debug + Send + Sync + Error + LogpError + 'static;

    // Required methods
    fn dim(&self) -> usize;
    fn logp(
        &mut self,
        position: &[f64],
        gradient: &mut [f64],
    ) -> Result<f64, Self::LogpError>;
}

Required Associated Types§

source

type LogpError: Debug + Send + Sync + Error + LogpError + 'static

Required Methods§

source

fn dim(&self) -> usize

source

fn logp( &mut self, position: &[f64], gradient: &mut [f64], ) -> Result<f64, Self::LogpError>

Implementors§