pub struct SolveStats {
pub calls: usize,
pub hyper_calls: usize,
pub rhs_density_sum: f64,
pub result_density_sum: f64,
}Expand description
Counters of one kind of solve (FTRAN, BTRAN or FTRAN for update),
accumulated over the life of the Lu (not reset by a
factorization). The contract’s mean densities are the methods
SolveStats::mean_rhs_density and
SolveStats::mean_result_density over exact sums (no division per
call).
Fields§
§calls: usizeNumber of calls.
hyper_calls: usizeCalls served by the hypersparse algorithm (HF or HB).
rhs_density_sum: f64Sum over the calls of the right-hand side density count/m.
result_density_sum: f64Sum over the calls of the result density count/m (pattern size:
the reach for hypersparse calls, the exact support otherwise).
Implementations§
Source§impl SolveStats
impl SolveStats
Sourcepub fn mean_rhs_density(&self) -> f64
pub fn mean_rhs_density(&self) -> f64
Mean right-hand side density (0 without calls).
Sourcepub fn mean_result_density(&self) -> f64
pub fn mean_result_density(&self) -> f64
Mean result density (0 without calls).
Sourcepub fn hyper_fraction(&self) -> f64
pub fn hyper_fraction(&self) -> f64
Fraction of the calls served by the hypersparse algorithm.
Trait Implementations§
Source§impl Clone for SolveStats
impl Clone for SolveStats
impl Copy for SolveStats
Source§impl Debug for SolveStats
impl Debug for SolveStats
Source§impl Default for SolveStats
impl Default for SolveStats
Source§impl PartialEq for SolveStats
impl PartialEq for SolveStats
impl StructuralPartialEq for SolveStats
Auto Trait Implementations§
impl Forget for SolveStats
impl Freeze for SolveStats
impl RefUnwindSafe for SolveStats
impl Send for SolveStats
impl Sync for SolveStats
impl Unpin for SolveStats
impl UnsafeUnpin for SolveStats
impl UnwindSafe for SolveStats
Blanket Implementations§
impl<T> Boilerplate for T
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