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

Function setInlineFullStateDiagMatr

quest/src/api/matrices.cpp:519–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519void setInlineFullStateDiagMatr(FullStateDiagMatr matr, qindex startInd, qindex numElems, vector<qcomp> in) {
520 validate_matrixFields(matr, __func__);
521 validate_declaredNumElemsMatchesVectorLength(numElems, in.size(), __func__);
522 validate_fullStateDiagMatrNewElems(matr, startInd, numElems, __func__);
523
524 setFullStateDiagMatr(matr, startInd, in); // validation gauranteed to pass
525}
526
527
528

Callers 4

demo_FullStateDiagMatrFunction · 0.85
demo_FullStateDiagMatrFunction · 0.85

Tested by

no test coverage detected