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

Public Member Functions

int get_n (poly p)
 
 exp_number_builder ()
 

Data Fields

poly_tree_nodetop_level
 
int n
 

Detailed Description

Definition at line 1941 of file tgb.cc.

Constructor & Destructor Documentation

◆ exp_number_builder()

exp_number_builder::exp_number_builder ( )
inline

Definition at line 1947 of file tgb.cc.

1947 :top_level (0), n (0)
1948 {
1949 }
poly_tree_node * top_level
Definition: tgb.cc:1944

Member Function Documentation

◆ get_n()

int exp_number_builder::get_n ( poly  p)

Definition at line 1951 of file tgb.cc.

1952{
1953 poly_tree_node **node = &top_level;
1954 while(*node != NULL)
1955 {
1956 int c = pLmCmp (p, (*node)->p);
1957 if(c == 0)
1958 return (*node)->n;
1959 if(c == -1)
1960 node = &((*node)->r);
1961 else
1962 node = &((*node)->l);
1963 }
1964 (*node) = new poly_tree_node (n);
1965 n++;
1966 (*node)->p = pLmInit (p);
1967 return (*node)->n;
1968}
int p
Definition: cfModGcd.cc:4078
#define NULL
Definition: omList.c:12
#define pLmInit(p)
like pInit, except that expvector is initialized to that of p, p must be != NULL
Definition: polys.h:64
#define pLmCmp(p, q)
returns 0|1|-1 if p=q|p>q|p<q w.r.t monomial ordering
Definition: polys.h:105

Field Documentation

◆ n

int exp_number_builder::n

Definition at line 1945 of file tgb.cc.

◆ top_level

poly_tree_node* exp_number_builder::top_level

Definition at line 1944 of file tgb.cc.


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