Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

TVector Class Reference

#include <TVector.h>

Inheritance diagram for TVector:

Inheritance graph
[legend]
Collaboration diagram for TVector:

Collaboration graph
[legend]
List of all members.

Public Methods

 TVector ()
 TVector (Int_t n)
 TVector (Int_t lwb, Int_t upb)
 TVector (Int_t n, const Real_t *elements)
 TVector (Int_t lwb, Int_t upb, const Real_t *elements)
 TVector (const TVector &another)
 TVector (const TMatrixRow &mr)
 TVector (const TMatrixColumn &mc)
 TVector (const TMatrixDiag &md)
 TVector (Int_t lwb, Int_t upb, Double_t iv1,...)
virtual ~TVector ()
void Draw (Option_t *option="")
void ResizeTo (Int_t n)
void ResizeTo (Int_t lwb, Int_t upb)
void ResizeTo (const TVector &v)
Bool_t IsValid () const
const Real_t & operator() (Int_t index) const
Real_t & operator() (Int_t index)
const Real_t & operator[] (Int_t index) const
Real_t & operator[] (Int_t index)
Int_t GetLwb () const
Int_t GetUpb () const
Int_t GetNrows () const
Int_t GetNoElements () const
Real_t * GetElements ()
const Real_t * GetElements () const
void SetElements (const Real_t *elements)
TVector & operator= (const TVector &source)
TVector & operator= (Real_t val)
TVector & operator= (const TMatrixRow &mr)
TVector & operator= (const TMatrixColumn &mc)
TVector & operator= (const TMatrixDiag &md)
TVector & operator-= (Double_t val)
TVector & operator+= (Double_t val)
TVector & operator *= (Double_t val)
TVector & operator *= (const TMatrix &a)
Bool_t operator== (Real_t val) const
Bool_t operator!= (Real_t val) const
Bool_t operator< (Real_t val) const
Bool_t operator<= (Real_t val) const
Bool_t operator> (Real_t val) const
Bool_t operator>= (Real_t val) const
TVector & Zero ()
TVector & Abs ()
TVector & Sqr ()
TVector & Sqrt ()
TVector & Apply (const TElementAction &action)
TVector & Apply (const TElementPosAction &action)
Double_t Norm1 () const
Double_t Norm2Sqr () const
Double_t NormInf () const
void Print (Option_t *option="") const

Protected Methods

void Allocate (Int_t nrows, Int_t row_lwb=0)
void Invalidate ()

Protected Attributes

Int_t fNmem
Int_t fNrows
 number of rows in allocated memory (>=fNrows)

Int_t fRowLwb
Real_t * fElements

Friends

class TMatrix
class TMatrixRow
class TMatrixColumn
class TMatrixDiag
class TMatrixFlat
TVector & operator+= (TVector &target, const TVector &source)
TVector & operator-= (TVector &target, const TVector &source)
TVector operator+ (const TVector &source1, const TVector &source2)
TVector operator- (const TVector &source1, const TVector &source2)
Double_t operator * (const TVector &v1, const TVector &v2)
TVector & Add (TVector &target, Double_t scalar, const TVector &source)
TVector & ElementMult (TVector &target, const TVector &source)
TVector & ElementDiv (TVector &target, const TVector &source)
Bool_t operator== (const TVector &v1, const TVector &v2)
void Compare (const TVector &im1, const TVector &im2)
Bool_t AreCompatible (const TVector &v1, const TVector &v2)

Constructor & Destructor Documentation

TVector::TVector  
 

Definition at line 101 of file TVector.h.

References Invalidate().

TVector::TVector Int_t    n
 

Definition at line 195 of file TVector.h.

References Allocate().

TVector::TVector Int_t    lwb,
Int_t    upb
 

Definition at line 200 of file TVector.h.

References Allocate().

TVector::TVector Int_t    n,
const Real_t *    elements
 

Definition at line 221 of file TVector.h.

References Allocate(), and SetElements().

TVector::TVector Int_t    lwb,
Int_t    upb,
const Real_t *    elements
 

Definition at line 227 of file TVector.h.

References Allocate(), and SetElements().

TVector::TVector const TVector &    another
 

Definition at line 261 of file TVector.h.

References Allocate(), and TObject::Error().

TVector::TVector const TMatrixRow   mr
 

TVector::TVector const TMatrixColumn   mc
 

TVector::TVector const TMatrixDiag   md
 

TVector::TVector Int_t    lwb,
Int_t    upb,
Double_t    iv1,
...   
 

virtual TVector::~TVector   [virtual]
 


Member Function Documentation

void TVector::Allocate Int_t    nrows,
Int_t    row_lwb = 0
[protected]
 

Referenced by TVector().

void TVector::Invalidate   [protected]
 

Definition at line 98 of file TVector.h.

References fElements, and fNrows.

Referenced by TVector().

void TVector::Draw Option_t *    option = "" [virtual]
 

Reimplemented from TObject.

void TVector::ResizeTo Int_t    n
 

Definition at line 270 of file TVector.h.

Referenced by ResizeTo().

void TVector::ResizeTo Int_t    lwb,
Int_t    upb
 

void TVector::ResizeTo const TVector &    v
 

Definition at line 275 of file TVector.h.

References GetLwb(), GetUpb(), and ResizeTo().

Bool_t TVector::IsValid   const
 

