org.ejml.alg.dense.misc
Class RrefGaussJordanRowPivot
java.lang.Object
org.ejml.alg.dense.misc.RrefGaussJordanRowPivot
- All Implemented Interfaces:
- ReducedRowEchelonForm<DenseMatrix64F>
public class RrefGaussJordanRowPivot
- extends Object
- implements ReducedRowEchelonForm<DenseMatrix64F>
Reduction to RREF using Gauss-Jordan elimination with row (partial) pivots.
- Author:
- Peter Abeles
|
Method Summary |
void |
reduce(DenseMatrix64F A,
int coefficientColumns)
Puts the augmented matrix into RREF. |
void |
setTolerance(double tol)
Specifies tolerance for determining if the system is singular and it should stop processing. |
protected static void |
swapRows(DenseMatrix64F A,
int rowA,
int rowB)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RrefGaussJordanRowPivot
public RrefGaussJordanRowPivot()
setTolerance
public void setTolerance(double tol)
- Description copied from interface:
ReducedRowEchelonForm
- Specifies tolerance for determining if the system is singular and it should stop processing.
A reasonable value is: tol = EPS/max(||tol||).
- Specified by:
setTolerance in interface ReducedRowEchelonForm<DenseMatrix64F>
- Parameters:
tol - Tolerance for singular matrix. A reasonable value is: tol = EPS/max(||tol||). Or just set to zero.
reduce
public void reduce(DenseMatrix64F A,
int coefficientColumns)
- Description copied from interface:
ReducedRowEchelonForm
- Puts the augmented matrix into RREF. The coefficient matrix is stored in
columns less than coefficientColumns.
- Specified by:
reduce in interface ReducedRowEchelonForm<DenseMatrix64F>
- Parameters:
A - Input: Augmented matrix. Output: RREF. Modified.coefficientColumns - Number of coefficients in the system matrix.
swapRows
protected static void swapRows(DenseMatrix64F A,
int rowA,
int rowB)
Copyright © 2012. All Rights Reserved.