| Modifier and Type | Method and Description |
|---|---|
Matrix |
Matrix.arrayLeftDivide(Matrix aMatrix)
Element-by-element left division, C = B.
|
Matrix |
Matrix.arrayLeftDivideEquals(Matrix aMatrix)
Element-by-element left division in place, A = B.
|
Matrix |
Matrix.arrayRightDivide(Matrix aMatrix)
Element-by-element right division, C = A.
|
Matrix |
Matrix.arrayRightDivideEquals(Matrix aMatrix)
Element-by-element right division in place, A = A.
|
Matrix |
Matrix.arrayTimes(Matrix aMatrix)
Element-by-element multiplication, C = A.
|
Matrix |
Matrix.arrayTimesEquals(Matrix aMatrix)
Element-by-element multiplication in place, A = A.
|
static Matrix |
Matrix.constructWithCopy(double[][] aArray)
Construct a matrix from a copy of a 2-D array.
|
Matrix |
Matrix.getClone() |
Matrix |
EigenvalueDecomposition.getD()
Return the block diagonal eigenvalue matrix
|
Matrix |
QRDecomposition.getH()
Return the Householder vectors
|
Matrix |
CholeskyDecomposition.getL()
Return triangular factor.
|
Matrix |
LUDecomposition.getL()
Return lower triangular factor
|
Matrix |
Matrix.getMatrix(int[] aRows,
int[] aCols)
Get a submatrix.
|
Matrix |
Matrix.getMatrix(int[] aRows,
int nStartColumnIndex,
int nEndColumnIndex)
Get a submatrix.
|
Matrix |
Matrix.getMatrix(int nStartRowIndex,
int nEndRowIndex,
int[] aCols)
Get a submatrix.
|
Matrix |
Matrix.getMatrix(int nStartRowIndex,
int nEndRowIndex,
int nStartColumnIndex,
int nEndColumnIndex)
Get a submatrix.
|
Matrix |
QRDecomposition.getQ()
Generate and return the (economy-sized) orthogonal factor
|
Matrix |
QRDecomposition.getR()
Return the upper triangular factor
|
Matrix |
SingularValueDecomposition.getS()
Return the diagonal matrix of singular values
|
Matrix |
LUDecomposition.getU()
Return upper triangular factor
|
Matrix |
SingularValueDecomposition.getU()
Return the left singular vectors
|
Matrix |
EigenvalueDecomposition.getV()
Return the eigenvector matrix
|
Matrix |
SingularValueDecomposition.getV()
Return the right singular vectors
|
static Matrix |
Matrix.identity(int nRows,
int nCols)
Generate identity matrix
|
Matrix |
Matrix.inverse()
Matrix inverse or pseudoinverse
|
Matrix |
Matrix.minus(Matrix aMatrix)
C = A - B
|
Matrix |
Matrix.minusEquals(Matrix aMatrix)
A = A - B
|
Matrix |
Matrix.plus(Matrix aMatrix)
C = A + B
|
Matrix |
Matrix.plusEquals(Matrix aMatrix)
A = A + B
|
static Matrix |
Matrix.random(int nRows,
int nCols)
Generate matrix with random elements
|
static Matrix |
Matrix.read(Reader aReader)
Read a matrix from a stream.
|
Matrix |
CholeskyDecomposition.solve(Matrix aMatrix)
Solve A*X = B
|
Matrix |
LUDecomposition.solve(Matrix aMatrix)
Solve A*X = B
|
Matrix |
Matrix.solve(Matrix aMatrix)
Solve A*X = B
|
Matrix |
QRDecomposition.solve(Matrix aMatrix)
Least squares solution of A*X = B
|
Matrix |
Matrix.solveTranspose(Matrix aMatrix)
Solve X*A = B, which is also A'*X' = B'
|
Matrix |
Matrix.times(double s)
Multiply a matrix by a scalar, C = s*A
|
Matrix |
Matrix.times(Matrix aMatrix)
Linear algebraic matrix multiplication, A * B
|
Matrix |
Matrix.timesEquals(double s)
Multiply a matrix by a scalar in place, A = s*A
|
Matrix |
Matrix.transpose()
Matrix transpose.
|
Matrix |
Matrix.uminus()
Unary minus
|
| Modifier and Type | Method and Description |
|---|---|
Matrix |
Matrix.arrayLeftDivide(Matrix aMatrix)
Element-by-element left division, C = B.
|
Matrix |
Matrix.arrayLeftDivideEquals(Matrix aMatrix)
Element-by-element left division in place, A = B.
|
Matrix |
Matrix.arrayRightDivide(Matrix aMatrix)
Element-by-element right division, C = A.
|
Matrix |
Matrix.arrayRightDivideEquals(Matrix aMatrix)
Element-by-element right division in place, A = A.
|
Matrix |
Matrix.arrayTimes(Matrix aMatrix)
Element-by-element multiplication, C = A.
|
Matrix |
Matrix.arrayTimesEquals(Matrix aMatrix)
Element-by-element multiplication in place, A = A.
|
Matrix |
Matrix.minus(Matrix aMatrix)
C = A - B
|
Matrix |
Matrix.minusEquals(Matrix aMatrix)
A = A - B
|
Matrix |
Matrix.plus(Matrix aMatrix)
C = A + B
|
Matrix |
Matrix.plusEquals(Matrix aMatrix)
A = A + B
|
void |
Matrix.setMatrix(int[] aRows,
int[] aCols,
Matrix aMatrix)
Set a submatrix.
|
void |
Matrix.setMatrix(int[] aRows,
int nStartColumnIndex,
int nEndColumnIndex,
Matrix aMatrix)
Set a submatrix.
|
void |
Matrix.setMatrix(int nStartRowIndex,
int nEndRowIndex,
int[] aCols,
Matrix aMatrix)
Set a submatrix.
|
void |
Matrix.setMatrix(int nStartRowIndex,
int nEndRowIndex,
int nStartColumnIndex,
int nEndColumnIndex,
Matrix aMatrix)
Set a submatrix.
|
Matrix |
CholeskyDecomposition.solve(Matrix aMatrix)
Solve A*X = B
|
Matrix |
LUDecomposition.solve(Matrix aMatrix)
Solve A*X = B
|
Matrix |
Matrix.solve(Matrix aMatrix)
Solve A*X = B
|
Matrix |
QRDecomposition.solve(Matrix aMatrix)
Least squares solution of A*X = B
|
Matrix |
Matrix.solveTranspose(Matrix aMatrix)
Solve X*A = B, which is also A'*X' = B'
|
Matrix |
Matrix.times(Matrix aMatrix)
Linear algebraic matrix multiplication, A * B
|
| Constructor and Description |
|---|
CholeskyDecomposition(Matrix aMatrix)
Cholesky algorithm for symmetric and positive definite matrix.
|
EigenvalueDecomposition(Matrix aMatrix)
Check for symmetry, then construct the eigenvalue decomposition Structure
to access D and V.
|
LUDecomposition(Matrix aMatrix)
LU Decomposition Structure to access L, U and piv.
|
QRDecomposition(Matrix aMatrix)
QR Decomposition, computed by Householder reflections.
|
SingularValueDecomposition(Matrix aMatrix)
Construct the singular value decomposition Structure to access U, S and V.
|
Copyright © 2014–2021 Philip Helger. All rights reserved.