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

Function getTranspose

tests/utils/linalg.cpp:269–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267
268
269qmatrix getTranspose(qmatrix m) {
270
271 qmatrix out = getZeroMatrix(m.size());
272
273 for (size_t r=0; r<m.size(); r++)
274 for (size_t c=0; c<m.size(); c++)
275 out[r][c] = m[c][r];
276
277 return out;
278}
279
280
281qmatrix getConjugate(qmatrix m) {

Callers 2

getRandomUnitaryFunction · 0.70
SECTIONFunction · 0.50

Calls 1

getZeroMatrixFunction · 0.70

Tested by

no test coverage detected