pub struct OdeResult<T: Float> {
pub t: Vec<T>,
pub y: Vec<Vec<T>>,
pub n_evals: usize,
pub n_steps: usize,
pub success: bool,
}Expand description
Result of an ODE integration.
§Examples
let result = euler(|_t, y: &[f64]| vec![-y[0]], [0.0, 1.0], &[1.0], &OdeOptions::default()).unwrap();
assert!(result.success);
assert!(!result.t.is_empty());Fields§
§t: Vec<T>Time values at each accepted step.
y: Vec<Vec<T>>Solution vectors at each accepted step. y[i] corresponds to t[i].
n_evals: usizeTotal number of function evaluations.
n_steps: usizeTotal number of accepted steps.
success: boolWhether the integration completed successfully.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for OdeResult<T>
impl<T> RefUnwindSafe for OdeResult<T>where
T: RefUnwindSafe,
impl<T> Send for OdeResult<T>
impl<T> Sync for OdeResult<T>
impl<T> Unpin for OdeResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for OdeResult<T>
impl<T> UnwindSafe for OdeResult<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