MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / transpose

Method transpose

code/data-structures/matrix.cpp:52–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 } r++;
51 } return mat; }
52 matrix<T> transpose() {
53 matrix<T> res(cols, rows);
54 rep(i,0,rows) rep(j,0,cols) res(j, i) = at(i, j);
55 return res; } };
56// vim: cc=60 ts=2 sts=2 sw=2:

Callers 1

testFunction · 0.80

Calls

no outgoing calls

Tested by 1

testFunction · 0.64