pub struct SvdOptions {
pub truncation: TruncationParams,
}Expand description
Options for SVD decomposition with truncation control.
Fields§
§truncation: TruncationParamsTruncation parameters (rtol, max_rank).
Implementations§
Source§impl SvdOptions
impl SvdOptions
Sourcepub fn with_max_rank(max_rank: usize) -> Self
pub fn with_max_rank(max_rank: usize) -> Self
Create new SVD options with the specified max_rank.
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
Source§impl Default for SvdOptions
impl Default for SvdOptions
Source§fn default() -> SvdOptions
fn default() -> SvdOptions
Returns the “default value” for a type. Read more
Source§impl HasTruncationParams for SvdOptions
impl HasTruncationParams for SvdOptions
Source§fn truncation_params(&self) -> &TruncationParams
fn truncation_params(&self) -> &TruncationParams
Get a reference to the truncation parameters.
Source§fn truncation_params_mut(&mut self) -> &mut TruncationParams
fn truncation_params_mut(&mut self) -> &mut TruncationParams
Get a mutable reference to the truncation parameters.
Source§fn with_rtol(self, rtol: f64) -> Selfwhere
Self: Sized,
fn with_rtol(self, rtol: f64) -> Selfwhere
Self: Sized,
Set the rtol value (builder pattern). Read more
Source§fn with_max_rank(self, max_rank: usize) -> Selfwhere
Self: Sized,
fn with_max_rank(self, max_rank: usize) -> Selfwhere
Self: Sized,
Set the max_rank value (builder pattern).
Source§fn with_cutoff(self, cutoff: f64) -> Selfwhere
Self: Sized,
fn with_cutoff(self, cutoff: f64) -> Selfwhere
Self: Sized,
Set cutoff (ITensorMPS.jl convention, builder pattern). Read more
Source§fn with_maxdim(self, maxdim: usize) -> Selfwhere
Self: Sized,
fn with_maxdim(self, maxdim: usize) -> Selfwhere
Self: Sized,
Set maxdim (alias for max_rank, builder pattern).
Source§fn set_cutoff(&mut self, cutoff: f64)
fn set_cutoff(&mut self, cutoff: f64)
Set cutoff via mutable reference.
Source§fn set_maxdim(&mut self, maxdim: usize)
fn set_maxdim(&mut self, maxdim: usize)
Set maxdim via mutable reference (alias for max_rank).
impl Copy 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§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
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 moreSource§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,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
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