#include "TVectorT.h"

TVectorT


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

class TVectorT : 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 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                
                                                                      




Inline Functions


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


Last update: root/matrix:$Name: $:$Id: TVectorT.cxx,v 1.4 2006/01/26 16:31:01 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.