pub struct EdgeSensitivity {
pub gap_delta: f64,
pub nullity_before: usize,
pub nullity_after: usize,
}Expand description
Both deltas for one candidate edge (Paper II Lemma 2).
Fields§
§gap_delta: f64Change in the spectral gap λ⁺_min.
nullity_before: usizedim ker(A) before and after: a shrink is Lemma 2’s second lever.
nullity_after: usizeImplementations§
Source§impl EdgeSensitivity
impl EdgeSensitivity
Sourcepub fn earns_cost(&self, tol: f64) -> bool
pub fn earns_cost(&self, tol: f64) -> bool
Whether the candidate verifier earns its cost by either lever.
Trait Implementations§
Source§impl Clone for EdgeSensitivity
impl Clone for EdgeSensitivity
Source§fn clone(&self) -> EdgeSensitivity
fn clone(&self) -> EdgeSensitivity
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 moreSource§impl Debug for EdgeSensitivity
impl Debug for EdgeSensitivity
Source§impl PartialEq for EdgeSensitivity
impl PartialEq for EdgeSensitivity
Source§fn eq(&self, other: &EdgeSensitivity) -> bool
fn eq(&self, other: &EdgeSensitivity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for EdgeSensitivity
impl StructuralPartialEq for EdgeSensitivity
Auto Trait Implementations§
impl Freeze for EdgeSensitivity
impl RefUnwindSafe for EdgeSensitivity
impl Send for EdgeSensitivity
impl Sync for EdgeSensitivity
impl Unpin for EdgeSensitivity
impl UnsafeUnpin for EdgeSensitivity
impl UnwindSafe for EdgeSensitivity
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,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.