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

◆ gbvector_term_exponents()

gbvector * GBRing::gbvector_term_exponents ( const FreeModule * F,
ring_elem coeff,
const int * exp,
int comp )

Definition at line 345 of file gbring.cpp.

352{
353 gbvector *v = new_raw_term();
354 v->coeff = coeff;
355 v->comp = comp;
356 v->next = nullptr;
357 M->from_expvector(exp, v->monom);
358
359 const SchreyerOrder *S;
360 if (comp > 0 && _schreyer_encoded && (S = F->get_schreyer_order()) != nullptr)
361 S->schreyer_up(v->monom, comp - 1, v->monom);
362
363 return v;
364}
const SchreyerOrder * get_schreyer_order() const
Definition freemod.hpp:103
bool _schreyer_encoded
Definition gbring.hpp:136
const Monoid * M
Definition gbring.hpp:137
gbvector * new_raw_term()
Definition gbring.cpp:28
void schreyer_up(const_monomial m, int comp, monomial result) const
Definition schorder.hpp:107
ring_elem coeff
Definition gbring.hpp:81
gbvector * next
Definition gbring.hpp:80
int monom[1]
Definition gbring.hpp:83
int comp
Definition gbring.hpp:82

References _schreyer_encoded, gbvector::coeff, gbvector::comp, FreeModule::get_schreyer_order(), M, gbvector::monom, new_raw_term(), gbvector::next, and SchreyerOrder::schreyer_up().