Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Math::MatRepStd< T, D1, D2 > Class Template Reference

template<class T, unsigned int D1, unsigned int D2 = D1>
class ROOT::Math::MatRepStd< T, D1, D2 >

Expression wrapper class for Matrix objects.

Definition at line 54 of file MatrixRepresentationsStatic.h.

Public Types

enum  { kRows = D1 , kCols = D2 , kSize = D1*D2 }
 
typedef T value_type
 

Public Member Functions

apply (unsigned int i) const
 
T * Array ()
 
const T * Array () const
 
T & operator() (unsigned int i, unsigned int j)
 
const T & operator() (unsigned int i, unsigned int j) const
 
template<class R >
MatRepStd< T, D1, D2 > & operator+= (const R &rhs)
 
template<class R >
MatRepStd< T, D1, D2 > & operator-= (const R &rhs)
 
template<class R >
MatRepStd< T, D1, D2 > & operator= (const R &rhs)
 
template<class R >
bool operator== (const R &rhs) const
 
T & operator[] (unsigned int i)
 
const T & operator[] (unsigned int i) const
 

Private Attributes

fArray [kSize]
 

#include <Math/MatrixRepresentationsStatic.h>

Member Typedef Documentation

◆ value_type

template<class T , unsigned int D1, unsigned int D2 = D1>
typedef T ROOT::Math::MatRepStd< T, D1, D2 >::value_type

Definition at line 58 of file MatrixRepresentationsStatic.h.

Member Enumeration Documentation

◆ anonymous enum

template<class T , unsigned int D1, unsigned int D2 = D1>
anonymous enum
Enumerator
kRows 

return no. of matrix rows

kCols 

return no. of matrix columns

kSize 

return no of elements: rows*columns

Definition at line 103 of file MatrixRepresentationsStatic.h.

Member Function Documentation

◆ apply()

template<class T , unsigned int D1, unsigned int D2 = D1>
T ROOT::Math::MatRepStd< T, D1, D2 >::apply ( unsigned int  i) const
inline

Definition at line 70 of file MatrixRepresentationsStatic.h.

◆ Array() [1/2]

template<class T , unsigned int D1, unsigned int D2 = D1>
T * ROOT::Math::MatRepStd< T, D1, D2 >::Array ( )
inline

Definition at line 72 of file MatrixRepresentationsStatic.h.

◆ Array() [2/2]

template<class T , unsigned int D1, unsigned int D2 = D1>
const T * ROOT::Math::MatRepStd< T, D1, D2 >::Array ( ) const
inline

Definition at line 74 of file MatrixRepresentationsStatic.h.

◆ operator()() [1/2]

template<class T , unsigned int D1, unsigned int D2 = D1>
T & ROOT::Math::MatRepStd< T, D1, D2 >::operator() ( unsigned int  i,
unsigned int  j 
)
inline

Definition at line 63 of file MatrixRepresentationsStatic.h.

◆ operator()() [2/2]

template<class T , unsigned int D1, unsigned int D2 = D1>
const T & ROOT::Math::MatRepStd< T, D1, D2 >::operator() ( unsigned int  i,
unsigned int  j 
) const
inline

Definition at line 60 of file MatrixRepresentationsStatic.h.

◆ operator+=()

template<class T , unsigned int D1, unsigned int D2 = D1>
template<class R >
MatRepStd< T, D1, D2 > & ROOT::Math::MatRepStd< T, D1, D2 >::operator+= ( const R rhs)
inline

Definition at line 77 of file MatrixRepresentationsStatic.h.

◆ operator-=()

template<class T , unsigned int D1, unsigned int D2 = D1>
template<class R >
MatRepStd< T, D1, D2 > & ROOT::Math::MatRepStd< T, D1, D2 >::operator-= ( const R rhs)
inline

Definition at line 83 of file MatrixRepresentationsStatic.h.

◆ operator=()

template<class T , unsigned int D1, unsigned int D2 = D1>
template<class R >
MatRepStd< T, D1, D2 > & ROOT::Math::MatRepStd< T, D1, D2 >::operator= ( const R rhs)
inline

Definition at line 89 of file MatrixRepresentationsStatic.h.

◆ operator==()

template<class T , unsigned int D1, unsigned int D2 = D1>
template<class R >
bool ROOT::Math::MatRepStd< T, D1, D2 >::operator== ( const R rhs) const
inline

Definition at line 95 of file MatrixRepresentationsStatic.h.

◆ operator[]() [1/2]

template<class T , unsigned int D1, unsigned int D2 = D1>
T & ROOT::Math::MatRepStd< T, D1, D2 >::operator[] ( unsigned int  i)
inline

Definition at line 66 of file MatrixRepresentationsStatic.h.

◆ operator[]() [2/2]

template<class T , unsigned int D1, unsigned int D2 = D1>
const T & ROOT::Math::MatRepStd< T, D1, D2 >::operator[] ( unsigned int  i) const
inline

Definition at line 68 of file MatrixRepresentationsStatic.h.

Member Data Documentation

◆ fArray

template<class T , unsigned int D1, unsigned int D2 = D1>
T ROOT::Math::MatRepStd< T, D1, D2 >::fArray[kSize]
private

Definition at line 114 of file MatrixRepresentationsStatic.h.

  • math/smatrix/inc/Math/Expression.h
  • math/smatrix/inc/Math/MatrixRepresentationsStatic.h