My Project
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
fglmSelem Class Reference

#include <fglm.h>

Public Member Functions

 fglmSelem (poly p, int var)
 
void cleanup ()
 
BOOLEAN isBasisOrEdge () const
 
void newDivisor (int var)
 

Data Fields

int * divisors
 
poly monom
 
int numVars
 

Detailed Description

Definition at line 27 of file fglm.h.

Constructor & Destructor Documentation

◆ fglmSelem()

fglmSelem::fglmSelem ( poly  p,
int  var 
)

Definition at line 319 of file fglmzero.cc.

319 : monom( p ), numVars( 0 )
320{
321 for ( int k = (currRing->N); k > 0; k-- )
322 if ( pGetExp( monom, k ) > 0 )
323 numVars++;
324 divisors= (int *)omAlloc( (numVars+1)*sizeof( int ) );
325 divisors[0]= 0;
326 newDivisor( var );
327}
int k
Definition: cfEzgcd.cc:99
int p
Definition: cfModGcd.cc:4078
poly monom
Definition: fglm.h:31
int * divisors
Definition: fglm.h:30
int numVars
Definition: fglm.h:32
void newDivisor(int var)
Definition: fglm.h:37
#define omAlloc(size)
Definition: omAllocDecl.h:210
VAR ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
Definition: polys.cc:13
#define pGetExp(p, i)
Exponent.
Definition: polys.h:41

Member Function Documentation

◆ cleanup()

void fglmSelem::cleanup ( )

Definition at line 330 of file fglmzero.cc.

331{
332 omFreeSize( (ADDRESS)divisors, (numVars+1)*sizeof( int ) );
333}
void * ADDRESS
Definition: auxiliary.h:119
#define omFreeSize(addr, size)
Definition: omAllocDecl.h:260

◆ isBasisOrEdge()

BOOLEAN fglmSelem::isBasisOrEdge ( ) const
inline

Definition at line 36 of file fglm.h.

36{ return ( (divisors[0] == numVars) ? TRUE : FALSE ); }
#define TRUE
Definition: auxiliary.h:100
#define FALSE
Definition: auxiliary.h:96

◆ newDivisor()

void fglmSelem::newDivisor ( int  var)
inline

Definition at line 37 of file fglm.h.

37{ divisors[ ++divisors[0] ]= var; }

Field Documentation

◆ divisors

int* fglmSelem::divisors

Definition at line 30 of file fglm.h.

◆ monom

poly fglmSelem::monom

Definition at line 31 of file fglm.h.

◆ numVars

int fglmSelem::numVars

Definition at line 32 of file fglm.h.


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