pub struct RipVerifier {
pub sparsity: usize,
pub num_trials: usize,
}Expand description
Verifier for the Restricted Isometry Property (RIP) of a matrix.
Checks the RIP-s condition: for all s-sparse vectors x, (1 - delta) ||x||^2 <= ||Ax||^2 <= (1 + delta) ||x||^2.
Uses a greedy approximation by testing random sparse vectors.
Fields§
§sparsity: usizeSparsity level s to check.
num_trials: usizeNumber of random tests to perform.
Implementations§
Source§impl RipVerifier
impl RipVerifier
Sourcepub fn estimate_rip_constant(&self, a: &[Vec<f64>]) -> (f64, f64)
pub fn estimate_rip_constant(&self, a: &[Vec<f64>]) -> (f64, f64)
Estimate the RIP constant delta_s for matrix A by testing sparse vectors.
Returns (delta_lower, delta_upper): the tightest bounds found over trials.
A small delta_upper < 1 indicates A likely satisfies RIP-s.
Trait Implementations§
Source§impl Clone for RipVerifier
impl Clone for RipVerifier
Source§fn clone(&self) -> RipVerifier
fn clone(&self) -> RipVerifier
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 moreAuto Trait Implementations§
impl Freeze for RipVerifier
impl RefUnwindSafe for RipVerifier
impl Send for RipVerifier
impl Sync for RipVerifier
impl Unpin for RipVerifier
impl UnsafeUnpin for RipVerifier
impl UnwindSafe for RipVerifier
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