pub struct SvdPullback { /* private fields */ }Implementations§
Source§impl SvdPullback
impl SvdPullback
Sourcepub fn values_backward(&self, ds: &[f64]) -> Result<Matrix, SolverError>
pub fn values_backward(&self, ds: &[f64]) -> Result<Matrix, SolverError>
Singular-value-only VJP. Rejects zero/repeated values rather than returning an arbitrary nonsmooth derivative. Values gradients must be finite.
Sourcepub fn backward(
&self,
du: MatrixView<'_>,
ds: &[f64],
dvt: MatrixView<'_>,
) -> Result<Matrix, SolverError>
pub fn backward( &self, du: MatrixView<'_>, ds: &[f64], dvt: MatrixView<'_>, ) -> Result<Matrix, SolverError>
Full thin-SVD VJP for nonzero, distinct singular values. Singular vector signs/bases must be used consistently with this exact forward result.
Trait Implementations§
Source§impl Clone for SvdPullback
impl Clone for SvdPullback
Source§fn clone(&self) -> SvdPullback
fn clone(&self) -> SvdPullback
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SvdPullback
impl RefUnwindSafe for SvdPullback
impl Send for SvdPullback
impl Sync for SvdPullback
impl Unpin for SvdPullback
impl UnsafeUnpin for SvdPullback
impl UnwindSafe for SvdPullback
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