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

◆ NCBasis()

NCBasis::NCBasis ( const FreeAlgebra & A,
const ConstPolyList & gb,
const std::vector< int > & lo_degree,
const std::vector< int > & hi_degree,
int limit )
inline

Definition at line 83 of file matrix-ncbasis.cpp.

89 :
90 mFreeAlgebra(A),
91 mMonoid(A.monoid()),
94 mCurrentIndex(-1),
96 mLimit(limit),
97 mLoHeft(0),
98 mHiHeft(-1)
99 {
100 // TODO: set mVariables and their hefts from mMonoid info.
101 for (auto i = 0; i < mMonoid.numVars(); ++i)
102 mVariables.push_back(i);
103
104 if (lo_degree.size() > 0) mLoHeft = lo_degree[0];
105 if (hi_degree.size() > 0) mHiHeft = hi_degree[0];
106 }
const FreeMonoid & monoid() const
const std::vector< int > & flattenedDegrees() const
const FreeMonoid & mMonoid
const FreeAlgebra & mFreeAlgebra
std::vector< int > mVariables
std::vector< int > mVariableHefts
int mCurrentHeftValue
std::unique_ptr< WordTable > mWordTable
void gb(IntermediateBasis &F, int n)
std::unique_ptr< WordTable > constructWordTable(const FreeAlgebra &A, const ConstPolyList &gb)

References constructWordTable(), gb(), mCurrentHeftValue, mCurrentIndex, mFreeAlgebra, mHiHeft, mLimit, mLoHeft, mMonoid, mVariableHefts, mVariables, and mWordTable.