Package | Description |
---|---|
dev.nm.algebra.linear.matrix.doubles.matrixtype.sparse |
Modifier and Type | Method and Description |
---|---|
List<SparseMatrix.Entry> |
SparseMatrix.getEntryList()
Exports the non-zero values in the matrix as a list of
SparseMatrix.Entry s. |
List<SparseMatrix.Entry> |
LILSparseMatrix.getEntryList() |
List<SparseMatrix.Entry> |
DOKSparseMatrix.getEntryList() |
List<SparseMatrix.Entry> |
CSRSparseMatrix.getEntryList() |
Modifier and Type | Method and Description |
---|---|
int |
SparseMatrix.Entry.TopLeftFirstComparator.compare(SparseMatrix.Entry o1,
SparseMatrix.Entry o2) |
static int[] |
SparseMatrixUtils.sortInColumnOrder(SparseMatrix.Entry[] entries,
int nCols)
Sorts an array of sparse matrix entries in column order (row indices in the same row can be
in arbitrary order) in linear time.
|
static int[] |
SparseMatrixUtils.sortInRowColumnOrder(SparseMatrix.Entry[] entries,
int nRows,
int nCols,
boolean checkRange,
boolean checkDuplicate)
Sorts an array of sparse matrix entries in row-column order in linear time.
|
static int[] |
SparseMatrixUtils.sortInRowOrder(SparseMatrix.Entry[] entries,
int nRows)
Sorts an array of sparse matrix entries in row order (column indices in the same row can be
in arbitrary order) in linear time.
|
Modifier and Type | Method and Description |
---|---|
static int[] |
SparseMatrixUtils.countEntriesInEachColumn(List<SparseMatrix.Entry> entries,
int nCols)
Counts the number of entries in each column.
|
static int[] |
SparseMatrixUtils.countEntriesInEachRow(List<SparseMatrix.Entry> entries,
int nRows)
Counts the number of entries in each row.
|
static int[] |
SparseMatrixUtils.sortInColumnOrder(List<SparseMatrix.Entry> entries,
int nCols)
Sorts a list of sparse matrix entries in column order (row indices in the same row can be in
arbitrary order) in linear time.
|
static int[] |
SparseMatrixUtils.sortInRowColumnOrder(List<SparseMatrix.Entry> entries,
int nRows,
int nCols,
boolean checkRange,
boolean checkDuplicate)
Sorts a list of sparse matrix entries in row-column order in linear time.
|
static int[] |
SparseMatrixUtils.sortInRowOrder(List<SparseMatrix.Entry> entries,
int nRows)
Sorts a list of sparse matrix entries in row order (column indices in the same row can be in
arbitrary order) in linear time.
|
Constructor and Description |
---|
CSRSparseMatrix(int nRows,
int nCols,
List<SparseMatrix.Entry> entries)
Constructs a sparse matrix in CSR format by a list of non-zero entries.
|
CSRSparseMatrix(int nRows,
int nCols,
List<SparseMatrix.Entry> entries,
boolean areEntriesSorted)
Constructs a sparse matrix in CSR format by a list of non-zero entries.
|
DOKSparseMatrix(int nRows,
int nCols,
List<SparseMatrix.Entry> entries)
Construct a sparse matrix in DOK format by a list of non-zero entries.
|
LILSparseMatrix(int nRows,
int nCols,
List<SparseMatrix.Entry> entries)
Construct a sparse matrix in LIL format by a list of non-zero entries.
|
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.