MCPcopy Create free account
hub / github.com/Derious/cuMPC / encode

Function encode

dependence/eigen-3.4.0/test/indexed_view.cpp:45–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43typedef std::pair<Index,Index> IndexPair;
44
45int encode(Index i, Index j) {
46 return int(i*100 + j);
47}
48
49IndexPair decode(Index ij) {
50 return IndexPair(ij / 100, ij % 100);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected