ROOT 6.13/01 Reference Guide |
Expression wrapper class for Matrix objects.
MatRepStd Standard Matrix representation for a general D1 x D2 matrix.
This class is itself a template on the contained type T, the number of rows and the number of columns. Its data member is an array T[nrows*ncols] containing the matrix data. The data are stored in the row-major C convention. For example, for a matrix, M, of size 3x3, the data \( \left[a_0,a_1,a_2,.......,a_7,a_8 \right] \)d are stored in the following order:
\[ M = \left( \begin{array}{ccc} a_0 & a_1 & a_2 \\ a_3 & a_4 & a_5 \\ a_6 & a_7 & a_8 \end{array} \right) \]
Definition at line 134 of file Expression.h.
Public Types | |
enum | { kRows = D1, kCols = D2, kSize = D1*D2 } |
typedef T | value_type |
Public Member Functions | |
T | apply (unsigned int i) const |
T * | Array () |
const T * | Array () const |
const T & | operator() (unsigned int i, unsigned int j) const |
T & | operator() (unsigned int i, unsigned int j) |
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 | |
T | fArray [kSize] |
#include <Math/Expression.h>
typedef T ROOT::Math::MatRepStd< T, D1, D2 >::value_type |
Definition at line 57 of file MatrixRepresentationsStatic.h.
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 102 of file MatrixRepresentationsStatic.h.
|
inline |
Definition at line 69 of file MatrixRepresentationsStatic.h.
|
inline |
Definition at line 71 of file MatrixRepresentationsStatic.h.
|
inline |
Definition at line 73 of file MatrixRepresentationsStatic.h.
|
inline |
Definition at line 59 of file MatrixRepresentationsStatic.h.
|
inline |
Definition at line 62 of file MatrixRepresentationsStatic.h.
|
inline |
Definition at line 76 of file MatrixRepresentationsStatic.h.
|
inline |
Definition at line 82 of file MatrixRepresentationsStatic.h.
|
inline |
Definition at line 88 of file MatrixRepresentationsStatic.h.
|
inline |
Definition at line 94 of file MatrixRepresentationsStatic.h.
|
inline |
Definition at line 65 of file MatrixRepresentationsStatic.h.
|
inline |
Definition at line 67 of file MatrixRepresentationsStatic.h.
|
private |
Definition at line 113 of file MatrixRepresentationsStatic.h.