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

Function setDiagMatr

quest/src/api/matrices.cpp:431–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429
430
431extern "C" void setDiagMatr(DiagMatr out, qcomp* in) {
432 validate_matrixFields(out, __func__);
433 validate_matrixNewElemsPtrNotNull(in, __func__);
434
435 // overwrite CPU memory
436 cpu_copyArray(out.cpuElems, in, out.numElems);
437
438 // overwrite GPU elements; validation gauranteed to pass
439 syncDiagMatr(out);
440}
441
442
443extern "C" void setFullStateDiagMatr(FullStateDiagMatr out, qindex startInd, qcomp* in, qindex numElems) {

Callers 9

SECTIONFunction · 0.85
setInlineDiagMatrFunction · 0.85
createInlineDiagMatrFunction · 0.85
_setInlineDiagMatrFunction · 0.85
_createInlineDiagMatrFunction · 0.85
demo_setDiagMatrFunction · 0.85
demo_setDiagMatrFunction · 0.85

Calls 5

validate_matrixFieldsFunction · 0.85
cpu_copyArrayFunction · 0.85
syncDiagMatrFunction · 0.85

Tested by

no test coverage detected