TDecompQRH Class Reference

#include <TDecompQRH.h>

Inheritance diagram for TDecompQRH:

TDecompBase TDecompBase TObject TObject TObject TObject List of all members.

Public Types

enum  
enum  

Public Member Functions

 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
virtual Int_t GetNcols () const
virtual const TMatrixDGetQ ()
virtual const TMatrixDGetR ()
virtual const TVectorDGetUp ()
virtual const TVectorDGetW ()
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)
virtual Bool_t Solve (TMatrixDColumn &b)
virtual Bool_t TransSolve (TVectorD &b)
virtual TVectorD TransSolve (const TVectorD &b, Bool_t &ok)
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 ()
void Print (Option_t *opt="") const
TDecompQRHoperator= (const TDecompQRH &source)
 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
virtual Int_t GetNcols () const
virtual const TMatrixDGetQ ()
virtual const TMatrixDGetR ()
virtual const TVectorDGetUp ()
virtual const TVectorDGetW ()
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)
virtual Bool_t Solve (TMatrixDColumn &b)
virtual Bool_t TransSolve (TVectorD &b)
virtual TVectorD TransSolve (const TVectorD &b, Bool_t &ok)
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 ()
void Print (Option_t *opt="") const
TDecompQRHoperator= (const TDecompQRH &source)

Protected Member Functions

virtual const TMatrixDBaseGetDecompMatrix () const
virtual const TMatrixDBaseGetDecompMatrix () const

Static Protected Member Functions

static Bool_t QRH (TMatrixD &q, TVectorD &diagR, TVectorD &up, TVectorD &w, Double_t tol)
static Bool_t QRH (TMatrixD &q, TVectorD &diagR, TVectorD &up, TVectorD &w, Double_t tol)

Protected Attributes

TMatrixD fQ
TMatrixD fR
TVectorD fUp
TVectorD fW

Detailed Description

Definition at line 25 of file TDecompQRH.h.


Member Enumeration Documentation

anonymous enum

Definition at line 41 of file TDecompQRH.h.

anonymous enum

Definition at line 41 of file TDecompQRH.h.


Constructor & Destructor Documentation

TDecompQRH::TDecompQRH (  )  [inline]

Definition at line 43 of file TDecompQRH.h.

TDecompQRH::TDecompQRH ( Int_t  nrows,
Int_t  ncols 
)

TDecompQRH::TDecompQRH ( Int_t  row_lwb,
Int_t  row_upb,
Int_t  col_lwb,
Int_t  col_upb 
)

Definition at line 63 of file TDecompQRH.cxx.

References TObject::Error(), TDecompBase::fColLwb, fQ, fR, TDecompBase::fRowLwb, fUp, fW, nrows, TMatrixT< Element >::ResizeTo(), and TVectorT< Element >::ResizeTo().

TDecompQRH::TDecompQRH ( const TMatrixD m,
Double_t  tol = 0.0 
)

Definition at line 90 of file TDecompQRH.cxx.

References a, TObject::Error(), TDecompBase::fColLwb, TDecompBase::fCondition, fQ, fR, TDecompBase::fRowLwb, TDecompBase::fTol, fUp, fW, TMatrixT< Element >::GetMatrixArray(), TDecompBase::kMatrixSet, R__ASSERT, TMatrixT< Element >::ResizeTo(), TVectorT< Element >::ResizeTo(), and TObject::SetBit().

TDecompQRH::TDecompQRH ( const TDecompQRH another  ) 

Definition at line 124 of file TDecompQRH.cxx.

virtual TDecompQRH::~TDecompQRH (  )  [inline, virtual]

Definition at line 48 of file TDecompQRH.h.

TDecompQRH::TDecompQRH (  )  [inline]

Definition at line 43 of file TDecompQRH.h.

TDecompQRH::TDecompQRH ( Int_t  nrows,
Int_t  ncols 
)

TDecompQRH::TDecompQRH ( Int_t  row_lwb,
Int_t  row_upb,
Int_t  col_lwb,
Int_t  col_upb 
)

TDecompQRH::TDecompQRH ( const TMatrixD m,
Double_t  tol = 0.0 
)

TDecompQRH::TDecompQRH ( const TDecompQRH another  ) 

virtual TDecompQRH::~TDecompQRH (  )  [inline, virtual]

Definition at line 48 of file TDecompQRH.h.


Member Function Documentation

Bool_t TDecompQRH::QRH ( TMatrixD q,
TVectorD diagR,
TVectorD up,
TVectorD w,
Double_t  tol 
) [static, protected]

