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

◆ index_of_variable()

int FreeMonoid::index_of_variable ( const Monom & m) const

Definition at line 67 of file FreeMonoid.cpp.

68{
69 if (m[0] != mNumWeights+2) return -1;
70 return m[mNumWeights+1];
71}
const int mNumWeights

References mNumWeights.

Referenced by M2FreeAlgebra::index_of_var().