Uses of Class
org.la4j.matrix.sparse.CRSMatrix
Packages that use CRSMatrix
-
Uses of CRSMatrix in org.la4j
Modifier and TypeFieldDescriptionstatic final MatrixFactory
<CRSMatrix> Matrices.CRS
A matrix factory that produces zeroCRSMatrix
.static final MatrixFactory
<CRSMatrix> Matrices.SPARSE
A default factory for sparse matrices.static final MatrixFactory
<CRSMatrix> Matrices.SPARSE_ROW_MAJOR
A default factory for sparse row-major matrices. -
Uses of CRSMatrix in org.la4j.matrix.sparse
Methods in org.la4j.matrix.sparse that return CRSMatrixModifier and TypeMethodDescriptionstatic CRSMatrix
static CRSMatrix
CRSMatrix.diagonal
(int size, double diagonal) static CRSMatrix
CRSMatrix.from1DArray
(int rows, int columns, double[] array) Creates a newCRSMatrix
from the given 1Darray
with compressing (copying) the underlying array.static CRSMatrix
CRSMatrix.from2DArray
(double[][] array) Creates a newCRSMatrix
from the given 2Darray
with compressing (copying) the underlying array.static CRSMatrix
CRSMatrix.fromBinary
(byte[] array) DecodesCRSMatrix
from the given bytearray
.static CRSMatrix
ParsesCRSMatrix
from the given CSV string.static CRSMatrix
CRSMatrix.fromMatrixMarket
(String mm) ParsesCRSMatrix
from the given Matrix Market string.static CRSMatrix
CRSMatrix.identity
(int size) Creates an identityCRSMatrix
of the givensize
.static CRSMatrix
static CRSMatrix
CRSMatrix.randomSymmetric
(int size, double density, Random random) Creates a random symmetricCRSMatrix
of the givensize
.static CRSMatrix
CRSMatrix.zero
(int rows, int columns) static CRSMatrix
CRSMatrix.zero
(int rows, int columns, int capacity)