Package no.uib.cipr.matrix
Class RQ
java.lang.Object
no.uib.cipr.matrix.RQ
Computes RQ decompositions
-
Constructor Details
-
RQ
public RQ(int m, int n) Constructs an empty RQ decomposition- Parameters:
m
- Number of rowsn
- Number of columns. Must be larger than or equal the number of rows
-
-
Method Details
-
factorize
Convenience method to compute an RQ decomposition- Parameters:
A
- Matrix to decompose. Not modified- Returns:
- Newly allocated decomposition
-
factor
Computes an orthogonal decomposition- Parameters:
A
- Matrix to decompose. Overwritten on exit. Pass a copy to avoid this- Returns:
- The current decomposition
-
getR
Returns the upper triangular factor -
getQ
Returns the orthogonal part of the factorization
-