|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--pipe.dataLayer.DataLayer.Matrix
dataLayer - Encapsulates entire Matrix, also contains functions to perform some manipulation TODO: Combined with IntMatrix
| Field Summary | |
static int |
OUT_OF_BOUNDS_ERROR
Return value for function when specified index is out of bounds this should be an exception |
| Constructor Summary | |
DataLayer.Matrix(int[][] matrix)
Construct Matrix from an integer array |
|
DataLayer.Matrix(int i,
int j)
Construct Matrix and set size of internal array |
|
| Method Summary | |
void |
add(DataLayer.Matrix matrixInput)
Add a another matrix current matrix |
int |
get(int i,
int j)
Get specific value in matrix |
int[][] |
getIntArray()
Return internal array of matrix |
void |
minus(DataLayer.Matrix matrixInput)
Subtract a another matrix from current matrix |
void |
set(int i,
int j,
int value)
Set specific value in matrix |
void |
setToZero()
Set all values to zero |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int OUT_OF_BOUNDS_ERROR
| Constructor Detail |
public DataLayer.Matrix(int i,
int j)
i - First dimension of array i.e. int[i][j]j - Second dimension of array i.e. int[i][j]public DataLayer.Matrix(int[][] matrix)
matrix - Input integer array| Method Detail |
public void setToZero()
public void add(DataLayer.Matrix matrixInput)
matrixInput - Other matrix to add to current matrixpublic void minus(DataLayer.Matrix matrixInput)
matrixInput - Other matrix to subtract from current matrix
public void set(int i,
int j,
int value)
i - First dimension of array i.e. int[i][j]j - Second dimension of array i.e. int[i][j]value - Value to set int[i][j] to
public int get(int i,
int j)
i - First dimension of array i.e. int[i][j]j - Second dimension of array i.e. int[i][j]
public int[][] getIntArray()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||