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

◆ longToExponents()

void longToExponents ( int nvars,
brMonomial mono,
exponents_t exp )

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

24{
25 // cout << "longToExponents " << mono << endl;
26 for (int i = 0; i < nvars; i++)
27 {
28 exp[nvars - i - 1] = ((mono & 1ul) ? 1 : 0);
29 mono >>= 1;
30 // cout << "after shift longToExponents " << mono << endl;
31 }
32 // for( int i=0; i < nvars; i++ )
33 // {
34 // cout << exp[i] << " ";
35 // }
36 // cout << endl;
37 //
38}
const mpreal exp(const mpreal &x, mp_rnd_t r=mpreal::get_default_rnd())
Definition mpreal.h:2298

Referenced by BRPStoMatrix().