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

◆ get_coeffs_array()

const ElementArray & F4GB::get_coeffs_array ( row_elem & r)
private

Definition at line 591 of file f4.cpp.

592{
593 // If r.coeffs is set, returns that, otherwise returns the coeffs array from
594 // the generator or GB element. The resulting value should not be modified.
595 if (not r.coeffs.isNull() || r.len == 0) return r.coeffs;
596
597 // At this point, we must go find the coeff array
598 if (r.monom == nullptr) // i.e. a generator
599 return mGenerators[r.elem]->f.coeffs;
600 return mGroebnerBasis[r.elem]->f.coeffs;
601}
bool isNull() const
gb_array mGenerators
Definition f4.hpp:180
gb_array mGroebnerBasis
Definition f4.hpp:181
packed_monomial monom
Definition f4-types.hpp:157
ElementArray coeffs
Definition f4-types.hpp:162

References row_elem::coeffs, row_elem::elem, ElementArray::isNull(), row_elem::len, mGenerators, mGroebnerBasis, and row_elem::monom.

Referenced by gauss_reduce_row(), insert_gb_element(), and show_new_rows_matrix().