Package | Description |
---|---|
org.la4j | |
org.la4j.matrix.sparse |
Modifier and Type | Field and Description |
---|---|
static MatrixFactory<CRSMatrix> |
Matrices.CRS
A matrix factory that produces zero
CRSMatrix . |
static MatrixFactory<CRSMatrix> |
Matrices.SPARSE
A default factory for sparse matrices.
|
static MatrixFactory<CRSMatrix> |
Matrices.SPARSE_ROW_MAJOR
A default factory for sparse row-major matrices.
|
Modifier and Type | Method and Description |
---|---|
static CRSMatrix |
CRSMatrix.block(Matrix a,
Matrix b,
Matrix c,
Matrix d)
|
static CRSMatrix |
CRSMatrix.diagonal(int size,
double diagonal)
|
static CRSMatrix |
CRSMatrix.from1DArray(int rows,
int columns,
double[] array)
Creates a new
CRSMatrix from the given 1D array with
compressing (copying) the underlying array. |
static CRSMatrix |
CRSMatrix.from2DArray(double[][] array)
Creates a new
CRSMatrix from the given 2D array with
compressing (copying) the underlying array. |
static CRSMatrix |
CRSMatrix.fromBinary(byte[] array)
Decodes
CRSMatrix from the given byte array . |
static CRSMatrix |
CRSMatrix.fromCSV(String csv)
Parses
CRSMatrix from the given CSV string. |
static CRSMatrix |
CRSMatrix.fromMatrixMarket(String mm)
Parses
CRSMatrix from the given Matrix Market string. |
static CRSMatrix |
CRSMatrix.identity(int size)
Creates an identity
CRSMatrix of the given size . |
static CRSMatrix |
CRSMatrix.random(int rows,
int columns,
double density,
Random random)
|
static CRSMatrix |
CRSMatrix.randomSymmetric(int size,
double density,
Random random)
Creates a random symmetric
CRSMatrix of the given size . |
static CRSMatrix |
CRSMatrix.zero(int rows,
int columns)
|
static CRSMatrix |
CRSMatrix.zero(int rows,
int columns,
int capacity)
|
Copyright © 2015. All rights reserved.