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

Method pos

gecode/int/nvalues/sym-bit-matrix.hpp:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36namespace Gecode { namespace Int { namespace NValues {
37
38 forceinline int
39 SymBitMatrix::pos(int x, int y) const {
40 assert(x < y);
41 return (x*(2*n-x-1)) / 2 + y - x - 1;
42 }
43
44 forceinline
45 SymBitMatrix::SymBitMatrix(Region& r, int n0)

Callers 7

commitMethod · 0.45
printMethod · 0.45
commitMethod · 0.45
nglMethod · 0.45
printMethod · 0.45
choiceMethod · 0.45
commitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected