#include "TVectorT.h"

TVectorT


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

class TVectorT : public TObject

Inheritance Chart:
TObject
<-
TVectorT<float>

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

Data Members


    protected:
Int_t fNrows number of rows Int_t fRowLwb lower bound of the row index float* fElements [fNrows] elements themselves float fDataStack[5] ! data container Bool_t fIsOwner !default kTRUE, when Use array kFALSE public:
static const enum TVectorT<float>:: kSizeMax static const enum TVectorT<float>:: kWorkMax static const TVectorT<float>::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()
                  float* New_m(Int_t size)
                    void Delete_m(Int_t size, float*&)
                   Int_t Memcpy_m(float* newp, const float* 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<float> TVectorT()
         TVectorT<float> TVectorT(Int_t n)
         TVectorT<float> TVectorT(Int_t lwb, Int_t upb)
         TVectorT<float> TVectorT(Int_t n, const float* elements)
         TVectorT<float> TVectorT(Int_t lwb, Int_t upb, const float* elements)
         TVectorT<float> TVectorT(const TVectorT<float>& another)
         TVectorT<float> TVectorT(const TMatrixTRow_const<float>& mr)
         TVectorT<float> TVectorT(const TMatrixTColumn_const<float>& mc)
         TVectorT<float> TVectorT(const TMatrixTDiag_const<float>& md)
                   Int_t GetLwb() const
                   Int_t GetUpb() const
                   Int_t GetNrows() const
                   Int_t GetNoElements() const
                  float* GetMatrixArray()
            const float* GetMatrixArray() const
                    void Invalidate()
                    void MakeValid()
                  Bool_t IsValid() const
                  Bool_t IsOwner() const
                    void SetElements(const float* elements)
        TVectorT<float>& Shift(Int_t row_shift)
        TVectorT<float>& ResizeTo(Int_t lwb, Int_t upb)
        TVectorT<float>& ResizeTo(Int_t n)
        TVectorT<float>& ResizeTo(const TVectorT<float>& v)
        TVectorT<float>& Use(Int_t n, float* data)
        TVectorT<float>& Use(Int_t lwb, Int_t upb, float* data)
        TVectorT<float>& Use(TVectorT<float>& v)
        TVectorT<float>& GetSub(Int_t row_lwb, Int_t row_upb, TVectorT<float>& target, Option_t* option = "S") const
         TVectorT<float> GetSub(Int_t row_lwb, Int_t row_upb, Option_t* option = "S") const
        TVectorT<float>& SetSub(Int_t row_lwb, const TVectorT<float>& source)
        TVectorT<float>& Zero()
        TVectorT<float>& Abs()
        TVectorT<float>& Sqr()
        TVectorT<float>& Sqrt()
        TVectorT<float>& Invert()
        TVectorT<float>& SelectNonZeros(const TVectorT<float>& select)
                   float Norm1() const
                   float Norm2Sqr() const
                   float NormInf() const
                   Int_t NonZeros() const
                   float Sum() const
                   float Min() const
                   float Max() const
            const float& operator()(Int_t ind) const
                  float& operator()(Int_t index)
            const float& operator[](Int_t index) const
                  float& operator[](Int_t index)
        TVectorT<float>& operator=(const TVectorT<float>& source)
        TVectorT<float>& operator=(const TMatrixTRow_const<float>& mr)
        TVectorT<float>& operator=(const TMatrixTColumn_const<float>& mc)
        TVectorT<float>& operator=(const TMatrixTDiag_const<float>& md)
        TVectorT<float>& operator=(const TMatrixTSparseRow_const<float>& md)
        TVectorT<float>& operator=(const TMatrixTSparseDiag_const<float>& md)
        TVectorT<float>& operator=(float val)
        TVectorT<float>& operator+=(float val)
        TVectorT<float>& operator-=(float val)
        TVectorT<float>& operator*=(float val)
        TVectorT<float>& operator+=(const TVectorT<float>& source)
        TVectorT<float>& operator-=(const TVectorT<float>& source)
        TVectorT<float>& operator*=(const TMatrixT<float>& a)
        TVectorT<float>& operator*=(const TMatrixTSym<float>& a)
        TVectorT<float>& operator*=(const TMatrixTSparse<float>& a)
                  Bool_t operator==(float val) const
                  Bool_t operator!=(float val) const
                  Bool_t operator<(float val) const
                  Bool_t operator<=(float val) const
                  Bool_t operator>(float val) const
                  Bool_t operator>=(float val) const
                  Bool_t MatchesNonZeroPattern(const TVectorT<float>& select)
                  Bool_t SomePositive(const TVectorT<float>& select)
                    void AddSomeConstant(float val, const TVectorT<float>& select)
                    void Randomize(float alpha, float beta, Double_t& seed)
        TVectorT<float>& Apply(const TElementActionT<float>& action)
        TVectorT<float>& Apply(const TElementPosActionT<float>& 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<float> TVectorT(const TVectorT<double>& 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.