A multivariate polynomial with coefficients in a small prime field using a dense representation.
More...
|
| SmallPrimeFieldDistributedDenseMultivariateModularPolynomial () |
| Constructor using a default prime.
|
|
| SmallPrimeFieldDistributedDenseMultivariateModularPolynomial (sfixn m) |
| Constructor with the field. More...
|
|
| SmallPrimeFieldDistributedDenseMultivariateModularPolynomial (int v, int *ds, sfixn m) |
| Constructor with number of variables and terms. More...
|
|
| SmallPrimeFieldDistributedDenseMultivariateModularPolynomial (Symbol x, sfixn m) |
| Construct with a variable name such that f(x) = x;. More...
|
|
| SmallPrimeFieldDistributedDenseMultivariateModularPolynomial (const SmallPrimeFieldDistributedDenseMultivariateModularPolynomial &b) |
| Copy constructor. More...
|
|
| ~SmallPrimeFieldDistributedDenseMultivariateModularPolynomial () |
| Deconstructor. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial & | operator= (const SmallPrimeFieldDistributedDenseMultivariateModularPolynomial &b) |
| Overload operator =. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial & | operator= (const sfixn &b) |
|
mpz_class | getCharacteristic () const override |
| The characteristic of this ring class.
|
|
bool | isZero () const |
| Is a zero polynomial. More...
|
|
void | zero () |
| Zero polynomial. More...
|
|
bool | isOne () const |
| Is polynomial 1. More...
|
|
void | one () |
| Set polynomial to 1. More...
|
|
bool | isNegativeOne () const |
| Is polynomial -1. More...
|
|
void | negativeOne () |
| Set polynomial to -1. More...
|
|
int | isConstant () const |
| Is a constant. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial | unitCanonical (SmallPrimeFieldDistributedDenseMultivariateModularPolynomial *u=NULL, SmallPrimeFieldDistributedDenseMultivariateModularPolynomial *v=NULL) const |
| Obtain the unit normal (a.k.a canonical associate) of an element. More...
|
|
int | numberOfVariables () const |
| Get the number of variables. More...
|
|
int | numberOfRingVariables () const |
| Get the number of variables in this polynomial ring.
|
|
Integer | numberOfTerms () const |
| Get the number of non-zero terms. More...
|
|
int | size () const |
| Get the size of the polynomial. More...
|
|
Integer | degree () const |
| Total degree.
|
|
Integer | degree (const Symbol &x) const |
| Get a partial degree of variable x. More...
|
|
sfixn | leadingCoefficient () const |
| Get the leading coefficient. More...
|
|
sfixn | trailingCoefficient () const |
|
bool | isConstantTermZero () const |
|
sfixn | coefficient (int v, const int *d) const |
| Get a coefficient. More...
|
|
sfixn | coefficient (const std::vector< int > &v) const |
|
void | setCoefficient (int v, const int *d, const sfixn &val) |
| Set a coefficient. More...
|
|
void | setCoefficient (const std::vector< int > &v, const sfixn &val) |
|
void | setCoefficient (int k, const sfixn &val) |
| Set a coefficient. More...
|
|
std::vector< Symbol > | ringVariables () const |
| Get variable names. More...
|
|
void | setRingVariables (const std::vector< Symbol > &xs) |
| Set variable names. More...
|
|
std::vector< Symbol > | variables () const |
|
void | differentiate (const Symbol &s, int k) |
| Convert current object to its k-th derivative. More...
|
|
void | differentiate (const Symbol &s) |
| Convert current object to its derivative. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial | derivative (const Symbol &s, int k) const |
| Return k-th derivative. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial | derivative (const Symbol &s) const |
| Compute derivative. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial | evaluate (int, const Symbol *syms, const sfixn *xs) const |
| Evaluate f(x) More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial | evaluate (const std::vector< Symbol > &syms, const std::vector< sfixn > &xs) const |
| Evaluate f(x) More...
|
|
bool | operator== (const SmallPrimeFieldDistributedDenseMultivariateModularPolynomial &b) const |
| Overload operator ==. More...
|
|
bool | operator!= (const SmallPrimeFieldDistributedDenseMultivariateModularPolynomial &b) const |
| Overload operator !=. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial | operator+ (const SmallPrimeFieldDistributedDenseMultivariateModularPolynomial &b) const |
| Overload operator +. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial & | operator+= (const SmallPrimeFieldDistributedDenseMultivariateModularPolynomial &b) |
| Overload operator +=. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial | operator+ (const sfixn &e) const |
| Overload operator +. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial & | operator+= (const sfixn &e) |
| Overload operator +=. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial | operator- (const SmallPrimeFieldDistributedDenseMultivariateModularPolynomial &b) const |
| Overload operator -. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial & | operator-= (const SmallPrimeFieldDistributedDenseMultivariateModularPolynomial &b) |
| Overload operator -=. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial | operator- (const sfixn &e) const |
| Overload operator -. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial & | operator-= (const sfixn &e) |
| Overload operator -=. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial | operator- () const |
| Overload operator -, negate. More...
|
|
void | negate () |
| Negate, f(-x) More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial | operator* (const SmallPrimeFieldDistributedDenseMultivariateModularPolynomial &b) const |
| Overload operator *. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial & | operator*= (const SmallPrimeFieldDistributedDenseMultivariateModularPolynomial &b) |
| Overload operator *=. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial | operator* (const sfixn &e) const |
| Overload operator *. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial & | operator*= (const sfixn &e) |
| Overload operator *=. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial | operator^ (long long int e) const |
| Overload operator ^ for exponentiation.
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial & | operator^= (long long int e) |
| Overload operator ^ for exponentiation.
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial | operator/ (const sfixn &e) const |
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial & | operator/= (const sfixn &e) |
|
sfixn | content () const |
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial | primitivePart () const |
|
void | print (std::ostream &out) const |
| Print the Ring element. More...
|
|
ExpressionTree | convertToExpressionTree () const |
| Convert *this to an expression tree. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial | operator/ (const SmallPrimeFieldDistributedDenseMultivariateModularPolynomial &p) const |
| Exact division. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial & | operator/= (const SmallPrimeFieldDistributedDenseMultivariateModularPolynomial &p) |
| Exact division assignment. More...
|
|
SmallPrimeFieldDistributedDenseMultivariateModularPolynomial | gcd (const SmallPrimeFieldDistributedDenseMultivariateModularPolynomial &p) const |
| Get GCD of *this and other. More...
|
|
Factors< SmallPrimeFieldDistributedDenseMultivariateModularPolynomial > | squareFree () const |
| Compute squarefree factorization of *this.
|
|
A multivariate polynomial with coefficients in a small prime field using a dense representation.