MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / cpu_deallocMatrixList

Function cpu_deallocMatrixList

quest/src/cpu/cpu_config.cpp:376–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374
375
376void cpu_deallocMatrixList(qcomp*** matrices, qindex numRows, int numMatrices) {
377
378 // free everything that allocated (but permit anything to have failed)
379 if (matrices != nullptr)
380 for (int n=0; n<numMatrices; n++)
381 cpu_deallocMatrix(matrices[n], numRows);
382
383 // legal to free nullptr
384 free(matrices);
385}
386
387
388int* cpu_allocHeapFlag() {

Callers 1

freeKrausMapFunction · 0.85

Calls 1

cpu_deallocMatrixFunction · 0.85

Tested by

no test coverage detected