Package | Description |
---|---|
org.la4j | |
org.la4j.matrix.dense |
Modifier and Type | Field and Description |
---|---|
static MatrixFactory<Basic2DMatrix> |
Matrices.BASIC_2D
A matrix factory that produces zero
Basic2DMatrix . |
static MatrixFactory<Basic2DMatrix> |
Matrices.DENSE
A default matrix factory for dense matrices.
|
Modifier and Type | Method and Description |
---|---|
static Basic2DMatrix |
Basic2DMatrix.block(Matrix a,
Matrix b,
Matrix c,
Matrix d)
|
static Basic2DMatrix |
Basic2DMatrix.constant(int rows,
int columns,
double constant)
Creates a constant
Basic2DMatrix of the given shape and value . |
static Basic2DMatrix |
Basic2DMatrix.diagonal(int size,
double diagonal)
|
static Basic2DMatrix |
Basic2DMatrix.from1DArray(int rows,
int columns,
double[] array)
Creates a
Basic2DMatrix of the given 1D array with
copying the underlying array. |
static Basic2DMatrix |
Basic2DMatrix.from2DArray(double[][] array)
Creates a
Basic2DMatrix of the given 2D array w/o
copying the underlying array. |
static Basic2DMatrix |
Basic2DMatrix.fromBinary(byte[] array)
Decodes
Basic2DMatrix from the given byte array . |
static Basic2DMatrix |
Basic2DMatrix.fromCSV(String csv)
Parses
Basic2DMatrix from the given CSV string. |
static Basic2DMatrix |
Basic2DMatrix.fromMatrixMarket(String mm)
Parses
Basic2DMatrix from the given Matrix Market string. |
static Basic2DMatrix |
Basic2DMatrix.identity(int size)
Creates an identity
Basic2DMatrix of the given size . |
static Basic2DMatrix |
Basic2DMatrix.random(int rows,
int columns,
Random random)
|
static Basic2DMatrix |
Basic2DMatrix.randomSymmetric(int size,
Random random)
Creates a random symmetric
Basic2DMatrix of the given size . |
static Basic2DMatrix |
Basic2DMatrix.unit(int rows,
int columns)
|
static Basic2DMatrix |
Basic2DMatrix.zero(int rows,
int columns)
|
Copyright © 2015. All rights reserved.