| Modifier and Type | Method and Description |
|---|---|
static NDArray |
NDArray.wrap(Matrix m) |
static Array |
Array.wrap(Matrix m)
Wraps the underlying data from a dense Matrix as an array with the same shape
|
| Modifier and Type | Method and Description |
|---|---|
Matrix |
AMatrix.addCopy(AStridedMatrix a)
Adds a dense matrix to this matrix, returning a new dense Matrix
|
Matrix |
Matrix.copy() |
static Matrix |
Matrixx.create(AMatrix m)
Creates a mutable deep copy of a matrix
|
static Matrix |
Matrix.create(AMatrix m)
Creates a new mutable dense matrix containing a copy of another matroix
|
static Matrix |
Matrix.create(AVector... data)
Creates a new Matrix using the given vectors as row data
|
static Matrix |
Matrixx.create(double[][] data)
Creates a matrix using the given double[][] data
|
static Matrix |
Matrix.create(double[][] data) |
static Matrix |
Matrix.create(INDArray m) |
static Matrix |
Matrix.create(int... shape)
Creates a new zero-filled matrix of the specified shape.
|
static Matrix |
Matrix.create(int rowCount,
int columnCount)
Creates a new zero-filled matrix of the specified shape.
|
static Matrix |
Matrixx.create(List<Object> rows)
Create a matrix from a list of rows
|
static Matrix |
Matrix.createFromRows(Object... rows) |
static Matrix |
Matrixx.createFromVector(AVector source,
int rows,
int columns)
Creates a new matrix using the elements in the specified vector.
|
static Matrix |
Matrix.createIdentity(int dims)
Creates a square identity Matrix of the specified size.
aij = 0 if i ≠ j aij = 1 if i = j |
static Matrix |
Matrix.createIdentity(int numRows,
int numCols)
Creates a Matrix which contains ones along the main diagonal and zeros
everywhere else.
|
static Matrix |
Matrix.createRandom(int rows,
int cols) |
static Matrix |
Matrixx.createRandomSquareMatrix(int dimensions) |
static Matrix |
Matrixx.createRandomSquareMatrix(int dimensions,
Random rand) |
Matrix |
AMatrix.denseClone() |
Matrix |
Matrix.exactClone() |
Matrix |
Matrix.innerProduct(AMatrix a) |
Matrix |
AMatrix.reshape(int rows,
int cols) |
Matrix |
Matrix.toMatrix() |
Matrix |
AMatrix.toMatrix()
Coerces the matrix to the standard mutable Matrix type
in row major order.
|
Matrix |
Matrix.toMatrixTranspose() |
Matrix |
AMatrix.toMatrixTranspose()
Coerces the transpose of a matrix to the standard mutable Matrix type
in row major order.
|
Matrix |
Matrix.transposeInnerProduct(Matrix s) |
static Matrix |
Matrix.wrap(int rowCount,
int columnCount,
double[] data)
Wraps a double[] array as a dense Matrix.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Matrix.add(Matrix dest,
Matrix a,
Matrix b) |
void |
Matrix.add2(Matrix a,
Matrix b) |
static void |
Matrix.scale(Matrix dest,
Matrix src,
double factor) |
static void |
Matrix.scaleAdd(Matrix dest,
Matrix a,
Matrix b,
double bFactor) |
void |
Matrix.setMultiple(Matrix m,
double factor) |
Matrix |
Matrix.transposeInnerProduct(Matrix s) |
AMatrix |
AMatrix.transposeInnerProduct(Matrix s) |
| Modifier and Type | Method and Description |
|---|---|
static Matrix |
Multiplications.blockedMultiply(Matrix a,
AMatrix b)
Performs fast matrix multiplication using temporary working storage for the second matrix
|
static Matrix |
Multiplications.directMultiply(Matrix a,
AMatrix b) |
static Matrix |
Multiplications.doubleBlockedMultiply(AMatrix a,
AMatrix b)
Performs fast matrix multiplication using temporary working storage for both matrices
|
static Matrix |
Multiplications.multiply(AMatrix a,
AMatrix b)
General purpose matrix multiplication, with smart selection of algorithm based
on matrix size and type.
|
static Matrix |
Multiplications.multiply(Matrix a,
AMatrix b) |
| Modifier and Type | Method and Description |
|---|---|
static Matrix |
Multiplications.blockedMultiply(Matrix a,
AMatrix b)
Performs fast matrix multiplication using temporary working storage for the second matrix
|
static Matrix |
Multiplications.directMultiply(Matrix a,
AMatrix b) |
static Matrix |
Multiplications.multiply(Matrix a,
AMatrix b) |
| Modifier and Type | Field and Description |
|---|---|
protected Matrix |
CholeskyCommon.T |
| Modifier and Type | Method and Description |
|---|---|
static ICholeskyResult |
SimpleCholesky.decompose(Matrix a) |
| Modifier and Type | Field and Description |
|---|---|
protected Matrix |
SymmetricQREigenHelper.Q |
| Modifier and Type | Method and Description |
|---|---|
Matrix |
SymmetricQrAlgorithm.getQ() |
| Modifier and Type | Method and Description |
|---|---|
void |
SymmetricQREigenHelper.setQ(Matrix q) |
void |
SymmetricQrAlgorithm.setQ(Matrix q) |
| Modifier and Type | Field and Description |
|---|---|
protected Matrix |
AltLU.LU |
| Modifier and Type | Method and Description |
|---|---|
static Matrix |
DecomposeLUP.createLUPInverse(AMatrix m) |
| Modifier and Type | Method and Description |
|---|---|
static ILUPResult |
SimpleLUP.decomposeLUP(Matrix matrix) |
| Modifier and Type | Field and Description |
|---|---|
protected Matrix |
HouseholderQR.QR
Where the Q and R matrices are stored.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
QRHelperFunctions.rank1UpdateMultL(Matrix A,
double[] u,
double gamma,
int colA0,
int w0,
int w1)
Performs a rank-1 update operation on the submatrix specified by w with the multiply on the left.
A = A(I - γ*u*uT) |
static void |
QRHelperFunctions.rank1UpdateMultR(Matrix A,
double[] u,
double gamma,
int colA0,
int w0,
int w1,
double[] _temp)
Performs a rank-1 update operation on the submatrix specified by w with the multiply on the right.
A = (I - γ*u*uT)*A |
static void |
QRHelperFunctions.rank1UpdateMultR(Matrix A,
double[] u,
int offsetU,
double gamma,
int colA0,
int w0,
int w1,
double[] _temp) |
| Modifier and Type | Field and Description |
|---|---|
protected Matrix |
SvdImplicitQrAlgorithm.Ut |
protected Matrix |
SvdImplicitQrAlgorithm.Vt |
| Modifier and Type | Method and Description |
|---|---|
static ISVDResult |
ThinSVD.decompose(Matrix matrix) |
protected void |
SvdImplicitQrAlgorithm.updateRotator(Matrix Q,
int m,
int n,
double c,
double s)
Multiplied a transpose orthogonal matrix Q by the specified rotator.
|
| Modifier and Type | Method and Description |
|---|---|
Matrix |
AStridedMatrix.applyOpCopy(Op op) |
Matrix |
VectorMatrixMN.clone() |
Matrix |
ImmutableMatrix.clone() |
Matrix |
AStridedMatrix.clone() |
Matrix |
ASparseRCMatrix.dense() |
Matrix |
DenseColumnMatrix.getTranspose() |
Matrix |
AArrayMatrix.getTransposeCopy() |
Matrix |
DenseColumnMatrix.getTransposeView() |
Matrix |
PermutationMatrix.innerProduct(AMatrix a) |
Matrix |
ImmutableMatrix.innerProduct(AMatrix a) |
Matrix |
ZeroMatrix.toMatrix() |
Matrix |
TransposedMatrix.toMatrix() |
Matrix |
ImmutableMatrix.toMatrix() |
Matrix |
ADiagonalMatrix.toMatrix() |
Matrix |
ABandedMatrix.toMatrix() |
Matrix |
ZeroMatrix.toMatrixTranspose() |
Matrix |
TransposedMatrix.toMatrixTranspose() |
Matrix |
SparseColumnMatrix.toMatrixTranspose() |
Matrix |
ImmutableMatrix.toMatrixTranspose() |
Matrix |
DenseColumnMatrix.toMatrixTranspose() |
Matrix |
ADiagonalMatrix.toMatrixTranspose() |
Matrix |
ABandedMatrix.toMatrixTranspose() |
Matrix |
RowMatrix.transposeInnerProduct(Matrix s) |
Matrix |
PermutationMatrix.transposeInnerProduct(Matrix s) |
Matrix |
ColumnMatrix.transposeInnerProduct(Matrix s) |
| Modifier and Type | Method and Description |
|---|---|
AMatrix |
TransposedMatrix.transposeInnerProduct(Matrix s) |
Matrix |
RowMatrix.transposeInnerProduct(Matrix s) |
Matrix |
PermutationMatrix.transposeInnerProduct(Matrix s) |
Matrix |
ColumnMatrix.transposeInnerProduct(Matrix s) |
static ImmutableMatrix |
ImmutableMatrix.wrap(Matrix source)
Creates a new ImmutableMatrix wrapping the data array of a given Matrix
WARNING: does not take a defensive copy.
|
| Modifier and Type | Field and Description |
|---|---|
protected Matrix |
CholeskySolver.A |
protected Matrix |
CholeskyLDUSolver.A |
Copyright © 2016. All rights reserved.