TQpDataSparse Class Reference

#include <TQpDataSparse.h>

Inheritance diagram for TQpDataSparse:

TQpDataBase TQpDataBase TObject TObject TObject TObject List of all members.

Public Member Functions

 TQpDataSparse ()
 TQpDataSparse (Int_t nx, Int_t my, Int_t mz)
 TQpDataSparse (TVectorD &c, TMatrixDSparse &Q, TVectorD &xlow, TVectorD &ixlow, TVectorD &xupp, TVectorD &ixupp, TMatrixDSparse &A, TVectorD &bA, TMatrixDSparse &C, TVectorD &clow, TVectorD &iclow, TVectorD &cupp, TVectorD &icupp)
 TQpDataSparse (const TQpDataSparse &another)
virtual ~TQpDataSparse ()
void SetNonZeros (Int_t nnzQ, Int_t nnzA, Int_t nnzC)
virtual void PutQIntoAt (TMatrixDBase &M, Int_t row, Int_t col)
virtual void PutAIntoAt (TMatrixDBase &M, Int_t row, Int_t col)
virtual void PutCIntoAt (TMatrixDBase &M, Int_t row, Int_t col)
virtual void Qmult (Double_t beta, TVectorD &y, Double_t alpha, const TVectorD &x)
virtual void Amult (Double_t beta, TVectorD &y, Double_t alpha, const TVectorD &x)
virtual void Cmult (Double_t beta, TVectorD &y, Double_t alpha, const TVectorD &x)
virtual void ATransmult (Double_t beta, TVectorD &y, Double_t alpha, const TVectorD &x)
virtual void CTransmult (Double_t beta, TVectorD &y, Double_t alpha, const TVectorD &x)
virtual void GetDiagonalOfQ (TVectorD &dQ)
virtual Double_t DataNorm ()
virtual void DataRandom (TVectorD &x, TVectorD &y, TVectorD &z, TVectorD &s)
virtual void Print (Option_t *opt="") const
virtual Double_t ObjectiveValue (TQpVar *vars)
TQpDataSparseoperator= (const TQpDataSparse &source)
 TQpDataSparse ()
 TQpDataSparse (Int_t nx, Int_t my, Int_t mz)
 TQpDataSparse (TVectorD &c, TMatrixDSparse &Q, TVectorD &xlow, TVectorD &ixlow, TVectorD &xupp, TVectorD &ixupp, TMatrixDSparse &A, TVectorD &bA, TMatrixDSparse &C, TVectorD &clow, TVectorD &iclow, TVectorD &cupp, TVectorD &icupp)
 TQpDataSparse (const TQpDataSparse &another)
virtual ~TQpDataSparse ()
void SetNonZeros (Int_t nnzQ, Int_t nnzA, Int_t nnzC)
virtual void PutQIntoAt (TMatrixDBase &M, Int_t row, Int_t col)
virtual void PutAIntoAt (TMatrixDBase &M, Int_t row, Int_t col)
virtual void PutCIntoAt (TMatrixDBase &M, Int_t row, Int_t col)
virtual void Qmult (Double_t beta, TVectorD &y, Double_t alpha, const TVectorD &x)
virtual void Amult (Double_t beta, TVectorD &y, Double_t alpha, const TVectorD &x)
virtual void Cmult (Double_t beta, TVectorD &y, Double_t alpha, const TVectorD &x)
virtual void ATransmult (Double_t beta, TVectorD &y, Double_t alpha, const TVectorD &x)
virtual void CTransmult (Double_t beta, TVectorD &y, Double_t alpha, const TVectorD &x)
virtual void GetDiagonalOfQ (TVectorD &dQ)
virtual Double_t DataNorm ()
virtual void DataRandom (TVectorD &x, TVectorD &y, TVectorD &z, TVectorD &s)
virtual void Print (Option_t *opt="") const
virtual Double_t ObjectiveValue (TQpVar *vars)
TQpDataSparseoperator= (const TQpDataSparse &source)

