public interface MatrixI
Modifier and Type | Method and Description |
---|---|
Dimensions |
getDimensions()
Gets the dimensions of the Vector or Matrix
|
java.lang.Object |
getEle(int row,
int col)
Gets an element of a matrix
|
int |
getNCols()
The number of columns
|
int |
getNRows()
The number of rows
|
void |
setEle(int row,
int col,
java.lang.Object val)
Set an element of a matrix
|
java.lang.Object[][] |
toArray(java.lang.Object[][] mat)
Copies the data to an array
|
java.lang.Object getEle(int row, int col)
row
- the rowcol
- the columnvoid setEle(int row, int col, java.lang.Object val) throws EvaluationException
row
- col
- val
- value to setEvaluationException
int getNRows()
int getNCols()
Dimensions getDimensions()
java.lang.Object[][] toArray(java.lang.Object[][] mat) throws EvaluationException
mat
- EvaluationException
- if mat is not a matrix of the correct sizeCopyright © 2018 Singular Systems http://www.singularsys.com/jep