ACCELERATOR PHYSICS GROUP

class QRSolver

(Return to index)

Least-square solution of systems of linear equations.

Given an m by n matrix A, an n by n diagonal matrix D, and an m-vector B, two problem can be solved:

  1. Solve the the system A*X = B in the least squares sense. The first step to solve this problem is:
    QRSolver solver(A, pivot);
    
    The second step is then
    solver.solveR(X);
    
  2. Solve the the two systems A*X = B, D*X = 0 in the least squares sense. The first step to solve this problem is
    QRSolver solver(A, pivot);
    
    The second step is
    solver.solveS(D, X);
    
    The second step can be repeated as many times as required for different diagonal matrices D .
In both cases, the method
solver.getColNorm(C);
can be called to return the original column norms of A .

Type: Instantiable
Include file: ./Algebra/QRSolver.hh

Synopsis (including inherited members):

Documentation:


Documentation generated by fci on Mon Feb 7 12:30:05 2000