pub struct CholUpdateConfig {
pub check_positive_definite: bool,
pub tolerance: f64,
}Expand description
Configuration for Cholesky update/downdate operations.
Controls numerical checks and tolerances used during the modification of a Cholesky factorization.
§Example
use scirs2_sparse::cholesky_update::CholUpdateConfig;
let config = CholUpdateConfig {
check_positive_definite: true,
tolerance: 1e-12,
};Fields§
§check_positive_definite: boolWhether to verify positive definiteness of the result.
When true, the algorithm checks that all diagonal elements of the
updated factor remain positive, returning an error if the result
would be indefinite (particularly relevant for downdates).
tolerance: f64Numerical tolerance for zero-checks and stability decisions.
Diagonal elements below this threshold are considered numerically zero, triggering a positive-definiteness failure when checking is enabled.
Trait Implementations§
Source§impl Clone for CholUpdateConfig
impl Clone for CholUpdateConfig
Source§fn clone(&self) -> CholUpdateConfig
fn clone(&self) -> CholUpdateConfig
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 Debug for CholUpdateConfig
impl Debug for CholUpdateConfig
Source§impl Default for CholUpdateConfig
impl Default for CholUpdateConfig
impl Copy for CholUpdateConfig
Auto Trait Implementations§
impl Freeze for CholUpdateConfig
impl RefUnwindSafe for CholUpdateConfig
impl Send for CholUpdateConfig
impl Sync for CholUpdateConfig
impl Unpin for CholUpdateConfig
impl UnsafeUnpin for CholUpdateConfig
impl UnwindSafe for CholUpdateConfig
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