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

Engine-side Betti table: a (degree, homological level) rectangle of integers. More...

#include <betti.hpp>

Public Member Functions

 BettiDisplay ()
 BettiDisplay (int lodegree, int hidegree, int hilen)
 BettiDisplay (const BettiDisplay &B)
BettiDisplayoperator= (const BettiDisplay &B)
 ~BettiDisplay ()
void swap (BettiDisplay &B)
intentry (int deg, int lev)
M2_arrayint getBetti () const
void displayBetti (buffer &o) const
void output () const
void resize (int new_lo_degree, int new_hi_degree, int new_length)
int loDegree () const
int hiDegree () const
int length () const

Static Private Member Functions

static M2_arrayint betti_make (int lo, int hi, int len, int *bettis)
static void betti_display (buffer &o, M2_arrayint ar)

Private Attributes

int mLoDegree
int mHiDegree
int mHiLength
int mNLevels
intmValues

Detailed Description

Engine-side Betti table: a (degree, homological level) rectangle of integers.

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

Storage is a single flat int* mValues of size (mHiDegree - mLoDegree + 1) * mNLevels, indexed via entry(deg, lev). The user-facing bounds (loDegree / hiDegree / length) are the requested dimensions; the actual non-zero region may be tighter. displayBetti / output print in the conventional triangular layout the front end shows for betti queries, and getBetti flattens to an M2_arrayint for the interpreter.

Definition at line 59 of file betti.hpp.


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