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

Method block_col

examples/sudoku-advanced.cpp:221–224  ·  view source on GitHub ↗

Extract column \a bc from block starting at (\a i,\a j)

Source from the content-addressed store, hash-verified

219
220 /// Extract column \a bc from block starting at (\a i,\a j)
221 IntVarArgs
222 block_col(Matrix<IntVarArray> m, int bc, int i, int j) {
223 return m.slice(bc*n+i, bc*n+i+1, j*n, (j+1)*n);
224 }
225
226 /// Extract row \a br from block starting at (\a i,\a j)
227 IntVarArgs

Callers

nothing calls this directly

Calls 1

sliceMethod · 0.45

Tested by

no test coverage detected