This commit is contained in:
Folkert 2022-04-22 16:05:06 +02:00
parent 9f7c7b56a1
commit a40483a2ec
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 34 additions and 70 deletions

View file

@ -27,8 +27,8 @@ impl ReferenceMatrix {
}
#[inline(always)]
pub fn set(&mut self, index: usize, value: bool) {
self.bitvec.set(index, value)
pub fn set_row_col(&mut self, row: usize, col: usize, value: bool) {
self.bitvec.set(row * self.length + col, value)
}
#[inline(always)]