public class QRFact extends java.lang.Object implements QRAlgorithm
Constructor and Description |
---|
QRFact(AbstractQRAlgorithm Alg)
Default construction useful when the user wants to use a non-default algorithm.
|
QRFact(DblMatrix X)
Construction using the default algorithm.
|
Modifier and Type | Method and Description |
---|---|
QRAlgorithm |
getAlgorithm()
Get the QRAlgorithm currently being used.
|
DblMatrix |
getFullQ()
Get the orthogonal matrix Q of the QR decomposition.
|
DblMatrix |
getFullR()
Get the lower triangular matrix R of the QR decomposition.
|
DblMatrix |
getQ()
Get the orthogonal matrix Q of the QR decomposition.
|
DblMatrix |
getR()
Get the lower triangular matrix R of the QR decomposition.
|
boolean |
isSingular()
Return true if a singular condition is encountered during.
|
DblMatrix |
QtransDot(DblMatrix Y)
Multiply input by transpose of Q.
|
void |
setAlgorithm(AbstractQRAlgorithm M)
Set the QRAlgorithm to be used.
|
DblMatrix |
solveSystem(DblMatrix Y)
Solve a linear system (X*b = Y) returning the coeficients
as a DblMatrix.
|
void |
update()
Update the QR decomposition.
|
public QRFact(DblMatrix X)
public QRFact(AbstractQRAlgorithm Alg)
public DblMatrix getFullQ()
QRAlgorithm
getFullQ
in interface QRAlgorithm
public DblMatrix getFullR()
QRAlgorithm
getFullR
in interface QRAlgorithm
public DblMatrix QtransDot(DblMatrix Y)
QRAlgorithm
QtransDot
in interface QRAlgorithm
public DblMatrix getQ()
QRAlgorithm
getQ
in interface QRAlgorithm
public DblMatrix getR()
QRAlgorithm
getR
in interface QRAlgorithm
public DblMatrix solveSystem(DblMatrix Y)
QRAlgorithm
solveSystem
in interface QRAlgorithm
public void update()
QRAlgorithm
update
in interface QRAlgorithm
public boolean isSingular()
QRAlgorithm
isSingular
in interface QRAlgorithm
public void setAlgorithm(AbstractQRAlgorithm M)
public QRAlgorithm getAlgorithm()
Copyright © 2011, 2013. Daniel P. Dougherty