Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
TMatrixTSparseDiag< Element > Class Template Reference

template<class Element>
class TMatrixTSparseDiag< Element >

Definition at line 673 of file TMatrixTUtils.h.

Public Member Functions

 TMatrixTSparseDiag ()
 TMatrixTSparseDiag (const TMatrixTSparseDiag< Element > &md)
 Constructor.
 TMatrixTSparseDiag (TMatrixTSparse< Element > &matrix)
 Constructor.
Element * GetDataPtr () const
const TMatrixTBase< Element > * GetMatrix () const
Int_t GetNdiags () const
TClassIsA () const override
Element & operator() (Int_t i)
 operator() : pick element diag(i)
Element operator() (Int_t i) const
void operator*= (const TMatrixTSparseDiag_const< Element > &d)
 Multiply every element of the matrix diagonal with the corresponding element of diagonal md.
void operator*= (Element val)
 Multiply every element of the matrix diagonal by val.
void operator+= (const TMatrixTSparseDiag_const< Element > &d)
 Add to every element of the matrix diagonal the corresponding element of diagonal md.
void operator+= (Element val)
 Add val to every element of the matrix diagonal.
TMatrixTSparseDiag< Element > & operator= (const TMatrixTSparseDiag< Element > &d)
void operator= (const TMatrixTSparseDiag_const< Element > &d)
 Assignment operator.
void operator= (const TVectorT< Element > &vec)
 Assign a vector to the matrix diagonal.
void operator= (Element val)
 Assign val to every element of the matrix diagonal.
Element & operator[] (Int_t i)
Element operator[] (Int_t i) const
void Streamer (TBuffer &) override
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)

Static Public Member Functions

static TClassClass ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()

Protected Attributes

const Element * fDataPtr
const TMatrixTSparse< Element > * fMatrix
Int_t fNdiag

#include <TMatrixTUtils.h>

Inheritance diagram for TMatrixTSparseDiag< Element >:
TMatrixTSparseDiag_const< Element >

Constructor & Destructor Documentation

◆ TMatrixTSparseDiag() [1/3]

template<class Element>
TMatrixTSparseDiag< Element >::TMatrixTSparseDiag ( )
inline

Definition at line 676 of file TMatrixTUtils.h.

◆ TMatrixTSparseDiag() [2/3]

template<class Element>
TMatrixTSparseDiag< Element >::TMatrixTSparseDiag ( TMatrixTSparse< Element > & matrix)

Constructor.

Definition at line 1684 of file TMatrixTUtils.cxx.

◆ TMatrixTSparseDiag() [3/3]

template<class Element>
TMatrixTSparseDiag< Element >::TMatrixTSparseDiag ( const TMatrixTSparseDiag< Element > & md)

Constructor.

Definition at line 1693 of file TMatrixTUtils.cxx.

Member Function Documentation

◆ Class()

template<class Element>
TClass * TMatrixTSparseDiag< Element >::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

template<class Element>
const char * TMatrixTSparseDiag< Element >::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

template<class Element>
constexpr Version_t TMatrixTSparseDiag< Element >::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 698 of file TMatrixTUtils.h.

◆ DeclFileName()

template<class Element>
const char * TMatrixTSparseDiag< Element >::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 698 of file TMatrixTUtils.h.

◆ GetDataPtr()

template<class Element>
Element * TMatrixTSparseDiag< Element >::GetDataPtr ( ) const
inline

Definition at line 680 of file TMatrixTUtils.h.

◆ GetMatrix()

template<class Element>
const TMatrixTBase< Element > * TMatrixTSparseDiag_const< Element >::GetMatrix ( ) const
inlineinherited

Definition at line 663 of file TMatrixTUtils.h.

◆ GetNdiags()

template<class Element>
Int_t TMatrixTSparseDiag_const< Element >::GetNdiags ( ) const
inlineinherited

Definition at line 665 of file TMatrixTUtils.h.

◆ IsA()

template<class Element>
TClass * TMatrixTSparseDiag< Element >::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TMatrixTSparseDiag_const< Element >.

