Block Interleaver Class. More...
#include <comm/interleave.h>
Public Member Functions | |
Block_Interleaver (void) | |
Block_Interleaver constructor. More... | |
Block_Interleaver (int in_rows, int in_cols) | |
Block_Interleaver constructor. More... | |
Vec< T > | interleave (const Vec< T > &input) |
Function for block interleaving. May add some zeros. More... | |
void | interleave (const Vec< T > &input, Vec< T > &output) |
Function for block interleaving. May add some zeros. More... | |
Vec< T > | deinterleave (const Vec< T > &input, short keepzeros=0) |
Function for block deinterleaving. Removes additional zeros if keepzeros = 0. More... | |
void | deinterleave (const Vec< T > &input, Vec< T > &output, short keepzeros=0) |
Function for block deinterleaving. Removes additional zeros if keepzeros = 0. More... | |
void | set_rows (int in_rows) |
Set the number of rows for block interleaving. More... | |
void | set_cols (int in_cols) |
Set the number of columns for block interleaving. More... | |
int | get_rows (void) |
Get the number of rows for block interleaving. More... | |
int | get_cols (void) |
Get the number of columns for block interleaving. More... | |
Block Interleaver Class.
Data is written row-wise and read column-wise when interleaving.
Definition at line 61 of file interleave.h.
|
inline |
Block_Interleaver constructor.
Definition at line 65 of file interleave.h.
itpp::Block_Interleaver< T >::Block_Interleaver | ( | int | in_rows, |
int | in_cols | ||
) |
Block_Interleaver constructor.
Definition at line 198 of file interleave.h.
Vec< T > itpp::Block_Interleaver< T >::interleave | ( | const Vec< T > & | input | ) |
Function for block interleaving. May add some zeros.
Definition at line 246 of file interleave.h.
void itpp::Block_Interleaver< T >::interleave | ( | const Vec< T > & | input, |
Vec< T > & | output | ||
) |
Function for block interleaving. May add some zeros.
Definition at line 206 of file interleave.h.
References itpp::Vec< Num_T >::clear(), itpp::concat(), itpp::Vec< Num_T >::length(), itpp::Vec< Num_T >::right(), and itpp::Vec< Num_T >::set_length().
Vec< T > itpp::Block_Interleaver< T >::deinterleave | ( | const Vec< T > & | input, |
short | keepzeros = 0 |
||
) |
Function for block deinterleaving. Removes additional zeros if keepzeros = 0.
Definition at line 296 of file interleave.h.
void itpp::Block_Interleaver< T >::deinterleave | ( | const Vec< T > & | input, |
Vec< T > & | output, | ||
short | keepzeros = 0 |
||
) |
Function for block deinterleaving. Removes additional zeros if keepzeros = 0.
Definition at line 254 of file interleave.h.
References itpp::Vec< Num_T >::clear(), itpp::concat(), itpp::Vec< Num_T >::length(), itpp::Vec< Num_T >::right(), and itpp::Vec< Num_T >::set_size().
|
inline |
Set the number of rows for block interleaving.
Definition at line 77 of file interleave.h.
|
inline |
Set the number of columns for block interleaving.
Definition at line 79 of file interleave.h.
|
inline |
Get the number of rows for block interleaving.
Definition at line 81 of file interleave.h.
|
inline |
Get the number of columns for block interleaving.
Definition at line 83 of file interleave.h.
Generated on Tue Jan 24 2023 00:00:00 for IT++ by Doxygen 1.9.5