| 63 | |
| 64 | |
| 65 | void demo_FullStateDiagMatr() { |
| 66 | |
| 67 | // force use of available hardware acceleration |
| 68 | QuESTEnv env = getQuESTEnv(); |
| 69 | FullStateDiagMatr matr = createCustomFullStateDiagMatr(6, env.isDistributed, env.isGpuAccelerated, env.isMultithreaded); |
| 70 | |
| 71 | // lazily set each element individually |
| 72 | for (qindex i=0; i<matr.numElems; i++) |
| 73 | setInlineFullStateDiagMatr(matr, i, 1, {(qreal) i+1}); |
| 74 | |
| 75 | for (int num : {0, 50, 30, 10, 5, 1}) { |
| 76 | rootPrint(num); |
| 77 | setMaxNumReportedItems(num, num); |
| 78 | reportFullStateDiagMatr(matr); |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | |
| 83 |
no test coverage detected