Definition at line 205 of file TVector.h.

References fNrows.

Referenced by AreCompatible(), SetElements(), and Zero().

const Real_t& TVector::operator() Int_t    index const
 

Real_t & TVector::operator() Int_t    index
 

Definition at line 280 of file TVector.h.

const Real_t & TVector::operator[] Int_t    index const
 

Definition at line 285 of file TVector.h.

Real_t & TVector::operator[] Int_t    index
 

Definition at line 290 of file TVector.h.

Int_t TVector::GetLwb   const
 

Definition at line 128 of file TVector.h.

References fRowLwb.

Referenced by ResizeTo().

Int_t TVector::GetUpb   const
 

Definition at line 129 of file TVector.h.

References fNrows, and fRowLwb.

Referenced by ResizeTo().

Int_t TVector::GetNrows   const
 

Definition at line 130 of file TVector.h.

References fNrows.

Int_t TVector::GetNoElements   const
 

Definition at line 131 of file TVector.h.

References fNrows.

Real_t* TVector::GetElements  
 

Definition at line 132 of file TVector.h.

References fElements.

const Real_t* TVector::GetElements   const
 

Definition at line 133 of file TVector.h.

References fElements.

void TVector::SetElements const Real_t *    elements
 

Definition at line 212 of file TVector.h.

References TObject::Error(), fElements, fNrows, and IsValid().

Referenced by TVector().

TVector & TVector::operator= const TVector &    source
 

Definition at line 252 of file TVector.h.

References AreCompatible, fElements, fNrows, and TObject::operator=().

TVector& TVector::operator= Real_t    val
 

TVector& TVector::operator= const TMatrixRow   mr
 

TVector& TVector::operator= const TMatrixColumn   mc
 

TVector& TVector::operator= const TMatrixDiag   md
 

TVector& TVector::operator-= Double_t    val
 

TVector& TVector::operator+= Double_t    val
 

TVector& TVector::operator *= Double_t    val
 

TVector& TVector::operator *= const TMatrix   a
 

Bool_t TVector::operator== Real_t    val const
 

Bool_t TVector::operator!= Real_t    val const
 

Bool_t TVector::operator< Real_t    val const
 

Bool_t TVector::operator<= Real_t    val const
 

Bool_t TVector::operator> Real_t    val const
 

Bool_t TVector::operator>= Real_t    val const
 

TVector & TVector::Zero  
 

Definition at line 295 of file TVector.h.

References TObject::Error(), fElements, fNrows, and IsValid().

TVector& TVector::Abs  
 

TVector& TVector::Sqr  
 

TVector& TVector::Sqrt  
 

TVector& TVector::Apply const TElementAction   action
 

TVector& TVector::Apply const TElementPosAction   action
 

Double_t TVector::Norm1   const
 

Double_t TVector::Norm2Sqr   const
 

Double_t TVector::NormInf   const
 

void TVector::Print Option_t *    option = "" const [virtual]
 

Reimplemented from TObject.


Friends And Related Function Documentation

friend class TMatrix [friend]
 

Definition at line 85 of file TVector.h.

friend class TMatrixRow [friend]
 

Definition at line 86 of file TVector.h.

friend class TMatrixColumn [friend]
 

Definition at line 87 of file TVector.h.

friend class TMatrixDiag [friend]
 

Definition at line 88 of file TVector.h.

friend class TMatrixFlat [friend]
 

Definition at line 89 of file TVector.h.

TVector& operator+= TVector &    target,
const TVector &    source
[friend]
 

TVector& operator-= TVector &    target,
const TVector &    source
[friend]
 

TVector operator+ const TVector &    source1,
const TVector &    source2
[friend]
 

TVector operator- const TVector &    source1,
const TVector &    source2
[friend]
 

Double_t operator * const TVector &    v1,
const TVector &    v2
[friend]
 

TVector& Add TVector &    target,
Double_t    scalar,
const TVector &    source
[friend]
 

TVector& ElementMult TVector &    target,
const TVector &    source
[friend]
 

TVector& ElementDiv TVector &    target,
const TVector &    source
[friend]
 

Bool_t operator== const TVector &    v1,
const TVector &    v2
[friend]
 

void Compare const TVector &    im1,
const TVector &    im2
[friend]
 

Bool_t AreCompatible const TVector &    v1,
const TVector &    v2
[friend]
 

Definition at line 233 of file TVector.h.

Referenced by operator=().


Member Data Documentation

Int_t TVector::fNmem [protected]
 

Definition at line 92 of file TVector.h.

Int_t TVector::fNrows [protected]
 

number of rows in allocated memory (>=fNrows)

Definition at line 93 of file TVector.h.

Referenced by AreCompatible(), GetNoElements(), GetNrows(), GetUpb(), Invalidate(), IsValid(), operator=(), SetElements(), and Zero().

Int_t TVector::fRowLwb [protected]
 

Definition at line 94 of file TVector.h.

Referenced by AreCompatible(), GetLwb(), and GetUpb().

Real_t* TVector::fElements [protected]
 

Definition at line 95 of file TVector.h.

Referenced by GetElements(), Invalidate(), operator=(), SetElements(), and Zero().


The documentation for this class was generated from the following file:
Generated on Thu Dec 18 15:10:09 2003 for ROOT by doxygen1.2.16