Macaulay2 Engine
Loading...
Searching...
No Matches

◆ showAlpha()

void MonomialInfo::showAlpha ( const_packed_monomial m) const

Definition at line 124 of file moninfo.cpp.

125{
126 long comp = get_component(m);
127
128 m += 2 + mNumWeights; // get by: hashcode, component, weightvals
129 for (int i = 0; i < nvars; i++)
130 {
131 long e = *m++;
132 if (e == 0) continue;
133 fprintf(stdout, "%c", 'a' + i);
134 if (e > 1) fprintf(stdout, "%ld", e);
135 }
136 fprintf(stdout, "<%ld>", comp);
137}
long get_component(const_packed_monomial m) const
Definition moninfo.hpp:185

References get_component(), mNumWeights, and nvars.

Referenced by compare_schreyer().