reach / DFS works row-major
dense triangular solvers are row-major