public interface SparseMatrixState<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.
|
void |
setColumn(long i,
SparseMatrixState.SparseVector<T> column)
Sets/Replaces a specific column.
|
void |
setRow(long j,
SparseMatrixState.SparseVector<T> row)
Sets/Replaces a specific row.
|
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 indexvoid setColumn(long i,
SparseMatrixState.SparseVector<T> column)
i - column indexcolumn - the new columnSparseMatrixState.SparseVector<T> getRow(long j)
SparseMatrixState.SparseVector.j - row indexvoid setRow(long j,
SparseMatrixState.SparseVector<T> row)
j - row indexrow - the new rowCopyright © 2013. All rights reserved.