public interface SparseMatrixState<T> extends ExtendedState<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
SparseMatrixState.SparseVector<T> |
| Modifier and Type | Method and Description |
|---|---|
T |
get(long i,
long j)
Gets a specific value inside the matrix.
|
SparseMatrixState.SparseVector<T> |
getColumn(long i)
Gets a specific column as a
SparseMatrixState.SparseVector. |
SparseMatrixState.SparseVector<T> |
getRow(long j)
Gets a specific row as a
SparseMatrixState.SparseVector. |
void |
set(long i,
long j,
T value)
Sets a specific value inside the matrix.
|
T get(long i, long j)
i - row indexj - column indexnull if no value was foundvoid set(long i,
long j,
T value)
i - row indexj - column indexvalue - the new valueSparseMatrixState.SparseVector<T> getColumn(long i)
SparseMatrixState.SparseVector.i - column indexSparseMatrixState.SparseVector<T> getRow(long j)
SparseMatrixState.SparseVector.j - row indexCopyright © 2013. All rights reserved.