|
Macaulay2 Engine
|
Non-owning view onto a [length, degree, v1, v2, ..., vn] packed monomial in some externally managed buffer. More...
#include <Polynomial.hpp>
Public Member Functions | |
| Monom () | |
| Monom (const int *value) | |
| const int * | operator+ (int i) const |
| int | operator[] (int i) const |
| int | size () const |
| const int * | begin () const |
| const int * | end () const |
Private Attributes | |
| const int * | mValue |
Non-owning view onto a [length, degree, v1, v2, ..., vn] packed monomial in some externally managed buffer.
A Monom is just a const int* cursor; the leading int is the total length (including itself), followed by the degree, then the n variable indices that spell out the (non-commutative) word. Indexing and begin() / end() give read-only iteration over the whole packed array. The Monom knows nothing about which monoid gave it meaning — that lives in FreeMonoid / ResMonoid. Weights (added later) extend the format and are not yet reflected in this header comment.
Definition at line 60 of file Polynomial.hpp.