ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
TVectorT< Element > Class Template Reference

template<class Element>
class TVectorT< Element >

Definition at line 89 of file TMatrixTBase.h.

Public Member Functions

 TVectorT ()
 
 TVectorT (Int_t n)
 Constructor n-vector. More...
 
 TVectorT (Int_t lwb, Int_t upb)
 Constructor [lwb..upb]-vector. More...
 
 TVectorT (Int_t n, const Element *elements)
 Constructor n-vector with data copied from array elements. More...
 
 TVectorT (Int_t lwb, Int_t upb, const Element *elements)
 Constructor [lwb..upb]-vector with data copied from array elements. More...
 
 TVectorT (const TVectorT< Element > &another)
 Copy constructor. More...
 
 TVectorT (const TMatrixTRow_const< Element > &mr)
 Constructor : create vector from matrix row. More...
 
 TVectorT (const TMatrixTColumn_const< Element > &mc)
 Constructor : create vector from matrix column. More...
 
 TVectorT (const TMatrixTDiag_const< Element > &md)
 Constructor : create vector from matrix diagonal. More...
 
template<class Element2 >
 TVectorT (const TVectorT< Element2 > &another)
 
 TVectorT (Int_t lwb, Int_t upb, Element iv1,...)
 
virtual ~TVectorT ()
 
Int_t GetLwb () const
 
Int_t GetUpb () const
 
Int_t GetNrows () const
 
Int_t GetNoElements () const
 
Element * GetMatrixArray ()
 
const Element * GetMatrixArray () const
 
void Invalidate ()
 
void MakeValid ()
 
Bool_t IsValid () const
 
Bool_t IsOwner () const
 
void SetElements (const Element *elements)
 
TVectorT< Element > & Shift (Int_t row_shift)
 
TVectorT< Element > & ResizeTo (Int_t lwb, Int_t upb)
 Resize the vector to [lwb:upb] . More...
 
TVectorT< Element > & ResizeTo (Int_t n)
 
TVectorT< Element > & ResizeTo (const TVectorT< Element > &v)
 
TVectorT< Element > & Use (Int_t lwb, Int_t upb, Element *data)
 Use the array data to fill the vector lwb..upb]. More...
 
const TVectorT< Element > & Use (Int_t lwb, Int_t upb, const Element *data) const
 
TVectorT< Element > & Use (Int_t n, Element *data)
 
const TVectorT< Element > & Use (Int_t n, const Element *data) const
 
TVectorT< Element > & Use (TVectorT< Element > &v)
 
const TVectorT< Element > & Use (const TVectorT< Element > &v) const
 
TVectorT< Element > & GetSub (Int_t row_lwb, Int_t row_upb, TVectorT< Element > &target, Option_t *option="S") const
 Get subvector [row_lwb..row_upb]; The indexing range of the returned vector depends on the argument option: More...
 
TVectorT< Element > GetSub (Int_t row_lwb, Int_t row_upb, Option_t *option="S") const
 
TVectorT< Element > & SetSub (Int_t row_lwb, const TVectorT< Element > &source)
 Insert vector source starting at [row_lwb], thereby overwriting the part [row_lwb..row_lwb+nrows_source];. More...
 
TVectorT< Element > & Zero ()
 Set vector elements to zero. More...
 
TVectorT< Element > & Abs ()
 Take an absolute value of a vector, i.e. apply Abs() to each element. More...
 
TVectorT< Element > & Sqr ()
 Square each element of the vector. More...
 
TVectorT< Element > & Sqrt ()
 Take square root of all elements. More...
 
TVectorT< Element > & Invert ()
 v[i] = 1/v[i] More...
 
TVectorT< Element > & SelectNonZeros (const TVectorT< Element > &select)
 Keep only element as selected through array select non-zero. More...
 
Element Norm1 () const
 Compute the 1-norm of the vector SUM{ |v[i]| }. More...
 
Element Norm2Sqr () const
 Compute the square of the 2-norm SUM{ v[i]^2 }. More...
 
Element NormInf () const
 Compute the infinity-norm of the vector MAX{ |v[i]| }. More...
 
Int_t NonZeros () const
 Compute the number of elements != 0.0. More...
 
Element Sum () const
 Compute sum of elements. More...
 
Element Min () const
 return minimum vector element value More...
 
Element Max () const
 return maximum vector element value More...
 
const Element & operator() (Int_t index) const
 
Element & operator() (Int_t index)
 
const Element & operator[] (Int_t index) const
 
Element & operator[] (Int_t index)
 
TVectorT< Element > & operator= (const TVectorT< Element > &source)
 Notice that this assignment does NOT change the ownership : if the storage space was adopted, source is copied to this space . More...
 
TVectorT< Element > & operator= (const TMatrixTRow_const< Element > &mr)
 Assign a matrix row to a vector. More...
 
TVectorT< Element > & operator= (const TMatrixTColumn_const< Element > &mc)
 Assign a matrix column to a vector. More...
 
