Logo ROOT  
Reference Guide
TMatrixTBase Class Referenceabstract

TMatrixTBase

Template of base class in the linear algebra package.

See The ROOT Matrix Linear Algebra classes. for the documentation of the linear algebra package.

Matrix properties are stored here, however the data storage is part of the derived classes

Definition at line 25 of file TMatrixDBasefwd.h.

Public Member Functions

 TMatrixTBase ()
 
virtual ~TMatrixTBase ()
 
virtual TMatrixTBase< Element > & Abs ()
 
virtual TMatrixTBase< Element > & Apply (const TElementActionT< Element > &action)
 
virtual TMatrixTBase< Element > & Apply (const TElementPosActionT< Element > &action)
 
TClassClass ()
 
virtual void Clear (Option_t *option="")=0
 
virtual Element ColNorm () const
 
virtual Double_t Determinant () const
 
virtual void Determinant (Double_t &d1, Double_t &d2) const
 
void Draw (Option_t *option="")
 
virtual Element E2Norm () const
 
virtual void ExtractRow (Int_t row, Int_t col, Element *v, Int_t n=-1) const
 
virtual const Int_tGetColIndexArray () const =0
 
virtual Int_tGetColIndexArray ()=0
 
Int_t GetColLwb () const
 
Int_t GetColUpb () const
 
virtual void GetMatrix2Array (Element *data, Option_t *option="") const
 
virtual const Element * GetMatrixArray () const =0
 
virtual Element * GetMatrixArray ()=0
 
Int_t GetNcols () const
 
Int_t GetNoElements () const
 
Int_t GetNrows () const
 
virtual const Int_tGetRowIndexArray () const =0
 
virtual Int_tGetRowIndexArray ()=0
 
Int_t GetRowLwb () const
 
Int_t GetRowUpb () const
 
virtual TMatrixTBase< Element > & GetSub (Int_t row_lwb, Int_t row_upb, Int_t col_lwb, Int_t col_upb, TMatrixTBase< Element > &target, Option_t *option="S") const =0
 
Element GetTol () const
 
virtual TMatrixTBase< Element > & InsertRow (Int_t row, Int_t col, const Element *v, Int_t n=-1)
 
void Invalidate ()
 
Bool_t IsOwner () const
 
virtual Bool_t IsSymmetric () const
 
Bool_t IsValid () const
 
void MakeValid ()
 
virtual Element Max () const
 
virtual Element Min () const
 
virtual Int_t NonZeros () const
 
Element Norm1 () const
 
virtual TMatrixTBase< Element > & NormByDiag (const TVectorT< Element > &v, Option_t *option="D")
 
Element NormInf () const
 
Bool_t operator!= (Element val) const
 
virtual Element operator() (Int_t rown, Int_t coln) const =0
 
virtual Element & operator() (Int_t rown, Int_t coln)=0
 
Bool_t operator< (Element val) const
 
Bool_t operator<= (Element val) const
 
Bool_t operator== (Element val) const
 
Bool_t operator> (Element val) const
 
Bool_t operator>= (Element val) const
 
void Print (Option_t *name="") const
 
virtual TMatrixTBase< Element > & Randomize (Element alpha, Element beta, Double_t &seed)
 
virtual TMatrixTBase< Element > & ResizeTo (Int_t nrows, Int_t ncols, Int_t nr_nonzeros=-1)=0
 
virtual TMatrixTBase< Element > & ResizeTo (Int_t row_lwb, Int_t row_upb, Int_t col_lwb, Int_t col_upb, Int_t nr_nonzeros=-1)=0
 
virtual Element RowNorm () const
 
virtual TMatrixTBase< Element > & SetColIndexArray (Int_t *data)=0
 
virtual TMatrixTBase< Element > & SetMatrixArray (const Element *data, Option_t *option="")
 
virtual TMatrixTBase< Element > & SetRowIndexArray (Int_t *data)=0
 
virtual TMatrixTBase< Element > & SetSub (Int_t row_lwb, Int_t col_lwb, const TMatrixTBase< Element > &source)=0
 
Element SetTol (Element tol)
 
virtual TMatrixTBase< Element > & Shift (Int_t row_shift, Int_t col_shift)
 
