Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

TDSPLinearSolver Class Reference

#include <TDSPLinearSolver.h>

Inheritance diagram for TDSPLinearSolver:

TDSPSolver TQQObject

Public Member Functions

 TDSPLinearSolver (TDSPMatrix *a=NULL, TDSPVector *b=NULL, TDSPVector *y=NULL)
 ~TDSPLinearSolver ()
virtual void Print ()
void SetMethod (eLinearSolveMethod e)
void SetA (TDSPMatrix *a)
void SetA (TDSPMatrix &a)
void SetB (TDSPVector *b)
void SetB (TDSPVector &b)
void Guess (TDSPVector *g)
void Guess (TDSPVector &g)
void Set (TDSPMatrix *a, TDSPVector *b, TDSPVector *y)
void SetMaxIterations (UInt_t m)
void SetStopPrecision (Double_t e)
void SetSerialHD (UInt_t start)
void SetParalleHD (UInt_t start)
eLinearSolveMethod GetMethod () const
eLinearSolveMethod Method () const
TDSPVectorB () const
TDSPVectorGetB () const
TDSPMatrixA () const
TDSPMatrixGetA () const
UInt_t GetMaxIterations () const
UInt_t GetIterations () const
Double_t GetMeanIterations () const
Double_t GetStopPrecision () const
Double_t GetPrecision () const
Double_t GetMeanPrecision () const
UInt_t GetSerialHD () const
UInt_t GetParallelHD () const
void ResetMeans ()
virtual Int_t GetNumInputs ()
virtual Int_t GetNumOutputs ()
Bool_t Solve ()
 Solve - Return kTRUE if there are solutions.

void StackA (TDSPMatrix *)

Protected Member Functions

void _push_means_ ()
void _reset_means_ ()

Protected Attributes

eLinearSolveMethod fMethod
TList fAList
UInt_t fIterations
UInt_t fMaxIterations
Double_t fMeanIterations
Double_t fStopPrecision
Double_t fPrecision
Double_t fMeanPrecision
UInt_t fAccumulation
Bool_t fUsingAStack
 Use a Stack for the A-Matrices ?

TDSPVectorfB
TDSPMatrixfA
 Vector b in the equation y=Ax+b.

TDSPVectorfGuessX
 Matrix a in the equation y=Ax+b.

UInt_t fIter_Serial_HD
 initial Guess of X

UInt_t fIter_Parallel_HD
TDSPVector Xtmp

Constructor & Destructor Documentation

TDSPLinearSolver::TDSPLinearSolver TDSPMatrix a = NULL,
TDSPVector b = NULL,
TDSPVector y = NULL
 

TDSPLinearSolver::~TDSPLinearSolver  ) 
 


Member Function Documentation

void TDSPLinearSolver::_push_means_  )  [inline, protected]
 

Definition at line 156 of file TDSPLinearSolver.h.

References fAccumulation, fIterations, fMeanIterations, fMeanPrecision, and fPrecision.

void TDSPLinearSolver::_reset_means_  )  [inline, protected]
 

Definition at line 163 of file TDSPLinearSolver.h.

References fAccumulation, fMeanIterations, and fMeanPrecision.

Referenced by ResetMeans().

00163                                             {
00164   fAccumulation   = 0;
00165   fMeanIterations = 0;
00166   fMeanPrecision  = 0;
00167 }

TDSPMatrix* TDSPLinearSolver::A  )  const [inline]
 

Definition at line 116 of file TDSPLinearSolver.h.

References fA.

00116 { return fA; }; // Get the Matrix a of the equation y=Ax+b

TDSPVector* TDSPLinearSolver::B  )  const [inline]
 

Definition at line 114 of file TDSPLinearSolver.h.

References fB.

00114 { return fB; }; // Get the Vector b of the equation y=Ax+b

TDSPMatrix* TDSPLinearSolver::GetA  )  const [inline]
 

Definition at line 117 of file TDSPLinearSolver.h.

References fA.

00117 { return fA; }; // Get the Matrix a of the equation y=Ax+b

TDSPVector* TDSPLinearSolver::GetB  )  const [inline]
 

Definition at line 115 of file TDSPLinearSolver.h.

References fB.

00115 { return fB; }; // Get the Vector b of the equation y=Ax+b

UInt_t TDSPLinearSolver::GetIterations  )  const [inline]
 

Definition at line 120 of file TDSPLinearSolver.h.

References fIterations.

00120 { return fIterations;};  // Get the last number of iterations

UInt_t TDSPLinearSolver::GetMaxIterations  )  const [inline]
 

Definition at line 119 of file TDSPLinearSolver.h.

References fMaxIterations.

00119 { return fMaxIterations;};  // Get the maximal number of iterations

