pub struct DaeStructure {
pub n_diff: usize,
pub n_alg: usize,
pub n_diff_eqs: usize,
pub n_alg_eqs: usize,
pub incidence: Vec<Vec<usize>>,
}Expand description
Incidence structure for a DAE system.
Describes which variables appear in which equations, partitioned into differential and algebraic variables.
Fields§
§n_diff: usizeNumber of differential variables (y)
n_alg: usizeNumber of algebraic variables (z)
n_diff_eqs: usizeNumber of differential equations
n_alg_eqs: usizeNumber of algebraic equations (constraints)
incidence: Vec<Vec<usize>>Incidence: for each equation i, the set of variable indices it depends on. Variable indices 0..n_diff are differential, n_diff..n_diff+n_alg are algebraic.
Implementations§
Trait Implementations§
Source§impl Clone for DaeStructure
impl Clone for DaeStructure
Source§fn clone(&self) -> DaeStructure
fn clone(&self) -> DaeStructure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DaeStructure
impl RefUnwindSafe for DaeStructure
impl Send for DaeStructure
impl Sync for DaeStructure
impl Unpin for DaeStructure
impl UnsafeUnpin for DaeStructure
impl UnwindSafe for DaeStructure
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