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

Function demo_syncCompMatr

examples/isolated/initialising_matrices.cpp:198–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196
197
198void demo_syncCompMatr() {
199
200 CompMatr a = createCompMatr(2);
201
202 // manually modify the elems
203 a.cpuElems[0][0] = 1;
204 a.cpuElems[1][1] = 2i;
205 a.cpuElems[2][2] = -3i;
206 a.cpuElems[3][3] = -2+4_i;
207
208 syncCompMatr(a);
209 reportCompMatr(a);
210 destroyCompMatr(a);
211}
212
213
214

Callers 1

mainFunction · 0.70

Calls 4

createCompMatrFunction · 0.85
syncCompMatrFunction · 0.85
reportCompMatrFunction · 0.85
destroyCompMatrFunction · 0.85

Tested by

no test coverage detected