TVectorT< Element > & operator= (const TMatrixTDiag_const< Element > &md)
 Assign the matrix diagonal to a vector. More...
 
TVectorT< Element > & operator= (const TMatrixTSparseRow_const< Element > &md)
 Assign a sparse matrix row to a vector. More...
 
TVectorT< Element > & operator= (const TMatrixTSparseDiag_const< Element > &md)
 Assign a sparse matrix diagonal to a vector. More...
 
template<class Element2 >
TVectorT< Element > & operator= (const TVectorT< Element2 > &source)
 
TVectorT< Element > & operator= (Element val)
 Assign val to every element of the vector. More...
 
TVectorT< Element > & operator+= (Element val)
 Add val to every element of the vector. More...
 
TVectorT< Element > & operator-= (Element val)
 Subtract val from every element of the vector. More...
 
TVectorT< Element > & operator*= (Element val)
 Multiply every element of the vector with val. More...
 
TVectorT< Element > & operator+= (const TVectorT< Element > &source)
 Add vector source. More...
 
TVectorT< Element > & operator-= (const TVectorT< Element > &source)
 Subtract vector source. More...
 
TVectorT< Element > & operator*= (const TMatrixT< Element > &a)
 "Inplace" multiplication target = A*target. More...
 
TVectorT< Element > & operator*= (const TMatrixTSym< Element > &a)
 "Inplace" multiplication target = A*target. More...
 
TVectorT< Element > & operator*= (const TMatrixTSparse< Element > &a)
 "Inplace" multiplication target = A*target. More...
 
Bool_t operator== (Element val) const
 Are all vector elements equal to val? More...
 
Bool_t operator!= (Element val) const
 Are all vector elements not equal to val? More...
 
Bool_t operator< (Element val) const
 Are all vector elements < val? More...
 
Bool_t operator<= (Element val) const
 Are all vector elements <= val? More...
 
Bool_t operator> (Element val) const
 Are all vector elements > val? More...
 
Bool_t operator>= (Element val) const
 Are all vector elements >= val? More...
 
Bool_t MatchesNonZeroPattern (const TVectorT< Element > &select)
 Check if vector elements as selected through array select are non-zero. More...
 
Bool_t SomePositive (const TVectorT< Element > &select)
 Check if vector elements as selected through array select are all positive. More...
 
void AddSomeConstant (Element val, const TVectorT< Element > &select)
 Add to vector elements as selected through array select the value val. More...
 
void Randomize (Element alpha, Element beta, Double_t &seed)
 randomize vector elements value More...
 
TVectorT< Element > & Apply (const TElementActionT< Element > &action)
 Apply action to each element of the vector. More...
 
TVectorT< Element > & Apply (const TElementPosActionT< Element > &action)
 Apply action to each element of the vector. More...
 
void Add (const TVectorT< Element > &v)
 Add vector v to this vector. More...
 
void Add (const TVectorT< Element > &v1, const TVectorT< Element > &v2)
 Set this vector to v1+v2. More...
 
void Clear (Option_t *="")
 
void Draw (Option_t *option="")
 Draw this vector The histogram is named "TVectorT" by default and no title. More...
 
void Print (Option_t *option="") const
 Print the vector as a list of elements. More...
 
template<class Element>
 TVectorT (Int_t lwb, Int_t upb, Element va_(iv1),...)
 Make a vector and assign initial values. More...
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. More...
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action. More...
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs. More...
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method. More...
 
virtual void Copy (TObject &object) const
 Copy this to obj. More...
 
virtual void Delete (Option_t *option="")
 Delete this object. More...
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object. More...
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs. More...
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current pad. More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g. More...
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray. More...
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py). More...
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes. More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual Option_tGetOption () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname". More...
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl. More...
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas. More...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
virtual Bool_t IsSortable () const
 
Bool_t IsOnHeap () const
 
Bool_t IsZombie () const
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
virtual void ls (Option_t *option="") const
 The ls function lists the contents of a class on stdout. More...
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself. More...
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list. More...
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory. More...
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list. More...
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename. More...
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out". More...
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object. More...
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id. More...
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory. More...
 
voidoperator new (size_t sz)
 
voidoperator new[] (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz, void *vp)
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
void SetBit (UInt_t f)
 
void ResetBit (UInt_t f)
 
Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
void InvertBit (UInt_t f)
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. More...
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract. More...
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 

Protected Types

enum  { kSizeMax = 5 }
 
enum  { kWorkMax = 100 }
 
enum  EVectorStatusBits { kStatus = BIT(14) }
 

Protected Member Functions

Element * New_m (Int_t size)
 default kTRUE, when Use array kFALSE More...
 
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)
 Copy copySize doubles from *oldp to *newp . More...
 
void Allocate (Int_t nrows, Int_t row_lwb=0, Int_t init=0)
 Allocate new vector. More...
 
- Protected Member Functions inherited from TObject
void MakeZombie ()
 
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 

Protected Attributes

