MCPcopy Create free account
hub / github.com/NVIDIA/stdexec / in_col

Function in_col

examples/sudoku.cpp:165–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165bool in_col(board_element *b, unsigned row, unsigned col, unsigned short p)
166{
167 for (unsigned r = 0; r < BOARD_DIM; ++r)
168 if (r != row && b[r * BOARD_DIM + col].solved_element == p)
169 return true;
170 return false;
171}
172
173bool in_block(board_element *b, unsigned row, unsigned col, unsigned short p)
174{

Callers 2

calculate_potentialsFunction · 0.85
valid_boardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected