mikera.matrixx.solve.impl
Class CholeskySolver
- java.lang.Object
-
- mikera.matrixx.solve.impl.CholeskySolver
-
public class CholeskySolver extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description CholeskySolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AMatrixinvert()Sets the matrix 'inv' equal to the inverse of the matrix that was decomposed.doublequality()booleansetA(AMatrix _A)voidsetToInverseL(double[] a)Sets the matrix to the inverse using a lower triangular matrix.AMatrixsolve(AMatrix B)Using the decomposition, finds the value of 'X' in the linear equation below:
A*x = b
where A has dimension of n by n, x and b are n by m dimension.
-
-
-
Method Detail
-
setA
public boolean setA(AMatrix _A)
-
quality
public double quality()
-
solve
public AMatrix solve(AMatrix B)
Using the decomposition, finds the value of 'X' in the linear equation below:
A*x = b
where A has dimension of n by n, x and b are n by m dimension.*Note* that 'b' and 'x' can be the same matrix instance.
- Parameters:
B- A matrix that is n by m. Not modified.X- An n by m matrix where the solution is written to. Modified.
-
invert
public AMatrix invert()
Sets the matrix 'inv' equal to the inverse of the matrix that was decomposed.- Parameters:
inv- Where the value of the inverse will be stored. Modified.
-
setToInverseL
public void setToInverseL(double[] a)
Sets the matrix to the inverse using a lower triangular matrix.
-
-
DMelt 3.0 © DataMelt by jWork.ORG