|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
org.lsmp.djep.vectorJep.values.Matrix
Represents a matrix.
Constructor Summary | |
Matrix(int rows,
int cols)
Construct a matrix with given rows and cols. |
Method Summary | |
double |
doubleValue()
value of ele(1,1). |
boolean |
equals(java.lang.Object obj)
Are two matricies equal, element by element Overrides Object. |
float |
floatValue()
value of ele(1,1). |
Dimensions |
getDim()
Returns the dimension of this object. |
java.lang.Object |
getEle(int n)
gets the i-th element, treats data a a linear array. |
java.lang.Object |
getEle(int i,
int j)
|
java.lang.Object[][] |
getEles()
|
int |
getNumCols()
|
int |
getNumEles()
The total number of elements. |
int |
getNumRows()
|
int |
hashCode()
Always override hashCode when you override equals. |
int |
intValue()
value of ele(1,1). |
long |
longValue()
value of ele(1,1). |
void |
setEle(int i,
int j,
java.lang.Object value)
|
void |
setEle(int n,
java.lang.Object value)
sets the i-th element, treats data a a linear array. |
void |
setEles(MatrixValueI val)
sets the elements to those of the arguments. |
java.lang.String |
toString()
Returns a string rep of matrix. |
Methods inherited from class java.lang.Number |
byteValue, shortValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Matrix(int rows, int cols)
Method Detail |
public java.lang.String toString()
public Dimensions getDim()
MatrixValueI
getDim
in interface MatrixValueI
public int getNumEles()
MatrixValueI
getNumEles
in interface MatrixValueI
public int getNumRows()
public int getNumCols()
public void setEle(int n, java.lang.Object value)
MatrixValueI
setEle
in interface MatrixValueI
public void setEle(int i, int j, java.lang.Object value)
public java.lang.Object getEle(int n)
MatrixValueI
getEle
in interface MatrixValueI
public java.lang.Object getEle(int i, int j)
public java.lang.Object[][] getEles()
public void setEles(MatrixValueI val)
setEles
in interface MatrixValueI
public int intValue()
public long longValue()
public float floatValue()
public double doubleValue()
public boolean equals(java.lang.Object obj)
public int hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |