|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.mathprog.linalg.RowVectorOfMatrix
public class RowVectorOfMatrix
A row of a matrix as vector.
Constructor Summary | |
---|---|
RowVectorOfMatrix(Matrix matrix,
int row)
Constructor |
Method Summary | |
---|---|
int |
getDimension()
Get the dimension of the vector. |
Matrix |
getMatrix()
|
int |
getNumIterations()
Return the number of entries of the vector through which the iterator returned by getIterator() iterates. |
int |
getRow()
|
VectorIterator<NoLabel> |
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 |
Constructor Detail |
---|
public RowVectorOfMatrix(Matrix matrix, int row)
matrix
- the matrixrow
- the row as matrix to show as vectorMethod 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>
public final int getRow()
public final Matrix getMatrix()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |