pub struct RandomizedSvdConfig {
pub rank: usize,
pub oversampling: usize,
pub power_iterations: usize,
pub rng_engine: RngEngine,
pub seed: u64,
}Expand description
Randomized SVD configuration.
Fields§
§rank: usizeTarget rank (number of singular values to compute).
oversampling: usizeOversampling parameter (typically 5-10).
power_iterations: usizeNumber of power iterations for accuracy (typically 0-2).
rng_engine: RngEngineRNG engine for random matrix generation.
seed: u64Seed for reproducibility.
Implementations§
Source§impl RandomizedSvdConfig
impl RandomizedSvdConfig
Sourcepub fn oversampling(self, p: usize) -> Self
pub fn oversampling(self, p: usize) -> Self
Sets the oversampling parameter.
Sourcepub fn power_iterations(self, q: usize) -> Self
pub fn power_iterations(self, q: usize) -> Self
Sets the number of power iterations.
Sourcepub fn sampling_dim(&self) -> usize
pub fn sampling_dim(&self) -> usize
Returns the total sampling dimension: rank + oversampling.
Trait Implementations§
Source§impl Clone for RandomizedSvdConfig
impl Clone for RandomizedSvdConfig
Source§fn clone(&self) -> RandomizedSvdConfig
fn clone(&self) -> RandomizedSvdConfig
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 moreSource§impl Debug for RandomizedSvdConfig
impl Debug for RandomizedSvdConfig
Auto Trait Implementations§
impl Freeze for RandomizedSvdConfig
impl RefUnwindSafe for RandomizedSvdConfig
impl Send for RandomizedSvdConfig
impl Sync for RandomizedSvdConfig
impl Unpin for RandomizedSvdConfig
impl UnsafeUnpin for RandomizedSvdConfig
impl UnwindSafe for RandomizedSvdConfig
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