GNU Radio's DVBS2RX Package
|
Polynomial over GF(2). More...
#include <gf.h>
Public Member Functions | |
gf2_poly (const T &coefs) | |
Construct a new GF(2) polynomial object. | |
gf2_poly< T > | operator+ (const gf2_poly< T > &x) const |
GF(2) polynomial addition. | |
gf2_poly< T > | operator* (bool x) const |
Multiplication by a GF(2) scalar. | |
gf2_poly< T > | operator* (const gf2_poly< T > &x) const |
Multiplication by another GF(2) polynomial. | |
bool | operator== (const gf2_poly< T > &x) const |
Equal comparator. | |
const T & | get_poly () const |
Get the polynomial coefficients. | |
int | degree () const |
Get the polynomial degree. | |
bool | is_zero () const |
Test if the polynomial is the zero polynomial. | |
Polynomial over GF(2).
A polynomial whose coefficients are elements from GF(2), i.e., binary.
T | Type whose bits represent the binary polynomial coefficients. |
gr::dvbs2rx::gf2_poly< T >::gf2_poly | ( | const T & | coefs | ) |
Construct a new GF(2) polynomial object.
coefs | Binary coefficients. |
|
inline |
Get the polynomial degree.
Referenced by gr::dvbs2rx::build_gf2_poly_rem_lut(), gr::dvbs2rx::gf2m_poly< T >::gf2m_poly(), and gr::dvbs2rx::operator%().
|
inline |
Get the polynomial coefficients.
Referenced by gr::dvbs2rx::gf2m_poly< T >::gf2m_poly(), gr::dvbs2rx::operator%(), gr::dvbs2rx::gf2_poly< T >::operator+(), and gr::dvbs2rx::gf2_poly< T >::operator==().
|
inline |
Test if the polynomial is the zero polynomial.
|
inline |
Multiplication by a GF(2) scalar.
x | Binary scalar to multiply. |
gf2_poly< T > gr::dvbs2rx::gf2_poly< T >::operator* | ( | const gf2_poly< T > & | x | ) | const |
Multiplication by another GF(2) polynomial.
x | Polynomial to multiply. |
|
inline |
GF(2) polynomial addition.
x | Polynomial to add. |
References gr::dvbs2rx::gf2_poly< T >::get_poly().
|
inline |
Equal comparator.
x | The other GF(2^m) polynomial. |
References gr::dvbs2rx::gf2_poly< T >::get_poly().