MatrixUtils
insteadpublic final class EchelonForm
extends java.lang.Object
Constructor and Description |
---|
EchelonForm()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
debug(MNumber[] a,
int m,
int n)
Deprecated.
For debugging purposes: output the matrix values
|
protected static int[] |
echForm(boolean rowOrColumn,
MNumber[] inputMatrix,
int n,
int m,
MNumber[] productOfElmntMatrices,
MNumber[] outputMatrix)
Deprecated.
This private method converts a an arbitrary matrix into the echelon
form. rowOrColumn is a flag indicating the row or column
echelon forms.
|
protected static MNumber |
elemMatrix(int type,
MNumber alpha,
int first,
int second,
int i,
int j)
Deprecated.
This private method returns elements of an elementary matrix.
|
protected static int[] |
findAbsMax(MNumber[] inputMatrix,
int col,
int row,
int n,
int m,
boolean rowOrColumn)
Deprecated.
This private method searches the absolute maximum element in the first
nonzero column (row) of a submatrix whose upper left element is given
by the indices row and col. a is the initial input matrix represented as
an array of MMNumbers, where the rows of the matrix are stored successively.
|
static NumberMatrix |
getEFMatrix(NumberMatrix matrix)
Deprecated.
Returns the echelon form of a
NumberMatrix . |
protected static MNumber |
getElement(MNumber[] a,
int n,
int m,
int i,
int j,
boolean rowOrColumn)
Deprecated.
This private method gets an element of a matrix. a is a matrix represented
as an array of MMNumbers, where the rows of the matrix are stored
successively. m and n are the dimensions of the matrix. i and j represent
the indices of the element to be returned.
|
protected static MNumber |
getElementRef(MNumber[] a,
int n,
int m,
int i,
int j,
boolean rowOrColumn)
Deprecated.
This private method gets an element of a matrix. a is a matrix represented
as an array of MMNumbers, where the rows of the matrix are stored
successively. m and n are the dimensions of the matrix. i and j represent
the indices of the element to be returned.
|
static NumberMatrix |
getREFMatrix(NumberMatrix matrix)
Deprecated.
Returns the reduced echelon form of a
NumberMatrix . |
protected static void |
setElementRef(MNumber[] a,
int n,
int m,
int i,
int j,
MNumber elem,
boolean rowOrColumn)
Deprecated.
This private method sets an element of a matrix to the specified value. a
is a matrix represented as an array of MMNumbers, where the rows of the
matrix are stored successively. m and n are the dimensions of the matrix.
|
protected static void |
swapElements(MNumber[] a,
int n,
int m,
int i1,
int j1,
int i2,
int j2,
boolean rowOrColumn)
Deprecated.
This private method gets an element of a matrix. a is a matrix represented
as an array of MMNumbers, where the rows of the matrix are stored
successively. m and n are the dimensions of the matrix. i1,j1 and i2,j2
represent the indices of the elements to be swapped respectively.
|
static void |
toColumnEchelonForm(MNumber[] inputMatrix,
int m,
int n,
MNumber[] productOfElmntMatrices,
MNumber[] outputMatrix)
Deprecated.
This method converts an arbitrary matrix into column echelon form.
|
static void |
toReducedColumnEchelonForm(MNumber[] inputMatrix,
int m,
int n,
MNumber[] productOfElmntMatrices,
MNumber[] outputMatrix)
Deprecated.
This method converts an arbitrary matrix into reduced column
echelon form. a is the input matrix represented as an array of
MMNumbers, where the rows of the matrix are stored successively.
|
protected static void |
toReducedEchelonForm(boolean rowOrColumn,
MNumber[] inputMatrix,
int n,
int m,
MNumber[] productOfElmntMatrices,
MNumber[] outputMatrix)
Deprecated.
This private method converts a matrix in the echelon form to the
reduced echelon form. rowOrColumn is a flag indicating the row
or column echelon forms. a is the input matrix represented
as an array of MMNumbers, where the rows of the matrix are stored
successively. m and n are the dimensions of the matrix.
|
static void |
toReducedRowEchelonForm(MNumber[] inputMatrix,
int m,
int n,
MNumber[] productOfElmntMatrices,
MNumber[] outputMatrix)
Deprecated.
This method converts an arbitrary matrix into reduced row echelon
form. a is the input matrix represented as an array of MMNumbers,
where the rows of the matrix are stored successively. m and n are
the dimensions of the matrix.
|
static void |
toRowEchelonForm(MNumber[] inputMatrix,
int m,
int n,
MNumber[] productOfElmntMatrices,
MNumber[] outputMatrix)
Deprecated.
This method converts an arbitrary matrix into row echelon form.
|
public static NumberMatrix getREFMatrix(NumberMatrix matrix)
NumberMatrix
.public static NumberMatrix getEFMatrix(NumberMatrix matrix)
NumberMatrix
.public static void toRowEchelonForm(MNumber[] inputMatrix, int m, int n, MNumber[] productOfElmntMatrices, MNumber[] outputMatrix) throws java.lang.Exception
java.lang.Exception
public static void toColumnEchelonForm(MNumber[] inputMatrix, int m, int n, MNumber[] productOfElmntMatrices, MNumber[] outputMatrix) throws java.lang.Exception
java.lang.Exception
public static void toReducedRowEchelonForm(MNumber[] inputMatrix, int m, int n, MNumber[] productOfElmntMatrices, MNumber[] outputMatrix) throws java.lang.Exception
java.lang.Exception
public static void toReducedColumnEchelonForm(MNumber[] inputMatrix, int m, int n, MNumber[] productOfElmntMatrices, MNumber[] outputMatrix) throws java.lang.Exception
java.lang.Exception
protected static void toReducedEchelonForm(boolean rowOrColumn, MNumber[] inputMatrix, int n, int m, MNumber[] productOfElmntMatrices, MNumber[] outputMatrix) throws java.lang.Exception
java.lang.Exception
protected static int[] echForm(boolean rowOrColumn, MNumber[] inputMatrix, int n, int m, MNumber[] productOfElmntMatrices, MNumber[] outputMatrix) throws java.lang.Exception
java.lang.Exception
protected static int[] findAbsMax(MNumber[] inputMatrix, int col, int row, int n, int m, boolean rowOrColumn)
protected static MNumber elemMatrix(int type, MNumber alpha, int first, int second, int i, int j)
protected static void setElementRef(MNumber[] a, int n, int m, int i, int j, MNumber elem, boolean rowOrColumn)
protected static MNumber getElementRef(MNumber[] a, int n, int m, int i, int j, boolean rowOrColumn)
protected static MNumber getElement(MNumber[] a, int n, int m, int i, int j, boolean rowOrColumn)
protected static void swapElements(MNumber[] a, int n, int m, int i1, int j1, int i2, int j2, boolean rowOrColumn)
public static void debug(MNumber[] a, int m, int n)
Further documentation and examples can be found under www.mathletfactory.de.