Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/neogb/data.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ struct ht_t
len_t ebl; /* elimination block length:
* degree + #elimination variables,
* 0 if no elimination order */
int32_t mo; /* monomial ordering: 0=DRL, 1=LEX */
len_t nv; /* number of variables */
len_t evl; /* real length of exponent vector,
* includes degree (or two degrees
Expand Down
3 changes: 3 additions & 0 deletions src/neogb/hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ ht_t *initialize_basis_hash_table(

ht_t *ht = (ht_t *)malloc(sizeof(ht_t));
ht->nv = nv;
ht->mo = st->mo;
/* generate map */
ht->bpv = (len_t)((CHAR_BIT * sizeof(sdm_t)) / (unsigned long)nv);
if (ht->bpv == 0) {
Expand Down Expand Up @@ -136,6 +137,7 @@ ht_t *copy_hash_table(
ht_t *ht = (ht_t *)malloc(sizeof(ht_t));

ht->nv = bht->nv;
ht->mo = bht->mo;
ht->evl = bht->evl;
ht->ebl = bht->ebl;
ht->hsz = bht->hsz;
Expand Down Expand Up @@ -187,6 +189,7 @@ ht_t *initialize_secondary_hash_table(

ht_t *ht = (ht_t *)malloc(sizeof(ht_t));
ht->nv = bht->nv;
ht->mo = bht->mo;
ht->evl = bht->evl;
ht->ebl = bht->ebl;

Expand Down
Loading