pub struct FirstOrderSystem<F: IntegrateFloat> {
pub state_vars: Vec<Variable>,
pub expressions: Vec<SymbolicExpression<F>>,
pub variable_map: HashMap<String, Variable>,
}Expand description
Result of converting a higher-order ODE to first-order system
Fields§
§state_vars: Vec<Variable>The state variables (y[0] = x, y[1] = x’, y[2] = x’’, etc.)
expressions: Vec<SymbolicExpression<F>>The expressions for dy/dt
variable_map: HashMap<String, Variable>Mapping from derivative notation to state variables
Implementations§
Source§impl<F: IntegrateFloat> FirstOrderSystem<F>
impl<F: IntegrateFloat> FirstOrderSystem<F>
Sourcepub fn to_function(
&self,
) -> impl Fn(F, ArrayView1<'_, F>) -> IntegrateResult<Array1<F>>
pub fn to_function( &self, ) -> impl Fn(F, ArrayView1<'_, F>) -> IntegrateResult<Array1<F>>
Convert to a function suitable for ODE solvers
Auto Trait Implementations§
impl<F> Freeze for FirstOrderSystem<F>
impl<F> RefUnwindSafe for FirstOrderSystem<F>where
F: RefUnwindSafe,
impl<F> Send for FirstOrderSystem<F>where
F: Send,
impl<F> Sync for FirstOrderSystem<F>where
F: Sync,
impl<F> Unpin for FirstOrderSystem<F>where
F: Unpin,
impl<F> UnsafeUnpin for FirstOrderSystem<F>
impl<F> UnwindSafe for FirstOrderSystem<F>where
F: 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> 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