pub struct Slogdet<V, R = V> {
pub sign: V,
pub log_abs_det: R,
}Expand description
Sign and log-absolute-value of the determinant.
Field order equals the former tuple order (sign, log|det|).
sign: sign (or phase) of the determinantlog_abs_det:log|det|
§Examples
use tenferro_linalg::Slogdet;
let r = Slogdet { sign: 1, log_abs_det: 2.0 };
let Slogdet { sign, log_abs_det } = r;
assert_eq!((sign, log_abs_det), (1, 2.0));Fields§
§sign: VSee the type-level documentation.
log_abs_det: RSee the type-level documentation.
Trait Implementations§
Auto Trait Implementations§
impl<V, R> Freeze for Slogdet<V, R>
impl<V, R> RefUnwindSafe for Slogdet<V, R>where
V: RefUnwindSafe,
R: RefUnwindSafe,
impl<V, R> Send for Slogdet<V, R>
impl<V, R> Sync for Slogdet<V, R>
impl<V, R> Unpin for Slogdet<V, R>
impl<V, R> UnsafeUnpin for Slogdet<V, R>where
V: UnsafeUnpin,
R: UnsafeUnpin,
impl<V, R> UnwindSafe for Slogdet<V, R>where
V: UnwindSafe,
R: UnwindSafe,
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> 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