Package rocks.palaiologos.maja.matrix
Class DoubleQRDecompositionResult
java.lang.Object
rocks.palaiologos.maja.matrix.DoubleQRDecompositionResult
The result of QR decomposition.
- Author:
- Palaiologos
-
Constructor Summary
ConstructorsConstructorDescriptionDoubleQRDecompositionResult
(DoubleMatrix q, DoubleMatrix r, DoubleMatrix h, boolean fullrank, int n, int m, DoubleMatrix QR, double[] Rdiag) -
Method Summary
-
Constructor Details
-
DoubleQRDecompositionResult
public DoubleQRDecompositionResult(DoubleMatrix q, DoubleMatrix r, DoubleMatrix h, boolean fullrank, int n, int m, DoubleMatrix QR, double[] Rdiag)
-
-
Method Details
-
solve
Least squares solution of A*X = B.- Parameters:
B
-- Returns:
- X that minimizes the two norm of Q*R*X-B.
- Throws:
IllegalArgumentException
- If matrix row dimensions don't agree or the matrix is rank deficient.
-
q
The Q matrix. -
r
The R matrix. -
h
The householder matrix; lower trapezoidal matrix whose columns define the reflections. -
fullrank
public boolean fullrank()True if the matrix is full rank.
-