Trait labrador_ldpc::decoder::DecodeFrom
[−]
[src]
pub trait DecodeFrom: Sized + Clone + Copy + PartialEq + PartialOrd + Add + AddAssign + Neg<Output = Self> + Sub<Output = Self> { fn one() -> Self; fn zero() -> Self; fn maxval() -> Self; fn abs(&self) -> Self; fn saturating_add(&self, other: Self) -> Self; }
Trait for types that the min-sum decoder can operate with.
Implemented for i8
, i16
, i32
, f32
, and f64
.
Required Methods
fn one() -> Self
1 in T
fn zero() -> Self
0 in T
fn maxval() -> Self
Maximum value T can represent
fn abs(&self) -> Self
Absolute value of self
fn saturating_add(&self, other: Self) -> Self
Saturating add
Implementors
impl DecodeFrom for i8
impl DecodeFrom for i16
impl DecodeFrom for i32
impl DecodeFrom for f32
impl DecodeFrom for f64