Struct PillarSolve
pub struct PillarSolve {
pub pillar: usize,
pub iterations: usize,
pub backtracks: usize,
pub residual: f64,
}Expand description
The result of one pillar’s solve, for a caller that wants to see the work.
Fields§
§pillar: usizeWhich pillar, counting from the short end.
iterations: usizeHow many Newton steps it took.
backtracks: usizeHow many times a step was halved because the full one would have made the residual worse.
Counted apart from iterations on purpose: they are different costs,
and folding them together would quietly change what an iteration count
means to everything that reads one. Zero on a well-conditioned ladder.
residual: f64The residual it finished at.
Implementations§
§impl PillarSolve
impl PillarSolve
fn absorb(&mut self, solved: &SolvedPillar)
fn absorb(&mut self, solved: &SolvedPillar)
Adds a re-solve’s steps, so the report says what the whole solve cost, not what its last sweep did; the residual is the latest.
Trait Implementations§
§impl Clone for PillarSolve
impl Clone for PillarSolve
§fn clone(&self) -> PillarSolve
fn clone(&self) -> PillarSolve
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 moreimpl Copy for PillarSolve
§impl Debug for PillarSolve
impl Debug for PillarSolve
§impl PartialEq for PillarSolve
impl PartialEq for PillarSolve
impl StructuralPartialEq for PillarSolve
Auto Trait Implementations§
impl Freeze for PillarSolve
impl RefUnwindSafe for PillarSolve
impl Send for PillarSolve
impl Sync for PillarSolve
impl Unpin for PillarSolve
impl UnsafeUnpin for PillarSolve
impl UnwindSafe for PillarSolve
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