Macaulay2 Engine
Loading...
Searching...
No Matches
MatrixStream Class Reference

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 PolyRingring () const
const Matrixvalue () 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 PolyRingmPolyRing
const FreeModulemFreeModule
MatrixConstructor mMatrixConstructor
const MatrixmValue
ExponentmCurrentExponents
Component mCurrentComponent
Nterm ** mCurrentColumn
Nterm ** mLastTerms

Detailed Description

Streaming consumer that builds an engine Matrix from the mathicgb-style stream callbacks (idealBegin / appendPolynomialBegin / appendTermBegin / appendExponent / appendTermDone / appendPolynomialDone / idealDone).

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

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.


The documentation for this class was generated from the following files: