1 #ifndef CLASSIC_FMonomial_HH
2 #define CLASSIC_FMonomial_HH
71 std::fill(array + 0, array + N, 0u);
77 std::copy(rhs.
array + 0, rhs.
array + N, array + 0);
83 std::fill(array + 0, array + N, 0u);
84 if(var < N) array[var] = 1;
96 std::copy(rhs.
array + 0, rhs.
array + N, array + 0);
118 for(
int i = 0; i < N; ++i) result.
array[i] = array[i] + rhs.
array[i];
125 return std::accumulate(array + 0, array + N, 0);
Representation of the exponents for a monomial with fixed dimension.
int getOrder() const
Compute the monomial's order.
int & operator[](int index)
Return reference to exponent.
int getVariables() const
Get the monomial's number of variables.
FMonomial operator*(const FMonomial &rhs) const
Get exponent set of a product.
const FMonomial & operator=(const FMonomial &)