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

◆ auto_reduce_step()

bool GB_comp::auto_reduce_step ( )
private

Definition at line 702 of file gb-homog2.cpp.

705{
706 if (_ar_j >= _n_gb)
707 {
708 _ar_i++;
709 _ar_j = _ar_i + 1;
710 if (_ar_j >= _n_gb) return false;
711 }
712 // Now compute gb(i) := gb(i) - c gb(j), where
713 // c in(gb(j)) is a term in gb(i).
714 // Also compute change(i) -= c change(j).
715
716 _GR->gbvector_auto_reduce(_F,
717 _Fsyz,
718 _gb[_ar_i]->f,
719 _gb[_ar_i]->fsyz,
720 _gb[_ar_j]->f,
721 _gb[_ar_j]->fsyz);
722 _ar_j++;
723 return true;
724}
int _n_gb
Definition gb-homog2.hpp:92
const FreeModule * _Fsyz
Definition gb-homog2.hpp:74
int _ar_i
Definition gb-homog2.hpp:79
int _ar_j
Definition gb-homog2.hpp:79
const FreeModule * _F
Definition gb-homog2.hpp:73
GBRing * _GR
Definition gb-homog2.hpp:68

References _ar_i, _ar_j, _F, _Fsyz, _GR, and _n_gb.

Referenced by start_computation().