Stay organized with collections
Save and categorize content based on your preferences.
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 2022-09-14 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]