Protected Attributes

TMatrixDSparse fQ
TMatrixDSparse fA
TMatrixDSparse fC

Detailed Description

Definition at line 65 of file TQpDataSparse.h.


Constructor & Destructor Documentation

TQpDataSparse::TQpDataSparse (  )  [inline]

Definition at line 77 of file TQpDataSparse.h.

TQpDataSparse::TQpDataSparse ( Int_t  nx,
Int_t  my,
Int_t  mz 
)

TQpDataSparse::TQpDataSparse ( TVectorD c,
TMatrixDSparse Q,
TVectorD xlow,
TVectorD ixlow,
TVectorD xupp,
TVectorD ixupp,
TMatrixDSparse A,
TVectorD bA,
TMatrixDSparse C,
TVectorD clow,
TVectorD iclow,
TVectorD cupp,
TVectorD icupp 
)

Definition at line 69 of file TQpDataSparse.cxx.

References fA, TQpDataBase::fBa, fC, TQpDataBase::fCloBound, TQpDataBase::fCloIndex, TQpDataBase::fCupBound, TQpDataBase::fCupIndex, TQpDataBase::fG, TQpDataBase::fMy, TQpDataBase::fMz, TQpDataBase::fNx, fQ, TQpDataBase::fXloBound, TQpDataBase::fXloIndex, TQpDataBase::fXupBound, TQpDataBase::fXupIndex, TMatrixTBase< Element >::GetNrows(), TVectorT< Element >::GetNrows(), TMatrixTBase< Element >::Print(), TVectorT< Element >::ResizeTo(), and TMatrixTSparse< Element >::Use().

TQpDataSparse::TQpDataSparse ( const TQpDataSparse another  ) 

Definition at line 114 of file TQpDataSparse.cxx.

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

Definition at line 87 of file TQpDataSparse.h.

TQpDataSparse::TQpDataSparse (  )  [inline]

Definition at line 77 of file TQpDataSparse.h.

TQpDataSparse::TQpDataSparse ( Int_t  nx,
Int_t  my,
Int_t  mz 
)

TQpDataSparse::TQpDataSparse ( TVectorD c,
TMatrixDSparse Q,
TVectorD xlow,
TVectorD ixlow,
TVectorD xupp,
TVectorD ixupp,
TMatrixDSparse A,
TVectorD bA,
TMatrixDSparse C,
TVectorD clow,
TVectorD iclow,
TVectorD cupp,
TVectorD icupp 
)

TQpDataSparse::TQpDataSparse ( const TQpDataSparse another  ) 

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

Definition at line 87 of file TQpDataSparse.h.


Member Function Documentation

void TQpDataSparse::SetNonZeros ( Int_t  nnzQ,
Int_t  nnzA,
Int_t  nnzC 
)

Definition at line 123 of file TQpDataSparse.cxx.

References fA, fC, fQ, and TMatrixTSparse< Element >::SetSparseIndex().

void TQpDataSparse::PutQIntoAt ( TMatrixDBase M,
Int_t  row,
Int_t  col 
) [virtual]

Implements TQpDataBase.

Definition at line 260 of file TQpDataSparse.cxx.

References fQ, and m.

void TQpDataSparse::PutAIntoAt ( TMatrixDBase M,
Int_t  row,
Int_t  col 
) [virtual]

Implements TQpDataBase.

Definition at line 270 of file TQpDataSparse.cxx.

References fA, and m.

void TQpDataSparse::PutCIntoAt ( TMatrixDBase M,
Int_t  row,
Int_t  col 
) [virtual]

Implements TQpDataBase.

Definition at line 280 of file TQpDataSparse.cxx.

References fC, and m.

void TQpDataSparse::Qmult ( Double_t  beta,
TVectorD y,
Double_t  alpha,
const TVectorD x 
) [virtual]

