#[non_exhaustive]pub struct PinvOptions {
pub rtol: Option<f64>,
}Expand description
Options for the Moore-Penrose pseudoinverse.
§Examples
use tenferro_linalg::PinvOptions;
assert_eq!(PinvOptions::default().rtol, None);
assert_eq!(PinvOptions::default().rtol(Some(1.0e-10)).rtol, Some(1.0e-10));Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rtol: Option<f64>Relative singular-value cutoff. None uses eps * max(m, n) of the
input dtype; Some(rtol) uses rtol (negative values act as zero).
Implementations§
Trait Implementations§
Source§impl Clone for PinvOptions
impl Clone for PinvOptions
impl Copy for PinvOptions
Source§impl Debug for PinvOptions
impl Debug for PinvOptions
Source§impl Default for PinvOptions
impl Default for PinvOptions
Source§impl PartialEq for PinvOptions
impl PartialEq for PinvOptions
impl StructuralPartialEq for PinvOptions
Auto Trait Implementations§
impl Freeze for PinvOptions
impl RefUnwindSafe for PinvOptions
impl Send for PinvOptions
impl Sync for PinvOptions
impl Unpin for PinvOptions
impl UnsafeUnpin for PinvOptions
impl UnwindSafe for PinvOptions
Blanket Implementations§
impl<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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