public class QRDecompositionCommonsResult extends Object implements QRDecompositionResult
QRDecompositionCommons).| Constructor and Description |
|---|
QRDecompositionCommonsResult(org.apache.commons.math3.linear.QRDecomposition qr)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleMatrix |
getQ()
Returns the matrix $\mathbf{Q}$ of the decomposition.
|
DoubleMatrix |
getQT()
Returns the transpose of the matrix $\mathbf{Q}$ of the decomposition.
|
DoubleMatrix |
getR()
Returns the matrix $\mathbf{R}$ of the decomposition.
|
double[] |
solve(double[] b)
Solves $\mathbf{A}x = b$ where $\mathbf{A}$ is a (decomposed) matrix and $b$ is a vector.
|
DoubleArray |
solve(DoubleArray b)
Solves $\mathbf{A}x = b$ where $\mathbf{A}$ is a (decomposed) matrix and $b$ is a vector.
|
DoubleMatrix |
solve(DoubleMatrix b)
Solves $\mathbf{A}x = \mathbf{B}$ where $\mathbf{A}$ is a (decomposed) matrix and $\mathbf{B}$ is a matrix.
|
public QRDecompositionCommonsResult(org.apache.commons.math3.linear.QRDecomposition qr)
qr - The result of the QR decomposition, not nullpublic DoubleMatrix getQ()
$\mathbf{Q}$ is an orthogonal matrix.
getQ in interface QRDecompositionResultpublic DoubleMatrix getQT()
$\mathbf{Q}$ is an orthogonal matrix.
getQT in interface QRDecompositionResultpublic DoubleMatrix getR()
$\mathbf{R}$ is an upper-triangular matrix.
getR in interface QRDecompositionResultpublic DoubleArray solve(DoubleArray b)
solve in interface DecompositionResultb - the vector to calculate withpublic double[] solve(double[] b)
solve in interface DecompositionResultb - the vector to calculate withpublic DoubleMatrix solve(DoubleMatrix b)
solve in interface DecompositionResultb - the matrix to calculate withCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.