Int_t fNrows
 
Int_t fRowLwb
 
Element * fElements
 
Element fDataStack [kSizeMax]
 
Bool_t fIsOwner
 data container More...
 

Additional Inherited Members

- Public Types inherited from TObject
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4),
  kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13)
}
 
enum  { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff }
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 

#include <TMatrixTBase.h>

Inheritance diagram for TVectorT< Element >:
[legend]

Member Enumeration Documentation

template<class Element>
anonymous enum
protected
Enumerator
kSizeMax 

Definition at line 40 of file TVectorT.h.

template<class Element>
anonymous enum
protected
Enumerator
kWorkMax 

Definition at line 41 of file TVectorT.h.

template<class Element>
enum TVectorT::EVectorStatusBits
protected
Enumerator
kStatus 

Definition at line 53 of file TVectorT.h.

Constructor & Destructor Documentation

template<class Element>
TVectorT< Element >::TVectorT ( )
inline

Definition at line 59 of file TVectorT.h.

template<class Element >
TVectorT< Element >::TVectorT ( Int_t  n)
explicit

Constructor n-vector.

Definition at line 174 of file TVectorT.cxx.

template<class Element >
TVectorT< Element >::TVectorT ( Int_t  lwb,
Int_t  upb 
)

Constructor [lwb..upb]-vector.

Definition at line 183 of file TVectorT.cxx.

template<class Element>
TVectorT< Element >::TVectorT ( Int_t  n,
const Element *  elements 
)

Constructor n-vector with data copied from array elements.

Definition at line 192 of file TVectorT.cxx.

template<class Element>
TVectorT< Element >::TVectorT ( Int_t  lwb,
Int_t  upb,
const Element *  elements 
)

Constructor [lwb..upb]-vector with data copied from array elements.

Definition at line 202 of file TVectorT.cxx.

template<class Element>
TVectorT< Element >::TVectorT ( const TVectorT< Element > &  another)

Copy constructor.

Definition at line 212 of file TVectorT.cxx.

template<class Element>
TVectorT< Element >::TVectorT ( const TMatrixTRow_const< Element > &  mr)

Constructor : create vector from matrix row.

Definition at line 223 of file TVectorT.cxx.

template<class Element>
TVectorT< Element >::TVectorT ( const TMatrixTColumn_const< Element > &  mc)

Constructor : create vector from matrix column.

Definition at line 235 of file TVectorT.cxx.

template<class Element>
TVectorT< Element >::TVectorT ( const TMatrixTDiag_const< Element > &  md)

Constructor : create vector from matrix diagonal.

Definition at line 247 of file TVectorT.cxx.

template<class Element>
template<class Element2 >
TVectorT< Element >::TVectorT ( const TVectorT< Element2 > &  another)
inline

Definition at line 68 of file TVectorT.h.

template<class Element>
TVectorT< Element >::TVectorT ( Int_t  lwb,
Int_t  upb,
Element  iv1,
  ... 
)
template<class Element>
virtual TVectorT< Element >::~TVectorT ( )
inlinevirtual

Definition at line 77 of file TVectorT.h.

template<class Element>
template<class Element>
TVectorT< Element >::TVectorT ( Int_t  lwb,
Int_t  upb,
Element   va_iv1,
  ... 
)

Make a vector and assign initial values.

Argument list should contain Element values to assign to vector elements. The list must be terminated by the string "END". Example: TVectorT foo(1,3,0.0,1.0,1.5,"END");

Definition at line 262 of file TVectorT.cxx.

Member Function Documentation

template<class Element >
TVectorT< Element > & TVectorT< Element >::Abs ( )

Take an absolute value of a vector, i.e. apply Abs() to each element.

Definition at line 461 of file TVectorT.cxx.

Referenced by TDecompBK::Decompose().

template<class Element>
void TVectorT< Element >::Add ( const TVectorT< Element > &  v)

Add vector v to this vector.

Definition at line 81 of file TVectorT.cxx.

template<class Element>
void TVectorT< Element >::Add ( const TVectorT< Element > &  v1,
const TVectorT< Element > &  v2 
)

Set this vector to v1+v2.

Definition at line 99 of file TVectorT.cxx.

template<class Element>
void TVectorT< Element >::AddSomeConstant ( Element  val,
const TVectorT< Element > &  select 
)

Add to vector elements as selected through array select the value val.

Definition at line 1281 of file TVectorT.cxx.

Referenced by TQpResidual::Add_r3_xz_alpha(), and TQpVar::ShiftBoundVariables().

template<class Element >
void TVectorT< Element >::Allocate ( Int_t  nrows,
Int_t  row_lwb = 0,
Int_t  init = 0 
)
protected

Allocate new vector.

Arguments are number of rows and row lowerbound (0 default).

Definition at line 148 of file TVectorT.cxx.

Referenced by TVectorT< Element >::TVectorT(), and TVectorT< Double_t >::TVectorT().

