Macaulay2 Engine
Loading...
Searching...
No Matches

◆ exponent_table_new()

exponent_table * exponent_table_new ( int hint,
int nvars )

Definition at line 45 of file exptable.c.

46{
48 NEW(result);
49 result->nvars = nvars;
50 result->table = Table_new(hint, exp_cmp, exp_hash);
51 return result;
52}
#define NEW(p)
Definition exptable.c:10
unsigned int exp_hash(const void *x)
Definition exptable.c:21
int exp_cmp(const void *x, const void *y)
Definition exptable.c:31
VALGRIND_MAKE_MEM_DEFINED & result(result)
T * Table_new(int hint, int cmp(const void *x, const void *y), unsigned hash(const void *key))
Definition table.c:50

References exp_cmp(), exp_hash(), NEW, result(), and Table_new().

Referenced by Matrix::coeffs(), and Matrix::monomials().