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

Function demo_DiagMatr

examples/isolated/reporting_matrices.cpp:49–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48
49void demo_DiagMatr() {
50
51 DiagMatr matr = createDiagMatr(5);
52 for (qindex i=0; i<matr.numElems; i++)
53 matr.cpuElems[i] = i + 1;
54 syncDiagMatr(matr);
55
56 for (int num : {0, 10}) {
57 rootPrint(num);
58 setMaxNumReportedItems(num, num);
59 reportDiagMatr(matr);
60 }
61}
62
63
64

Callers 1

mainFunction · 0.70

Calls 5

createDiagMatrFunction · 0.85
syncDiagMatrFunction · 0.85
setMaxNumReportedItemsFunction · 0.85
reportDiagMatrFunction · 0.85
rootPrintFunction · 0.70

Tested by

no test coverage detected