template<class Element>
TVectorT< Element > & TVectorT< Element >::Apply ( const TElementActionT< Element > &  action)

Apply action to each element of the vector.

Definition at line 1319 of file TVectorT.cxx.

template<class Element>
TVectorT< Element > & TVectorT< Element >::Apply ( const TElementPosActionT< Element > &  action)

Apply action to each element of the vector.

In action the location of the current element is known.

Definition at line 1332 of file TVectorT.cxx.

template<class Element>
void TVectorT< Element >::Clear ( Option_t = "")
inlinevirtual

Reimplemented from TObject.

Definition at line 180 of file TVectorT.h.

Referenced by TLinearFitter::Clear(), and TVectorT< Double_t >::~TVectorT().

template<class Element>
void TVectorT< Element >::Delete_m ( Int_t  size,
Element *&   
)
protected
template<class Element >
void TVectorT< Element >::Draw ( Option_t option = "")
virtual

Draw this vector The histogram is named "TVectorT" by default and no title.

Reimplemented from TObject.

Definition at line 1350 of file TVectorT.cxx.

template<class Element>
Int_t TVectorT< Element >::GetLwb ( ) const
inline
template<class Element>
Element* TVectorT< Element >::GetMatrixArray ( )
inline

Definition at line 84 of file TVectorT.h.

Referenced by TVectorT< Element >::Add(), Add(), AddElemDiv(), AddElemMult(), TVectorT< Element >::AddSomeConstant(), ApplyHouseHolder(), TLinearFitter::AssignData(), Compare(), TUnfoldBinning::CreateErrorMatrixHistogram(), TUnfoldBinning::CreateHistogram(), TUnfoldBinning::CreateHistogramOfMigrations(), TLinearFitter::CStep(), TDecompBK::Decompose(), DefHouseHolder(), TDecompSVD::Diag_3(), Dot(), ElementDiv(), ElementMult(), TLinearFitter::Eval(), TQpVar::FindBlocking(), TMatrixDEigen::GetEigenValues(), TVectorT< Element >::GetSub(), TQpResidual::GondzioProjection(), TMatrixDSymEigen::MakeEigenVectors(), TMatrixDEigen::MakeHessenBerg(), TMatrixDEigen::MakeSchurr(), TMatrixDSymEigen::MakeTridiagonal(), TVectorT< Element >::MatchesNonZeroPattern(), ROOT::Math::mingradfunction(), Mult(), TMatrixT< Element >::NormByColumn(), TMatrixTBase< Element >::NormByDiag(), TMatrixT< Element >::NormByRow(), TMatrixTSparseRow< Element >::operator*=(), TVectorT< Element >::operator+=(), TMatrixTSparseRow< Element >::operator+=(), TVectorT< Element >::operator-=(), TVectorT< Element >::operator=(), TVectorT< Double_t >::operator=(), TMatrixTRow< Element >::operator=(), TMatrixTColumn< Element >::operator=(), TMatrixTDiag< Element >::operator=(), TMatrixTFlat< Element >::operator=(), TMatrixTSparseRow< Element >::operator=(), TMatrixTSparseDiag< Element >::operator=(), operator==(), OuterProduct(), TMatrixTSym< Element >::Rank1Update(), TMatrixT< Element >::Rank1Update(), TMatrixTSub< Element >::Rank1Update(), TRobustEstimator::RDist(), TVectorT< Element >::SelectNonZeros(), TASImage::SetImage(), TVectorT< Element >::SetSub(), TMatrixTSym< Element >::Similarity(), TMatrixT< Element >::Similarity(), TDecompChol::Solve(), TDecompBK::Solve(), TDecompLU::Solve(), TDecompQRH::Solve(), TDecompSVD::Solve(), TDecompSparse::Solve(), TVectorT< Element >::SomePositive(), TMatrixDEigen::Sort(), TDecompSVD::SortSingular(), TQpVar::StepBound(), TQpResidual::TQpResidual(), TQpVar::TQpVar(), TDecompLU::TransSolve(), TDecompQRH::TransSolve(), TVectorT< Element >::Use(), and Rcpp::wrap().

template<class Element>
const Element* TVectorT< Element >::GetMatrixArray ( ) const
inline

Definition at line 85 of file TVectorT.h.

template<class Element>
Int_t TVectorT< Element >::GetNoElements ( ) const
inline
template<class Element>
Int_t TVectorT< Element >::GetNrows ( ) const
inline

Definition at line 81 of file TVectorT.h.

