Package | Description |
---|---|
dev.nm.algebra.linear.matrix.doubles.matrixtype.sparse | |
dev.nm.algebra.linear.matrix.doubles.operation | |
dev.nm.algebra.linear.vector.doubles.operation |
Modifier and Type | Class and Description |
---|---|
class |
CSRSparseMatrix
The Compressed Sparse Row (CSR) format for sparse matrix has this representation:
(value, col_ind, row_ptr) . |
class |
DOKSparseMatrix
The Dictionary Of Key (DOK) format for sparse matrix uses the coordinates of
non-zero entries in the matrix as keys.
|
class |
LILSparseMatrix
The list of lists (LIL) format for sparse matrix stores one list per row,
where each entry stores a column index and value.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
SparseMatrixUtils.equals(SparseMatrix A,
SparseMatrix B)
Checks if two SparseMatrixs are equal.
|
static String |
SparseMatrixUtils.toString(SparseMatrix A)
Returns a string representation of a SparseMatrix.
|
Modifier and Type | Method and Description |
---|---|
static SparseMatrix |
MatrixFactory.cbind(SparseMatrix... matrices)
Combines an array of sparse matrices by columns.
|
static SparseMatrix |
MatrixFactory.cbind(SparseVector... vectors)
Combines an array of sparse vectors by columns and returns a CSR sparse matrix.
|
static SparseMatrix |
MatrixFactory.rbind(SparseMatrix... matrices)
Combines an array of sparse matrices by rows.
|
static SparseMatrix |
MatrixFactory.rbind(SparseVector... vectors)
Combines an array of sparse vectors by rows and returns a sparse matrix.
|
static SparseMatrix |
MatrixFactory.subMatrix(SparseMatrix A,
int[] rows,
int[] cols)
Constructs a sub-matrix from the intersections of rows and columns of a sparse matrix.
|
static SparseMatrix |
MatrixFactory.subMatrix(SparseMatrix A,
int rowFrom,
int rowTo,
int colFrom,
int colTo)
Constructs a sub-matrix from the four corners of a sparse matrix.
|
Modifier and Type | Method and Description |
---|---|
static SparseMatrix |
MatrixFactory.cbind(SparseMatrix... matrices)
Combines an array of sparse matrices by columns.
|
static SparseMatrix |
MatrixFactory.rbind(SparseMatrix... matrices)
Combines an array of sparse matrices by rows.
|
static SparseMatrix |
MatrixFactory.subMatrix(SparseMatrix A,
int[] rows,
int[] cols)
Constructs a sub-matrix from the intersections of rows and columns of a sparse matrix.
|
static SparseMatrix |
MatrixFactory.subMatrix(SparseMatrix A,
int rowFrom,
int rowTo,
int colFrom,
int colTo)
Constructs a sub-matrix from the four corners of a sparse matrix.
|
Modifier and Type | Method and Description |
---|---|
static SparseVector |
VectorFactory.diagonal(SparseMatrix A)
Gets the diagonal of a sparse matrix as a sparse vector.
|
static SparseVector |
VectorFactory.subDiagonal(SparseMatrix A)
Gets the sub-diagonal of a sparse matrix as a sparse vector.
|
static SparseVector |
VectorFactory.superDiagonal(SparseMatrix A)
Gets the super-diagonal of a sparse matrix as a sparse vector.
|
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.