pub struct SolverResult<S: Scalar> {
pub t: Vec<S>,
pub y: Vec<S>,
pub dim: usize,
pub stats: SolverStats,
pub success: bool,
pub message: String,
pub events: Vec<Event<S>>,
pub terminated_by_event: bool,
pub dense_output: Option<DenseOutput<S>>,
}Expand description
Result of ODE integration.
Fields§
§t: Vec<S>Time points
y: Vec<S>Solution at each time point (row-major: y[i*dim + j] = y_j(t_i))
dim: usizeDimension of the system
stats: SolverStatsSolver statistics
success: boolWas integration successful?
message: StringMessage (error description if failed)
events: Vec<Event<S>>Detected events during integration
terminated_by_event: boolWhether integration was terminated by a Stop event
dense_output: Option<DenseOutput<S>>Dense output for continuous interpolation (populated when SolverOptions::dense() was set).
Implementations§
Source§impl<S: Scalar> SolverResult<S>
impl<S: Scalar> SolverResult<S>
Sourcepub fn new(t: Vec<S>, y: Vec<S>, dim: usize, stats: SolverStats) -> Self
pub fn new(t: Vec<S>, y: Vec<S>, dim: usize, stats: SolverStats) -> Self
Create a new successful result.
Sourcepub fn failed(message: String, stats: SolverStats) -> Self
pub fn failed(message: String, stats: SolverStats) -> Self
Create a failed result.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for SolverResult<S>where
S: Freeze,
impl<S> RefUnwindSafe for SolverResult<S>where
S: RefUnwindSafe,
impl<S> Send for SolverResult<S>
impl<S> Sync for SolverResult<S>
impl<S> Unpin for SolverResult<S>where
S: Unpin,
impl<S> UnsafeUnpin for SolverResult<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for SolverResult<S>where
S: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more