Definition at line 176 of file TDecompQRH.cxx.

References ApplyHouseHolder(), DefHouseHolder(), j, k, kFALSE, kTRUE, n, and w.

Referenced by Decompose().

virtual const TMatrixDBase& TDecompQRH::GetDecompMatrix (  )  const [inline, protected, virtual]

Implements TDecompBase.

Definition at line 37 of file TDecompQRH.h.

References fR.

virtual Int_t TDecompQRH::GetNrows (  )  const [inline, virtual]

Implements TDecompBase.

Definition at line 50 of file TDecompQRH.h.

References fQ, and TMatrixTBase< Element >::GetNrows().

Referenced by Decompose(), and Invert().

virtual Int_t TDecompQRH::GetNcols (  )  const [inline, virtual]

Implements TDecompBase.

Definition at line 51 of file TDecompQRH.h.

References fQ, and TMatrixTBase< Element >::GetNcols().

Referenced by Decompose(), and Invert().

virtual const TMatrixD& TDecompQRH::GetQ (  )  [inline, virtual]

Definition at line 52 of file TDecompQRH.h.

References Decompose(), fQ, TDecompBase::kDecomposed, and TObject::TestBit().

virtual const TMatrixD& TDecompQRH::GetR (  )  [inline, virtual]

Definition at line 54 of file TDecompQRH.h.

References Decompose(), fR, TDecompBase::kDecomposed, and TObject::TestBit().

virtual const TVectorD& TDecompQRH::GetUp (  )  [inline, virtual]

Definition at line 56 of file TDecompQRH.h.

References Decompose(), fUp, TDecompBase::kDecomposed, and TObject::TestBit().

virtual const TVectorD& TDecompQRH::GetW (  )  [inline, virtual]

Definition at line 58 of file TDecompQRH.h.

References Decompose(), fW, TDecompBase::kDecomposed, and TObject::TestBit().

void TDecompQRH::SetMatrix ( const TMatrixD a  )  [virtual]

Definition at line 209 of file TDecompQRH.cxx.

References a, TObject::Error(), TDecompBase::fColLwb, TDecompBase::fCondition, fQ, fR, TDecompBase::fRowLwb, fUp, fW, TMatrixT< Element >::GetMatrixArray(), TDecompBase::kMatrixSet, R__ASSERT, TDecompBase::ResetStatus(), TMatrixT< Element >::ResizeTo(), TVectorT< Element >::ResizeTo(), and TObject::SetBit().

Bool_t TDecompQRH::Decompose (  )  [virtual]

Implements TDecompBase.

Definition at line 132 of file TDecompQRH.cxx.

References diag, TObject::Error(), fQ, fR, TDecompBase::fTol, fUp, fW, TDecompBase::GetColLwb(), GetNcols(), GetNrows(), TDecompBase::GetRowLwb(), i, j, TDecompBase::kDecomposed, kFALSE, TDecompBase::kMatrixSet, kTRUE, kWorkMax, QRH(), TVectorT< Element >::ResizeTo(), TObject::SetBit(), TMatrixTBase< Element >::Shift(), TObject::TestBit(), and TVectorT< Element >::Use().

Referenced by Det(), GetQ(), GetR(), GetUp(), GetW(), Solve(), and TransSolve().

Bool_t TDecompQRH::Solve ( TVectorD b  )  [virtual]

Implements TDecompBase.

Definition at line 242 of file TDecompQRH.cxx.

References TMath::Abs(), ApplyHouseHolder(), b, Decompose(), TObject::Error(), fQ, fR, TDecompBase::fTol, fUp, fW, TMatrixT< Element >::GetMatrixArray(), TMatrixTBase< Element >::GetNcols(), TMatrixTBase< Element >::GetNrows(), TMatrixTBase< Element >::GetRowLwb(), i, j, k, TDecompBase::kDecomposed, kFALSE, TDecompBase::kSingular, kTRUE, R__ASSERT, and TObject::TestBit().

Referenced by astress_decomp_io(), astress_lineqn(), and Solve().

virtual TVectorD TDecompQRH::Solve ( const TVectorD b,
Bool_t ok 
) [inline, virtual]

Implements TDecompBase.

Definition at line 65 of file TDecompQRH.h.

References b, Solve(), and x.

Bool_t TDecompQRH::Solve ( TMatrixDColumn b  )  [virtual]

Implements TDecompBase.

Definition at line 297 of file TDecompQRH.cxx.

