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

Standalone, self-contained polynomial representation independent of any engine Ring — coefficients are bare mpz_class (GMP integers). More...

#include <BasicPoly.hpp>

Public Member Functions

void clear ()
 ~BasicPoly ()
size_t termCount () const
void debug_display (std::ostream &o) const
void display (std::ostream &o, const std::vector< std::string > &varnames, bool print_one, bool print_plus, bool print_parens) const
void display (std::ostream &o, const std::vector< std::string > &varnames) const
std::string toString (const std::vector< std::string > &varnames, bool print_one, bool print_plus, bool print_parens) const
std::string toString (const std::vector< std::string > &varnames) const
long bytesUsed () const

Static Public Member Functions

template<typename T>
static void displayCoefficient (std::ostream &o, T val, bool print_plus, bool print_one)

Public Attributes

std::vector< mpz_class > mCoefficients
std::vector< intmComponents
std::vector< intmMonomials

Detailed Description

Standalone, self-contained polynomial representation independent of any engine Ring — coefficients are bare mpz_class (GMP integers).

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

Three parallel vectors: mCoefficients (mpz_class per term), mComponents (free-module component per term, all-zero when empty), and mMonomials (a concatenation of varpower monomials, each prefixed by its length). Used by the stream-based polynomial I/O paths (BasicPolyList) and as a portable interchange format when polynomials need to live outside the engine's typed Ring machinery.

Definition at line 63 of file BasicPoly.hpp.


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