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

Function demo_syncDiagMatr

examples/isolated/initialising_matrices.cpp:336–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334
335
336void demo_syncDiagMatr() {
337
338 DiagMatr a = createDiagMatr(2);
339
340 // manually modify the elems
341 a.cpuElems[0] = 1;
342 a.cpuElems[1] = 2_i;
343 a.cpuElems[2] = -3_i;
344 a.cpuElems[3] = -2+4_i;
345
346 syncDiagMatr(a);
347 reportDiagMatr(a);
348 destroyDiagMatr(a);
349}
350
351
352

Callers 1

mainFunction · 0.70

Calls 4

createDiagMatrFunction · 0.85
syncDiagMatrFunction · 0.85
reportDiagMatrFunction · 0.85
destroyDiagMatrFunction · 0.85

Tested by

no test coverage detected