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

Function validateMatrixAllocs

quest/src/api/matrices.cpp:179–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177// type T can be CompMatr, DiagMatr or FullStateDiagMatr
178template <class T>
179void validateMatrixAllocs(T matr, const char* caller) {
180
181 // free memory before throwing validation error to avoid memory leaks
182 freeAllMemoryIfAnyAllocsFailed(matr);
183 validate_newMatrixAllocs(matr, caller);
184}
185
186
187// type T can be CompMatr, DiagMatr or FullStateDiagMatr

Callers 3

createCompMatrFunction · 0.85
createDiagMatrFunction · 0.85

Calls 2

validate_newMatrixAllocsFunction · 0.85

Tested by

no test coverage detected