virtual TMatrixTBase< Element > & Sqr ()
 
virtual TMatrixTBase< Element > & Sqrt ()
 
virtual Element Sum () const
 
virtual TMatrixTBase< Element > & UnitMatrix ()
 
virtual TMatrixTBase< Element > & Zero ()
 

Static Public Member Functions

static Element & NaNValue ()
 

Protected Types

enum  { kSizeMax = 25 }
 
enum  { kWorkMax = 100 }
 
enum  EMatrixStatusBits { kStatus = BIT(14) }
 

Static Protected Member Functions

static void DoubleLexSort (Int_t n, Int_t *first, Int_t *second, Element *data)
 default kTRUE, when Use array kFALSE More...
 
static void IndexedLexSort (Int_t n, Int_t *first, Int_t swapFirst, Int_t *second, Int_t swapSecond, Int_t *index)
 

Protected Attributes

Int_t fColLwb
 
Bool_t fIsOwner
 
Int_t fNcols
 
Int_t fNelems
 
Int_t fNrowIndex
 
Int_t fNrows
 
Int_t fRowLwb
 
Element fTol
 

Private Member Functions

Element * GetElements ()
 

#include <TMatrixDBasefwd.h>

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
kSizeMax 

Definition at line 106 of file TMatrixTBase.h.

◆ anonymous enum

anonymous enum
protected
Enumerator
kWorkMax 

Definition at line 107 of file TMatrixTBase.h.

◆ EMatrixStatusBits

Enumerator
kStatus 

Definition at line 109 of file TMatrixTBase.h.

Constructor & Destructor Documentation

◆ TMatrixTBase()

TMatrixTBase::TMatrixTBase ( )
inline

Definition at line 115 of file TMatrixTBase.h.

◆ ~TMatrixTBase()

virtual TMatrixTBase::~TMatrixTBase ( )
inlinevirtual

Definition at line 119 of file TMatrixTBase.h.

Member Function Documentation

◆ Abs()

virtual TMatrixTBase<Element>& TMatrixTBase::Abs ( )
virtual

◆ Apply() [1/2]

virtual TMatrixTBase<Element>& TMatrixTBase::Apply ( const TElementActionT< Element > &  action)
virtual

◆ Apply() [2/2]

virtual TMatrixTBase<Element>& TMatrixTBase::Apply ( const TElementPosActionT< Element > &  action)
virtual

◆ Class()

TClass * TMatrixTBase< double >::Class ( )

◆ Clear()

virtual void TMatrixTBase::Clear ( Option_t option = "")
pure virtual

◆ ColNorm()

virtual Element TMatrixTBase::ColNorm ( ) const
virtual

◆ Determinant() [1/2]

virtual Double_t TMatrixTBase::Determinant ( ) const
inlinevirtual

Definition at line 162 of file TMatrixTBase.h.

◆ Determinant() [2/2]

virtual void TMatrixTBase::Determinant ( Double_t d1,
Double_t d2 
) const
inlinevirtual

Definition at line 163 of file TMatrixTBase.h.

◆ DoubleLexSort()

static void TMatrixTBase::DoubleLexSort ( Int_t  n,
Int_t first,
Int_t second,
Element *  data 
)
staticprotected

default kTRUE, when Use array kFALSE

◆ Draw()

void TMatrixTBase::Draw ( Option_t option = "")

◆ E2Norm()

virtual Element TMatrixTBase::E2Norm ( ) const
virtual

◆ ExtractRow()

virtual void TMatrixTBase::ExtractRow ( Int_t  row,
Int_t  col,
Element *  v,
Int_t  n = -1 
) const
virtual

◆ GetColIndexArray() [1/2]

virtual const Int_t* TMatrixTBase::GetColIndexArray ( ) const
pure virtual

◆ GetColIndexArray() [2/2]

virtual Int_t* TMatrixTBase::GetColIndexArray ( )
pure virtual

◆ GetColLwb()

Int_t TMatrixTBase::GetColLwb ( ) const
inline

Definition at line 124 of file TMatrixTBase.h.

◆ GetColUpb()

Int_t TMatrixTBase::GetColUpb ( ) const
inline

