pub struct SvdCotangent<T: Scalar, R: Scalar = T> {
pub u: Option<Tensor<T>>,
pub s: Option<Tensor<R>>,
pub vt: Option<Tensor<T>>,
}Expand description
Cotangent (adjoint) for SVD outputs.
§Examples
use tenferro_linalg::SvdCotangent;
let cotangent = SvdCotangent::<f64> {
u: None,
s: None,
vt: None,
};
assert!(cotangent.s.is_none());Fields§
§u: Option<Tensor<T>>Cotangent for u.
s: Option<Tensor<R>>Cotangent for s.
vt: Option<Tensor<T>>Cotangent for vt.
Trait Implementations§
Auto Trait Implementations§
impl<T, R> Freeze for SvdCotangent<T, R>
impl<T, R = T> !RefUnwindSafe for SvdCotangent<T, R>
impl<T, R> Send for SvdCotangent<T, R>
impl<T, R> Sync for SvdCotangent<T, R>
impl<T, R> Unpin for SvdCotangent<T, R>
impl<T, R = T> !UnwindSafe for SvdCotangent<T, R>
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
§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