Struct lpn::codes::ConcatenatedCode [−][src]
‘Concatenated’ Linear Codes
This struct allows to construct a Linear code from the direct sum of smaller codes.
It will construct the generator matrix lazily and use the encode and decode mechanism of the ‘child’ codes.
Implementations
impl<'codes> ConcatenatedCode<'codes>
[src]
pub fn new(codes: Vec<&'codes dyn BinaryCode>) -> ConcatenatedCode<'codes>
[src]
Trait Implementations
impl<'codes> BinaryCode for ConcatenatedCode<'codes>
[src]
fn name(&self) -> String
[src]
fn length(&self) -> usize
[src]
fn dimension(&self) -> usize
[src]
fn generator_matrix(&self) -> &BinMatrix
[src]
fn parity_check_matrix(&self) -> &BinMatrix
[src]
fn encode(&self, c: &BinVector) -> BinVector
[src]
fn decode_to_message(&self, c: &BinVector) -> Result<BinVector, &str>
[src]
fn decode_slice(&self, c: &mut [u64])
[src]
fn bias(&self, delta: f64) -> f64
[src]
fn decode_to_code(&self, c: &BinVector) -> Result<BinVector, &str>
[src]
fn decode_sample(&self, c: &mut Sample)
[src]
impl<'codes> Clone for ConcatenatedCode<'codes>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Serialize for ConcatenatedCode<'a>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'a> Sync for ConcatenatedCode<'a>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ConcatenatedCode<'a>
impl<'a> !Send for ConcatenatedCode<'a>
impl<'a> Unpin for ConcatenatedCode<'a>
impl<'a> !UnwindSafe for ConcatenatedCode<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
[src]
U: FromCast<T>,
impl<T> From<T> for T
[src]
impl<T> FromBits<T> for T
[src]
impl<T> FromCast<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
[src]
U: FromBits<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,