Macaulay2 Engine
Loading...
Searching...
No Matches
Monom Struct Reference

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 intoperator+ (int i) const
int operator[] (int i) const
int size () const
const intbegin () const
const intend () const

Private Attributes

const intmValue

Detailed Description

Non-owning view onto a [length, degree, v1, v2, ..., vn] packed monomial in some externally managed buffer.

Note
AI-generated documentation. Verify against the source before relying on it.

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.


The documentation for this struct was generated from the following file: