|
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. More... | |
| gf2_poly< T > | operator+ (const gf2_poly< T > &x) const |
| GF(2) polynomial addition. More... | |
| gf2_poly< T > | operator* (bool x) const |
| Multiplication by a GF(2) scalar. More... | |
| gf2_poly< T > | operator* (const gf2_poly< T > &x) const |
| Multiplication by another GF(2) polynomial. More... | |
| bool | operator== (const gf2_poly< T > &x) const |
| Equal comparator. More... | |
| const T & | get_poly () const |
| Get the polynomial coefficients. More... | |
| int | degree () const |
| Get the polynomial degree. More... | |
| bool | is_zero () const |
| Test if the polynomial is the zero polynomial. More... | |
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().