pub struct LogSemiring(/* private fields */);Expand description
A log-space semiring element.
Values are natural logarithms of non-negative weights. Semiring addition is
stable log-sum-exp, multiplication is addition in log space, -inf is zero,
and 0 is one. NaN is rejected at construction because it cannot satisfy
the algebraic contract.
Implementations§
Trait Implementations§
Source§impl Clone for LogSemiring
impl Clone for LogSemiring
Source§fn clone(&self) -> LogSemiring
fn clone(&self) -> LogSemiring
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 moreimpl Copy for LogSemiring
Source§impl Debug for LogSemiring
impl Debug for LogSemiring
Source§impl PartialEq for LogSemiring
impl PartialEq for LogSemiring
Source§impl Semiring for LogSemiring
impl Semiring for LogSemiring
impl StructuralPartialEq for LogSemiring
Auto Trait Implementations§
impl Freeze for LogSemiring
impl RefUnwindSafe for LogSemiring
impl Send for LogSemiring
impl Sync for LogSemiring
impl Unpin for LogSemiring
impl UnsafeUnpin for LogSemiring
impl UnwindSafe for LogSemiring
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