References TMath::Abs(), ApplyHouseHolder(), b, Decompose(), TObject::Error(), fQ, fR, TDecompBase::fTol, fUp, fW, TMatrixT< Element >::GetMatrixArray(), TMatrixTBase< Element >::GetNcols(), TMatrixTBase< Element >::GetNrows(), TMatrixTColumn< Element >::GetPtr(), TMatrixTBase< Element >::GetRowLwb(), i, j, k, TDecompBase::kDecomposed, kFALSE, TDecompBase::kSingular, kTRUE, R__ASSERT, and TObject::TestBit().

Bool_t TDecompQRH::TransSolve ( TVectorD b  )  [virtual]

Implements TDecompBase.

Definition at line 356 of file TDecompQRH.cxx.

References TMath::Abs(), ApplyHouseHolder(), b, Decompose(), TObject::Error(), fQ, fR, TDecompBase::fTol, fUp, fW, TMatrixTBase< Element >::GetColLwb(), TMatrixT< Element >::GetMatrixArray(), TMatrixTBase< Element >::GetNcols(), TMatrixTBase< Element >::GetNrows(), TMatrixTBase< Element >::GetRowLwb(), i, j, k, TDecompBase::kDecomposed, kFALSE, TDecompBase::kSingular, kTRUE, R__ASSERT, and TObject::TestBit().

Referenced by astress_decomp_io(), astress_lineqn(), and TransSolve().

virtual TVectorD TDecompQRH::TransSolve ( const TVectorD b,
Bool_t ok 
) [inline, virtual]

Implements TDecompBase.

Definition at line 68 of file TDecompQRH.h.

References b, TransSolve(), and x.

Bool_t TDecompQRH::TransSolve ( TMatrixDColumn b  )  [virtual]

Implements TDecompBase.

Definition at line 416 of file TDecompQRH.cxx.

References TMath::Abs(), ApplyHouseHolder(), b, Decompose(), TObject::Error(), fQ, fR, TDecompBase::fTol, fUp, fW, TMatrixTBase< Element >::GetColLwb(), TMatrixT< Element >::GetMatrixArray(), TMatrixTBase< Element >::GetNcols(), TMatrixTBase< Element >::GetNrows(), TMatrixTColumn< Element >::GetPtr(), TMatrixTBase< Element >::GetRowLwb(), i, j, k, TDecompBase::kDecomposed, kFALSE, TDecompBase::kSingular, kTRUE, R__ASSERT, and TObject::TestBit().

void TDecompQRH::Det ( Double_t d1,
Double_t d2 
) [virtual]

Reimplemented from TDecompBase.

Definition at line 479 of file TDecompQRH.cxx.

References Decompose(), TDecompBase::Det(), TDecompBase::fDet1, TDecompBase::fDet2, TDecompBase::kDecomposed, TDecompBase::kDetermined, TDecompBase::kSingular, TObject::SetBit(), and TObject::TestBit().

Referenced by mstress_determinant(), and stress_determinant().

Bool_t TDecompQRH::Invert ( TMatrixD inv  ) 

Definition at line 499 of file TDecompQRH.cxx.

References TObject::Error(), TDecompBase::GetColLwb(), GetNrows(), TDecompBase::GetRowLwb(), inv(), kFALSE, and TDecompBase::MultiSolve().

Referenced by mstress_inversion().

TMatrixD TDecompQRH::Invert ( Bool_t status  ) 

Definition at line 519 of file TDecompQRH.cxx.

References TDecompBase::GetColLwb(), GetNcols(), GetNrows(), TDecompBase::GetRowLwb(), inv(), and TDecompBase::MultiSolve().

TMatrixD TDecompQRH::Invert (  )  [inline]

Definition at line 74 of file TDecompQRH.h.

Referenced by Invert().

void TDecompQRH::Print ( Option_t opt = ""  )  const [virtual]

Reimplemented from TDecompBase.

Definition at line 536 of file TDecompQRH.cxx.

References fQ, fR, fUp, fW, TMatrixTBase< Element >::Print(), TDecompBase::Print(), and TVectorT< Element >::Print().

TDecompQRH & TDecompQRH::operator= ( const TDecompQRH source  ) 

Definition at line 548 of file TDecompQRH.cxx.

References fQ, fR, fUp, fW, TDecompBase::operator=(), TMatrixT< Element >::ResizeTo(), and TVectorT< Element >::ResizeTo().

static Bool_t TDecompQRH::QRH ( TMatrixD q,
TVectorD diagR,
TVectorD up,
TVectorD w,
Double_t  tol 
) [static, protected]

