carl
24.04
Computer ARithmetic Library
|
An entry in the reduction polynomial. More...
#include <ReductorEntry.h>
Public Member Functions | |
ReductorEntry (const Term< Coeff > &multiple, const Polynomial &pol) | |
Constructor with a factor and a polynomial. More... | |
ReductorEntry (const Term< Coeff > &pol) | |
Constructor with implicit factor = 1. More... | |
const Polynomial & | getTail () const |
const Term< Coeff > & | getLead () const |
const Term< Coeff > & | getMultiple () const |
void | removeLeadingTerm () |
Calculate p - lt(p). More... | |
bool | addCoefficient (const Coeff &coeffToBeAdded) |
bool | empty () const |
void | print (std::ostream &os=std::cout) |
Output the current polynomial. More... | |
Protected Types | |
using | Coeff = typename Polynomial::CoeffType |
Protected Attributes | |
Polynomial | mTail |
Term< Coeff > | mLead |
Term< Coeff > | mMultiple |
Friends | |
template<class C > | |
std::ostream & | operator<< (std::ostream &os, const ReductorEntry< C > rhs) |
An entry in the reduction polynomial.
The class decodes a polynomial given by mLead + mMultiple * mTail.
Definition at line 24 of file ReductorEntry.h.
|
protected |
Definition at line 27 of file ReductorEntry.h.
|
inline |
Constructor with a factor and a polynomial.
multiple | |
pol | Resulting polynomial = multiple * pol. |
Definition at line 39 of file ReductorEntry.h.
|
inlineexplicit |
|
inline |
coeffToBeAdded |
Definition at line 96 of file ReductorEntry.h.
|
inline |
Definition at line 121 of file ReductorEntry.h.
|
inline |
|
inline |
Definition at line 75 of file ReductorEntry.h.
|
inline |
Definition at line 57 of file ReductorEntry.h.
|
inline |
Output the current polynomial.
os |
Definition at line 131 of file ReductorEntry.h.
|
inline |
Calculate p - lt(p).
Definition at line 83 of file ReductorEntry.h.
|
friend |
Definition at line 150 of file ReductorEntry.h.
|
protected |
Definition at line 29 of file ReductorEntry.h.
|
protected |
Definition at line 30 of file ReductorEntry.h.
|
protected |
Definition at line 28 of file ReductorEntry.h.