pub enum Sketch {
PowerIteration {
iterations: usize,
},
BlockKrylov {
blocks: usize,
},
}Expand description
The sketching strategy.
Variants§
PowerIteration
Y = (A·Aᵀ)^q·A·Ω, keeping only the final block.
Basis width is rank + oversamples.
BlockKrylov
K = [A·Ω, (A·Aᵀ)A·Ω, …, (A·Aᵀ)^(b-1)·A·Ω], keeping every block.
Basis width is blocks · (rank + oversamples), so memory scales with blocks.
Two to four blocks is usually the sweet spot.
Trait Implementations§
impl Copy for Sketch
impl Eq for Sketch
impl StructuralPartialEq for Sketch
Auto Trait Implementations§
impl Freeze for Sketch
impl RefUnwindSafe for Sketch
impl Send for Sketch
impl Sync for Sketch
impl Unpin for Sketch
impl UnsafeUnpin for Sketch
impl UnwindSafe for Sketch
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