
Public Member Functions | |
| BitMatrix (final int rows, final int columns) | |
| BitMatrix (int size) | |
| int | cardinality () |
| void | clear (int i, int j) |
| Object | clone () |
| int | columns () |
| boolean | equals (Object obj) |
| boolean | get (int i, int j) |
| BitSet | getColumn (int j) |
| BitSet | getRow (int i) |
| int | hashCode () |
| int | rows () |
| void | set (int i, int j) |
| String | toString () |
Private Attributes | |
| BitSet[] | bitsets |
| int | columns |
| int | rows |
Static Private Attributes | |
| static final long | serialVersionUID = 2831903376066135583L |
| BitMatrix.BitMatrix | ( | final int | rows, |
| final int | columns | ||
| ) | [inline] |
Creates a new bit matrix with a specified number of rows and columns.
| rows | The number of rows of the matrix. |
| columns | The number of column of the matrix. |
Definition at line 71 of file BitMatrix.java.
| BitMatrix.BitMatrix | ( | int | size | ) | [inline] |
Creates a new squared matrix of a specific size.
| size | the size of the squared matrix. |
Definition at line 85 of file BitMatrix.java.
| int BitMatrix.cardinality | ( | ) | [inline] |
Returns the cardinality of the matrix, i.e., the number of bits set to 1 in the matrix.
Definition at line 150 of file BitMatrix.java.
| void BitMatrix.clear | ( | int | i, |
| int | j | ||
| ) | [inline] |
Sets the bit at a specified row and column position to false.
| i | the row position. |
| j | the column position. |
Definition at line 105 of file BitMatrix.java.
| Object BitMatrix.clone | ( | ) | [inline] |
Returns a copy of the matrix.
Definition at line 182 of file BitMatrix.java.
| int BitMatrix.columns | ( | ) | [inline] |
Returns the number of columns of the matrix.
Definition at line 163 of file BitMatrix.java.
| boolean BitMatrix.equals | ( | Object | obj | ) | [inline] |
Returns true if this matrix is equals to an other object.
| obj | the object to compared. |
true if this matrix is equals to an other object; false otherwise. Definition at line 200 of file BitMatrix.java.
| boolean BitMatrix.get | ( | int | i, |
| int | j | ||
| ) | [inline] |
Returns the value of the bit at a specific position in the matrix.
| i | The row of the bit. |
| j | The column of the bit. |
Definition at line 140 of file BitMatrix.java.
| BitSet BitMatrix.getColumn | ( | int | j | ) | [inline] |
Returns the jth column of the matrix.
| j | the index of the column. |
Definition at line 125 of file BitMatrix.java.
| BitSet BitMatrix.getRow | ( | int | i | ) | [inline] |
Returns the ith row of the matrix.
| i | the index of the row. |
Definition at line 115 of file BitMatrix.java.
| int BitMatrix.hashCode | ( | ) | [inline] |
Returns the hash code value of this matrix.
Definition at line 214 of file BitMatrix.java.
| int BitMatrix.rows | ( | ) | [inline] |
Returns the number of rows of the matrix.
Definition at line 172 of file BitMatrix.java.
| void BitMatrix.set | ( | int | i, |
| int | j | ||
| ) | [inline] |
Sets the bit at a specified row and column position to true.
| i | the row position. |
| j | the column position. |
Definition at line 95 of file BitMatrix.java.
| String BitMatrix.toString | ( | ) | [inline] |
Returns a string representation of the matrix.
Definition at line 223 of file BitMatrix.java.
BitSet [] BitMatrix.bitsets [private] |
The array of bit set used to to store the matrix.
Definition at line 63 of file BitMatrix.java.
int BitMatrix.columns [private] |
The number of columns.
Definition at line 58 of file BitMatrix.java.
int BitMatrix.rows [private] |
The number of rows.
Definition at line 53 of file BitMatrix.java.
final long BitMatrix.serialVersionUID = 2831903376066135583L [static, private] |
The serial version id of the class.
Definition at line 48 of file BitMatrix.java.