public abstract class LUDecompositionBase_CDRM
extends java.lang.Object
implements org.ejml.interfaces.decomposition.LUDecomposition_F32<org.ejml.data.CMatrixRMaj>
Contains common data structures and operations for LU decomposition algorithms.
Modifier and Type | Field and Description |
---|---|
protected float[] |
dataLU |
protected org.ejml.data.Complex_F32 |
det |
protected int[] |
indx |
protected org.ejml.data.CMatrixRMaj |
LU |
protected int |
m |
protected int |
maxWidth |
protected int |
n |
protected int[] |
pivot |
protected float |
pivsign |
protected int |
stride |
protected float[] |
vv |
Constructor and Description |
---|
LUDecompositionBase_CDRM() |
Modifier and Type | Method and Description |
---|---|
float[] |
_getVV() |
void |
_solveVectorInternal(float[] vv)
a specialized version of solve that avoid additional checks that are not needed.
|
org.ejml.data.Complex_F32 |
computeDeterminant()
Computes the determinant from the LU decomposition.
|
protected void |
decomposeCommonInit(org.ejml.data.CMatrixRMaj a) |
int[] |
getIndx() |
org.ejml.data.CMatrixRMaj |
getLower(org.ejml.data.CMatrixRMaj lower)
Writes the lower triangular matrix into the specified matrix.
|
org.ejml.data.CMatrixRMaj |
getLU() |
int[] |
getPivot() |
org.ejml.data.CMatrixRMaj |
getRowPivot(org.ejml.data.CMatrixRMaj pivot) |
int[] |
getRowPivotV(org.ejml.data.IGrowArray pivot) |
org.ejml.data.CMatrixRMaj |
getUpper(org.ejml.data.CMatrixRMaj upper)
Writes the upper triangular matrix into the specified matrix.
|
boolean |
inputModified() |
boolean |
isSingular()
Determines if the decomposed matrix is singular.
|
double |
quality() |
void |
setExpectedMaxSize(int numRows,
int numCols) |
protected void |
solveL(float[] vv)
Solve the using the lower triangular matrix in LU.
|
protected org.ejml.data.CMatrixRMaj LU
protected int maxWidth
protected int m
protected int n
protected int stride
protected float[] dataLU
protected float[] vv
protected int[] indx
protected int[] pivot
protected float pivsign
protected org.ejml.data.Complex_F32 det
public void setExpectedMaxSize(int numRows, int numCols)
public org.ejml.data.CMatrixRMaj getLU()
public int[] getIndx()
public int[] getPivot()
public boolean inputModified()
inputModified
in interface org.ejml.interfaces.decomposition.DecompositionInterface<org.ejml.data.CMatrixRMaj>
public org.ejml.data.CMatrixRMaj getLower(org.ejml.data.CMatrixRMaj lower)
getLower
in interface org.ejml.interfaces.decomposition.LUDecomposition<org.ejml.data.CMatrixRMaj>
lower
- Where the lower triangular matrix is written to.public org.ejml.data.CMatrixRMaj getUpper(org.ejml.data.CMatrixRMaj upper)
getUpper
in interface org.ejml.interfaces.decomposition.LUDecomposition<org.ejml.data.CMatrixRMaj>
upper
- Where the upper triangular matrix is writen to.public org.ejml.data.CMatrixRMaj getRowPivot(org.ejml.data.CMatrixRMaj pivot)
getRowPivot
in interface org.ejml.interfaces.decomposition.LUDecomposition<org.ejml.data.CMatrixRMaj>
public int[] getRowPivotV(org.ejml.data.IGrowArray pivot)
getRowPivotV
in interface org.ejml.interfaces.decomposition.LUDecomposition<org.ejml.data.CMatrixRMaj>
protected void decomposeCommonInit(org.ejml.data.CMatrixRMaj a)
public boolean isSingular()
isSingular
in interface org.ejml.interfaces.decomposition.LUDecomposition<org.ejml.data.CMatrixRMaj>
public org.ejml.data.Complex_F32 computeDeterminant()
computeDeterminant
in interface org.ejml.interfaces.decomposition.LUDecomposition_F32<org.ejml.data.CMatrixRMaj>
public double quality()
public void _solveVectorInternal(float[] vv)
protected void solveL(float[] vv)
public float[] _getVV()