Struct bridgestan::Rng
source · pub struct Rng<T: Borrow<StanLibrary>> { /* private fields */ }Expand description
A random number generator for Stan models.
This is only used in the param_contrain method
of the model when requesting values from the generated quantities block.
Different threads should use different instances.
Implementations§
source§impl<T: Borrow<StanLibrary>> Rng<T>
impl<T: Borrow<StanLibrary>> Rng<T>
pub fn new(lib: T, seed: u32) -> Result<Self, BridgeStanError>
Trait Implementations§
impl<T: Send + Borrow<StanLibrary>> Send for Rng<T>
impl<T: Sync + Borrow<StanLibrary>> Sync for Rng<T>
Auto Trait Implementations§
impl<T> Freeze for Rng<T>where
T: Freeze,
impl<T> RefUnwindSafe for Rng<T>where
T: RefUnwindSafe,
impl<T> Unpin for Rng<T>where
T: Unpin,
impl<T> UnwindSafe for Rng<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more