class ROOT::Math::SVector<double,7>


    SVector: a generic fixed size Vector class.
    The class is template on the scalar type and on the vector size D.
    See \ref SVectorDoc

    Original author is Thorsten Glebe
    HERA-B Collaboration, MPI Heidelberg (Germany)

    @ingroup SMatrixSVector

    @authors T. Glebe, L. Moneta and J. Palacios



 SVector

Function Members (Methods)

public:
~SVector<double,7>()
doubleapply(unsigned int i) const
const double*Array() const
double*Array()
const double&At(unsigned int i) const
double&At(unsigned int i)
double*begin()
double*begin() const
static unsigned intDim()
double*end()
double*end() const
booloperator!=(const double& rhs) const
booloperator!=(const ROOT::Math::SVector<double,7>& rhs) const
const double&operator()(unsigned int i) const
double&operator()(unsigned int i)
ROOT::Math::SVector<double,7>&operator*=(const double& rhs)
ROOT::Math::SVector<double,7>&operator+=(const double& rhs)
ROOT::Math::SVector<double,7>&operator+=(const ROOT::Math::SVector<double,7>& rhs)
ROOT::Math::SVector<double,7>&operator-=(const double& rhs)
ROOT::Math::SVector<double,7>&operator-=(const ROOT::Math::SVector<double,7>& rhs)
ROOT::Math::SVector<double,7>&operator/=(const double& rhs)
booloperator<(const double& rhs) const
booloperator<(const ROOT::Math::SVector<double,7>& rhs) const
ROOT::Math::SVector<double,7>&operator=(const double& a1)
ROOT::Math::SVector<double,7>&operator=(const ROOT::Math::SVector<double,7>&)
booloperator==(const double& rhs) const
booloperator==(const ROOT::Math::SVector<double,7>& rhs) const
booloperator>(const double& rhs) const
booloperator>(const ROOT::Math::SVector<double,7>& rhs) const
const double&operator[](unsigned int i) const
double&operator[](unsigned int i)
ostream&Print(ostream& os) const
ROOT::Math::SVector<double,7>SVector<double,7>()
ROOT::Math::SVector<double,7>SVector<double,7>(const ROOT::Math::SVector<double,7>& rhs)
ROOT::Math::SVector<double,7>SVector<double,7>(const double& a1)
ROOT::Math::SVector<double,7>SVector<double,7>(const double* a, unsigned int len)
ROOT::Math::SVector<double,7>SVector<double,7>(const double* begin, const double* end)
ROOT::Math::SVector<double,7>SVector<double,7>(const double& a1, const double& a2)
ROOT::Math::SVector<double,7>SVector<double,7>(const double& a1, const double& a2, const double& a3)
ROOT::Math::SVector<double,7>SVector<double,7>(const double& a1, const double& a2, const double& a3, const double& a4)
ROOT::Math::SVector<double,7>SVector<double,7>(const double& a1, const double& a2, const double& a3, const double& a4, const double& a5)
ROOT::Math::SVector<double,7>SVector<double,7>(const double& a1, const double& a2, const double& a3, const double& a4, const double& a5, const double& a6)
ROOT::Math::SVector<double,7>SVector<double,7>(const double& a1, const double& a2, const double& a3, const double& a4, const double& a5, const double& a6, const double& a7)
ROOT::Math::SVector<double,7>SVector<double,7>(const double& a1, const double& a2, const double& a3, const double& a4, const double& a5, const double& a6, const double& a7, const double& a8)
ROOT::Math::SVector<double,7>SVector<double,7>(const double& a1, const double& a2, const double& a3, const double& a4, const double& a5, const double& a6, const double& a7, const double& a8, const double& a9)
ROOT::Math::SVector<double,7>SVector<double,7>(const double& a1, const double& a2, const double& a3, const double& a4, const double& a5, const double& a6, const double& a7, const double& a8, const double& a9, const double& a10)
ROOT::Math::SVector<double,7>&Unit()

Data Members

public:
enum { kSize
};
private:
doublefArray[7]

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

SVector<T,D>& operator=(const T& a1)
 assignment from a scalar (only for size 1 vector)
SVector<T,D>& operator=(const VecExpr<A,T,D>& rhs)
unsigned int Dim()
 return dimension $D$
{ return D; }
T apply(unsigned int i) const
 return read-only pointer to internal array
const T* Array()
 return non-const pointer to internal array
T* Array()
iterator begin()
 @name --- STL-like interface --- 
 STL iterator interface. 
iterator end()
 STL iterator interface. 
const_iterator begin()
 STL const_iterator interface. 
const_iterator end()
 STL const_iterator interface. 
bool operator==(const T& rhs)
 @name --- Operators --- 
 element wise comparison
bool operator!=(const T& rhs)
 element wise comparison
bool operator==(const SVector<T,D>& rhs)
 element wise comparison
bool operator!=(const SVector<T,D>& rhs)
 element wise comparison
bool operator>(const T& rhs)
 element wise comparison
bool operator<(const T& rhs)
 element wise comparison
bool operator>(const SVector<T,D>& rhs)
 element wise comparison
bool operator<(const SVector<T,D>& rhs)
 element wise comparison
const T& operator[](unsigned int i)
 read-only access of vector elements. Index starts from 0.
const T& operator()(unsigned int i)
 read-only access of vector elements with check on index. Index starts from 0.
const T& At(unsigned int i)
 read/write access of vector elements. Index starts from 0.
T& operator[](unsigned int i)
 read/write access of vector elements. Index starts from 0.
T& operator()(unsigned int i)
 read/write access of vector elements with check on index. Index starts from 0.
T& At(unsigned int i)
SVector<T,D>& operator+=(const T& rhs)
 self addition with a scalar
SVector<T,D>& operator-=(const T& rhs)
 self multiplication with a scalar
SVector<T,D>& operator*=(const double& rhs)
 self division with a scalar
SVector<T,D>& operator/=(const double& rhs)
SVector<T,D>& operator+=(const SVector<T,D>& rhs)
 self addition with another vector
SVector<T,D>& operator-=(const SVector<T,D>& rhs)
 self addition with a vector expression
SVector<T,D>& Unit()
 @name --- Expert functions --- 
 transform vector into a vector of lenght 1
std::ostream& Print(ostream& os) const
 used by operator<<()

Author: T. Glebe, L. Moneta, J. Palacios 2005
Last change: root/smatrix:$Id: SVector.h 21553 2007-12-21 10:55:46Z moneta $
Last generated: 2008-06-25 08:30

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.