| 517 | } |
| 518 | |
| 519 | void 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 |
no test coverage detected