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

Weighted reverse lexical order of bivariate monomials. More...

#include <GFq_BivariateMonomial.h>

List of all members.

Public Member Functions

 GFq_WeightedRevLex_BivariateMonomial (unsigned int w_x, unsigned int w_y)
 GFq_WeightedRevLex_BivariateMonomial (const std::pair< unsigned int, unsigned int > &weights)
bool operator() (const GFq_BivariateMonomialExponents &e1, const GFq_BivariateMonomialExponents &e2) const
 ~GFq_WeightedRevLex_BivariateMonomial ()

Protected Attributes

std::pair< unsigned int,
unsigned int > 
weights

Detailed Description

Weighted reverse lexical order of bivariate monomials.


Constructor & Destructor Documentation

Constructs a new weighted reverse lexical order of bivariate monomials

Parameters:
w_xWeight in X
w_yWeight in Y
                                                                                                             :
                weights(w_x, w_y)
{}
rssoft::gf::GFq_WeightedRevLex_BivariateMonomial::GFq_WeightedRevLex_BivariateMonomial ( const std::pair< unsigned int, unsigned int > &  weights)

Constructs a new weighted reverse lexical order of bivariate monomials

Parameters:
weightsWeights in (X,Y)
                                                                                                                              :
                weights(_weights)
{}

Member Function Documentation

bool rssoft::gf::GFq_WeightedRevLex_BivariateMonomial::operator() ( const GFq_BivariateMonomialExponents e1,
const GFq_BivariateMonomialExponents e2 
) const

Ordering method

Parameters:
e1First monomial exponents, if lesser than second then return is true
e2Second monomial exponents, if greater than first then return is true
{
        unsigned int w1 = e1.wdeg(weights.first, weights.second);
        unsigned int w2 = e2.wdeg(weights.first, weights.second);

        if (w1 == w2)
        {
                return e1.x() > e2.x();
        }
        else
        {
                return (w1 < w2);
        }
}

Here is the call graph for this function:


Member Data Documentation

std::pair<unsigned int, unsigned int> rssoft::gf::GFq_WeightedRevLex_BivariateMonomial::weights [protected]

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