Referenced by Add(), AddElemDiv(), AddElemMult(), TPrincipal::AddRow(), TMultiDimFit::AddRow(), TMultiDimFit::AddTestRow(), ApplyHouseHolder(), AreCompatible(), TMVA::VariablePCATransform::AttachXMLTo(), Compare(), TSVDUnfold::CompProd(), ConicToParametric(), DefHouseHolder(), TDecompBase::DiagProd(), Dot(), TMVA::DrawCell(), ElementDiv(), ElementMult(), TUnfoldBinning::FillBinMapSingleNode(), TQpVar::FindBlocking(), fitEllipseTGraphDLSF(), TUnfoldBinning::GetBinName(), TUnfoldBinning::GetBinSize(), TUnfoldBinning::GetBinUnderflowOverflowStatus(), TMVA::PDEFoam::GetCellElement(), TUnfoldBinning::GetDistributionAverageBinSize(), TUnfoldBinning::GetDistributionBinCenter(), TUnfoldBinning::GetDistributionOverflowBinWidth(), TUnfoldBinning::GetGlobalBinNumber(), TQpResidual::GondzioProjection(), Roo1DMomentMorphFunction::initialize(), RooMomentMorph::initialize(), TQpProbDens::MakeData(), TQpProbSparse::MakeData(), Mult(), TMatrixTRow< Element >::operator=(), TMatrixTColumn< Element >::operator=(), TMatrixTDiag< Element >::operator=(), TMatrixTFlat< Element >::operator=(), TMatrixTSparseRow< Element >::operator=(), TMatrixTSparseDiag< Element >::operator=(), operator==(), OuterProduct(), TMVA::PDEFoam::PrintCell(), TQpLinSolverDens::PutXDiagonal(), TQpLinSolverSparse::PutXDiagonal(), TQpLinSolverSparse::PutZDiagonal(), TQpLinSolverDens::PutZDiagonal(), TQpDataBase::RandomlyChooseBoundedVariables(), RooMultiVarGaussian::RooMultiVarGaussian(), RooNDKeysPdf::RooNDKeysPdf(), TMVA::PDEFoam::SetCellElement(), TVectorT< Element >::SetSub(), TMatrixTSym< Element >::Similarity(), TMatrixT< Element >::Similarity(), TDecompChol::Solve(), TDecompBK::Solve(), TDecompLU::Solve(), TDecompQRH::Solve(), TDecompSVD::Solve(), TDecompSparse::Solve(), TQpVar::StepBound(), TGraph::TGraph(), TGraphAsymmErrors::TGraphAsymmErrors(), TQpDataDens::TQpDataDens(), TQpDataSparse::TQpDataSparse(), TQpResidual::TQpResidual(), TQpVar::TQpVar(), TDecompLU::TransSolve(), TDecompQRH::TransSolve(), TDecompSVD::TransSolve(), TSVDUnfold::V2H(), TSVDUnfold::VecDiv(), and TMVA::VariablePCATransform::WriteTransformationToStream().

template<class Element>
TVectorT< Element > & TVectorT< Element >::GetSub ( Int_t  row_lwb,
Int_t  row_upb,
TVectorT< Element > &  target,
Option_t option = "S" 
) const

Get subvector [row_lwb..row_upb]; The indexing range of the returned vector depends on the argument option:

option == "S" : return [0..row_upb-row_lwb+1] (default) else : return [row_lwb..row_upb]

Definition at line 370 of file TVectorT.cxx.

Referenced by TQpProbDens::SeparateVars(), and TQpProbSparse::SeparateVars().

template<class Element>
TVectorT< Element > TVectorT< Element >::GetSub ( Int_t  row_lwb,
Int_t  row_upb,
Option_t option = "S" 
) const
inline

Definition at line 211 of file TVectorT.h.

template<class Element>
Int_t TVectorT< Element >::GetUpb ( ) const
inline
template<class Element>
void TVectorT< Element >::Invalidate ( )
inline

Definition at line 87 of file TVectorT.h.

template<class Element >
TVectorT< Element > & TVectorT< Element >::Invert ( )

v[i] = 1/v[i]

Definition at line 519 of file TVectorT.cxx.

Referenced by TQpLinSolverBase::Factor().

template<class Element>
Bool_t TVectorT< Element >::IsOwner ( ) const
inline

Definition at line 90 of file TVectorT.h.

template<class Element>
Bool_t TVectorT< Element >::IsValid ( ) const
inline
template<class Element>
void TVectorT< Element >::MakeValid ( )
inline

Definition at line 88 of file TVectorT.h.

template<class Element>
Bool_t TVectorT< Element >::MatchesNonZeroPattern ( const TVectorT< Element > &  select)

Check if vector elements as selected through array select are non-zero.

Definition at line 1235 of file TVectorT.cxx.

Referenced by TQpDataSparse::DataNorm(), TQpDataDens::DataNorm(), TQpResidual::ValidNonZeroPattern(), and TQpVar::ValidNonZeroPattern().

template<class Element >
Element TVectorT< Element >::Max ( ) const

return maximum vector element value

Definition at line 663 of file TVectorT.cxx.

template<class Element>
Int_t TVectorT< Element >::Memcpy_m ( Element *  newp,
const Element *  oldp,
Int_t  copySize,
Int_t  newSize,
Int_t  oldSize 
)
protected

Copy copySize doubles from *oldp to *newp .

However take care of the situation where both pointers are assigned to the same stack space

Definition at line 121 of file TVectorT.cxx.

