![]() |
Symmetric Polynomials
V3.1
A C++ library for generating symmetric polynomials with relations
|
The standard variables \(x_i\) in a polynomial, with \(|x_i|=1\) and no relations. More...
#include <Symmetric_Basis.hpp>
Public Types | |
| typedef _deg | deg_t |
| Degree typedef. More... | |
Public Member Functions | |
| deg_t | degree () const |
| Computes degree of monomial on standard variables \(x_i\). More... | |
| StandardVariables | operator+ (const StandardVariables &b) const |
| Multiplies monomials by adding their exponents. More... | |
| size_t | operator() () const |
| Hashes monomial. More... | |
Static Public Member Functions | |
| static std::string | name (int i, int n) |
| Returns the names of the standard variables \(x_i\). More... | |
The standard variables \(x_i\) in a polynomial, with \(|x_i|=1\) and no relations.
A monomial \(x_1^{a_1}\cdots x_n^{a_n}\) is stored as the vector \([a_1,...,a_n]\)
| T | The (integral) value type of the exponent vector. |
| _deg | The (integral) value type used in the degree function. |
| typedef _deg deg_t |
Degree typedef.
| deg_t degree | ( | ) | const |
Computes degree of monomial on standard variables \(x_i\).
*this= \([a_1,...,a_n]\))
|
static |
Returns the names of the standard variables \(x_i\).
"x_i" | i | The variable index |
| n | The number variables |
| StandardVariables operator+ | ( | const StandardVariables< T, _deg > & | b | ) | const |
Multiplies monomials by adding their exponents.
| b | The exponent \([b_1,...,b_n]\) we add to *this= \([a_1,...,a_n]\) |
| size_t operator() | ( | ) | const |
Hashes monomial.