virtual const TMatrixDBase& TDecompQRH::GetDecompMatrix (  )  const [inline, protected, virtual]

Implements TDecompBase.

Definition at line 37 of file TDecompQRH.h.

References fR.

virtual Int_t TDecompQRH::GetNrows (  )  const [inline, virtual]

Implements TDecompBase.

Definition at line 50 of file TDecompQRH.h.

References fQ, and TMatrixTBase< Element >::GetNrows().

virtual Int_t TDecompQRH::GetNcols (  )  const [inline, virtual]

Implements TDecompBase.

Definition at line 51 of file TDecompQRH.h.

References fQ, and TMatrixTBase< Element >::GetNcols().

virtual const TMatrixD& TDecompQRH::GetQ (  )  [inline, virtual]

Definition at line 52 of file TDecompQRH.h.

References Decompose(), fQ, TDecompBase::kDecomposed, and TObject::TestBit().

virtual const TMatrixD& TDecompQRH::GetR (  )  [inline, virtual]

Definition at line 54 of file TDecompQRH.h.

References Decompose(), fR, TDecompBase::kDecomposed, and TObject::TestBit().

virtual const TVectorD& TDecompQRH::GetUp (  )  [inline, virtual]

Definition at line 56 of file TDecompQRH.h.

References Decompose(), fUp, TDecompBase::kDecomposed, and TObject::TestBit().

virtual const TVectorD& TDecompQRH::GetW (  )  [inline, virtual]

Definition at line 58 of file TDecompQRH.h.

References Decompose(), fW, TDecompBase::kDecomposed, and TObject::TestBit().

virtual void TDecompQRH::SetMatrix ( const TMatrixD a  )  [virtual]

virtual Bool_t TDecompQRH::Decompose (  )  [virtual]

Implements TDecompBase.

virtual Bool_t TDecompQRH::Solve ( TVectorD b  )  [virtual]

Implements TDecompBase.

virtual TVectorD TDecompQRH::Solve ( const TVectorD b,
Bool_t ok 
) [inline, virtual]

Implements TDecompBase.

Definition at line 65 of file TDecompQRH.h.

References b, Solve(), and x.

virtual Bool_t TDecompQRH::Solve ( TMatrixDColumn b  )  [virtual]

Implements TDecompBase.

virtual Bool_t TDecompQRH::TransSolve ( TVectorD b  )  [virtual]

Implements TDecompBase.

virtual TVectorD TDecompQRH::TransSolve ( const TVectorD b,
Bool_t ok 
) [inline, virtual]

Implements TDecompBase.

Definition at line 68 of file TDecompQRH.h.

References b, TransSolve(), and x.

virtual Bool_t TDecompQRH::TransSolve ( TMatrixDColumn b  )  [virtual]

Implements TDecompBase.

virtual void TDecompQRH::Det ( Double_t d1,
Double_t d2 
) [virtual]

Reimplemented from TDecompBase.

Bool_t TDecompQRH::Invert ( TMatrixD inv  ) 

TMatrixD TDecompQRH::Invert ( Bool_t status  ) 

TMatrixD TDecompQRH::Invert (  )  [inline]

Definition at line 74 of file TDecompQRH.h.

References Invert().

void TDecompQRH::Print ( Option_t opt = ""  )  const [virtual]

Reimplemented from TDecompBase.

TDecompQRH& TDecompQRH::operator= ( const TDecompQRH source  ) 


Member Data Documentation

TMatrixD TDecompQRH::fQ [protected]

Definition at line 30 of file TDecompQRH.h.

Referenced by Decompose(), GetNcols(), GetNrows(), GetQ(), operator=(), Print(), SetMatrix(), Solve(), TDecompQRH(), and TransSolve().

TMatrixD TDecompQRH::fR [protected]

Definition at line 31 of file TDecompQRH.h.

Referenced by Decompose(), GetDecompMatrix(), GetR(), operator=(), Print(), SetMatrix(), Solve(), TDecompQRH(), and TransSolve().

TVectorD TDecompQRH::fUp [protected]

Definition at line 32 of file TDecompQRH.h.

Referenced by Decompose(), GetUp(), operator=(), Print(), SetMatrix(), Solve(), TDecompQRH(), and TransSolve().

TVectorD TDecompQRH::fW [protected]

Definition at line 33 of file TDecompQRH.h.

Referenced by Decompose(), GetW(), operator=(), Print(), SetMatrix(), Solve(), TDecompQRH(), and TransSolve().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:36:02 2011 for ROOT_528-00b_version by  doxygen 1.5.1