ROOT » MATH » MATRIX » TMatrixTSparseDiag<double>

class TMatrixTSparseDiag<double>: public TMatrixTSparseDiag_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


Function Members (Methods)

public:
virtual~TMatrixTSparseDiag<double>()
static TClass*Class()
double*GetDataPtr() const
const TMatrixTBase<double>*TMatrixTSparseDiag_const<double>::GetMatrix() const
Int_tTMatrixTSparseDiag_const<double>::GetNdiags() const
virtual TClass*IsA() const
doubleoperator()(Int_t i) const
double&operator()(Int_t i)
voidoperator*=(double val)
voidoperator*=(const TMatrixTSparseDiag_const<double>& d)
voidoperator+=(double val)
voidoperator+=(const TMatrixTSparseDiag_const<double>& d)
voidoperator=(double val)
voidoperator=(const TMatrixTSparseDiag_const<double>& d)
TMatrixTSparseDiag<double>&operator=(const TMatrixTSparseDiag<double>& d)
voidoperator=(const TVectorT<double>& vec)
doubleoperator[](Int_t i) const
double&operator[](Int_t i)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TMatrixTSparseDiag<double>()
TMatrixTSparseDiag<double>(TMatrixTSparse<double>& matrix)
TMatrixTSparseDiag<double>(const TMatrixTSparseDiag<double>& md)

Data Members

protected:
const double*TMatrixTSparseDiag_const<double>::fDataPtrdata pointer
TMatrixTSparse<double>*TMatrixTSparseDiag_const<double>::fMatrixthe matrix I am the diagonal of
Int_tTMatrixTSparseDiag_const<double>::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; }