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

◆ rearrangeBasis()

void rearrangeBasis ( IntermediateBasis & F,
int nextIndex )

Definition at line 379 of file franzi-gb.cpp.

380{
381 for (IntermediateBasis::iterator j = F.begin(); j != F.end(); ++j)
382 {
383 if (j->first != nextIndex)
384 {
385 for (IntermediateBasis::iterator i = F.begin(); i->first < j->first;
386 ++i)
387 {
388 // if ( funccompGRL(i->second.LT(), j->second.LT() )) {
389 if (i->second.LT() > j->second.LT())
390 {
391 BRP tmp = i->second;
392 i->second = j->second;
393 j->second = tmp;
394 }
395 }
396 }
397 }
398}
Boolean (F_2-coefficient) polynomial stored as an ordered list of square-free monomials.

Referenced by gb().