Package org.ejml.dense.row.misc
Class RrefGaussJordanRowPivot_DDRM
java.lang.Object
org.ejml.dense.row.misc.RrefGaussJordanRowPivot_DDRM
- All Implemented Interfaces:
ReducedRowEchelonForm<DMatrixRMaj>,ReducedRowEchelonForm_F64<DMatrixRMaj>
public class RrefGaussJordanRowPivot_DDRM
extends Object
implements ReducedRowEchelonForm_F64<DMatrixRMaj>
Reduction to RREF using Gauss-Jordan elimination with row (partial) pivots.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidreduce(DMatrixRMaj A, int coefficientColumns) Puts the augmented matrix into RREF.voidsetTolerance(double tol) Specifies tolerance for determining if the system is singular and it should stop processing.protected static voidswapRows(DMatrixRMaj A, int rowA, int rowB)
-
Constructor Details
-
RrefGaussJordanRowPivot_DDRM
public RrefGaussJordanRowPivot_DDRM()
-
-
Method Details
-
setTolerance
public void setTolerance(double tol) Description copied from interface:ReducedRowEchelonForm_F64Specifies tolerance for determining if the system is singular and it should stop processing. A reasonable value is: tol = EPS/max(||tol||).- Specified by:
setTolerancein interfaceReducedRowEchelonForm_F64<DMatrixRMaj>- Parameters:
tol- Tolerance for singular matrix. A reasonable value is: tol = EPS/max(||tol||). Or just set to zero.
-
reduce
Description copied from interface:ReducedRowEchelonFormPuts the augmented matrix into RREF. The coefficient matrix is stored in columns less than coefficientColumns.- Specified by:
reducein interfaceReducedRowEchelonForm<DMatrixRMaj>- Parameters:
A- Input: Augmented matrix. Output: RREF. Modified.coefficientColumns- Number of coefficients in the system matrix.
-
swapRows
-