template<class Element >
Element TVectorT< Element >::Min ( ) const

return minimum vector element value

Definition at line 651 of file TVectorT.cxx.

Referenced by TQpVar::Violation().

template<class Element >
Element * TVectorT< Element >::New_m ( Int_t  size)
protected

default kTRUE, when Use array kFALSE

Return data pointer .

if requested size <= kSizeMax, assign pointer to the stack space

Definition at line 64 of file TVectorT.cxx.

template<class Element >
Int_t TVectorT< Element >::NonZeros ( ) const
template<class Element >
Element TVectorT< Element >::Norm1 ( ) const

Compute the 1-norm of the vector SUM{ |v[i]| }.

Definition at line 564 of file TVectorT.cxx.

Referenced by TDecompBase::Hager(), and TQpVar::Norm1().

template<class Element >
Element TVectorT< Element >::Norm2Sqr ( ) const

Compute the square of the 2-norm SUM{ v[i]^2 }.

Definition at line 581 of file TVectorT.cxx.

Referenced by fit_ellipse().

template<class Element >
Element TVectorT< Element >::NormInf ( ) const

Compute the infinity-norm of the vector MAX{ |v[i]| }.

Definition at line 600 of file TVectorT.cxx.

Referenced by TQpResidual::CalcResids(), TQpDataSparse::DataNorm(), TQpDataDens::DataNorm(), TQpVar::NormInf(), and TDecompSparse::Solve().

template<class Element>
Bool_t TVectorT< Element >::operator!= ( Element  val) const

Are all vector elements not equal to val?

Definition at line 1150 of file TVectorT.cxx.

template<class Element >
const Element & TVectorT< Element >::operator() ( Int_t  index) const
inline

Definition at line 218 of file TVectorT.h.

template<class Element >
Element & TVectorT< Element >::operator() ( Int_t  index)
inline

Definition at line 231 of file TVectorT.h.

template<class Element>
TVectorT< Element > & TVectorT< Element >::operator*= ( Element  val)

Multiply every element of the vector with val.

Definition at line 892 of file TVectorT.cxx.

template<class Element>
TVectorT< Element > & TVectorT< Element >::operator*= ( const TMatrixT< Element > &  a)

"Inplace" multiplication target = A*target.

A needn't be a square one If target has to be resized, it should own the storage: fIsOwner = kTRUE

Definition at line 949 of file TVectorT.cxx.

template<class Element>
TVectorT< Element > & TVectorT< Element >::operator*= ( const TMatrixTSym< Element > &  a)

"Inplace" multiplication target = A*target.

A is symmetric . vector size will not change

Definition at line 1079 of file TVectorT.cxx.

template<class Element>
TVectorT< Element > & TVectorT< Element >::operator*= ( const TMatrixTSparse< Element > &  a)

"Inplace" multiplication target = A*target.

A needn't be a square one If target has to be resized, it should own the storage: fIsOwner = kTRUE

Definition at line 1016 of file TVectorT.cxx.

template<class Element>
TVectorT< Element > & TVectorT< Element >::operator+= ( Element  val)

Add val to every element of the vector.

Definition at line 860 of file TVectorT.cxx.

template<class Element>
TVectorT< Element > & TVectorT< Element >::operator+= ( const TVectorT< Element > &  source)

Add vector source.

Definition at line 908 of file TVectorT.cxx.

template<class Element>
TVectorT< Element > & TVectorT< Element >::operator-= ( Element  val)

Subtract val from every element of the vector.

Definition at line 876 of file TVectorT.cxx.

template<class Element>
TVectorT< Element > & TVectorT< Element >::operator-= ( const TVectorT< Element > &  source)

Subtract vector source.

Definition at line 928 of file TVectorT.cxx.

template<class Element>
Bool_t TVectorT< Element >::operator< ( Element  val) const

Are all vector elements < val?

Definition at line 1167 of file TVectorT.cxx.

template<class Element>
Bool_t TVectorT< Element >::operator<= ( Element  val) const

Are all vector elements <= val?

Definition at line 1184 of file TVectorT.cxx.

template<class Element>
TVectorT< Element > & TVectorT< Element >::operator= ( const TVectorT< Element > &  source)

Notice that this assignment does NOT change the ownership : if the storage space was adopted, source is copied to this space .

Definition at line 677 of file TVectorT.cxx.

template<class Element>
TVectorT< Element > & TVectorT< Element >::operator= ( const TMatrixTRow_const< Element > &  mr)

Assign a matrix row to a vector.

Definition at line 695 of file TVectorT.cxx.

template<class Element>
TVectorT< Element > & TVectorT< Element >::operator= ( const TMatrixTColumn_const< Element > &  mc)

Assign a matrix column to a vector.

Definition at line 726 of file TVectorT.cxx.

template<class Element>
TVectorT< Element > & TVectorT< Element >::operator= ( const TMatrixTDiag_const< Element > &  md)

Assign the matrix diagonal to a vector.

