pub trait ResultExt<F: Float> {
    fn new(nrows: usize, ncols: usize) -> Self;
fn initial_values(&self) -> Vec<F>;
fn set_state(&mut self, i: usize, x: Vec<F>);
fn state(&self, i: usize) -> Vec<F>;
fn result(&self, i: usize) -> Vec<F>; }
Expand description

An extension trait for the Result type

Required methods

Initialize a matrix with nrows rows and ncols columns

Get initial values

Set the i-th state of the system

Get the i-th state of the system

Get the i-th result vector

Implementors