public interface Matrix
Modifier and Type | Method and Description |
---|---|
double |
apply(int row,
int col)
Element wise access function
|
Matrix |
copy()
Copies the matrix instance
|
boolean |
equalsMatrix(Matrix matrix) |
int |
numCols()
Number of columns
|
int |
numRows()
Number of rows
|
void |
update(int row,
int col,
double value)
Element wise update function
|
int numRows()
int numCols()
double apply(int row, int col)
row
- row indexcol
- column indexvoid update(int row, int col, double value)
row
- row indexcol
- column indexvalue
- value to set at (row, col)Matrix copy()
boolean equalsMatrix(Matrix matrix)
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.