public class LUFact extends java.lang.Object implements LUAlgorithm
| Constructor and Description |
|---|
LUFact(AbstractLUAlgorithm Alg)
Default construction useful when the user wants to use a non-default algorithm.
|
LUFact(DblMatrix X)
Construction using the default algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
AbstractLUAlgorithm |
getAlgorithm() |
DblMatrix |
getL()
Get the lower triangular L of the LU decomposition.
|
int |
getSwapFactor()
Returns (-1)^S where S is the number or row interchanges.
|
DblMatrix |
getU()
Get the upper triangular matrix U of the LU decomposition.
|
boolean |
isSingular()
Return true if a singular condition is encountered during.
|
void |
setAlgorithm(AbstractLUAlgorithm a) |
DblMatrix |
solveSystem(DblMatrix b)
Solve a linear system (X*b = Y) returning the coeficients
as a DblMatrix.
|
public LUFact(AbstractLUAlgorithm Alg)
public LUFact(DblMatrix X)
public DblMatrix getL()
LUAlgorithmgetL in interface LUAlgorithmpublic DblMatrix getU()
LUAlgorithmgetU in interface LUAlgorithmpublic void setAlgorithm(AbstractLUAlgorithm a)
public AbstractLUAlgorithm getAlgorithm()
public boolean isSingular()
LUAlgorithmisSingular in interface LUAlgorithmpublic DblMatrix solveSystem(DblMatrix b)
LUAlgorithmsolveSystem in interface LUAlgorithmpublic int getSwapFactor()
Copyright © 2011, 2013. Daniel P. Dougherty