Definition at line 125 of file TMatrixTBase.h.

◆ GetElements()

Element* TMatrixTBase::GetElements ( )
private

◆ GetMatrix2Array()

virtual void TMatrixTBase::GetMatrix2Array ( Element *  data,
Option_t option = "" 
) const
virtual

◆ GetMatrixArray() [1/2]

virtual const Element* TMatrixTBase::GetMatrixArray ( ) const
pure virtual

◆ GetMatrixArray() [2/2]

virtual Element* TMatrixTBase::GetMatrixArray ( )
pure virtual

◆ GetNcols()

Int_t TMatrixTBase::GetNcols ( ) const
inline

Definition at line 126 of file TMatrixTBase.h.

◆ GetNoElements()

Int_t TMatrixTBase::GetNoElements ( ) const
inline

Definition at line 127 of file TMatrixTBase.h.

◆ GetNrows()

Int_t TMatrixTBase::GetNrows ( ) const
inline

Definition at line 123 of file TMatrixTBase.h.

◆ GetRowIndexArray() [1/2]

virtual const Int_t* TMatrixTBase::GetRowIndexArray ( ) const
pure virtual

◆ GetRowIndexArray() [2/2]

virtual Int_t* TMatrixTBase::GetRowIndexArray ( )
pure virtual

◆ GetRowLwb()

Int_t TMatrixTBase::GetRowLwb ( ) const
inline

Definition at line 121 of file TMatrixTBase.h.

◆ GetRowUpb()

Int_t TMatrixTBase::GetRowUpb ( ) const
inline

Definition at line 122 of file TMatrixTBase.h.

◆ GetSub()

virtual TMatrixTBase<Element>& TMatrixTBase::GetSub ( Int_t  row_lwb,
Int_t  row_upb,
Int_t  col_lwb,
Int_t  col_upb,
TMatrixTBase< Element > &  target,
Option_t option = "S" 
) const
pure virtual

◆ GetTol()

Element TMatrixTBase::GetTol ( ) const
inline

Definition at line 128 of file TMatrixTBase.h.

◆ IndexedLexSort()

static void TMatrixTBase::IndexedLexSort ( Int_t  n,
Int_t first,
Int_t  swapFirst,
Int_t second,
Int_t  swapSecond,
Int_t index 
)
staticprotected

◆ InsertRow()

virtual TMatrixTBase<Element>& TMatrixTBase::InsertRow ( Int_t  row,
Int_t  col,
const Element *  v,
Int_t  n = -1 
)
virtual

◆ Invalidate()

void TMatrixTBase::Invalidate ( )
inline

Definition at line 144 of file TMatrixTBase.h.

◆ IsOwner()

Bool_t TMatrixTBase::IsOwner ( ) const
inline

Definition at line 147 of file TMatrixTBase.h.

◆ IsSymmetric()

virtual Bool_t TMatrixTBase::IsSymmetric ( ) const
virtual

◆ IsValid()

Bool_t TMatrixTBase::IsValid ( ) const
inline

Definition at line 146 of file TMatrixTBase.h.

◆ MakeValid()

void TMatrixTBase::MakeValid ( )
inline

Definition at line 145 of file TMatrixTBase.h.

◆ Max()

virtual Element TMatrixTBase::Max ( ) const
virtual

◆ Min()

virtual Element TMatrixTBase::Min ( ) const
virtual

◆ NaNValue()

static Element& TMatrixTBase::NaNValue ( )
static

◆ NonZeros()

virtual Int_t TMatrixTBase::NonZeros ( ) const
virtual

◆ Norm1()

Element TMatrixTBase::Norm1 ( ) const
inline

Definition at line 177 of file TMatrixTBase.h.

◆ NormByDiag()

virtual TMatrixTBase<Element>& TMatrixTBase::NormByDiag ( const TVectorT< Element > &  v,
Option_t option = "D" 
)
virtual

◆ NormInf()

Element TMatrixTBase::NormInf ( ) const
inline

Definition at line 176 of file TMatrixTBase.h.

◆ operator!=()

Bool_t TMatrixTBase::operator!= ( Element  val) const

◆ operator()() [1/2]

