ROOT logo
ROOT » MATH » MATRIX » TMatrixTSparseDiag_const<float>

class 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


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

TMatrixTSparseDiag_const<Float_t>, TMatrixFSparseDiag_const

Function Members (Methods)

public:
TMatrixTSparseDiag_const<float>()
TMatrixTSparseDiag_const<float>(const TMatrixTSparse<float>& matrix)
TMatrixTSparseDiag_const<float>(const TMatrixTSparseDiag_const<float>& trc)
virtual~TMatrixTSparseDiag_const<float>()
static TClass*Class()
const float*GetDataPtr() const
const TMatrixTBase<float>*GetMatrix() const
Int_tGetNdiags() const
virtual TClass*IsA() const
floatoperator()(Int_t i) const
TMatrixTSparseDiag_const<float>&operator=(const TMatrixTSparseDiag_const<float>& trc)
floatoperator[](Int_t i) const
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

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

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TElementActionT& operator=(const TMatrixTSparseDiag_const<float>& trc)
{return *this;}
const TMatrixTBase<Element> * GetMatrix() const
{ return fMatrix; }
const Element & operator()(Int_t i) const
const Element & operator[](Int_t i) const
{ return (*(const TMatrixTRow<Element> *)this)(i); }
Int_t GetNdiags() const
{ return fNdiag; }
const Element * GetDataPtr() const
{ return fDataPtr; }