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