Package no.uib.cipr.matrix
Class LQ
- java.lang.Object
-
- no.uib.cipr.matrix.LQ
-
public class LQ extends java.lang.ObjectComputes LQ decompositions
-
-
Constructor Summary
Constructors Constructor Description LQ(int m, int n)Constructs an empty LQ decomposition
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LQfactor(DenseMatrix A)Computes an orthogonal decompositionstatic LQfactorize(Matrix A)Convenience method to compute a LQ decompositionLowerTriangDenseMatrixgetL()Returns the lower triangular factorDenseMatrixgetQ()Returns the orthogonal part of the factorization
-
-
-
Method Detail
-
factorize
public static LQ factorize(Matrix A)
Convenience method to compute a LQ decomposition- Parameters:
A- Matrix to decompose. Not modified- Returns:
- Newly allocated decomposition
-
factor
public LQ 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
-
getL
public LowerTriangDenseMatrix getL()
Returns the lower triangular factor
-
getQ
public DenseMatrix getQ()
Returns the orthogonal part of the factorization
-
-