rssoft  0.0.0
Reed-Solomon codes library with soft decision decoding
rssoft::MultiplicityMatrix_SparseOrdering Class Reference

Ordering of elements in the sparse matrix according to the column first order. Indexes are pairs of (row, column) indexes. More...

#include <MultiplicityMatrix.h>

List of all members.

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

Detailed Description

Ordering of elements in the sparse matrix according to the column first order. Indexes are pairs of (row, column) indexes.


Constructor & Destructor Documentation


Member Function Documentation

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
        }
    }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines