C++ Reference: class RevBitMatrix
Note: This documentation is automatically generated.
Matrix version of the RevBitSet class.
Method |
Cardinality | Return type: int64_t Arguments: int row Returns the number of bits set to one in the 'row' row.
|
ClearAll | Return type: void Arguments: Solver* const solver Cleans all bits.
|
GetFirstBit | Return type: int64_t Arguments: int row, int start Returns the first bit in the row 'row' which position is >= 'start'.
It returns -1 if there are none.
|
IsCardinalityOne | Return type: bool Arguments: int row Does the 'row' bitset contains only one bit set?
|
IsCardinalityZero | Return type: bool Arguments: int row Is bitset of row 'row' null?
|
IsSet | Return type: bool Arguments: int64_t row, int64_t column Returns whether the 'column' bit in the 'row' row is set.
|
RevBitMatrix | Arguments: int64_t rows, int64_t columns |
~RevBitMatrix | |
SetToOne | Return type: void Arguments: Solver* const solver, int64_t row, int64_t column Sets the 'column' bit in the 'row' row.
|
SetToZero | Return type: void Arguments: Solver* const solver, int64_t row, int64_t column Erases the 'column' bit in the 'row' row.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[[["`RevBitMatrix` is a matrix representation of the `RevBitSet` class in C++, providing a way to store and manipulate bits in a two-dimensional structure."],["It offers methods for setting, clearing, and checking the status of individual bits within the matrix using row and column indices."],["Functionality includes determining the cardinality of rows, finding the first set bit in a row, and checking if a row contains only one or zero bits set."],["The class provides constructors for initialization and a destructor for cleanup."],["Methods like `SetToOne`, `SetToZero`, `ClearAll` allow for manipulation of the bit matrix within a solver context."]]],[]]