Double_t TDSPLinearSolver::GetMeanIterations  )  const [inline]
 

Definition at line 121 of file TDSPLinearSolver.h.

References fMeanIterations.

00121 { return fMeanIterations;}; // Get the mean number of iterations

Double_t TDSPLinearSolver::GetMeanPrecision  )  const [inline]
 

Definition at line 125 of file TDSPLinearSolver.h.

References fMeanPrecision.

00125 { return fMeanPrecision;}; // Get the Mean Precision

eLinearSolveMethod TDSPLinearSolver::GetMethod  )  const [inline]
 

Definition at line 111 of file TDSPLinearSolver.h.

References eLinearSolveMethod, and fMethod.

00111 { return fMethod;}; // Get Method

Int_t TDSPLinearSolver::GetNumInputs  )  [inline, virtual]
 

Implements TDSPSolver.

Definition at line 144 of file TDSPLinearSolver.h.

References fA, and TDSPMatrix::GetCols().

00144                                             {
00145   if (fA) return fA->GetCols();
00146   Error("GetNumInputs","Requesting number of Inputs - but no Matrix set !");
00147   return 0;
00148 }                 

Int_t TDSPLinearSolver::GetNumOutputs  )  [inline, virtual]
 

Implements TDSPSolver.

Definition at line 150 of file TDSPLinearSolver.h.

References fA, and TDSPMatrix::GetRows().

00150                                              {
00151   if (fA) return fA->GetRows();
00152   Error("GetNumOutputs","Requesting number of Outputs - but no Matrix set !");
00153   return 0;
00154 }                 

UInt_t TDSPLinearSolver::GetParallelHD  )  const [inline]
 

Definition at line 128 of file TDSPLinearSolver.h.

References fIter_Parallel_HD.

00128 { return fIter_Parallel_HD;};

Double_t TDSPLinearSolver::GetPrecision  )  const [inline]
 

Definition at line 124 of file TDSPLinearSolver.h.

References fPrecision.

00124 { return fPrecision;}; // Get the Last Precision

UInt_t TDSPLinearSolver::GetSerialHD  )  const [inline]
 

Definition at line 127 of file TDSPLinearSolver.h.

References fIter_Serial_HD.

00127 { return fIter_Serial_HD;};

Double_t TDSPLinearSolver::GetStopPrecision  )  const [inline]
 

Definition at line 123 of file TDSPLinearSolver.h.

References fStopPrecision.

00123 { return fStopPrecision;}; // Get the Stop Precision

void TDSPLinearSolver::Guess TDSPVector g  )  [inline]
 

Definition at line 101 of file TDSPLinearSolver.h.

References Guess().

00101 { Guess(&g);}; // Set the initial Guess of Vector x of the equation y=Ax+b

void TDSPLinearSolver::Guess TDSPVector g  )  [inline]
 

Definition at line 100 of file TDSPLinearSolver.h.

References fGuessX.

Referenced by Guess().

00100 { fGuessX = g;};   // Set the initial Guess of Vector x of the equation y=Ax+b

eLinearSolveMethod TDSPLinearSolver::Method  )  const [inline]
 

Definition at line 112 of file TDSPLinearSolver.h.

References eLinearSolveMethod, and fMethod.

00112 { return fMethod;}; // Get Method

virtual void TDSPLinearSolver::Print  )  [virtual]
 

Implements TDSPSolver.

void TDSPLinearSolver::ResetMeans  )  [inline]
 

Definition at line 130 of file TDSPLinearSolver.h.

References _reset_means_().

00130 { _reset_means_();};

void TDSPLinearSolver::Set TDSPMatrix a,
TDSPVector b,
TDSPVector y
[inline]
 

Definition at line 102 of file TDSPLinearSolver.h.

References SetA(), SetB(), and TDSPSolver::SetY().

00102                                                        { // Set Matrix a, Vector b , Vector y
00103     SetA(a);SetB(b);SetY(y);};

void TDSPLinearSolver::SetA TDSPMatrix a  )  [inline]
 

Definition at line 97 of file TDSPLinearSolver.h.

References SetA().

00097 { SetA(&a);}; // Set the Matrix a of the equation y=Ax+b

void TDSPLinearSolver::SetA TDSPMatrix a  ) 
 

Referenced by Set(), and SetA().

void TDSPLinearSolver::SetB TDSPVector b  )  [inline]
 

Definition at line 99 of file TDSPLinearSolver.h.

References SetB().

00099 { SetB(&b);}; // Set the Vector b of the equation y=Ax+b

void TDSPLinearSolver::SetB TDSPVector b  )  [inline]
 

Definition at line 98 of file TDSPLinearSolver.h.

References fB.

Referenced by Set(), and SetB().

00098 { fB = b;};   // Set the Vector b of the equation y=Ax+b