Definition at line 757 of file TVectorT.cxx.

template<class Element>
TVectorT< Element > & TVectorT< Element >::operator= ( const TMatrixTSparseRow_const< Element > &  mr)

Assign a sparse matrix row to a vector.

The matrix row is implicitly transposed to allow the assignment in the strict sense.

Definition at line 789 of file TVectorT.cxx.

template<class Element>
TVectorT< Element > & TVectorT< Element >::operator= ( const TMatrixTSparseDiag_const< Element > &  md)

Assign a sparse matrix diagonal to a vector.

Definition at line 820 of file TVectorT.cxx.

template<class Element>
template<class Element2 >
TVectorT<Element>& TVectorT< Element >::operator= ( const TVectorT< Element2 > &  source)
inline

Definition at line 136 of file TVectorT.h.

template<class Element>
TVectorT< Element > & TVectorT< Element >::operator= ( Element  val)

Assign val to every element of the vector.

Definition at line 844 of file TVectorT.cxx.

template<class Element>
Bool_t TVectorT< Element >::operator== ( Element  val) const

Are all vector elements equal to val?

Definition at line 1133 of file TVectorT.cxx.

template<class Element>
Bool_t TVectorT< Element >::operator> ( Element  val) const

Are all vector elements > val?

Definition at line 1201 of file TVectorT.cxx.

template<class Element>
Bool_t TVectorT< Element >::operator>= ( Element  val) const

Are all vector elements >= val?

Definition at line 1218 of file TVectorT.cxx.

template<class Element>
const Element& TVectorT< Element >::operator[] ( Int_t  index) const
inline

Definition at line 127 of file TVectorT.h.

template<class Element>
Element& TVectorT< Element >::operator[] ( Int_t  index)
inline

Definition at line 128 of file TVectorT.h.

template<class Element >
void TVectorT< Element >::Print ( Option_t option = "") const
virtual

Print the vector as a list of elements.

Reimplemented from TObject.

Definition at line 1360 of file TVectorT.cxx.

Referenced by RooNDKeysPdf::loadDataSet(), TDecompQRH::Print(), TPrincipal::Print(), TDecompSVD::Print(), TQpDataSparse::Print(), TQpDataDens::Print(), TQpVar::Print(), and Proxy().

template<class Element>
void TVectorT< Element >::Randomize ( Element  alpha,
Element  beta,
Double_t seed 
)

randomize vector elements value

Definition at line 1302 of file TVectorT.cxx.

Referenced by TQpDataSparse::DataRandom(), and TQpDataDens::DataRandom().

template<class Element >
TVectorT< Element > & TVectorT< Element >::ResizeTo ( Int_t  lwb,
Int_t  upb 
)

Resize the vector to [lwb:upb] .

New dynamic elemenst are created, the overlapping part of the old ones are copied to the new structures, then the old elements are deleted.

Definition at line 291 of file TVectorT.cxx.

Referenced by TLinearFitter::Add(), TRobustEstimator::AddColumn(), TLinearFitter::AddPoint(), TPrincipal::AddRow(), TRobustEstimator::AddRow(), TMultiDimFit::AddRow(), TMultiDimFit::AddTestRow(), TLinearFitter::AssignData(), TQpResidual::CalcResids(), ClassImp(), TPrincipal::Clear(), ConicToParametric(), TDecompQRH::Decompose(), TDecompSVD::Decompose(), TMatrixTSym< Element >::EigenVectors(), TMatrixT< Element >::EigenVectors(), TLinearFitter::Eval(), TLinearFitter::EvalRobust(), TQpLinSolverBase::Factor(), fit_ellipse(), TLinearFitter::FixParameter(), RooMultiVarGaussian::genData(), TLinearFitter::GetAtbVector(), TQpDataSparse::GetDiagonalOfQ(), TQpDataDens::GetDiagonalOfQ(), TLinearFitter::GetErrors(), TRobustEstimator::GetHyperplane(), TRobustEstimator::GetMean(), TLinearFitter::GetParameters(), TRobustEstimator::GetRDistances(), TVectorT< Element >::GetSub(), TMVA::RMethodBase::LoadData(), TMultiDimFit::MakeCoefficientErrors(), TMultiDimFit::MakeCoefficients(), TMultiDimFit::MakeParameterization(), TMatrixDSymEigen::operator=(), TMatrixDEigen::operator=(), TDecompQRH::operator=(), TDecompSVD::operator=(), TQpDataBase::operator=(), TQpResidual::operator=(), TQpLinSolverBase::operator=(), TQpVar::operator=(), TLinearFitter::operator=(), Roo2DMomentMorphFunction::Roo2DMomentMorphFunction(), TLinearFitter::SetBasisFunctions(), TMVA::PDEFoam::SetCellElement(), TLinearFitter::SetDim(), TLinearFitter::SetFormula(), TDecompQRH::SetMatrix(), TDecompSVD::SetMatrix(), TDecompSVD::Solve(), TQpLinSolverBase::Solve(), RooMultiVarGaussian::syncMuVec(), TDecompQRH::TDecompQRH(), TDecompSVD::TDecompSVD(), TPrincipal::TPrincipal(), TQpDataBase::TQpDataBase(), TQpDataDens::TQpDataDens(), TQpDataSparse::TQpDataSparse(), TQpLinSolverBase::TQpLinSolverBase(), TQpResidual::TQpResidual(), TQpVar::TQpVar(), and TDecompSVD::TransSolve().

