ROOT » MATH » MATRIX » TMatrixTDiag<float>

class TMatrixTDiag<float>: public TMatrixTDiag_const<float>


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


Function Members (Methods)

public:
virtual~TMatrixTDiag<float>()
static TClass*Class()
Int_tTMatrixTDiag_const<float>::GetInc() const
const TMatrixTBase<float>*TMatrixTDiag_const<float>::GetMatrix() const
Int_tTMatrixTDiag_const<float>::GetNdiags() const
float*GetPtr() const
virtual TClass*IsA() const
const float&operator()(Int_t i) const
float&operator()(Int_t i)
voidoperator*=(float val)
voidoperator*=(const TMatrixTDiag_const<float>& d)
voidoperator+=(float val)
voidoperator+=(const TMatrixTDiag_const<float>& d)
voidoperator=(float val)
voidoperator=(const TMatrixTDiag_const<float>& d)
TMatrixTDiag<float>&operator=(const TMatrixTDiag<float>& d)
voidoperator=(const TVectorT<float>& vec)
const float&operator[](Int_t i) const
float&operator[](Int_t i)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TMatrixTDiag<float>()
TMatrixTDiag<float>(TMatrixT<float>& matrix)
TMatrixTDiag<float>(TMatrixTSym<float>& matrix)
TMatrixTDiag<float>(const TMatrixTDiag<float>& md)

Data Members

protected:
Int_tTMatrixTDiag_const<float>::fIncif ptr=@a[i,i], then ptr+inc = @a[i+1,i+1]
TMatrixTBase<float>*TMatrixTDiag_const<float>::fMatrixthe matrix I am the diagonal of
Int_tTMatrixTDiag_const<float>::fNdiagnumber of diag elems, min(nrows,ncols)
const float*TMatrixTDiag_const<float>::fPtrpointer to the a[0,0]

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void TMatrixTDiag<Element> operator=(Element val)
 Assign val to every element of the matrix diagonal.
void TMatrixTDiag<Element> operator+=(Element val)
 Assign val to every element of the matrix diagonal.
void TMatrixTDiag<Element> operator*=(Element val)
 Assign val to every element of the matrix diagonal.
void TMatrixTDiag<Element> operator=(const TMatrixTDiag_const<Element> &md)
 Assignment operator
void TMatrixTDiag<Element> operator=(const TVectorT<Element> &vec)
 Assign a vector to the matrix diagonal.
void TMatrixTDiag<Element> operator+=(const TMatrixTDiag_const<Element> &md)
 Add to every element of the matrix diagonal the
 corresponding element of diagonal md.
void TMatrixTDiag<Element> operator*=(const TMatrixTDiag_const<Element> &md)
 Multiply every element of the matrix diagonal with the
 corresponding element of diagonal md.
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); }