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

◆ exponent_syzygy()

void GBRing::exponent_syzygy ( const int * exp1,
const int * exp2,
int * exp3,
int * exp4 )
protected

Definition at line 814 of file gbring.cpp.

818{
819 for (int i = 0; i < _nvars; i++)
820 {
821 int a = exp1[i] - exp2[i];
822 if (a > 0)
823 {
824 exp3[i] = 0;
825 exp4[i] = a;
826 }
827 else
828 {
829 exp3[i] = -a;
830 exp4[i] = 0;
831 }
832 }
833}
int _nvars
Definition gbring.hpp:146
const mpreal exp2(const mpreal &x, mp_rnd_t r=mpreal::get_default_rnd())
Definition mpreal.h:2299

References _nvars.

Referenced by gbvector_cancel_lead_terms(), and gbvector_combine_lead_terms_ZZ().