pub struct SvdvalsResidual {
u: Mat<Complex>,
v: Mat<Complex>,
values: Vec<f64>,
}Expand description
What svdvals saves for its derivatives: the thin singular vectors and the singular
values.
Fields§
§u: Mat<Complex>§v: Mat<Complex>§values: Vec<f64>Implementations§
Source§impl SvdvalsResidual
impl SvdvalsResidual
Sourcepub fn values(&self) -> &[f64]
pub fn values(&self) -> &[f64]
The singular values, in descending order, which the pullback reads.
Sourcepub fn pushforward(&self, operator: &DMatrix<Complex>) -> Result<Vec<f64>>
pub fn pushforward(&self, operator: &DMatrix<Complex>) -> Result<Vec<f64>>
Singular-value tangents Re(uᴴ dA v) for simple positive singular values.
The ordered individual singular values have no linear derivative at repeated
or zero values. Unlike the pullback of a smooth spectral sum, a pushforward
returns each individual derivative and therefore rejects these cases.
Values within 64 ε of the largest value’s scale are numerically unresolved
and are treated as zero, including roundoff from rank-deficient matrices.
Trait Implementations§
Source§impl Debug for SvdvalsResidual
impl Debug for SvdvalsResidual
Source§impl SavedState for SvdvalsResidual
impl SavedState for SvdvalsResidual
Auto Trait Implementations§
impl Freeze for SvdvalsResidual
impl RefUnwindSafe for SvdvalsResidual
impl Send for SvdvalsResidual
impl Sync for SvdvalsResidual
impl Unpin for SvdvalsResidual
impl UnwindSafe for SvdvalsResidual
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
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.