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

◆ exponentsToLong()

brMonomial exponentsToLong ( int nvars,
const_exponents exp )

Definition at line 10 of file franzi-interface.cpp.

11{
13 for (int i = 0; i < nvars; i++)
14 if (exp[i] != 0)
15 {
16 result += 1ul << (nvars - 1 - i);
17 // cout << "result " << result;
18 }
19 // cout << endl;
20 return result;
21}
unsigned long brMonomial
VALGRIND_MAKE_MEM_DEFINED & result(result)

References result().

Referenced by BRPSfromMatrix().