606{
607
608
609
611 positions.reserve(exps.size());
612 for (unsigned int i = 0; i < exps.size(); i++) positions.push_back(i);
613
614
615
616
617 std::stable_sort(positions.begin(),
618 positions.end(),
619 montable_sorter_ZZ(nvars, coeffs, exps, comps));
620
621#if 0
622
623
624
625
626#endif
627
629 for (
VECTOR(
int)::iterator j = positions.begin(); j != positions.end(); j++)
630 if (!
T->is_strong_member(coeffs[*j], exps[*j], comps[*j]))
631 {
632 result_positions.push_back(*j);
633 T->insert(coeffs[*j], exps[*j], comps[*j], *j);
634 }
635
636
637}
static MonomialTableZZ * make(int nvars)