template<class Element>
TVectorT<Element>& TVectorT< Element >::ResizeTo ( Int_t  n)
inline

Definition at line 95 of file TVectorT.h.

Referenced by TVectorT< Double_t >::ResizeTo().

template<class Element>
TVectorT<Element>& TVectorT< Element >::ResizeTo ( const TVectorT< Element > &  v)
inline

Definition at line 96 of file TVectorT.h.

Referenced by TVectorT< Double_t >::ResizeTo().

template<class Element>
TVectorT< Element > & TVectorT< Element >::SelectNonZeros ( const TVectorT< Element > &  select)

Keep only element as selected through array select non-zero.

Definition at line 541 of file TVectorT.cxx.

Referenced by TQpResidual::CalcResids(), TQpDataSparse::DataRandom(), TQpDataDens::DataRandom(), TQpVar::InteriorPoint(), and TQpResidual::Project_r3().

template<class Element>
void TVectorT< Element >::SetElements ( const Element *  elements)
inline

Definition at line 91 of file TVectorT.h.

template<class Element>
TVectorT< Element > & TVectorT< Element >::SetSub ( Int_t  row_lwb,
const TVectorT< Element > &  source 
)

Insert vector source starting at [row_lwb], thereby overwriting the part [row_lwb..row_lwb+nrows_source];.

Definition at line 419 of file TVectorT.cxx.

Referenced by TQpProbDens::JoinRHS(), TQpProbSparse::JoinRHS(), and TDecompSVD::Solve().

template<class Element>
TVectorT<Element>& TVectorT< Element >::Shift ( Int_t  row_shift)
inline

Definition at line 93 of file TVectorT.h.

Referenced by TDecompSVD::Decompose(), and TDecompSparse::Solve().

template<class Element>
Bool_t TVectorT< Element >::SomePositive ( const TVectorT< Element > &  select)

Check if vector elements as selected through array select are all positive.

Definition at line 1258 of file TVectorT.cxx.

Referenced by TQpVar::IsInteriorPoint(), and TQpVar::StepBound().

template<class Element >
TVectorT< Element > & TVectorT< Element >::Sqr ( )

Square each element of the vector.

Definition at line 479 of file TVectorT.cxx.

template<class Element >
TVectorT< Element > & TVectorT< Element >::Sqrt ( )

Take square root of all elements.

Definition at line 497 of file TVectorT.cxx.

template<class Element >
Element TVectorT< Element >::Sum ( ) const

Compute sum of elements.

Definition at line 634 of file TVectorT.cxx.

Referenced by TSVDUnfold::Unfold().

template<class Element>
TVectorT< Element > & TVectorT< Element >::Use ( Int_t  lwb,
Int_t  upb,
Element *  data 
)
template<class Element>
const TVectorT<Element>& TVectorT< Element >::Use ( Int_t  lwb,
Int_t  upb,
const Element *  data 
) const
inline

Definition at line 99 of file TVectorT.h.

template<class Element>
TVectorT< Element > & TVectorT< Element >::Use ( Int_t  n,
Element *  data 
)
inline

Definition at line 199 of file TVectorT.h.

template<class Element>
const TVectorT< Element > & TVectorT< Element >::Use ( Int_t  n,
const Element *  data 
) const
inline

Definition at line 200 of file TVectorT.h.

template<class Element>
TVectorT< Element > & TVectorT< Element >::Use ( TVectorT< Element > &  v)
inline

Definition at line 201 of file TVectorT.h.

template<class Element>
const TVectorT< Element > & TVectorT< Element >::Use ( const TVectorT< Element > &  v) const
inline

Definition at line 206 of file TVectorT.h.

template<class Element >
TVectorT< Element > & TVectorT< Element >::Zero ( )

Member Data Documentation

template<class Element>
Element TVectorT< Element >::fDataStack[kSizeMax]
protected

Definition at line 43 of file TVectorT.h.

template<class Element>
Element* TVectorT< Element >::fElements
protected
template<class Element>
Bool_t TVectorT< Element >::fIsOwner
protected

data container

Definition at line 44 of file TVectorT.h.

Referenced by TVectorT< Double_t >::Clear(), and TVectorT< Double_t >::IsOwner().

template<class Element>
Int_t TVectorT< Element >::fNrows
protected
template<class Element>
Int_t TVectorT< Element >::fRowLwb
protected
Collaboration diagram for TVectorT< Element >:
[legend]

The documentation for this class was generated from the following files: