Matrix version of the RevBitSet class.
Definition at line 470 of file constraint_solveri.h.
◆ RevBitMatrix()
| operations_research::RevBitMatrix::RevBitMatrix |
( |
int64 |
rows, |
|
|
int64 |
columns |
|
) |
| |
◆ ~RevBitMatrix()
| operations_research::RevBitMatrix::~RevBitMatrix |
( |
| ) |
|
◆ Cardinality()
| int64 operations_research::RevBitMatrix::Cardinality |
( |
int |
row | ) |
const |
Returns the number of bits set to one in the 'row' row.
◆ ClearAll()
| void operations_research::RevBitMatrix::ClearAll |
( |
Solver *const |
solver | ) |
|
◆ GetFirstBit()
| int64 operations_research::RevBitMatrix::GetFirstBit |
( |
int |
row, |
|
|
int |
start |
|
) |
| const |
Returns the first bit in the row 'row' which position is >= 'start'.
It returns -1 if there are none.
◆ IsCardinalityOne()
| bool operations_research::RevBitMatrix::IsCardinalityOne |
( |
int |
row | ) |
const |
Does the 'row' bitset contains only one bit set?
◆ IsCardinalityZero()
| bool operations_research::RevBitMatrix::IsCardinalityZero |
( |
int |
row | ) |
const |
Is bitset of row 'row' null?
◆ IsSet()
| bool operations_research::RevBitMatrix::IsSet |
( |
int64 |
row, |
|
|
int64 |
column |
|
) |
| const |
|
inline |
◆ SetToOne()
| void operations_research::RevBitMatrix::SetToOne |
( |
Solver *const |
solver, |
|
|
int64 |
row, |
|
|
int64 |
column |
|
) |
| |
Sets the 'column' bit in the 'row' row.
◆ SetToZero()
| void operations_research::RevBitMatrix::SetToZero |
( |
Solver *const |
solver, |
|
|
int64 |
row, |
|
|
int64 |
column |
|
) |
| |
Erases the 'column' bit in the 'row' row.
The documentation for this class was generated from the following file: