#ifndef ROOT_TDecompQRH
#define ROOT_TDecompQRH
#ifndef ROOT_TDecompBase
#include "TDecompBase.h"
#endif
class TDecompQRH : public TDecompBase
{
protected :
   
   TMatrixD fQ;  
   TMatrixD fR;  
   TVectorD fUp; 
   TVectorD fW;  
   static Bool_t QRH(TMatrixD &q,TVectorD &diagR,TVectorD &up,TVectorD &w,Double_t tol);
   virtual const TMatrixDBase &GetDecompMatrix() const { return fR; }
public :
   enum {kWorkMax = 100}; 
   TDecompQRH() {}
   TDecompQRH(Int_t nrows,Int_t ncols);
   TDecompQRH(Int_t row_lwb,Int_t row_upb,Int_t col_lwb,Int_t col_upb);
   TDecompQRH(const TMatrixD &m,Double_t tol = 0.0); 
   TDecompQRH(const TDecompQRH &another);
   virtual ~TDecompQRH() {}
   virtual       Int_t     GetNrows () const { return fQ.GetNrows(); }
   virtual       Int_t     GetNcols () const { return fQ.GetNcols(); }
   virtual const TMatrixD &GetQ     ()       { if ( !TestBit(kDecomposed) ) Decompose();
                                               return fQ; }
   virtual const TMatrixD &GetR     ()       { if ( !TestBit(kDecomposed) ) Decompose();
                                               return fR; }
   virtual const TVectorD &GetUp    ()       { if ( !TestBit(kDecomposed) ) Decompose();
                                               return fUp; }
   virtual const TVectorD &GetW     ()       { if ( !TestBit(kDecomposed) ) Decompose();
                                               return fW; }
   virtual       void      SetMatrix(const TMatrixD &a);
   virtual Bool_t   Decompose  ();
   virtual Bool_t   Solve      (      TVectorD &b);
   virtual TVectorD Solve      (const TVectorD& b,Bool_t &ok) { TVectorD x = b; ok = Solve(x); return x; }
   virtual Bool_t   Solve      (      TMatrixDColumn &b);
   virtual Bool_t   TransSolve (      TVectorD &b);
   virtual TVectorD TransSolve (const TVectorD& b,Bool_t &ok) { TVectorD x = b; ok = TransSolve(x); return x; }
   virtual Bool_t   TransSolve (      TMatrixDColumn &b);
   virtual void     Det        (Double_t &d1,Double_t &d2);
           Bool_t   Invert     (TMatrixD &inv);
           TMatrixD Invert     (Bool_t &status);
           TMatrixD Invert     () { Bool_t status; return Invert(status); }
   void Print(Option_t *opt ="") const; 
   TDecompQRH &operator= (const TDecompQRH &source);
   ClassDef(TDecompQRH,1) 
};
#endif
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.