|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VectorIterable
Method Summary | |
---|---|
Iterator<MatrixSlice> |
iterateAll()
|
int |
numCols()
|
int |
numRows()
|
int |
numSlices()
|
Vector |
times(Vector v)
Return a new vector with cardinality equal to getNumRows() of this matrix which is the matrix product of the recipient and the argument |
Vector |
timesSquared(Vector v)
Convenience method for producing this.transpose().times(this.times(v)), which can be implemented with only one pass over the matrix, without making the transpose() call (which can be expensive if the matrix is sparse) |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
Iterator<MatrixSlice> iterateAll()
int numSlices()
int numRows()
int numCols()
Vector times(Vector v)
v
- a vector with cardinality equal to getNumCols() of the recipient
CardinalityException
- if this.getNumRows() != v.size()Vector timesSquared(Vector v)
v
- a vector with cardinality equal to getNumCols() of the recipient
CardinalityException
- if this.getNumCols() != v.size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |