![]() |
rssoft
0.0.0
Reed-Solomon codes library with soft decision decoding
|
Ordering of elements in the sparse matrix according to the column first order. Indexes are pairs of (row, column) indexes. More...
#include <MultiplicityMatrix.h>
Public Member Functions | |
MultiplicityMatrix_SparseOrdering () | |
~MultiplicityMatrix_SparseOrdering () | |
bool | operator() (const std::pair< unsigned int, unsigned int > &index1, const std::pair< unsigned int, unsigned int > &index2) const |
Ordering of elements in the sparse matrix according to the column first order. Indexes are pairs of (row, column) indexes.
bool rssoft::MultiplicityMatrix_SparseOrdering::operator() | ( | const std::pair< unsigned int, unsigned int > & | index1, |
const std::pair< unsigned int, unsigned int > & | index2 | ||
) | const [inline] |
{ if (index1.second == index2.second) // same column { return index1.first < index2.first; // row order } else { return index1.second < index2.second; // column order } }