public interface SparseMatrix extends Matrix
Matrix
implementations whose backing data
storage permits accessing rows and columns with SparseVector
objects.Matrix
,
SparseDoubleVector
Matrix.Type
Modifier and Type | Method and Description |
---|---|
SparseDoubleVector |
getColumnVector(int column)
Returns the column as a sparse vector.
|
SparseDoubleVector |
getRowVector(int row)
Returns the row as a sparse vector.
|
SparseDoubleVector getColumnVector(int column)
getColumnVector
in interface Matrix
column
- The column to return a DoubleVector
forDoubleVector
representing the column at column
SparseDoubleVector getRowVector(int row)
getRowVector
in interface Matrix
row
- the index of row to returnSparseDoubleVector
of the row's dataCopyright © 2012. All Rights Reserved.