Struct ldpc_toolbox::decoder::arithmetic::Tanhf64
source · pub struct Tanhf64 { /* private fields */ }
Expand description
LDPC decoder arithmetic with $f
and 2 * atanh(\Prod tanh(x/2)
rule.
This is a DecoderArithmetic
that uses $f
to represent the LLRs
and messages and computes the check node messages using the usual
tanh product rule.
See (33) in [1].
Implementations§
Trait Implementations§
source§impl DecoderArithmetic for Tanhf64
impl DecoderArithmetic for Tanhf64
§type CheckMessage = f64
type CheckMessage = f64
Check node message. Read more
§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)where
F: FnMut(SentMessage<f64>),
fn send_check_messages<F>(&mut self, var_messages: &[Message<f64>], send: F)where F: FnMut(SentMessage<f64>),
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
) -> f64where
F: FnMut(SentMessage<f64>),
fn send_var_messages<F>( &mut self, input_llr: f64, check_messages: &[Message<f64>], send: F ) -> f64where F: FnMut(SentMessage<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
Auto Trait Implementations§
impl RefUnwindSafe for Tanhf64
impl Send for Tanhf64
impl Sync for Tanhf64
impl Unpin for Tanhf64
impl UnwindSafe for Tanhf64
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