Implements TQpDataBase.

Definition at line 134 of file TQpDataSparse.cxx.

References fQ, TMatrixTBase< Element >::GetNoElements(), x, and y.

Referenced by ObjectiveValue().

void TQpDataSparse::Amult ( Double_t  beta,
TVectorD y,
Double_t  alpha,
const TVectorD x 
) [virtual]

Implements TQpDataBase.

Definition at line 145 of file TQpDataSparse.cxx.

References fA, TMatrixTBase< Element >::GetNoElements(), x, and y.

void TQpDataSparse::Cmult ( Double_t  beta,
TVectorD y,
Double_t  alpha,
const TVectorD x 
) [virtual]

Implements TQpDataBase.

Definition at line 156 of file TQpDataSparse.cxx.

References fC, TMatrixTBase< Element >::GetNoElements(), x, and y.

void TQpDataSparse::ATransmult ( Double_t  beta,
TVectorD y,
Double_t  alpha,
const TVectorD x 
) [virtual]

Implements TQpDataBase.

Definition at line 167 of file TQpDataSparse.cxx.

References fA, TMatrixTBase< Element >::GetNoElements(), TMatrixTSparse< Element >::kTransposed, x, and y.

void TQpDataSparse::CTransmult ( Double_t  beta,
TVectorD y,
Double_t  alpha,
const TVectorD x 
) [virtual]

Implements TQpDataBase.

Definition at line 178 of file TQpDataSparse.cxx.

References fC, TMatrixTBase< Element >::GetNoElements(), TMatrixTSparse< Element >::kTransposed, x, and y.

void TQpDataSparse::GetDiagonalOfQ ( TVectorD dQ  )  [virtual]

Implements TQpDataBase.

Definition at line 290 of file TQpDataSparse.cxx.

References fQ, TMatrixTBase< Element >::GetNcols(), TMatrixTBase< Element >::GetNrows(), TMath::Min(), n, and TVectorT< Element >::ResizeTo().

Double_t TQpDataSparse::DataNorm (  )  [virtual]

Implements TQpDataBase.

Definition at line 189 of file TQpDataSparse.cxx.

References TMatrixTBase< Element >::Abs(), TQpDataBase::fBa, TQpDataBase::fCloBound, TQpDataBase::fCloIndex, TQpDataBase::fCupBound, TQpDataBase::fCupIndex, TQpDataBase::fG, fQ, TQpDataBase::fXloBound, TQpDataBase::fXloIndex, TQpDataBase::fXupBound, TQpDataBase::fXupIndex, TVectorT< Element >::MatchesNonZeroPattern(), Max, norm(), TVectorT< Element >::NormInf(), and R__ASSERT.

void TQpDataSparse::DataRandom ( TVectorD x,
TVectorD y,
TVectorD z,
TVectorD s 
) [virtual]

Implements TQpDataBase.

Definition at line 313 of file TQpDataSparse.cxx.

References Add(), fA, TQpDataBase::fBa, fC, TQpDataBase::fCloBound, TQpDataBase::fCloIndex, TQpDataBase::fCupBound, TQpDataBase::fCupIndex, TQpDataBase::fG, TQpDataBase::fMz, TQpDataBase::fNx, fQ, TQpDataBase::fXloBound, TQpDataBase::fXloIndex, TQpDataBase::fXupBound, TQpDataBase::fXupIndex, TMatrixTSparse< Element >::kTransposed, TMatrixTSparse< Element >::Randomize(), TMatrixTSparse< Element >::RandomizePD(), TQpDataBase::RandomlyChooseBoundedVariables(), s, TVectorT< Element >::SelectNonZeros(), x, and y.

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

Reimplemented from TObject.

Definition at line 234 of file TQpDataSparse.cxx.

