ROOT » MATH » MATRIX » TMatrixTFlat<double>

class TMatrixTFlat<double>: public TMatrixTFlat_const<double>


Matrix utility classes.

Templates of utility classes in the Linear Algebra Package.
The following classes are defined here:

Different matrix views without copying data elements :
TMatrixTRow_const        TMatrixTRow
TMatrixTColumn_const     TMatrixTColumn
TMatrixTDiag_const       TMatrixTDiag
TMatrixTFlat_const       TMatrixTFlat
TMatrixTSub_const        TMatrixTSub
TMatrixTSparseRow_const  TMatrixTSparseRow
TMatrixTSparseDiag_const TMatrixTSparseDiag

TElementActionT
TElementPosActionT


This class is also known as (typedefs to this class)

TMatrixDFlat, TMatrixDFlat

Function Members (Methods)

public:
virtual~TMatrixTFlat<double>()
static TClass*Class()
const TMatrixTBase<double>*TMatrixTFlat_const<double>::GetMatrix() const
double*GetPtr() const
virtual TClass*IsA() const
const double&operator()(Int_t i) const
double&operator()(Int_t i)
voidoperator*=(double val)
voidoperator*=(const TMatrixTFlat_const<double>& f)
voidoperator+=(double val)
voidoperator+=(const TMatrixTFlat_const<double>& f)
voidoperator=(double val)
voidoperator=(const TMatrixTFlat_const<double>& f)
TMatrixTFlat<double>&operator=(const TMatrixTFlat<double>& f)
voidoperator=(const TVectorT<double>& vec)
const double&operator[](Int_t i) const
double&operator[](Int_t i)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TMatrixTFlat<double>()
TMatrixTFlat<double>(TMatrixT<double>& matrix)
TMatrixTFlat<double>(TMatrixTSym<double>& matrix)
TMatrixTFlat<double>(const TMatrixTFlat<double>& mf)

Data Members

protected:
TMatrixTBase<double>*TMatrixTFlat_const<double>::fMatrixthe matrix I am the diagonal of
Int_tTMatrixTFlat_const<double>::fNelems
double*TMatrixTFlat_const<double>::fPtrpointer to the a[0,0]

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void TMatrixTFlat<Element> operator=(Element val)
 Assign val to every element of the matrix.
void TMatrixTFlat<Element> operator+=(Element val)
 Add val to every element of the matrix.
void TMatrixTFlat<Element> operator*=(Element val)
 Multiply every element of the matrix with val.
void TMatrixTFlat<Element> operator=(const TMatrixTFlat_const<Element> &mf)
 Assignment operator
void TMatrixTFlat<Element> operator=(const TVectorT<Element> &vec)
 Assign a vector to the matrix. The matrix is traversed row-wise
void TMatrixTFlat<Element> operator+=(const TMatrixTFlat_const<Element> &mf)
 Add to every element of the matrix the corresponding element of matrix mf.
void TMatrixTFlat<Element> operator*=(const TMatrixTFlat_const<Element> &mf)
 Multiply every element of the matrix with the corresponding element of diagonal mf.
TElementActionT& operator=(const TElementActionT<Element> &)
{return *this;}
const Element * GetPtr() const
{ return fPtr; }
const Element & operator()(Int_t i) const
Element & operator()(Int_t i)
const Element & operator[](Int_t i) const
{ return (*(const TMatrixTRow<Element> *)this)(i); }
Element & operator[](Int_t i)
{ return (*( TMatrixTRow<Element> *)this)(i); }