pub struct Minstarapproxf64 { /* private fields */ }
Expand description
LDPC decoder arithmetic with $f
and the following approximation to
the min* function:
min*(x,y) approx = sign(xy) * [min(|x|,|y|) - log(1 + exp(-||x|-|y||))].
This is a DecoderArithmetic
that uses $f
to represent the LLRs
and messages and computes the check node messages using an approximation
to the min* rule.
See (35) in [1].
Implementations§
Source§impl Minstarapproxf64
impl Minstarapproxf64
Sourcepub fn new() -> Minstarapproxf64
pub fn new() -> Minstarapproxf64
Creates a new [$ty
] decoder arithmetic object.
Trait Implementations§
Source§impl Clone for Minstarapproxf64
impl Clone for Minstarapproxf64
Source§fn clone(&self) -> Minstarapproxf64
fn clone(&self) -> Minstarapproxf64
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Minstarapproxf64
impl Debug for Minstarapproxf64
Source§impl DecoderArithmetic for Minstarapproxf64
impl DecoderArithmetic for Minstarapproxf64
Source§type CheckMessage = f64
type CheckMessage = f64
Check node message. Read more
Source§type VarMessage = f64
type VarMessage = f64
Variable node message. Read more
Source§fn send_check_messages<F>(&mut self, var_messages: &[Message<f64>], send: F)
fn send_check_messages<F>(&mut self, var_messages: &[Message<f64>], send: F)
Send check messages from a check node. Read more
Source§fn send_var_messages<F>(
&mut self,
input_llr: f64,
check_messages: &[Message<f64>],
send: F,
) -> f64
fn send_var_messages<F>( &mut self, input_llr: f64, check_messages: &[Message<f64>], send: F, ) -> f64
Send variable messages from a variable node. Read more
Source§fn update_check_messages_and_vars(
&mut self,
check_messages: &mut [SentMessage<f64>],
vars: &mut [f64],
)
fn update_check_messages_and_vars( &mut self, check_messages: &mut [SentMessage<f64>], vars: &mut [f64], )
Update check messages and variable values for a check node. Read more
Source§impl Default for Minstarapproxf64
impl Default for Minstarapproxf64
Source§fn default() -> Minstarapproxf64
fn default() -> Minstarapproxf64
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Minstarapproxf64
impl RefUnwindSafe for Minstarapproxf64
impl Send for Minstarapproxf64
impl Sync for Minstarapproxf64
impl Unpin for Minstarapproxf64
impl UnwindSafe for Minstarapproxf64
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,
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