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()
LUAlgorithm
getL
in interface LUAlgorithm
public DblMatrix getU()
LUAlgorithm
getU
in interface LUAlgorithm
public void setAlgorithm(AbstractLUAlgorithm a)
public AbstractLUAlgorithm getAlgorithm()
public boolean isSingular()
LUAlgorithm
isSingular
in interface LUAlgorithm
public DblMatrix solveSystem(DblMatrix b)
LUAlgorithm
solveSystem
in interface LUAlgorithm
public int getSwapFactor()
Copyright © 2011, 2013. Daniel P. Dougherty