pub struct Codeword<F: GaloisField> { /* private fields */ }
Expand description
Codeword in a Galois field.
Implementations
Construct a new Codeword
αi from the given bit pattern. Panic if the
pattern is invalid in the field.
Construct a new Codeword
αm ≡ αi (modulo the field) for
the given power i.
Retrieve the power i of the current codeword αi. Return Some(i)
if
the power is defined and None
if the codeword is zero.
Find 1/αi for the current codeword αi. Panic if the codeword is zero.
Trait Implementations
Add codewords using Galois addition.
Divide codewords using Galois division. Panic if the divisor is zero.
Mutiply codewords using Galois multiplication.
Scale polynomial by a codeword.
type Output = Polynomial<P>
type Output = Polynomial<P>
The resulting type after applying the *
operator.
Performs the *
operation. Read more
Check equality of two codewords.
Check equality of the codeword’s bit pattern with raw bits.
“Subtract” codewords, which is equivalent to addition.
Auto Trait Implementations
impl<F> RefUnwindSafe for Codeword<F> where
F: RefUnwindSafe,
impl<F> UnwindSafe for Codeword<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more