virtual Element TMatrixTBase::operator() ( Int_t  rown,
Int_t  coln 
) const
pure virtual

◆ operator()() [2/2]

virtual Element& TMatrixTBase::operator() ( Int_t  rown,
Int_t  coln 
)
pure virtual

◆ operator<()

Bool_t TMatrixTBase::operator< ( Element  val) const

◆ operator<=()

Bool_t TMatrixTBase::operator<= ( Element  val) const

◆ operator==()

Bool_t TMatrixTBase::operator== ( Element  val) const

◆ operator>()

Bool_t TMatrixTBase::operator> ( Element  val) const

◆ operator>=()

Bool_t TMatrixTBase::operator>= ( Element  val) const

◆ Print()

void TMatrixTBase::Print ( Option_t name = "") const

◆ Randomize()

virtual TMatrixTBase<Element>& TMatrixTBase::Randomize ( Element  alpha,
Element  beta,
Double_t seed 
)
virtual

◆ ResizeTo() [1/2]

virtual TMatrixTBase<Element>& TMatrixTBase::ResizeTo ( Int_t  nrows,
Int_t  ncols,
Int_t  nr_nonzeros = -1 
)
pure virtual

◆ ResizeTo() [2/2]

virtual TMatrixTBase<Element>& TMatrixTBase::ResizeTo ( Int_t  row_lwb,
Int_t  row_upb,
Int_t  col_lwb,
Int_t  col_upb,
Int_t  nr_nonzeros = -1 
)
pure virtual

◆ RowNorm()

virtual Element TMatrixTBase::RowNorm ( ) const
virtual

◆ SetColIndexArray()

virtual TMatrixTBase<Element>& TMatrixTBase::SetColIndexArray ( Int_t data)
pure virtual

◆ SetMatrixArray()

virtual TMatrixTBase<Element>& TMatrixTBase::SetMatrixArray ( const Element *  data,
Option_t option = "" 
)
virtual

◆ SetRowIndexArray()

virtual TMatrixTBase<Element>& TMatrixTBase::SetRowIndexArray ( Int_t data)
pure virtual

◆ SetSub()

virtual TMatrixTBase<Element>& TMatrixTBase::SetSub ( Int_t  row_lwb,
Int_t  col_lwb,
const TMatrixTBase< Element > &  source 
)
pure virtual

◆ SetTol()

Element TMatrixTBase::SetTol ( Element  tol)
inline

◆ Shift()

virtual TMatrixTBase<Element>& TMatrixTBase::Shift ( Int_t  row_shift,
Int_t  col_shift 
)
virtual

◆ Sqr()

virtual TMatrixTBase<Element>& TMatrixTBase::Sqr ( )
virtual

◆ Sqrt()

virtual TMatrixTBase<Element>& TMatrixTBase::Sqrt ( )
virtual

◆ Sum()

virtual Element TMatrixTBase::Sum ( ) const
virtual

◆ UnitMatrix()

virtual TMatrixTBase<Element>& TMatrixTBase::UnitMatrix ( )
virtual

◆ Zero()

virtual TMatrixTBase<Element>& TMatrixTBase::Zero ( )
virtual

Member Data Documentation

◆ fColLwb

Int_t TMatrixTBase::fColLwb
protected

Definition at line 93 of file TMatrixTBase.h.

◆ fIsOwner

Bool_t TMatrixTBase::fIsOwner
protected

Definition at line 100 of file TMatrixTBase.h.

◆ fNcols

Int_t TMatrixTBase::fNcols
protected

Definition at line 91 of file TMatrixTBase.h.

◆ fNelems

Int_t TMatrixTBase::fNelems
protected

Definition at line 94 of file TMatrixTBase.h.

◆ fNrowIndex

Int_t TMatrixTBase::fNrowIndex
protected

Definition at line 95 of file TMatrixTBase.h.

◆ fNrows

Int_t TMatrixTBase::fNrows
protected

Definition at line 90 of file TMatrixTBase.h.

◆ fRowLwb

Int_t TMatrixTBase::fRowLwb
protected

Definition at line 92 of file TMatrixTBase.h.

◆ fTol

Element TMatrixTBase::fTol
protected

Definition at line 97 of file TMatrixTBase.h.


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