bitset-matrix
A compact, row-major 2D bitset matrix with fast bitwise operations across rows and columns.
Features
- Dense, row-major
u64-backed storage - Fast row-wise block operations (SIMD feature available)
- Column ops and iterators for convenience
- Small, dependency-free core; optional
simdfeature for acceleration
Quick example: N-Queens helper
use BitMatrix;
// Example: for backtracking you'd store available columns as a row of bits
let mut m = new;
for c in 0..8
// pick col 3
m.set;
Quick example: Sudoku pencil marks
use BitMatrix;
// 9x9 board, each cell can have 1..9 candidates encoded per row per submatrix as needed
let mut board = new;
board.set; // candidate marker
See examples/ for a runnable N-Queens example.