ROOT » MATH » MATRIX » TMatrixTSparseDiag<float>

class TMatrixTSparseDiag<float>: public TMatrixTSparseDiag_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~TMatrixTSparseDiag<float>()
static TClass*Class()
float*GetDataPtr() const
const TMatrixTBase<float>*TMatrixTSparseDiag_const<float>::GetMatrix() const
Int_tTMatrixTSparseDiag_const<float>::GetNdiags() const
virtual TClass*IsA() const
floatoperator()(Int_t i) const
float&operator()(Int_t i)
voidoperator*=(float val)
voidoperator*=(const TMatrixTSparseDiag_const<float>& d)
voidoperator+=(float val)
voidoperator+=(const TMatrixTSparseDiag_const<float>& d)
voidoperator=(float val)
voidoperator=(const TMatrixTSparseDiag_const<float>& d)
TMatrixTSparseDiag<float>&operator=(const TMatrixTSparseDiag<float>& d)
voidoperator=(const TVectorT<float>& vec)
floatoperator[](Int_t i) const
float&operator[](Int_t i)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TMatrixTSparseDiag<float>()
TMatrixTSparseDiag<float>(TMatrixTSparse<float>& matrix)
TMatrixTSparseDiag<float>(const TMatrixTSparseDiag<float>& md)

Data Members

protected:
const float*TMatrixTSparseDiag_const<float>::fDataPtrdata pointer
TMatrixTSparse<float>*TMatrixTSparseDiag_const<float>::fMatrixthe matrix I am the diagonal of
Int_tTMatrixTSparseDiag_const<float>::fNdiagnumber of diag elems, min(nrows,ncols)

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Element TMatrixTSparseDiag<Element> operator()(Int_t i) const
Element &TMatrixTSparseDiag<Element> operator()(Int_t i)
 operator() : pick element diag(i)
void TMatrixTSparseDiag<Element> operator=(Element val)
 Assign val to every element of the matrix diagonal.
void TMatrixTSparseDiag<Element> operator+=(Element val)
 Add val to every element of the matrix diagonal.
void TMatrixTSparseDiag<Element> operator*=(Element val)
 Multiply every element of the matrix diagonal by val.
void TMatrixTSparseDiag<Element> operator=(const TMatrixTSparseDiag_const<Element> &md)
 Assignment operator
void TMatrixTSparseDiag<Element> operator=(const TVectorT<Element> &vec)
 Assign a vector to the matrix diagonal.
void TMatrixTSparseDiag<Element> operator+=(const TMatrixTSparseDiag_const<Element> &md)
 Add to every element of the matrix diagonal the
 corresponding element of diagonal md.
void TMatrixTSparseDiag<Element> operator*=(const TMatrixTSparseDiag_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 & operator[](Int_t i) const
{ return (*(const TMatrixTRow<Element> *)this)(i); }
Element & operator[](Int_t i)
{ return (*( TMatrixTRow<Element> *)this)(i); }
const Element * GetDataPtr() const
{ return fDataPtr; }