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

Function allocateMatrixQuadrants

quest/src/core/printer.cpp:871–877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

869
870
871void allocateMatrixQuadrants(MatrixQuadrantInds inds, qcompmatr &ul, qcompmatr &ur, qcompmatr &ll, qcompmatr &lr) {
872
873 util_tryAllocMatrix(ul, inds.numUpperLeftRows, inds.numUpperLeftCols, error_printerFailedToAllocTempMemory);
874 util_tryAllocMatrix(ur, inds.numUpperRightRows, inds.numUpperRightCols, error_printerFailedToAllocTempMemory); // may be zero-size
875 util_tryAllocMatrix(ll, inds.numLowerLeftRows, inds.numLowerLeftCols, error_printerFailedToAllocTempMemory); // may be zero-size
876 util_tryAllocMatrix(lr, inds.numLowerRightRows, inds.numLowerRightCols, error_printerFailedToAllocTempMemory); // may be zero-size
877}
878
879
880void populateSingleColumnQcompmatr(qcompmatr &matr, qindex startInd, PauliStrSum sum) {

Callers 3

printDenseSquareMatrixFunction · 0.85
printVectorFunction · 0.85
print_elemsFunction · 0.85

Calls 1

util_tryAllocMatrixFunction · 0.85

Tested by

no test coverage detected