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

◆ gbvector_get_lead_monomial()

void GBRing::gbvector_get_lead_monomial ( const FreeModule * F,
const gbvector * f,
int * result )

Definition at line 528 of file gbring.cpp.

533{
534 const SchreyerOrder *S;
535 if (_schreyer_encoded && (S = F->get_schreyer_order()) != nullptr && f->comp > 0)
536 S->schreyer_down(f->monom, f->comp - 1, result);
537 else
538 M->copy(f->monom, result);
539}
const SchreyerOrder * get_schreyer_order() const
Definition freemod.hpp:103
bool _schreyer_encoded
Definition gbring.hpp:136
const Monoid * M
Definition gbring.hpp:137
void schreyer_down(const_monomial m, int comp, monomial result) const
Definition schorder.hpp:113
VALGRIND_MAKE_MEM_DEFINED & result(result)
int monom[1]
Definition gbring.hpp:83
int comp
Definition gbring.hpp:82

References _schreyer_encoded, gbvector::comp, FreeModule::get_schreyer_order(), M, gbvector::monom, result(), and SchreyerOrder::schreyer_down().

Referenced by gbvector_multidegree(), PolyRing::translate_gbvector_to_vec(), and PolyRing::translate_gbvector_to_vec_QQ().