pub struct TransitionMatrix {
pub data: Vec<Vec<f64>>,
pub size: usize,
}Expand description
Row-stochastic transition matrix P where P[i][j] = P(next = j | current = i).
Fields§
§data: Vec<Vec<f64>>Flattened row-major storage of the matrix.
size: usizeNumber of states.
Implementations§
Trait Implementations§
Source§impl Clone for TransitionMatrix
impl Clone for TransitionMatrix
Source§fn clone(&self) -> TransitionMatrix
fn clone(&self) -> TransitionMatrix
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TransitionMatrix
impl RefUnwindSafe for TransitionMatrix
impl Send for TransitionMatrix
impl Sync for TransitionMatrix
impl Unpin for TransitionMatrix
impl UnsafeUnpin for TransitionMatrix
impl UnwindSafe for TransitionMatrix
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