Package no.uib.cipr.matrix
Class RQ
- java.lang.Object
-
- no.uib.cipr.matrix.RQ
-
public class RQ extends java.lang.ObjectComputes RQ decompositions
-
-
Constructor Summary
Constructors Constructor Description RQ(int m, int n)Constructs an empty RQ decomposition
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RQfactor(DenseMatrix A)Computes an orthogonal decompositionstatic RQfactorize(Matrix A)Convenience method to compute an RQ decompositionDenseMatrixgetQ()Returns the orthogonal part of the factorizationUpperTriangDenseMatrixgetR()Returns the upper triangular factor
-
-
-
Method Detail
-
factorize
public static RQ factorize(Matrix A)
Convenience method to compute an RQ decomposition- Parameters:
A- Matrix to decompose. Not modified- Returns:
- Newly allocated decomposition
-
factor
public RQ factor(DenseMatrix A)
Computes an orthogonal decomposition- Parameters:
A- Matrix to decompose. Overwritten on exit. Pass a copy to avoid this- Returns:
- The current decomposition
-
getR
public UpperTriangDenseMatrix getR()
Returns the upper triangular factor
-
getQ
public DenseMatrix getQ()
Returns the orthogonal part of the factorization
-
-