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

Function setMaxNumReportedItems

quest/src/api/debug.cpp:128–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127
128void setMaxNumReportedItems(qindex numRows, qindex numCols) {
129 validate_envIsInit(__func__);
130 validate_newMaxNumReportedScalars(numRows, numCols, __func__);
131
132 // replace 0 values (indicating no truncation) with max-val,
133 // since there can never be max(qindex)-many amps
134 qindex max = std::numeric_limits<qindex>::max();
135 numRows = (numRows == 0)? max : numRows;
136 numCols = (numCols == 0)? max : numCols;
137
138 printer_setMaxNumPrintedScalars(numRows, numCols);
139}
140
141
142void setMaxNumReportedSigFigs(int numSigFigs) {

Callers 12

reportMyStructsFunction · 0.85
mainFunction · 0.85
reportMyStructsFunction · 0.85
mainFunction · 0.85
demo_PauliStrSumFunction · 0.85
demo_CompMatrFunction · 0.85
demo_DiagMatrFunction · 0.85
demo_FullStateDiagMatrFunction · 0.85
demo_PauliStrSumFunction · 0.85
demo_CompMatrFunction · 0.85
demo_DiagMatrFunction · 0.85
demo_FullStateDiagMatrFunction · 0.85

Calls 3

validate_envIsInitFunction · 0.85

Tested by

no test coverage detected