pub struct DdeResult<S: Scalar> {
pub t: Vec<S>,
pub y: Vec<S>,
pub dim: usize,
pub stats: DdeStats,
pub success: bool,
pub message: String,
}Expand description
Result of DDE 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: DdeStatsSolver statistics
success: boolWas integration successful?
message: StringMessage (error description if failed)
Implementations§
Source§impl<S: Scalar> DdeResult<S>
impl<S: Scalar> DdeResult<S>
pub fn new(t: Vec<S>, y: Vec<S>, dim: usize, stats: DdeStats) -> Self
pub fn failed(message: String, stats: DdeStats) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn t_final(&self) -> Option<S>
pub fn y_final(&self) -> Option<Vec<S>>
pub fn y_at(&self, i: usize) -> &[S]
pub fn iter(&self) -> impl Iterator<Item = (S, &[S])>
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for DdeResult<S>
impl<S> RefUnwindSafe for DdeResult<S>where
S: RefUnwindSafe,
impl<S> Send for DdeResult<S>
impl<S> Sync for DdeResult<S>
impl<S> Unpin for DdeResult<S>where
S: Unpin,
impl<S> UnsafeUnpin for DdeResult<S>
impl<S> UnwindSafe for DdeResult<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