|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lsmp.djep.vectorJep.values.MVector
public class MVector
A Vector of elements.
Constructor Summary | |
---|---|
MVector(int size)
constructs a vector of a given size. |
Method Summary | |
---|---|
MatrixValueI |
copy()
returns a copy of this value. |
boolean |
equals(java.lang.Object obj)
value of constant ele(1). |
Dimensions |
getDim()
Returns the dimension of this object. |
java.lang.Object |
getEle(int i)
gets the i-th element, treats data a a linear array. |
java.lang.Object[] |
getEles()
|
static MatrixValueI |
getInstance(int size)
Creates a vector of a given size. |
int |
getNumEles()
The total number of elements. |
int |
hashCode()
Always override hashCode when you override equals. |
void |
setEle(int i,
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MVector(int size)
Method Detail |
---|
public static MatrixValueI getInstance(int size)
public java.lang.String toString()
toString
in class java.lang.Object
public Dimensions getDim()
MatrixValueI
getDim
in interface MatrixValueI
public int getNumEles()
MatrixValueI
getNumEles
in interface MatrixValueI
public void setEle(int i, java.lang.Object value)
MatrixValueI
setEle
in interface MatrixValueI
public java.lang.Object getEle(int i)
MatrixValueI
getEle
in interface MatrixValueI
public void setEles(MatrixValueI val)
setEles
in interface MatrixValueI
public java.lang.Object[] getEles()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public MatrixValueI copy()
MatrixValueI
copy
in interface MatrixValueI
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |