ROOT  6.06/09
Reference Guide
Classes
Matrix and Vector classes

Classes representing Matrices and Vectors of arbitrary type and dimension. More...

+ Collaboration diagram for Matrix and Vector classes:

Classes

class  ROOT::Math::SMatrix< T, D1, D2, R >::SMatrixRow
 
class  ROOT::Math::SMatrix< T, D1, D2, R >::SMatrixRow_const
 
class  ROOT::Math::SMatrix< T, D1, D2, R >
 SMatrix: a generic fixed size D1 x D2 Matrix class. More...
 
class  ROOT::Math::SVector< T, D >
 SVector: a generic fixed size Vector class. More...
 

--- Matrix dimension ---

enum  { ROOT::Math::SMatrix< T, D1, D2, R >::kRows = D1, ROOT::Math::SMatrix< T, D1, D2, R >::kCols = D2, ROOT::Math::SMatrix< T, D1, D2, R >::kSize = D1*D2 }
 Enumeration defining the matrix dimension, number of rows, columns and size = rows*columns) More...
 

--- Access functions ---

enum  { ROOT::Math::SVector< T, D >::kSize = D }
 Enumeration defining the Vector size. More...
 
ROOT::Math::SVector< T, D >::apply (unsigned int i) const
 access the parse tree. Index starts from zero More...
 
const T * ROOT::Math::SVector< T, D >::Array () const
 return read-only pointer to internal array More...
 
T * ROOT::Math::SVector< T, D >::Array ()
 return non-const pointer to internal array More...
 
static unsigned int ROOT::Math::SVector< T, D >::Dim ()
 return dimension $D$ More...
 

Detailed Description

Classes representing Matrices and Vectors of arbitrary type and dimension.

For a detailed description and usage examples see:

Enumeration Type Documentation

template<class T, unsigned int D1, unsigned int D2 = D1, class R = MatRepStd<T, D1, D2>>
anonymous enum

Enumeration defining the matrix dimension, number of rows, columns and size = rows*columns)

Enumerator
kRows 

return no. of matrix rows

kCols 

return no. of matrix columns

kSize 

return no of elements: rows*columns

Definition at line 261 of file SMatrix.h.

template<class T, unsigned int D>
anonymous enum

Enumeration defining the Vector size.

Enumerator
kSize 

return vector size

Definition at line 174 of file SVector.h.

Function Documentation

template<class T , unsigned int D>
T ROOT::Math::SVector< T, D >::apply ( unsigned int  i) const
inline
template<class T , unsigned int D>
const T * ROOT::Math::SVector< T, D >::Array ( ) const
inline

return read-only pointer to internal array

Definition at line 533 of file SVector.icc.

template<class T , unsigned int D>
T * ROOT::Math::SVector< T, D >::Array ( )
inline

return non-const pointer to internal array

Definition at line 536 of file SVector.icc.

template<class T, unsigned int D>
static unsigned int ROOT::Math::SVector< T, D >::Dim ( )
inlinestatic

return dimension $D$

Definition at line 181 of file SVector.h.