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

Function getMatrixOfQcompStrings

quest/src/core/printer.cpp:572–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570
571
572stringmatr getMatrixOfQcompStrings(qcompmatr in) {
573
574 if (in.empty())
575 return stringmatr(0);
576
577 size_t numRows = in.size();
578 size_t numCols = in[0].size();
579 stringmatr out(numRows, vector<string>(numCols));
580
581 for (size_t r=0; r<numRows; r++)
582 for (size_t c=0; c<numCols; c++)
583 out[r][c] = toStr(in[r][c]);
584
585 return out;
586}
587
588
589

Callers 1

Calls 1

toStrFunction · 0.85

Tested by

no test coverage detected