pub struct SvdOptions {
pub max_rank: Option<usize>,
pub cutoff: Option<f64>,
}Expand description
Options for truncated SVD.
When both max_rank and cutoff are specified, the more restrictive
constraint applies.
§Examples
use tenferro_linalg::SvdOptions;
// Keep at most 10 singular values above 1e-12
let opts = SvdOptions {
max_rank: Some(10),
cutoff: Some(1e-12),
};Fields§
§max_rank: Option<usize>Maximum number of singular values to keep. None means no limit.
cutoff: Option<f64>Discard singular values below this threshold. None means no cutoff.
Trait Implementations§
Source§impl Clone for SvdOptions
impl Clone for SvdOptions
Source§fn clone(&self) -> SvdOptions
fn clone(&self) -> SvdOptions
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 SvdOptions
impl Debug for SvdOptions
Auto Trait Implementations§
impl Freeze for SvdOptions
impl RefUnwindSafe for SvdOptions
impl Send for SvdOptions
impl Sync for SvdOptions
impl Unpin for SvdOptions
impl UnwindSafe for SvdOptions
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