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

◆ clear_matrix()

void F4GB::clear_matrix ( )
private

Definition at line 446 of file f4.cpp.

447{
448 // Clear the rows first
449 for (auto & r : mat->rows)
450 {
451 // std::cout << "at A" << std::endl;
452 if (not r.coeffs.isNull())
453 mVectorArithmetic->deallocateElementArray(r.coeffs);
454 // Mem->components.deallocate(r.comps);
455 // std::cout << "at B" << std::endl;
456 if (r.comps != nullptr)
457 delete [] r.comps;
458 // std::cout << "at C" << std::endl;
459 r.len = 0;
460 r.elem = -1;
461 r.monom = nullptr;
462 }
463 mat->rows.clear();
464 mat->columns.clear();
465 mMonomialHashTable.reset();
466 mMonomialMemoryBlock.reset();
467}
F4MemoryBlock< monomial_word > mMonomialMemoryBlock
Definition f4.hpp:188
coefficient_matrix * mat
Definition f4.hpp:186
MonomialHashTable< MonomialInfo > mMonomialHashTable
Definition f4.hpp:187
const VectorArithmetic * mVectorArithmetic
Definition f4.hpp:156

References mat, mMonomialHashTable, mMonomialMemoryBlock, and mVectorArithmetic.

Referenced by do_spairs().