|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.adapters.drasys.lp.VectorIAsSparseVector
public class VectorIAsSparseVector
Wrap a VectorI as SparseVec.
Constructor Summary | |
---|---|
VectorIAsSparseVector(drasys.or.matrix.VectorI draVec)
Constructor. |
Method Summary | |
---|---|
int |
getDimension()
Get the dimension of the vector. |
int |
getNumIterations()
Return the number of entries of the vector through which the iterator returned by getIterator() iterates. |
VectorIterator<NoLabel> |
iterator()
Get an iterator which iterates through all non-zero entries of the vector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VectorIAsSparseVector(drasys.or.matrix.VectorI draVec)
draVec
- the VectorI to be wrapped.Method Detail |
---|
public int getDimension()
SparseVector
getDimension
in interface SparseVector
public VectorIterator<NoLabel> iterator()
SparseVec
iterator
in interface SparseVec<NoLabel>
public int getNumIterations()
SparseVec
getNumIterations
in interface SparseVec<NoLabel>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |