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

Function destroyCachedFullStateDiagMatrs

tests/utils/cache.cpp:187–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void destroyCachedFullStateDiagMatrs() {
188
189 // must not be called twice
190 DEMAND( !matrices.empty() );
191
192 for (auto& [label, matrix]: matrices)
193 destroyFullStateDiagMatr(matrix);
194
195 matrices.clear();
196}
197
198matrixCache getCachedFullStateDiagMatrs() {
199

Callers 1

mainFunction · 0.85

Calls 1

destroyFullStateDiagMatrFunction · 0.85

Tested by

no test coverage detected