TVectorT<float>
class description - header file - source file - inheritance tree (.pdf)
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 Add(const TVectorT<float>& v)
void Add(const TVectorT<float>& v1, const TVectorT<float>& v2)
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()
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
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 Add(const TVectorT<Element> &v)
void Add(const TVectorT<Element> &v1, const TVectorT<Element> &v2)
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.