Class LUDecompositionBase_FDRM
java.lang.Object
org.ejml.dense.row.decomposition.lu.LUDecompositionBase_FDRM
- All Implemented Interfaces:
org.ejml.interfaces.decomposition.DecompositionInterface<org.ejml.data.FMatrixRMaj>,org.ejml.interfaces.decomposition.LUDecomposition<org.ejml.data.FMatrixRMaj>,org.ejml.interfaces.decomposition.LUDecomposition_F32<org.ejml.data.FMatrixRMaj>
- Direct Known Subclasses:
LUDecompositionAlt_FDRM
@Generated("org.ejml.dense.row.decomposition.lu.LUDecompositionBase_DDRM")
public abstract class LUDecompositionBase_FDRM
extends Object
implements org.ejml.interfaces.decomposition.LUDecomposition_F32<org.ejml.data.FMatrixRMaj>
Contains common data structures and operations for LU decomposition algorithms.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat[]_getVV()void_solveVectorInternal(float[] vv) a specialized version of solve that avoid additional checks that are not needed.org.ejml.data.Complex_F32Computes the determinant from the LU decomposition.protected voiddecomposeCommonInit(org.ejml.data.FMatrixRMaj a) int[]getIndx()org.ejml.data.FMatrixRMajgetLower(@Nullable org.ejml.data.FMatrixRMaj lower) Writes the lower triangular matrix into the specified matrix.org.ejml.data.FMatrixRMajgetLU()int[]getPivot()org.ejml.data.FMatrixRMajgetRowPivot(@Nullable org.ejml.data.FMatrixRMaj pivot) int[]getRowPivotV(@Nullable org.ejml.data.IGrowArray pivot) org.ejml.data.FMatrixRMajgetUpper(@Nullable org.ejml.data.FMatrixRMaj upper) Writes the upper triangular matrix into the specified matrix.booleanbooleanDetermines if the decomposed matrix is singular.doublequality()voidsetExpectedMaxSize(int numRows, int numCols) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ejml.interfaces.decomposition.DecompositionInterface
decompose
-
Field Details
-
LU
protected org.ejml.data.FMatrixRMaj LU -
maxWidth
protected int maxWidth -
m
protected int m -
n
protected int n -
dataLU
protected float[] dataLU -
vv
protected float[] vv -
indx
protected int[] indx -
pivot
protected int[] pivot -
pivsign
protected float pivsign
-
-
Constructor Details
-
LUDecompositionBase_FDRM
public LUDecompositionBase_FDRM()
-
-
Method Details
-
setExpectedMaxSize
public void setExpectedMaxSize(int numRows, int numCols) -
getLU
public org.ejml.data.FMatrixRMaj getLU() -
getIndx
public int[] getIndx() -
getPivot
public int[] getPivot() -
inputModified
public boolean inputModified()- Specified by:
inputModifiedin interfaceorg.ejml.interfaces.decomposition.DecompositionInterface<org.ejml.data.FMatrixRMaj>
-
getLower
public org.ejml.data.FMatrixRMaj getLower(@Nullable @Nullable org.ejml.data.FMatrixRMaj lower) Writes the lower triangular matrix into the specified matrix.- Specified by:
getLowerin interfaceorg.ejml.interfaces.decomposition.LUDecomposition<org.ejml.data.FMatrixRMaj>- Parameters:
lower- Where the lower triangular matrix is written to.
-
getUpper
public org.ejml.data.FMatrixRMaj getUpper(@Nullable @Nullable org.ejml.data.FMatrixRMaj upper) Writes the upper triangular matrix into the specified matrix.- Specified by:
getUpperin interfaceorg.ejml.interfaces.decomposition.LUDecomposition<org.ejml.data.FMatrixRMaj>- Parameters:
upper- Where the upper triangular matrix is writen to.
-
getRowPivot
public org.ejml.data.FMatrixRMaj getRowPivot(@Nullable @Nullable org.ejml.data.FMatrixRMaj pivot) - Specified by:
getRowPivotin interfaceorg.ejml.interfaces.decomposition.LUDecomposition<org.ejml.data.FMatrixRMaj>
-
getRowPivotV
public int[] getRowPivotV(@Nullable @Nullable org.ejml.data.IGrowArray pivot) - Specified by:
getRowPivotVin interfaceorg.ejml.interfaces.decomposition.LUDecomposition<org.ejml.data.FMatrixRMaj>
-
decomposeCommonInit
protected void decomposeCommonInit(org.ejml.data.FMatrixRMaj a) -
isSingular
public boolean isSingular()Determines if the decomposed matrix is singular. This function can return false and the matrix be almost singular, which is still bad.- Specified by:
isSingularin interfaceorg.ejml.interfaces.decomposition.LUDecomposition<org.ejml.data.FMatrixRMaj>- Returns:
- true if singular false otherwise.
-
computeDeterminant
public org.ejml.data.Complex_F32 computeDeterminant()Computes the determinant from the LU decomposition.- Specified by:
computeDeterminantin interfaceorg.ejml.interfaces.decomposition.LUDecomposition_F32<org.ejml.data.FMatrixRMaj>- Returns:
- The matrix's determinant.
-
quality
public double quality() -
_solveVectorInternal
public void _solveVectorInternal(float[] vv) a specialized version of solve that avoid additional checks that are not needed. -
_getVV
public float[] _getVV()
-