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

◆ reducedRowToPoly()

void NCF4::reducedRowToPoly ( Poly * result,
const RowsVector & rows,
const ColumnsVector & cols,
int i ) const
private

Definition at line 328 of file NCF4.cpp.

332{
333 // this function places the elements of the ith row of the
334 // (reduced!) F4 matrix in result. This assumes that the first
335 // term of the ith row is after the last entry of result (or that result is empty).
336 auto& resultCoeffInserter = result->getCoeffInserter();
337 auto& resultMonomInserter = result->getMonomInserter();
338
339 //mVectorArithmetic->appendSparseVectorToContainer(rows[i].first,resultCoeffInserter);
340 using ContainerType = decltype(resultCoeffInserter);
341 mVectorArithmetic->appendToContainer<ContainerType>(rows[i].coeffVector,resultCoeffInserter);
342
343 for (const auto& col : rows[i].columnIndices)
344 freeAlgebra().monoid().monomInsertFromWord(resultMonomInserter,cols[col].word);
345}
std::vector< int > word
const FreeMonoid & monoid() const
void monomInsertFromWord(MonomialInserter &result, const Word &w) const
const VectorArithmetic * mVectorArithmetic
Definition NCF4.hpp:250
const FreeAlgebra & freeAlgebra() const
Definition NCF4.hpp:282
VALGRIND_MAKE_MEM_DEFINED & result(result)

References freeAlgebra(), FreeAlgebra::monoid(), FreeMonoid::monomInsertFromWord(), mVectorArithmetic, result(), and word.

Referenced by newGBelements(), and processPreRow().