|
Macaulay2 Engine
|
Streaming consumer that builds an engine Matrix from the mathicgb-style stream callbacks (idealBegin / appendPolynomialBegin / appendTermBegin / appendExponent / appendTermDone / appendPolynomialDone / idealDone). More...
#include <matrix-stream.hpp>
Public Types | |
| using | Coefficient = mpz_class |
| typedef int | VarIndex |
| typedef int | Exponent |
| typedef int | Component |
Public Member Functions | |
| MatrixStream (const FreeModule *F) | |
| ~MatrixStream () | |
| const PolyRing & | ring () const |
| const Matrix * | value () const |
| Coefficient | modulus () const |
| VarIndex | varCount () const |
| Component | comCount () const |
| void | idealBegin (size_t polyCount) |
| void | appendPolynomialBegin (size_t termCount) |
| void | appendTermBegin (Component com) |
| void | appendExponent (VarIndex index, Exponent exponent) |
| void | appendTermDone (Coefficient coefficient) |
| void | appendPolynomialDone () |
| void | idealDone () |
Private Attributes | |
| const PolyRing * | mPolyRing |
| const FreeModule * | mFreeModule |
| MatrixConstructor | mMatrixConstructor |
| const Matrix * | mValue |
| Exponent * | mCurrentExponents |
| Component | mCurrentComponent |
| Nterm ** | mCurrentColumn |
| Nterm ** | mLastTerms |
Streaming consumer that builds an engine Matrix from the mathicgb-style stream callbacks (idealBegin / appendPolynomialBegin / appendTermBegin / appendExponent / appendTermDone / appendPolynomialDone / idealDone).
Mirrors the BasicPolyListStreamCollector shape but produces a proper engine Matrix* over a PolyRing instead of a portable BasicPolyList. Used as the bridge between mathicgb's stream input and the engine's typed matrices — value() returns nullptr until idealDone() is called.
Definition at line 88 of file matrix-stream.hpp.