MCPcopy Create free account
hub / github.com/Gecode/gecode / id

Function id

examples/pentominoes.cpp:890–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

888 }
889 template<class CArray, class Array>
890 void id(CArray t1, int w1, int h1, Array t2, int& w2, int&h2) {
891 w2 = w1; h2 = h1;
892 for (int h = 0; h < h1; ++h)
893 for (int w = 0; w < w1; ++w)
894 t2[pos(h, w, h2, w2)] = t1[pos(h, w, h1, w1)];
895 }
896 template<class CArray, class Array>
897 void rot90(CArray t1, int w1, int h1, Array t2, int& w2, int& h2) {
898 w2 = h1; h2 = w1;

Callers 5

archiveMethod · 0.50
core.cppFile · 0.50
operator ==Method · 0.50
operator !=Method · 0.50
core.hppFile · 0.50

Calls 1

posFunction · 0.70

Tested by

no test coverage detected