public class CholeskyDecompositionBlock_FDRM extends CholeskyDecompositionCommon_FDRM
Constructor and Description |
---|
CholeskyDecompositionBlock_FDRM(int blockWidth)
Creates a CholeksyDecomposition capable of decomposing a matrix that is
n by n, where n is the width.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
decomposeLower()
Performs Choleksy decomposition on the provided matrix.
|
protected boolean |
decomposeUpper()
Performs an upper triangular decomposition.
|
void |
setExpectedMaxSize(int numRows,
int numCols)
Declares additional internal data structures.
|
static void |
solveL_special(float[] L,
org.ejml.data.FMatrixRMaj b_src,
int indexSrc,
int indexDst,
org.ejml.data.FMatrixRMaj B)
This is a variation on the
TriangularSolver_FDRM.solveL(float[], float[], int) function. |
static void |
symmRankTranA_sub(org.ejml.data.FMatrixRMaj a,
org.ejml.data.FMatrixRMaj c,
int startIndexC)
Performs this operation:
c = c - aTa where c is a submatrix. |
_getVV, computeDeterminant, decompose, getT, getT, inputModified, isLower
public CholeskyDecompositionBlock_FDRM(int blockWidth)
blockWidth
- The width of a block.public void setExpectedMaxSize(int numRows, int numCols)
setExpectedMaxSize
in class CholeskyDecompositionCommon_FDRM
protected boolean decomposeLower()
Performs Choleksy decomposition on the provided matrix.
If the matrix is not positive definite then this function will return false since it can't complete its computations. Not all errors will be found.
decomposeLower
in class CholeskyDecompositionCommon_FDRM
protected boolean decomposeUpper()
CholeskyDecompositionCommon_FDRM
decomposeUpper
in class CholeskyDecompositionCommon_FDRM
public static void solveL_special(float[] L, org.ejml.data.FMatrixRMaj b_src, int indexSrc, int indexDst, org.ejml.data.FMatrixRMaj B)
TriangularSolver_FDRM.solveL(float[], float[], int)
function.
It grabs the input from the top right row rectangle of the source matrix then writes the results
to the lower bottom column rectangle. The rectangle matrices just matrices are submatrices
of the matrix that is being decomposed. The results are also written to B.L
- A lower triangular matrix.b_src
- matrix with the vectors that are to be solved forindexSrc
- First index of the submatrix where the inputs are coming from.indexDst
- First index of the submatrix where the results are going to.B
- public static void symmRankTranA_sub(org.ejml.data.FMatrixRMaj a, org.ejml.data.FMatrixRMaj c, int startIndexC)
Performs this operation:
c = c - aTa
where c is a submatrix.
a
- A matrix.c
- A matrix.startIndexC
- start of the submatrix in c.