pub struct JacobianManager<F: IntegrateFloat> { /* private fields */ }Expand description
Manages Jacobian computation, updates, and reuse
Implementations§
Source§impl<F: IntegrateFloat> JacobianManager<F>
impl<F: IntegrateFloat> JacobianManager<F>
Sourcepub fn with_strategy(
strategy: JacobianStrategy,
structure: JacobianStructure,
) -> Self
pub fn with_strategy( strategy: JacobianStrategy, structure: JacobianStructure, ) -> Self
Create a new Jacobian manager with specific strategy and structure
Sourcepub fn with_auto_strategy(_n_dim: usize, isbanded: bool) -> Self
pub fn with_auto_strategy(_n_dim: usize, isbanded: bool) -> Self
Create a Jacobian manager with automatically selected strategy based on system size and structure
Sourcepub fn needs_update(&self, t: F, y: &Array1<F>, forceage: Option<usize>) -> bool
pub fn needs_update(&self, t: F, y: &Array1<F>, forceage: Option<usize>) -> bool
Check if the Jacobian needs to be recomputed
Sourcepub fn update_jacobian<Func>(
&mut self,
t: F,
y: &Array1<F>,
f: &Func,
scale: Option<F>,
) -> IntegrateResult<&Array2<F>>
pub fn update_jacobian<Func>( &mut self, t: F, y: &Array1<F>, f: &Func, scale: Option<F>, ) -> IntegrateResult<&Array2<F>>
Compute or update the Jacobian matrix
Sourcepub fn jacobian(&mut self) -> Option<&Array2<F>>
pub fn jacobian(&mut self) -> Option<&Array2<F>>
Get the current Jacobian (returns None if not computed)
Sourcepub fn set_max_age(&mut self, _maxage: usize)
pub fn set_max_age(&mut self, _maxage: usize)
Update the age threshold for recomputation
Sourcepub fn mark_factorized(&mut self, factorized: bool)
pub fn mark_factorized(&mut self, factorized: bool)
Mark the Jacobian as factorized
Sourcepub fn is_factorized(&self) -> bool
pub fn is_factorized(&self) -> bool
Check if the Jacobian is factorized
Sourcepub fn update_jacobian_parallel<Func>(
&mut self,
t: F,
y: &Array1<F>,
f: &Func,
scale: Option<F>,
) -> IntegrateResult<&Array2<F>>
pub fn update_jacobian_parallel<Func>( &mut self, t: F, y: &Array1<F>, f: &Func, scale: Option<F>, ) -> IntegrateResult<&Array2<F>>
Compute or update the Jacobian matrix with parallel support This version requires additional trait bounds for parallel computation
Trait Implementations§
Source§impl<F: Clone + IntegrateFloat> Clone for JacobianManager<F>
impl<F: Clone + IntegrateFloat> Clone for JacobianManager<F>
Source§fn clone(&self) -> JacobianManager<F>
fn clone(&self) -> JacobianManager<F>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F: Debug + IntegrateFloat> Debug for JacobianManager<F>
impl<F: Debug + IntegrateFloat> Debug for JacobianManager<F>
Source§impl<F: IntegrateFloat> Default for JacobianManager<F>
impl<F: IntegrateFloat> Default for JacobianManager<F>
Auto Trait Implementations§
impl<F> Freeze for JacobianManager<F>where
F: Freeze,
impl<F> RefUnwindSafe for JacobianManager<F>where
F: RefUnwindSafe,
impl<F> Send for JacobianManager<F>where
F: Send,
impl<F> Sync for JacobianManager<F>where
F: Sync,
impl<F> Unpin for JacobianManager<F>where
F: Unpin,
impl<F> UnwindSafe for JacobianManager<F>where
F: UnwindSafe + RefUnwindSafe,
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