|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.linear.QRDecompositionImpl
public class QRDecompositionImpl
Calculates the QR-decomposition of a matrix. In the QR-decomposition of a matrix A consists of two matrices Q and R that satisfy: A = QR, Q is orthogonal (QTQ = I), and R is upper triangular. If A is m×n, Q is m×m and R m×n.
Implemented using Householder reflectors.
Field Summary | |
---|---|
private int |
m
The row dimension of the given matrix. |
private int |
n
The column dimension of the given matrix. |
private double[][] |
qr
A packed representation of the QR decomposition. |
private double[] |
rDiag
The diagonal elements of R. |
Constructor Summary | |
---|---|
QRDecompositionImpl(RealMatrix matrix)
Calculates the QR decomposition of the given matrix. |
Method Summary | |
---|---|
RealMatrix |
getQ()
Returns the matrix Q of the QR-decomposition. |
RealMatrix |
getR()
Returns the matrix R of the QR-decomposition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private double[][] qr
private double[] rDiag
private int m
private int n
Constructor Detail |
---|
public QRDecompositionImpl(RealMatrix matrix)
matrix
- The matrix to decompose.Method Detail |
---|
public RealMatrix getR()
getR
in interface QRDecomposition
public RealMatrix getQ()
getQ
in interface QRDecomposition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |