#include "TVectorT.h"

TVectorT<double>


class description - header file - source file - inheritance tree (.pdf)

class TVectorT<double> : public TObject

Inheritance Chart:
TObject
<-
TVectorT<double>

    protected:
void Allocate(Int_t nrows, Int_t row_lwb = 0, Int_t init = 0) void Delete_m(Int_t size, double*&) Int_t Memcpy_m(double* newp, const double* oldp, Int_t copySize, Int_t newSize, Int_t oldSize) double* New_m(Int_t size) public:
TVectorT<double>() TVectorT<double>(Int_t n) TVectorT<double>(Int_t lwb, Int_t upb) TVectorT<double>(Int_t n, const double* elements) TVectorT<double>(Int_t lwb, Int_t upb, const double* elements) TVectorT<double>(const TVectorT<double>& another) TVectorT<double>(const TMatrixTRow_const<double>& mr) TVectorT<double>(const TMatrixTColumn_const<double>& mc) TVectorT<double>(const TMatrixTDiag_const<double>& md) TVectorT<double> GetSub(Int_t row_lwb, Int_t row_upb, Option_t* option = "S") const TVectorT<double>(const TVectorT<float>& another) virtual ~TVectorT<double>() TVectorT<double>& Abs() void Add(const TVectorT<double>& v) void Add(const TVectorT<double>& v1, const TVectorT<double>& v2) void AddSomeConstant(double val, const TVectorT<double>& select) TVectorT<double>& Apply(const TElementActionT<double>& action) TVectorT<double>& Apply(const TElementPosActionT<double>& action) static TClass* Class() virtual void Clear(Option_t* = "") virtual void Draw(Option_t* option = "") Int_t GetLwb() const double* GetMatrixArray() const double* GetMatrixArray() const Int_t GetNoElements() const Int_t GetNrows() const TVectorT<double>& GetSub(Int_t row_lwb, Int_t row_upb, TVectorT<double>& target, Option_t* option = "S") const Int_t GetUpb() const void Invalidate() TVectorT<double>& Invert() virtual TClass* IsA() const Bool_t IsOwner() const Bool_t IsValid() const void MakeValid() Bool_t MatchesNonZeroPattern(const TVectorT<double>& select) double Max() const double Min() const Int_t NonZeros() const double Norm1() const double Norm2Sqr() const double NormInf() const Bool_t operator!=(double val) const const double& operator()(Int_t ind) const double& operator()(Int_t index) TVectorT<double>& operator*=(double val) TVectorT<double>& operator*=(const TMatrixT<double>& a) TVectorT<double>& operator*=(const TMatrixTSym<double>& a) TVectorT<double>& operator*=(const TMatrixTSparse<double>& a) TVectorT<double>& operator+=(double val) TVectorT<double>& operator+=(const TVectorT<double>& source) TVectorT<double>& operator-=(double val) TVectorT<double>& operator-=(const TVectorT<double>& source) Bool_t operator<(double val) const Bool_t operator<=(double val) const TVectorT<double>& operator=(const TVectorT<double>& source) TVectorT<double>& operator=(const TMatrixTRow_const<double>& mr) TVectorT<double>& operator=(const TMatrixTColumn_const<double>& mc) TVectorT<double>& operator=(const TMatrixTDiag_const<double>& md) TVectorT<double>& operator=(const TMatrixTSparseRow_const<double>& md) TVectorT<double>& operator=(const TMatrixTSparseDiag_const<double>& md) TVectorT<double>& operator=(double val) Bool_t operator==(double val) const Bool_t operator>(double val) const Bool_t operator>=(double val) const const double& operator[](Int_t index) const double& operator[](Int_t index) virtual void Print(Option_t* option = "") const void Randomize(double alpha, double beta, Double_t& seed) TVectorT<double>& ResizeTo(Int_t lwb, Int_t upb) TVectorT<double>& ResizeTo(Int_t n) TVectorT<double>& ResizeTo(const TVectorT<double>& v) TVectorT<double>& SelectNonZeros(const TVectorT<double>& select) void SetElements(const double* elements) TVectorT<double>& SetSub(Int_t row_lwb, const TVectorT<double>& source) TVectorT<double>& Shift(Int_t row_shift) virtual void ShowMembers(TMemberInspector& insp, char* parent) Bool_t SomePositive(const TVectorT<double>& select) TVectorT<double>& Sqr() TVectorT<double>& Sqrt() virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) double Sum() const TVectorT<double>& Use(Int_t n, double* data) TVectorT<double>& Use(Int_t lwb, Int_t upb, double* data) TVectorT<double>& Use(TVectorT<double>& v) TVectorT<double>& Zero()

Data Members


    protected:
Int_t fNrows number of rows Int_t fRowLwb lower bound of the row index double* fElements [fNrows] elements themselves double fDataStack[5] ! data container Bool_t fIsOwner !default kTRUE, when Use array kFALSE public:
static const enum TVectorT<double>:: kSizeMax static const enum TVectorT<double>:: kWorkMax static const TVectorT<double>::EVectorStatusBits kStatus

Class Description

                                                                      
 TVectorT                                                             
                                                                      
 Template class of Vectors in the linear algebra package              
                                                                      
 Unless otherwise specified, vector indices always start with 0,      
 spanning up to the specified limit-1.                                
                                                                      
 For (n) vectors where n <= kSizeMax (5 currently) storage space is   
 available on the stack, thus avoiding expensive allocation/          
 deallocation of heap space . However, this introduces of course      
 kSizeMax overhead for each vector object . If this is an issue       
 recompile with a new appropriate value (>=0) for kSizeMax            
                                                                      
 Another way to assign and store vector data is through Use           
 see for instance stressLinear.cxx file .                             
                                                                      
 Note that Constructors/assignments exists for all different matrix   
 views                                                                
                                                                      
 For usage examples see $ROOTSYS/test/stressLinear.cxx                
                                                                      

void Delete_m(Int_t size,Element*&)
Int_t Memcpy_m(Element *newp,const Element *oldp,Int_t copySize, Int_t newSize,Int_t oldSize)
void Allocate(Int_t nrows,Int_t row_lwb = 0,Int_t init = 0)
Int_t GetNoElements()
void SetElements(const Element *elements)
Element Norm2Sqr()
Int_t NonZeros()
Element * const pt = GetMatrixArray()
Bool_t operator==(Element val)
Bool_t operator!=(Element val)
Bool_t operator<=(Element val)
Bool_t operator>=(Element val)
Bool_t MatchesNonZeroPattern(const TVectorT<Element> &select)
void Add(const TVectorT<Element> &v)
void Add(const TVectorT<Element> &v1, const TVectorT<Element> &v2)
void Clear(Option_t * /*option*/ ="")
void Print(Option_t *option="")
return Use(v.GetLwb(),v.GetUpb(),v.GetMatrixArray())

Last update: root/matrix:$Name: $:$Id: TVectorT.cxx,v 1.16 2006/06/06 05:16:09 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

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.