|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.collection.ByteMatrix2D
public class ByteMatrix2D
| Constructor Summary | |
|---|---|
ByteMatrix2D(byte[][] vals)
|
|
ByteMatrix2D(int rows,
int cols)
|
|
| Method Summary | |
|---|---|
int |
columns()
Returns the number of columns in this matrix. |
ByteMatrix2D |
copy()
|
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()
|
ByteMatrix2D |
zMult(ByteMatrix2D B)
Multiply this matrix by the specified matrix and return the result in a new matrix. |
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 ByteMatrix2D(int rows,
int cols)
public ByteMatrix2D(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 ByteMatrix2D copy()
public ByteMatrix2D zMult(ByteMatrix2D B)
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 | |||||||||