mikera.matrixx.decompose.impl.lu
Class AltLU
- java.lang.Object
-
- mikera.matrixx.decompose.impl.lu.AltLU
-
public class AltLU extends java.lang.ObjectContains common data structures and operations for LU decomposition algorithms.
-
-
Constructor Summary
Constructors Constructor and Description AltLU()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description LUPResult_decompose(AMatrix a)This is a modified version of what was found in the JAMA package.double[]_getVV()void_solveVectorInternal(double[] vv)a specialized version of solve that avoid additional checks that are not needed.static LUPResultdecompose(AMatrix A)int[]getIndx()AMatrixgetLU()int[]getPivot()booleanisSingular()Determines if the decomposed matrix is singular.doublequality()the quality is the absolute value of the product of each diagonal element divided by the magnitude of the largest diagonal element.
-
-
-
Method Detail
-
getLU
public AMatrix getLU()
-
getIndx
public int[] getIndx()
-
getPivot
public int[] getPivot()
-
quality
public double quality()
the quality is the absolute value of the product of each diagonal element divided by the magnitude of the largest diagonal element. If all diagonal elements are zero then zero is returned.- Returns:
-
_decompose
public LUPResult _decompose(AMatrix a)
This is a modified version of what was found in the JAMA package. The order that it performs its permutations in is the primary difference from NR- Parameters:
a- The matrix that is to be decomposed. Not modified.- Returns:
- true If the matrix can be decomposed and false if it can not.
-
_solveVectorInternal
public void _solveVectorInternal(double[] vv)
a specialized version of solve that avoid additional checks that are not needed.
-
_getVV
public double[] _getVV()
-
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.- Returns:
- true if singular false otherwise.
-
-
DMelt 3.0 © DataMelt by jWork.ORG