pub fn sample_sequentially<'math, M: Math + 'math, R: Rng + ?Sized>(
math: M,
settings: DiagGradNutsSettings,
start: &[f64],
draws: u64,
chain: u64,
rng: &mut R,
) -> Result<impl Iterator<Item = Result<(Box<[f64]>, Progress)>> + 'math>