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

Function cpu_deallocMatrixWrapper

quest/src/cpu/cpu_config.cpp:315–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313
314
315void cpu_deallocMatrixWrapper(qcomp** wrapper) {
316
317 // only the outer pointer is freed; the
318 // inner pointers are offsets to another
319 // malloc which is separately freed.
320 // Safe to call even when nullptr
321 free(wrapper);
322}
323
324
325qcomp** cpu_allocMatrix(qindex dim) {

Callers 2

freeSuperOpFunction · 0.85
freeHeapMatrixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected