public class SparseDComplexQRDecomposition extends Object
The QR decompostion always exists, even if the matrix does not have full rank. The primary use of the QR decomposition is in the least squares solution of nonsquare systems of simultaneous linear equations. This will fail if isFullRank() returns false.
Constructor and Description |
---|
SparseDComplexQRDecomposition(DComplexMatrix2D A,
int order)
Constructs and returns a new QR decomposition object; computed by
Householder reflections; If m < n then then the QR of A' is computed.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getBeta()
Returns a copy of the beta factors, from the Householder reflections H =
I - beta*v*v'.
|
DComplexMatrix2D |
getR()
Returns a copy of the upper triangular factor, R.
|
edu.emory.mathcs.csparsej.tdcomplex.DZcs_common.DZcss |
getSymbolicAnalysis()
Returns a copy of the symbolic QR analysis object
|
DComplexMatrix2D |
getV()
Returns a copy of the Householder vectors v, from the Householder
reflections H = I - beta*v*v'.
|
boolean |
hasFullRank()
Returns whether the matrix A has full rank.
|
void |
solve(DComplexMatrix1D b)
Solve a least-squares problem (min ||Ax-b||_2, where A is m-by-n with m
>= n) or underdetermined system (Ax=b, where m < n).
|
public SparseDComplexQRDecomposition(DComplexMatrix2D A, int order)
A
- A rectangular matrix.order
- ordering option (0 to 3); 0: natural ordering, 1: amd(A+A'),
2: amd(S'*S), 3: amd(A'*A)IllegalArgumentException
- if A is not sparseIllegalArgumentException
- if order is not in [0,3]public DComplexMatrix2D getV()
public double[] getBeta()
public DComplexMatrix2D getR()
public edu.emory.mathcs.csparsej.tdcomplex.DZcs_common.DZcss getSymbolicAnalysis()
public boolean hasFullRank()
public void solve(DComplexMatrix1D b)
b
- right-hand side.IllegalArgumentException
- if b.size() != max(A.rows(), A.columns()).IllegalArgumentException
- if !this.hasFullRank() (A is rank
deficient).Jump to the Parallel Colt Homepage