pub struct Tanhf32 { /* 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 Tanhf32
impl DecoderArithmetic for Tanhf32
Source§type CheckMessage = f32
type CheckMessage = f32
Check node message. Read more
Source§type VarMessage = f32
type VarMessage = f32
Variable node message. Read more
Source§fn send_check_messages<F>(&mut self, var_messages: &[Message<f32>], send: F)
fn send_check_messages<F>(&mut self, var_messages: &[Message<f32>], send: F)
Send check messages from a check node. Read more
Source§fn send_var_messages<F>(
&mut self,
input_llr: f32,
check_messages: &[Message<f32>],
send: F,
) -> f32
fn send_var_messages<F>( &mut self, input_llr: f32, check_messages: &[Message<f32>], send: F, ) -> f32
Send variable messages from a variable node. Read more
Source§fn update_check_messages_and_vars(
&mut self,
check_messages: &mut [SentMessage<f32>],
vars: &mut [f32],
)
fn update_check_messages_and_vars( &mut self, check_messages: &mut [SentMessage<f32>], vars: &mut [f32], )
Update check messages and variable values for a check node. Read more
Auto Trait Implementations§
impl Freeze for Tanhf32
impl RefUnwindSafe for Tanhf32
impl Send for Tanhf32
impl Sync for Tanhf32
impl Unpin for Tanhf32
impl UnwindSafe for Tanhf32
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