References fA, TQpDataBase::fBa, fC, TQpDataBase::fCloBound, TQpDataBase::fCloIndex, TQpDataBase::fCupBound, TQpDataBase::fCupIndex, TQpDataBase::fG, fQ, TQpDataBase::fXloBound, TQpDataBase::fXloIndex, TQpDataBase::fXupBound, TQpDataBase::fXupIndex, TMatrixTBase< Element >::Print(), and TVectorT< Element >::Print().

Double_t TQpDataSparse::ObjectiveValue ( TQpVar vars  )  [virtual]

Implements TQpDataBase.

Definition at line 301 of file TQpDataSparse.cxx.

References TQpDataBase::fG, TQpVar::fX, and Qmult().

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

Definition at line 354 of file TQpDataSparse.cxx.

References fA, fC, fQ, TQpDataBase::operator=(), and TMatrixTSparse< Element >::ResizeTo().

void TQpDataSparse::SetNonZeros ( Int_t  nnzQ,
Int_t  nnzA,
Int_t  nnzC 
)

virtual void TQpDataSparse::PutQIntoAt ( TMatrixDBase M,
Int_t  row,
Int_t  col 
) [virtual]

Implements TQpDataBase.

virtual void TQpDataSparse::PutAIntoAt ( TMatrixDBase M,
Int_t  row,
Int_t  col 
) [virtual]

Implements TQpDataBase.

virtual void TQpDataSparse::PutCIntoAt ( TMatrixDBase M,
Int_t  row,
Int_t  col 
) [virtual]

Implements TQpDataBase.

virtual void TQpDataSparse::Qmult ( Double_t  beta,
TVectorD y,
Double_t  alpha,
const TVectorD x 
) [virtual]

Implements TQpDataBase.

virtual void TQpDataSparse::Amult ( Double_t  beta,
TVectorD y,
Double_t  alpha,
const TVectorD x 
) [virtual]

Implements TQpDataBase.

virtual void TQpDataSparse::Cmult ( Double_t  beta,
TVectorD y,
Double_t  alpha,
const TVectorD x 
) [virtual]

Implements TQpDataBase.

virtual void TQpDataSparse::ATransmult ( Double_t  beta,
TVectorD y,
Double_t  alpha,
const TVectorD x 
) [virtual]

Implements TQpDataBase.

virtual void TQpDataSparse::CTransmult ( Double_t  beta,
TVectorD y,
Double_t  alpha,
const TVectorD x 
) [virtual]

Implements TQpDataBase.

virtual void TQpDataSparse::GetDiagonalOfQ ( TVectorD dQ  )  [virtual]

Implements TQpDataBase.

virtual Double_t TQpDataSparse::DataNorm (  )  [virtual]

Implements TQpDataBase.

virtual void TQpDataSparse::DataRandom ( TVectorD x,
TVectorD y,
TVectorD z,
TVectorD s 
) [virtual]

Implements TQpDataBase.

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

Reimplemented from TObject.

virtual Double_t TQpDataSparse::ObjectiveValue ( TQpVar vars  )  [virtual]

Implements TQpDataBase.

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


Member Data Documentation

TMatrixDSparse TQpDataSparse::fQ [protected]

Definition at line 71 of file TQpDataSparse.h.

Referenced by DataNorm(), DataRandom(), GetDiagonalOfQ(), operator=(), Print(), PutQIntoAt(), Qmult(), SetNonZeros(), and TQpDataSparse().

TMatrixDSparse TQpDataSparse::fA [protected]

Definition at line 72 of file TQpDataSparse.h.

Referenced by Amult(), ATransmult(), DataRandom(), operator=(), Print(), PutAIntoAt(), SetNonZeros(), and TQpDataSparse().

TMatrixDSparse TQpDataSparse::fC [protected]

Definition at line 73 of file TQpDataSparse.h.

Referenced by Cmult(), CTransmult(), DataRandom(), operator=(), Print(), PutCIntoAt(), SetNonZeros(), and TQpDataSparse().


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