Matrix |
MatrixAlgebra.add(Matrix m1,
Matrix m2) |
Adds two matrices.
|
Matrix |
MatrixAlgebra.divide(Matrix m1,
Matrix m2) |
Returns the quotient of two matrices $C = \frac{A}{B} = AB^{-1}$, where
$B^{-1}$ is the pseudo-inverse of $B$ i.e.
|
double |
CommonsMatrixAlgebra.getCondition(Matrix m) |
|
abstract double |
MatrixAlgebra.getCondition(Matrix m) |
Returns the condition number of the matrix.
|
double |
OGMatrixAlgebra.getCondition(Matrix m) |
Returns the condition number of the matrix.
|
double |
CommonsMatrixAlgebra.getDeterminant(Matrix m) |
|
abstract double |
MatrixAlgebra.getDeterminant(Matrix m) |
Returns the determinant of the matrix.
|
double |
OGMatrixAlgebra.getDeterminant(Matrix m) |
Returns the determinant of the matrix.
|
double |
CommonsMatrixAlgebra.getInnerProduct(Matrix m1,
Matrix m2) |
|
abstract double |
MatrixAlgebra.getInnerProduct(Matrix m1,
Matrix m2) |
Returns the inner (or dot) product.
|
double |
OGMatrixAlgebra.getInnerProduct(Matrix m1,
Matrix m2) |
Returns the inner (or dot) product.
|
DoubleMatrix |
CommonsMatrixAlgebra.getInverse(Matrix m) |
|
abstract DoubleMatrix |
MatrixAlgebra.getInverse(Matrix m) |
Returns the inverse (or pseudo-inverse) of the matrix.
|
DoubleMatrix |
OGMatrixAlgebra.getInverse(Matrix m) |
Returns the inverse (or pseudo-inverse) of the matrix.
|
double |
CommonsMatrixAlgebra.getNorm1(Matrix m) |
|
abstract double |
MatrixAlgebra.getNorm1(Matrix m) |
For a vector, returns the $L_1$ norm
(also known as the Taxicab norm or Manhattan norm), i.e.
|
double |
OGMatrixAlgebra.getNorm1(Matrix m) |
For a vector, returns the $L_1$ norm
(also known as the Taxicab norm or Manhattan norm), i.e.
|
double |
CommonsMatrixAlgebra.getNorm2(Matrix m) |
|
abstract double |
MatrixAlgebra.getNorm2(Matrix m) |
For a vector, returns $L_2$ norm (also known as the
Euclidean norm).
|
double |
OGMatrixAlgebra.getNorm2(Matrix m) |
For a vector, returns $L_2$ norm (also known as the
Euclidean norm).
|
double |
CommonsMatrixAlgebra.getNormInfinity(Matrix m) |
|
abstract double |
MatrixAlgebra.getNormInfinity(Matrix m) |
|
double |
OGMatrixAlgebra.getNormInfinity(Matrix m) |
|
DoubleMatrix |
CommonsMatrixAlgebra.getOuterProduct(Matrix m1,
Matrix m2) |
|
abstract DoubleMatrix |
MatrixAlgebra.getOuterProduct(Matrix m1,
Matrix m2) |
Returns the outer product.
|
DoubleMatrix |
OGMatrixAlgebra.getOuterProduct(Matrix m1,
Matrix m2) |
Returns the outer product.
|
DoubleMatrix |
CommonsMatrixAlgebra.getPower(Matrix m,
double p) |
Returns a real matrix raised to some real power
Currently this method is limited to symmetric matrices only as Commons Math does not
support the diagonalization of asymmetric matrices.
|
DoubleMatrix |
CommonsMatrixAlgebra.getPower(Matrix m,
int p) |
|
abstract DoubleMatrix |
MatrixAlgebra.getPower(Matrix m,
double p) |
Returns a matrix raised to a power, $\mathbf{A}^3 = \mathbf{A}\mathbf{A}\mathbf{A}$.
|
abstract DoubleMatrix |
MatrixAlgebra.getPower(Matrix m,
int p) |
Returns a matrix raised to an integer power, e.g.
|
DoubleMatrix |
OGMatrixAlgebra.getPower(Matrix m,
double p) |
Returns a matrix raised to a power, $\mathbf{A}^3 = \mathbf{A}\mathbf{A}\mathbf{A}$.
|
DoubleMatrix |
OGMatrixAlgebra.getPower(Matrix m,
int p) |
Returns a matrix raised to an integer power, e.g.
|
double |
CommonsMatrixAlgebra.getTrace(Matrix m) |
|
abstract double |
MatrixAlgebra.getTrace(Matrix m) |
Returns the trace (i.e.
|
double |
OGMatrixAlgebra.getTrace(Matrix m) |
Returns the trace (i.e.
|
DoubleMatrix |
CommonsMatrixAlgebra.getTranspose(Matrix m) |
|
abstract DoubleMatrix |
MatrixAlgebra.getTranspose(Matrix m) |
Returns the transpose of a matrix.
|
DoubleMatrix |
OGMatrixAlgebra.getTranspose(Matrix m) |
Returns the transpose of a matrix.
|
Matrix |
MatrixAlgebra.kroneckerProduct(Matrix m1,
Matrix m2) |
Returns the Kronecker product of two matrices.
|
Matrix |
CommonsMatrixAlgebra.multiply(Matrix m1,
Matrix m2) |
Multiplies two matrices.
|
abstract Matrix |
MatrixAlgebra.multiply(Matrix m1,
Matrix m2) |
Multiplies two matrices.
|
Matrix |
OGMatrixAlgebra.multiply(Matrix m1,
Matrix m2) |
Multiplies two matrices.
|
Matrix |
MatrixAlgebra.scale(Matrix m,
double scale) |
Scale a vector or matrix by a given amount, i.e.
|
Matrix |
MatrixAlgebra.subtract(Matrix m1,
Matrix m2) |
Subtracts two matrices.
|