pub struct RangeOptions {
pub oversampling: usize,
pub power_iterations: usize,
}Expand description
Sketch size and numerical stabilization for a Gaussian range finder.
Unlike SVD truncation policies, these options do not promise an error
tolerance. RsvdOptions adds the requested output rank for RSVD.
§Examples
use tensor4all_core::RangeOptions;
let options = RangeOptions::default();
assert_eq!(options.oversampling, 8);
assert_eq!(options.power_iterations, 1);Fields§
§oversampling: usizeExtra Gaussian columns beyond the requested rank, capped at the matrix
dimensions. Eight is a useful default; use zero for a rank-k projector.
power_iterations: usizeStabilized power iterations, with QR on both sides of each iteration. One is the default; zero costs less, two can help slowly decaying spectra.
Trait Implementations§
Source§impl Clone for RangeOptions
impl Clone for RangeOptions
impl Copy for RangeOptions
Source§impl Debug for RangeOptions
impl Debug for RangeOptions
Source§impl Default for RangeOptions
impl Default for RangeOptions
impl Eq for RangeOptions
Source§impl PartialEq for RangeOptions
impl PartialEq for RangeOptions
impl StructuralPartialEq for RangeOptions
Auto Trait Implementations§
impl Freeze for RangeOptions
impl RefUnwindSafe for RangeOptions
impl Send for RangeOptions
impl Sync for RangeOptions
impl Unpin for RangeOptions
impl UnsafeUnpin for RangeOptions
impl UnwindSafe for RangeOptions
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreimpl<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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T, U> Imply<T> for U
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