|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.mathprog.linalg.DoubleVec<Label>
public class DoubleVec<Label>
A plain double array as SparseVec.
Field Summary | |
---|---|
protected Label |
label
|
Constructor Summary | |
---|---|
protected |
DoubleVec(double[] doubleArr)
Constructor |
protected |
DoubleVec(double[] doubleArr,
Label label)
Constructor |
Method Summary | |
---|---|
int |
getDimension()
|
int |
getNumIterations()
Return the number of entries of the vector through which the iterator returned by getIterator() iterates. |
VectorIterator<Label> |
iterator()
Get an iterator which iterates through all non-zero entries of the vector. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Label label
Constructor Detail |
---|
protected DoubleVec(double[] doubleArr)
doubleArr
- the double array to be wrapped.protected DoubleVec(double[] doubleArr, Label label)
doubleArr
- the double array to be wrapped.Method Detail |
---|
public int getDimension()
public VectorIterator<Label> iterator()
SparseVec
iterator
in interface SparseVec<Label>
public int getNumIterations()
SparseVec
getNumIterations
in interface SparseVec<Label>
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |