|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.utils.math.matrix.MatrixOperator
public class MatrixOperator
MatrixOperator provides operations that can be performed on two or more matrices.
Given two matrices A,B -yields- C, where C is another matrix.
| Constructor Summary | |
|---|---|
protected |
MatrixOperator()
Don't allow instantiation but do allow overrides. |
| Method Summary | |
|---|---|
static Matrix |
add(Matrix a,
Matrix b)
Matrix addition. |
static Matrix |
applyEBEOperation(Matrix a,
Matrix b,
MatrixEBEOperation matrixOperation)
Applies element-by-element operation combining elements of two matrices. |
static Matrix |
divideEBE(Matrix a,
Matrix b)
Element by element matrix division. |
static Matrix |
horizontalConcatenation(Matrix a,
Matrix b)
Concatenates a and b horizontally with
b's columns attached to the end of a
rows of a must be equal to rows of b
Note: Matrix a's underlying implementation is propogated in the resulting matrix
|
static Matrix |
horizontalDirectProduct(Matrix a,
Matrix b)
Gets the Horizontal Direct Product of two matrices. |
static Matrix |
kroneckerProduct(Matrix a,
Matrix b)
Gets the Kronecker (tensor) product of the two matrices. |
static Matrix |
multiply(Matrix a,
Matrix b)
Matrix multiplication. |
static Matrix |
multiplyEBE(Matrix a,
Matrix b)
Element by element matrix multiplication. |
static Matrix |
solve(Matrix x,
Matrix b)
Solves system of equations. |
static Matrix |
subtract(Matrix a,
Matrix b)
Matrix subtraction. |
static Matrix |
verticalConcatenation(Matrix a,
Matrix b)
Concatenates a and b vertically with
b's rows following the a's rows
cols of a must be equal to colss of b
Note: Matrix a's underlying implementation is propogated in the resulting matrix
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MatrixOperator()
| Method Detail |
|---|
public static Matrix applyEBEOperation(Matrix a,
Matrix b,
MatrixEBEOperation matrixOperation)
a - First matrix.b - Second Matrix.matrixOperation - Operation to be performed on
corresponding elements of a and b.
MatrixMismatchedSizeException - when a and b are not the same size.
public static Matrix solve(Matrix x,
Matrix b)
x - The coefficient matrix. Need not be square.b - The constant vector.
When the matrix is square, uses an LU decomposition. Otherwise uses a QR decomposition.
public static Matrix add(Matrix a,
Matrix b)
a - First matrix.b - Second matrix.
public static Matrix subtract(Matrix a,
Matrix b)
a - First matrix.b - Second matrix.
public static Matrix multiply(Matrix a,
Matrix b)
a - First matrix.b - Second matrix.
MatrixMismatchedSizeException - when a and b do not conform for multiplication.
public static Matrix multiplyEBE(Matrix a,
Matrix b)
a - First matrix.b - Second matrix.
public static Matrix divideEBE(Matrix a,
Matrix b)
a - First matrix.b - Second matrix.
If a division is attempted, the result is set to zero.
public static Matrix horizontalConcatenation(Matrix a,
Matrix b)
a and b horizontally with
b's columns attached to the end of a
rows of a must be equal to rows of b
a's underlying implementation is propogated in the resulting matrix
a - Matrixb - Matrix
public static Matrix verticalConcatenation(Matrix a,
Matrix b)
a and b vertically with
b's rows following the a's rows
cols of a must be equal to colss of b
a's underlying implementation is propogated in the resulting matrix
a - Matrixb - Matrix
public static Matrix kroneckerProduct(Matrix a,
Matrix b)
a - First matrix.b - Second matrix.
public static Matrix horizontalDirectProduct(Matrix a,
Matrix b)
a - First matrix.b - Second matrix.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||