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

Function demo_CompMatr

examples/isolated/reporting_matrices.cpp:32–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31
32void demo_CompMatr() {
33
34 CompMatr matr = createCompMatr(4);
35 for (qindex r=0; r<matr.numRows; r++)
36 for (qindex c=0; c<matr.numRows; c++)
37 matr.cpuElems[r][c] = r*matr.numRows + c + 1;
38 syncCompMatr(matr);
39
40 for (int num : {0, 12, 5, 1}) {
41 rootPrint(num);
42 setMaxNumReportedItems(num, num);
43 reportCompMatr(matr);
44 }
45}
46
47
48

Callers 1

mainFunction · 0.70

Calls 5

createCompMatrFunction · 0.85
syncCompMatrFunction · 0.85
setMaxNumReportedItemsFunction · 0.85
reportCompMatrFunction · 0.85
rootPrintFunction · 0.70

Tested by

no test coverage detected