|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.collection.BitMatrix2D
public class BitMatrix2D
Matrix for storing elements as bits (0 or 1).
| Constructor Summary | |
|---|---|
BitMatrix2D(byte[][] vals)
|
|
BitMatrix2D(int rows,
int cols)
|
|
| Method Summary | |
|---|---|
int |
columns()
Returns the number of columns in this matrix. |
byte |
get(int row,
int col)
Gets the value in the specified cell. |
cern.colt.matrix.impl.DenseDoubleMatrix1D |
getRow(int row)
|
static void |
main(java.lang.String[] args)
|
int |
rows()
Returns the number of rows in this matrix. |
void |
set(int row,
int col,
byte val)
Sets the value of the specified cell. |
java.lang.String |
toString()
|
double |
zSum()
Returns the sum of all the cells. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BitMatrix2D(int rows,
int cols)
public BitMatrix2D(byte[][] vals)
| Method Detail |
|---|
public cern.colt.matrix.impl.DenseDoubleMatrix1D getRow(int row)
public void set(int row,
int col,
byte val)
public byte get(int row,
int col)
public int rows()
public int columns()
public double zSum()
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||