org.ojalgo.matrix.decomposition
Interface QR<N extends Number>

All Superinterfaces:
MatrixDecomposition<N>
All Known Implementing Classes:
JamaQR, QRDecomposition

public interface QR<N extends Number>
extends MatrixDecomposition<N>

Decomposes [this] into [Q] and [R] where:

Note: Either Q or R will be square. The interface does not specify which.

Author:
apete

Method Summary
 MatrixStore<N> getQ()
           
 MatrixStore<N> getR()
           
 int getRank()
           
 boolean isFullRank()
          The QR decompostion always exists, even if the matrix does not have full rank, so the compute method will never fail.
 
Methods inherited from interface org.ojalgo.matrix.decomposition.MatrixDecomposition
compute, equals, equals, getInverse, invert, isComputed, isFullSize, isSolvable, reset, solve, solve
 

Method Detail

getQ

MatrixStore<N> getQ()

getR

MatrixStore<N> getR()

getRank

int getRank()

isFullRank

boolean isFullRank()
The QR decompostion always exists, even if the matrix does not have full rank, so the compute method will never fail. The primary use of the QR decomposition is in the least squares solution of nonsquare systems of simultaneous linear equations. This will fail if the matrix does not have full rank.