void TDSPLinearSolver::SetMaxIterations UInt_t  m  )  [inline]
 

Definition at line 105 of file TDSPLinearSolver.h.

References fMaxIterations.

00105 { fMaxIterations=m;};  // Set the maximal number of iterations

void TDSPLinearSolver::SetMethod eLinearSolveMethod  e  )  [inline]
 

Definition at line 94 of file TDSPLinearSolver.h.

References fMethod.

00094 { fMethod = e;}; // Set Method

void TDSPLinearSolver::SetParalleHD UInt_t  start  )  [inline]
 

Definition at line 109 of file TDSPLinearSolver.h.

References fIter_Parallel_HD.

00109 { fIter_Parallel_HD = start; } // Use Parallel Hard Decisions for Iterations>=start

void TDSPLinearSolver::SetSerialHD UInt_t  start  )  [inline]
 

Definition at line 108 of file TDSPLinearSolver.h.

References fIter_Serial_HD.

00108 { fIter_Serial_HD = start; } // Use Serial Hard Decisions for Iterations>=start

void TDSPLinearSolver::SetStopPrecision Double_t  e  )  [inline]
 

Definition at line 106 of file TDSPLinearSolver.h.

References fStopPrecision.

00106 { fStopPrecision = e;}; // Set the Stop Precision

Bool_t TDSPLinearSolver::Solve  )  [virtual]
 

Solve - Return kTRUE if there are solutions.

Implements TDSPSolver.

void TDSPLinearSolver::StackA TDSPMatrix  ) 
 


Field Documentation

TDSPMatrix* TDSPLinearSolver::fA [protected]
 

Vector b in the equation y=Ax+b.

Definition at line 67 of file TDSPLinearSolver.h.

Referenced by A(), GetA(), GetNumInputs(), and GetNumOutputs().

UInt_t TDSPLinearSolver::fAccumulation [protected]
 

Definition at line 57 of file TDSPLinearSolver.h.

Referenced by _push_means_(), and _reset_means_().

TList TDSPLinearSolver::fAList [protected]
 

Definition at line 47 of file TDSPLinearSolver.h.

TDSPVector* TDSPLinearSolver::fB [protected]
 

Definition at line 66 of file TDSPLinearSolver.h.

Referenced by B(), GetB(), and SetB().

TDSPVector* TDSPLinearSolver::fGuessX [protected]
 

Matrix a in the equation y=Ax+b.

Definition at line 69 of file TDSPLinearSolver.h.

Referenced by Guess().

UInt_t TDSPLinearSolver::fIter_Parallel_HD [protected]
 

Definition at line 75 of file TDSPLinearSolver.h.

Referenced by GetParallelHD(), and SetParalleHD().

UInt_t TDSPLinearSolver::fIter_Serial_HD [protected]
 

initial Guess of X

Definition at line 74 of file TDSPLinearSolver.h.

Referenced by GetSerialHD(), and SetSerialHD().

UInt_t TDSPLinearSolver::fIterations [protected]
 

Definition at line 49 of file TDSPLinearSolver.h.

Referenced by _push_means_(), and GetIterations().

UInt_t TDSPLinearSolver::fMaxIterations [protected]
 

Definition at line 50 of file TDSPLinearSolver.h.

Referenced by GetMaxIterations(), and SetMaxIterations().

Double_t TDSPLinearSolver::fMeanIterations [protected]
 

Definition at line 51 of file TDSPLinearSolver.h.

Referenced by _push_means_(), _reset_means_(), and GetMeanIterations().

Double_t TDSPLinearSolver::fMeanPrecision [protected]
 

Definition at line 55 of file TDSPLinearSolver.h.

Referenced by _push_means_(), _reset_means_(), and GetMeanPrecision().

eLinearSolveMethod TDSPLinearSolver::fMethod [protected]
 

Definition at line 45 of file TDSPLinearSolver.h.

Referenced by GetMethod(), Method(), and SetMethod().

Double_t TDSPLinearSolver::fPrecision [protected]
 

Definition at line 54 of file TDSPLinearSolver.h.

Referenced by _push_means_(), and GetPrecision().

Double_t TDSPLinearSolver::fStopPrecision [protected]
 

Definition at line 53 of file TDSPLinearSolver.h.

Referenced by GetStopPrecision(), and SetStopPrecision().

Bool_t TDSPLinearSolver::fUsingAStack [protected]
 

Use a Stack for the A-Matrices ?

Definition at line 59 of file TDSPLinearSolver.h.

TDSPVector TDSPLinearSolver::Xtmp [protected]
 

Definition at line 79 of file TDSPLinearSolver.h.


The documentation for this class was generated from the following file:
Generated on Fri Apr 23 16:23:59 2004 by doxygen 1.3.2