1 #ifndef OPAL_QRSolver_HH
2 #define OPAL_QRSolver_HH 1
139 #endif // OPAL_QRSolver_HH
void R_to_S(const Matrix< double > &R, const Array1D< double > &D, Matrix< double > &S, Vector< double > &Z)
Array1D< double > column_norm
void solveRT(Vector< double > &V) const
Pre-multiply the vector $V$ by $R.transpose()^{-1}$.
void getColNorm(Array1D< double > &) const
Return the original column norms of the matrix $A$.
void solveST(Vector< double > &V) const
Pre-multiply the vector $V$ by $S.transpose()^{-1}$.
Least-square solution of systems of linear equations.
void solveR(Vector< double > &X) const
Solution of $A*X = B$ in the least-squares sense.
QRSolver(const Matrix< double > &A, const Vector< double > &B, bool pivot)
Constructor.
void solve(const Matrix< double > &R, const Vector< double > &QtB, Vector< double > &X) const
void solveT(const Matrix< double > &R, Vector< double > &V) const
void solveS(const Array1D< double > &D, double p, Vector< double > &X)
Solution of $A*X = B, D*X = 0$ in the least-squares sense.