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

◆ remove_MutableMatrix()

void remove_MutableMatrix ( void * p,
void * cd )

Definition at line 187 of file finalize.cpp.

188{
189 (void) cd;
190#ifdef MEMDEBUG
191 p = M2_debug_to_inner(p);
192#endif
193 MutableMatrix *G = static_cast<MutableMatrix *>(p);
194 std::atomic<int> nremoved = mutablematrices_nremoved++;
195 if (M2_gbTrace >= 3)
196 fprintf(stderr, "\n -- removing mutable matrix %d at %p\n", nremoved.load(),
197 G);
198 G->~MutableMatrix();
199}
Abstract base class for mutable matrices over an arbitrary engine Ring, the in-place counterpart of t...
Definition mat.hpp:79
static volatile std::atomic< int > mutablematrices_nremoved
Definition finalize.cpp:24
int p
int M2_gbTrace
Definition m2-types.cpp:52
tbb::flow::graph G

References G, M2_gbTrace, mutablematrices_nremoved, and p.

Referenced by internMutableMatrix().