1 #ifndef CLASSIC_FMonomial_HH
2 #define CLASSIC_FMonomial_HH
71 std::fill(array + 0, array + N, 0u);
83 std::fill(array + 0, array + N, 0u);
84 if(var < N) array[var] = 1;
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);
134 #endif // CLASSIC_FMonomial_HH
and give any other recipients of the Program a copy of this License along with the Program You may charge a fee for the physical act of transferring a copy
const FMonomial & operator=(const FMonomial &)
int & operator[](int index)
Return reference to exponent.
int getVariables() const
Get the monomial's number of variables.
int getOrder() const
Compute the monomial's order.
FMonomial operator*(const FMonomial &rhs) const
Get exponent set of a product.
Representation of the exponents for a monomial with fixed dimension.