pub fn time_series<'a, S, TEO>(
    x0: ArrayBase<S, TEO::Dim>,
    teo: &'a mut TEO,
) -> TimeSeries<'a, S, TEO>
where
    S: DataMut<Elem = TEO::Scalar> + Data + RawDataClone,
    TEO: TimeEvolution,
{
    TimeSeries {
        state: x0,
        teo: teo,
    }
}
/// Generate an iterator representing the time-series of the given EoM.
///
/// This funtion genreates an iterator which behave as an infinite lazy stream of
/// time series of the equation-of-motion. You can utilize functionality of `Iterator`
/// to operate the time series.
///
/// Example
/// ---------
///
/// ```rust
/// # extern crate eom;
/// # extern crate ndarray;
/// # use ndarray::arr1;
/// # use eom::*;
/// # use eom::traits::*;
/// # fn main() {
/// let dt = 0.01;
/// let eom = ode::Lorenz63::default();
/// let mut teo = explicit::RK4::new(eom, dt);
/// let ts = adaptor::time_series(arr1(&[1.0, 0.0, 0.0]), &mut teo);
/// let end_time = 10000;
/// println!("time,x,y,z");
/// for (t, v) in ts.take(end_time).enumerate() {
///     println!("{},{},{},{}", t as f64 * dt, v[0], v[1], v[2]);
/// }
/// # }
/// ```
Generate an iterator representing the time-series of the given EoM.
This funtion genreates an iterator which behave as an infinite lazy stream of
time series of the equation-of-motion. You can utilize functionality of `Iterator`
to operate the time series.

Example


Generate an iterator representing the time - series of the given EoM . This funtion genreates an iterator which behave as an infinite lazy stream of time series of the equation - of - motion . You can utilize functionality of ` Iterator ` to operate the time series . Example
pub fn time_series<'a, S, TEO>(
    x0: ArrayBase<S, TEO::Dim>,
    teo: &'a mut TEO,
) -> TimeSeries<'a, S, TEO>
where
    S: DataMut<Elem = TEO::Scalar> + Data + RawDataClone,
    TEO: TimeEvolution,
{
    TimeSeries {
        state: x0,
        teo: teo,
    }
}
pub fn time_series < ' a , S , TEO > ( x0 : ArrayBase < S , TEO :: Dim > , teo : & ' a mut TEO , ) -> TimeSeries < ' a , S , TEO > where S : DataMut < Elem = TEO :: Scalar > + Data + RawDataClone , TEO : TimeEvolution , { TimeSeries { state : x0 , teo : teo , } }
Generate an iterator representing the time-series of the given EoM.
Generate an iterator representing the time - series of the given EoM .
x0
ArrayBase<S, TEO::Dim>
teo
&'a mut TEO
x0
ArrayBase<S, TEO::Dim>
teo
&'a mut TEO
extern crate eom;
None
extern crate ndarray;
None
use ndarray::arr1;
None
use eom::*;
None
use eom::traits::*;
None
fn main() {
None
}
None