Definition at line 698 of file TMatrixTUtils.h.

◆ operator()() [1/2]

template<class Element>
Element & TMatrixTSparseDiag< Element >::operator() ( Int_t i)

operator() : pick element diag(i)

Definition at line 1725 of file TMatrixTUtils.cxx.

◆ operator()() [2/2]

template<class Element>
Element TMatrixTSparseDiag< Element >::operator() ( Int_t i) const

Definition at line 1702 of file TMatrixTUtils.cxx.

◆ operator*=() [1/2]

template<class Element>
void TMatrixTSparseDiag< Element >::operator*= ( const TMatrixTSparseDiag_const< Element > & d)

Multiply every element of the matrix diagonal with the corresponding element of diagonal md.

Definition at line 1859 of file TMatrixTUtils.cxx.

◆ operator*=() [2/2]

template<class Element>
void TMatrixTSparseDiag< Element >::operator*= ( Element val)

Multiply every element of the matrix diagonal by val.

Definition at line 1788 of file TMatrixTUtils.cxx.

◆ operator+=() [1/2]

template<class Element>
void TMatrixTSparseDiag< Element >::operator+= ( const TMatrixTSparseDiag_const< Element > & d)

Add to every element of the matrix diagonal the corresponding element of diagonal md.

Definition at line 1839 of file TMatrixTUtils.cxx.

◆ operator+=() [2/2]

template<class Element>
void TMatrixTSparseDiag< Element >::operator+= ( Element val)

Add val to every element of the matrix diagonal.

Definition at line 1777 of file TMatrixTUtils.cxx.

◆ operator=() [1/4]

template<class Element>
TMatrixTSparseDiag< Element > & TMatrixTSparseDiag< Element >::operator= ( const TMatrixTSparseDiag< Element > & d)
inline

Definition at line 692 of file TMatrixTUtils.h.

◆ operator=() [2/4]

template<class Element>
void TMatrixTSparseDiag< Element >::operator= ( const TMatrixTSparseDiag_const< Element > & d)

Assignment operator.

Definition at line 1799 of file TMatrixTUtils.cxx.

◆ operator=() [3/4]

template<class Element>
void TMatrixTSparseDiag< Element >::operator= ( const TVectorT< Element > & vec)

Assign a vector to the matrix diagonal.

Definition at line 1819 of file TMatrixTUtils.cxx.

◆ operator=() [4/4]

template<class Element>
void TMatrixTSparseDiag< Element >::operator= ( Element val)

Assign val to every element of the matrix diagonal.

Definition at line 1766 of file TMatrixTUtils.cxx.

◆ operator[]() [1/2]

template<class Element>
Element & TMatrixTSparseDiag< Element >::operator[] ( Int_t i)
inline

Definition at line 685 of file TMatrixTUtils.h.

◆ operator[]() [2/2]

template<class Element>
Element TMatrixTSparseDiag< Element >::operator[] ( Int_t i) const
inline

Definition at line 684 of file TMatrixTUtils.h.

◆ Streamer()

template<class Element>
void TMatrixTSparseDiag< Element >::Streamer ( TBuffer & )
overridevirtual

◆ StreamerNVirtual()

template<class Element>
void TMatrixTSparseDiag< Element >::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 698 of file TMatrixTUtils.h.

Member Data Documentation

◆ fDataPtr

template<class Element>
const Element* TMatrixTSparseDiag_const< Element >::fDataPtr
protectedinherited

Definition at line 652 of file TMatrixTUtils.h.

◆ fMatrix

template<class Element>
const TMatrixTSparse<Element>* TMatrixTSparseDiag_const< Element >::fMatrix
protectedinherited

Definition at line 650 of file TMatrixTUtils.h.

◆ fNdiag

template<class Element>
Int_t TMatrixTSparseDiag_const< Element >::fNdiag
protectedinherited

Definition at line 651 of file TMatrixTUtils.h.


The documentation for this class was generated from the following files: