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

Function printContiguousRowsInTwoQuadrants

quest/src/core/printer.cpp:681–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679
680
681void printContiguousRowsInTwoQuadrants(
682 stringmatr left, vector<size_t> leftColWidths,
683 stringmatr right, vector<size_t> rightColWidths,
684 vector<string> rowLabels,
685 string indent, string indentPerRow, size_t rowOffsetForIndent
686) {
687 for (size_t r=0; r<left.size(); r++) {
688 printPerRowIndent(indent, r + rowOffsetForIndent, indentPerRow);
689
690 auto rightRow = (right.empty())? vector<string>{} : right[r];
691 printRowInTwoQuadrants(left[r], leftColWidths, rightRow, rightColWidths);
692
693 // print optional row label, using trailing space left by above row print
694 cout << (rowLabels.empty()? "" : rowLabels[r]);
695 cout << endl;
696 }
697}
698
699
700void printMatrixInFourQuadrants(

Callers 1

Calls 2

printPerRowIndentFunction · 0.85
printRowInTwoQuadrantsFunction · 0.85

Tested by

no test coverage detected