Logo ROOT  
Reference Guide
TMatrixTSparse Class Reference

TMatrixTSparse

Template class of a general sparse matrix in the Harwell-Boeing format

Besides the usual shape/size decsriptors of a matrix like fNrows, fRowLwb,fNcols and fColLwb, we also store a row index, fRowIndex and column index, fColIndex only for those elements unequal zero:

fRowIndex[0,..,fNrows]: Stores for each row the index range of
the elements in the data and column array
fColIndex[0,..,fNelems-1]: Stores the column number for each data
element != 0

As an example how to access all sparse data elements:

for (Int_t irow = 0; irow < this->fNrows; irow++) {
const Int_t sIndex = fRowIndex[irow];
const Int_t eIndex = fRowIndex[irow+1];
for (Int_t index = sIndex; index < eIndex; index++) {
const Int_t icol = fColIndex[index];
const Element data = fElements[index];
printf("data(%d,%d) = %.4e\n",irow+this->fRowLwb,icol+
this->fColLwb,data);
}
}

When checking whether sparse matrices are compatible (like in an assigment !), not only the shape parameters are compared but also the sparse structure through fRowIndex and fColIndex .

Several methods exist to fill a sparse matrix with data entries. Most are the same like for dense matrices but some care has to be taken with regard to performance. In the constructor, always the shape of the matrix has to be specified in some form . Data can be entered through the following methods :

  1. constructor
    TMatrixTSparse(Int_t row_lwb,Int_t row_upb,Int_t dol_lwb,
    Int_t col_upb,Int_t nr_nonzeros,
    Int_t *row, Int_t *col,Element *data);
    It uses SetMatrixArray(..), see below
    
  2. copy constructors
  3. SetMatrixArray(Int_t nr,Int_t *irow,Int_t *icol,Element *data) where it is expected that the irow,icol and data array contain nr entries . Only the entries with non-zero data[i] value are inserted. Be aware that the input data array will be modified inside the routine for doing the necessary sorting of indices !
  4. TMatrixTSparse a(n,m); for(....) { a(i,j) = .... This is a very flexible method but expensive :
    • if no entry for slot (i,j) is found in the sparse index table it will be entered, which involves some memory management !
    • before invoking this method in a loop it is smart to first set the index table through a call to SetSparseIndex(..)
  5. SetSub(Int_t row_lwb,Int_t col_lwb,const TMatrixTBase &source) the matrix to be inserted at position (row_lwb,col_lwb) can be both dense or sparse .

Definition at line 22 of file TMatrixDSparsefwd.h.

Public Types

enum  EMatrixCreatorsOp1 { kZero, kUnit, kTransposed, kAtA }
 
enum  EMatrixCreatorsOp2 { kMult, kMultTranspose, kPlus, kMinus }
 

Public Member Functions

 TMatrixTSparse ()
 
 TMatrixTSparse (const TMatrixT< Element > &a, EMatrixCreatorsOp2 op, const TMatrixTSparse< Element > &b)
 
 TMatrixTSparse (const TMatrixT< Element > &another)
 
 TMatrixTSparse (const TMatrixTSparse< Element > &a, EMatrixCreatorsOp2 op, const TMatrixT< Element > &b)
 
 TMatrixTSparse (const TMatrixTSparse< Element > &a, EMatrixCreatorsOp2 op, const TMatrixTSparse< Element > &b)
 
 TMatrixTSparse (const TMatrixTSparse< Element > &another)
 
 TMatrixTSparse (EMatrixCreatorsOp1 op, const TMatrixTSparse< Element > &prototype)
 
 TMatrixTSparse (Int_t nrows, Int_t ncols)
 
 TMatrixTSparse (Int_t row_lwb, Int_t row_upb, Int_t col_lwb, Int_t col_upb)
 
 TMatrixTSparse (Int_t row_lwb, Int_t row_upb, Int_t col_lwb, Int_t col_upb, Int_t nr_nonzeros, Int_t *row, Int_t *col, Element *data)
 
virtual ~TMatrixTSparse ()
 
TClassClass ()
 
virtual void Clear (Option_t *="")
 
virtual Element ColNorm () const
 
virtual void ExtractRow (Int_t row, Int_t col, Element *v, Int_t n=-1) const
 
virtual Int_tGetColIndexArray ()
 
virtual const Int_tGetColIndexArray () const
 
virtual void GetMatrix2Array (Element *data, Option_t *="") const
 
virtual Element * GetMatrixArray ()
 
virtual const Element * GetMatrixArray () const
 
virtual Int_tGetRowIndexArray ()
 
virtual const Int_tGetRowIndexArray () const
 
TMatrixTSparse< Element > GetSub (Int_t row_lwb, Int_t row_upb, Int_t col_lwb, Int_t col_upb, Option_t *option="S") 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
 
virtual TMatrixTBase< Element > & InsertRow (Int_t row, Int_t col, const Element *v, Int_t n=-1)
 
virtual Bool_t IsSymmetric () const
 
void Mult (const TMatrixTSparse< Element > &a, const TMatrixTSparse< Element > &b)
 
virtual Int_t NonZeros () const
 
virtual TMatrixTBase< Element > & NormByDiag (const TVectorT< Element > &, Option_t *)
 
Element & operator() (Int_t rown, Int_t coln)
 
Element operator() (Int_t rown, Int_t coln) const
 
TMatrixTSparse< Element > & operator*= (const TMatrixT< Element > &source)
 
TMatrixTSparse< Element > & operator*= (const TMatrixTSparse< Element > &source)
 
TMatrixTSparse< Element > & operator*= (Element val)
 
TMatrixTSparse< Element > & operator+= (const TMatrixT< Element > &source)
 
TMatrixTSparse< Element > & operator+= (const TMatrixTSparse< Element > &source)
 
TMatrixTSparse< Element > & operator+= (Element val)
 
TMatrixTSparse< Element > & operator-= (const TMatrixT< Element > &source)
 
TMatrixTSparse< Element > & operator-= (const TMatrixTSparse< Element > &source)
 
TMatrixTSparse< Element > & operator-= (Element val)
 
TMatrixTSparse< Element > & operator= (const TMatrixT< Element > &source)
 
TMatrixTSparse< Element > & operator= (const TMatrixTSparse< Element > &source)
 
TMatrixTSparse< Element > & operator= (Element val)
 
TMatrixTSparseRow< Element > operator[] (Int_t rown)
 
const TMatrixTSparseRow_const< Element > operator[] (Int_t rown) const
 
virtual TMatrixTBase< Element > & Randomize (Element alpha, Element beta, Double_t &seed)
 
virtual TMatrixTSparse< Element > & RandomizePD (Element alpha, Element beta, Double_t &seed)
 
TMatrixTBase< Element > & ResizeTo (const TMatrixTSparse< Element > &m)
 
virtual TMatrixTBase< Element > & ResizeTo (Int_t nrows, Int_t ncols, Int_t nr_nonzeros=-1)
 
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)
 
virtual Element RowNorm () const
 
virtual TMatrixTBase< Element > & SetColIndexArray (Int_t *data)
 
virtual TMatrixTBase< Element > & SetMatrixArray (const Element *data, Option_t *="")
 
virtual TMatrixTBase< Element > & SetMatrixArray (Int_t nr_nonzeros, Int_t *irow, Int_t *icol, Element *data)
 
virtual TMatrixTBase< Element > & SetRowIndexArray (Int_t *data)
 
TMatrixTSparse< Element > & SetSparseIndex (const TMatrixTBase< Element > &another)
 
TMatrixTSparse< Element > & SetSparseIndex (Int_t nelem_new)
 
TMatrixTSparse< Element > & SetSparseIndexAB (const TMatrixT< Element > &a, const TMatrixTSparse< Element > &b)
 
TMatrixTSparse< Element > & SetSparseIndexAB (const TMatrixTSparse< Element > &a, const TMatrixT< Element > &b)
 
TMatrixTSparse< Element > & SetSparseIndexAB (const TMatrixTSparse< Element > &a, const TMatrixTSparse< Element > &b)
 
virtual TMatrixTBase< Element > & SetSub (Int_t row_lwb, Int_t col_lwb, const TMatrixTBase< Element > &source)
 
TMatrixTSparse< Element > & T ()
 
TMatrixTSparse< Element > & Transpose (const TMatrixTSparse< Element > &source)
 
virtual TMatrixTBase< Element > & UnitMatrix ()
 
const TMatrixTSparse< Element > & Use (const TMatrixTSparse< Element > &a) const
 
const TMatrixTSparse< Element > & Use (Int_t nrows, Int_t ncols, Int_t nr_nonzeros, const Int_t *pRowIndex, const Int_t *pColIndex, const Element *pData) const
 
TMatrixTSparse< Element > & Use (Int_t nrows, Int_t ncols, Int_t nr_nonzeros, Int_t *pRowIndex, Int_t *pColIndex, Element *pData)
 
const TMatrixTSparse< Element > & Use (Int_t row_lwb, Int_t row_upb, Int_t col_lwb, Int_t col_upb, Int_t nr_nonzeros, const Int_t *pRowIndex, const Int_t *pColIndex, const Element *pData) const
 
TMatrixTSparse< Element > & Use (Int_t row_lwb, Int_t row_upb, Int_t col_lwb, Int_t col_upb, Int_t nr_nonzeros, Int_t *pRowIndex, Int_t *pColIndex, Element *pData)
 
TMatrixTSparse< Element > & Use (TMatrixTSparse< Element > &a)
 
virtual TMatrixTBase< Element > & Zero ()
 

Protected Member Functions

void Allocate (Int_t nrows, Int_t ncols, Int_t row_lwb=0, Int_t col_lwb=0, Int_t init=0, Int_t nr_nonzeros=0)
 
void AMinusB (const TMatrixT< Element > &a, const TMatrixTSparse< Element > &b, Int_t constr=0)
 
void AMinusB (const TMatrixTSparse< Element > &a, const TMatrixT< Element > &b, Int_t constr=0)
 
void AMinusB (const TMatrixTSparse< Element > &a, const TMatrixTSparse< Element > &b, Int_t constr=0)
 
void AMultB (const TMatrixT< Element > &a, const TMatrixTSparse< Element > &b, Int_t constr=0)
 
void AMultB (const TMatrixTSparse< Element > &a, const TMatrixT< Element > &b, Int_t constr=0)
 
void AMultB (const TMatrixTSparse< Element > &a, const TMatrixTSparse< Element > &b, Int_t constr=0)
 
void AMultBt (const TMatrixT< Element > &a, const TMatrixTSparse< Element > &b, Int_t constr=0)
 
void AMultBt (const TMatrixTSparse< Element > &a, const TMatrixT< Element > &b, Int_t constr=0)
 
void AMultBt (const TMatrixTSparse< Element > &a, const TMatrixTSparse< Element > &b, Int_t constr=0)
 
void APlusB (const TMatrixT< Element > &a, const TMatrixTSparse< Element > &b, Int_t constr=0)
 
void APlusB (const TMatrixTSparse< Element > &a, const TMatrixT< Element > &b, Int_t constr=0)
 
void APlusB (const TMatrixTSparse< Element > &a, const TMatrixTSparse< Element > &b, Int_t constr=0)
 

Protected Attributes

Int_tfColIndex
 
Element * fElements
 
Int_tfRowIndex
 

#include <TMatrixDSparsefwd.h>

Member Enumeration Documentation

◆ EMatrixCreatorsOp1

Enumerator
kZero 
kUnit 
kTransposed 
kAtA 

Definition at line 70 of file TMatrixTSparse.h.

◆ EMatrixCreatorsOp2

Enumerator
kMult 
kMultTranspose 
kPlus 
kMinus 

Definition at line 71 of file TMatrixTSparse.h.

Constructor & Destructor Documentation

◆ TMatrixTSparse() [1/10]

TMatrixTSparse::TMatrixTSparse ( )
inline

Definition at line 73 of file TMatrixTSparse.h.

◆ TMatrixTSparse() [2/10]

TMatrixTSparse::TMatrixTSparse ( Int_t  nrows,
Int_t  ncols 
)

◆ TMatrixTSparse() [3/10]

TMatrixTSparse::TMatrixTSparse ( Int_t  row_lwb,
Int_t  row_upb,
Int_t  col_lwb,
Int_t  col_upb 
)

◆ TMatrixTSparse() [4/10]

TMatrixTSparse::TMatrixTSparse ( Int_t  row_lwb,
Int_t  row_upb,
Int_t  col_lwb,
Int_t  col_upb,
Int_t  nr_nonzeros,
Int_t row,
Int_t col,
Element *  data 
)

◆ TMatrixTSparse() [5/10]

TMatrixTSparse::TMatrixTSparse ( const TMatrixTSparse< Element > &  another)

◆ TMatrixTSparse() [6/10]

TMatrixTSparse::TMatrixTSparse ( const TMatrixT< Element > &  another)

◆ TMatrixTSparse() [7/10]

TMatrixTSparse::TMatrixTSparse ( EMatrixCreatorsOp1  op,
const TMatrixTSparse< Element > &  prototype 
)

◆ TMatrixTSparse() [8/10]

TMatrixTSparse::TMatrixTSparse ( const TMatrixTSparse< Element > &  a,
EMatrixCreatorsOp2  op,
const TMatrixTSparse< Element > &  b 
)

◆ TMatrixTSparse() [9/10]

TMatrixTSparse::TMatrixTSparse ( const TMatrixTSparse< Element > &  a,
EMatrixCreatorsOp2  op,
const TMatrixT< Element > &  b 
)

◆ TMatrixTSparse() [10/10]

TMatrixTSparse::TMatrixTSparse ( const TMatrixT< Element > &  a,
EMatrixCreatorsOp2  op,
const TMatrixTSparse< Element > &  b 
)

◆ ~TMatrixTSparse()

virtual TMatrixTSparse::~TMatrixTSparse ( )
inlinevirtual

Definition at line 86 of file TMatrixTSparse.h.

Member Function Documentation

◆ Allocate()

void TMatrixTSparse::Allocate ( Int_t  nrows,
Int_t  ncols,
Int_t  row_lwb = 0,
Int_t  col_lwb = 0,
Int_t  init = 0,
Int_t  nr_nonzeros = 0 
)
protected

◆ AMinusB() [1/3]

void TMatrixTSparse::AMinusB ( const TMatrixT< Element > &  a,
const TMatrixTSparse< Element > &  b,
Int_t  constr = 0 
)
protected

◆ AMinusB() [2/3]

void TMatrixTSparse::AMinusB ( const TMatrixTSparse< Element > &  a,
const TMatrixT< Element > &  b,
Int_t  constr = 0 
)
protected

◆ AMinusB() [3/3]

void TMatrixTSparse::AMinusB ( const TMatrixTSparse< Element > &  a,
const TMatrixTSparse< Element > &  b,
Int_t  constr = 0 
)
protected

◆ AMultB() [1/3]

void TMatrixTSparse::AMultB ( const TMatrixT< Element > &  a,
const TMatrixTSparse< Element > &  b,
Int_t  constr = 0 
)
inlineprotected

Definition at line 53 of file TMatrixTSparse.h.

◆ AMultB() [2/3]

void TMatrixTSparse::AMultB ( const TMatrixTSparse< Element > &  a,
const TMatrixT< Element > &  b,
Int_t  constr = 0 
)
inlineprotected

Definition at line 50 of file TMatrixTSparse.h.

◆ AMultB() [3/3]

void TMatrixTSparse::AMultB ( const TMatrixTSparse< Element > &  a,
const TMatrixTSparse< Element > &  b,
Int_t  constr = 0 
)
inlineprotected

Definition at line 48 of file TMatrixTSparse.h.

◆ AMultBt() [1/3]

void TMatrixTSparse::AMultBt ( const TMatrixT< Element > &  a,
const TMatrixTSparse< Element > &  b,
Int_t  constr = 0 
)
protected

◆ AMultBt() [2/3]

void TMatrixTSparse::AMultBt ( const TMatrixTSparse< Element > &  a,
const TMatrixT< Element > &  b,
Int_t  constr = 0 
)
protected

◆ AMultBt() [3/3]

void TMatrixTSparse::AMultBt ( const TMatrixTSparse< Element > &  a,
const TMatrixTSparse< Element > &  b,
Int_t  constr = 0 
)
protected

◆ APlusB() [1/3]

void TMatrixTSparse::APlusB ( const TMatrixT< Element > &  a,
const TMatrixTSparse< Element > &  b,
Int_t  constr = 0 
)
inlineprotected

Definition at line 62 of file TMatrixTSparse.h.

◆ APlusB() [2/3]

void TMatrixTSparse::APlusB ( const TMatrixTSparse< Element > &  a,
const TMatrixT< Element > &  b,
Int_t  constr = 0 
)
protected

◆ APlusB() [3/3]

void TMatrixTSparse::APlusB ( const TMatrixTSparse< Element > &  a,
const TMatrixTSparse< Element > &  b,
Int_t  constr = 0 
)
protected

◆ Class()

TClass * TMatrixTSparse< double >::Class ( )

◆ Clear()

virtual void TMatrixTSparse::Clear ( Option_t = "")
inlinevirtual

Definition at line 117 of file TMatrixTSparse.h.

◆ ColNorm()

virtual Element TMatrixTSparse::ColNorm ( ) const
virtual

◆ ExtractRow()

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

◆ GetColIndexArray() [1/2]

virtual Int_t* TMatrixTSparse::GetColIndexArray ( )
virtual

◆ GetColIndexArray() [2/2]

virtual const Int_t* TMatrixTSparse::GetColIndexArray ( ) const
virtual

◆ GetMatrix2Array()

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

◆ GetMatrixArray() [1/2]

virtual Element* TMatrixTSparse::GetMatrixArray ( )
virtual

◆ GetMatrixArray() [2/2]

virtual const Element* TMatrixTSparse::GetMatrixArray ( ) const
virtual

◆ GetRowIndexArray() [1/2]

virtual Int_t* TMatrixTSparse::GetRowIndexArray ( )
virtual

◆ GetRowIndexArray() [2/2]

virtual const Int_t* TMatrixTSparse::GetRowIndexArray ( ) const
virtual

◆ GetSub() [1/2]

TMatrixTSparse<Element> TMatrixTSparse::GetSub ( Int_t  row_lwb,
Int_t  row_upb,
Int_t  col_lwb,
Int_t  col_upb,
Option_t option = "S" 
) const

◆ GetSub() [2/2]

virtual TMatrixTBase<Element>& TMatrixTSparse::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
virtual

◆ InsertRow()

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

◆ IsSymmetric()

virtual Bool_t TMatrixTSparse::IsSymmetric ( ) const
inlinevirtual

Definition at line 147 of file TMatrixTSparse.h.

◆ Mult()

void TMatrixTSparse::Mult ( const TMatrixTSparse< Element > &  a,
const TMatrixTSparse< Element > &  b 
)
inline

Definition at line 151 of file TMatrixTSparse.h.

◆ NonZeros()

virtual Int_t TMatrixTSparse::NonZeros ( ) const
inlinevirtual

Definition at line 158 of file TMatrixTSparse.h.

◆ NormByDiag()

virtual TMatrixTBase<Element>& TMatrixTSparse::NormByDiag ( const TVectorT< Element > &  ,
Option_t  
)
inlinevirtual

Definition at line 160 of file TMatrixTSparse.h.

◆ operator()() [1/2]

Element& TMatrixTSparse::operator() ( Int_t  rown,
Int_t  coln 
)

◆ operator()() [2/2]

Element TMatrixTSparse::operator() ( Int_t  rown,
Int_t  coln 
) const

◆ operator*=() [1/3]

TMatrixTSparse<Element>& TMatrixTSparse::operator*= ( const TMatrixT< Element > &  source)
inline

Definition at line 195 of file TMatrixTSparse.h.

◆ operator*=() [2/3]

TMatrixTSparse<Element>& TMatrixTSparse::operator*= ( const TMatrixTSparse< Element > &  source)
inline

Definition at line 191 of file TMatrixTSparse.h.

◆ operator*=() [3/3]

TMatrixTSparse<Element>& TMatrixTSparse::operator*= ( Element  val)

◆ operator+=() [1/3]

TMatrixTSparse<Element>& TMatrixTSparse::operator+= ( const TMatrixT< Element > &  source)
inline

Definition at line 183 of file TMatrixTSparse.h.

◆ operator+=() [2/3]

TMatrixTSparse<Element>& TMatrixTSparse::operator+= ( const TMatrixTSparse< Element > &  source)
inline

Definition at line 179 of file TMatrixTSparse.h.

◆ operator+=() [3/3]

TMatrixTSparse<Element>& TMatrixTSparse::operator+= ( Element  val)

◆ operator-=() [1/3]

TMatrixTSparse<Element>& TMatrixTSparse::operator-= ( const TMatrixT< Element > &  source)
inline

Definition at line 189 of file TMatrixTSparse.h.

◆ operator-=() [2/3]

TMatrixTSparse<Element>& TMatrixTSparse::operator-= ( const TMatrixTSparse< Element > &  source)
inline

Definition at line 185 of file TMatrixTSparse.h.

◆ operator-=() [3/3]

TMatrixTSparse<Element>& TMatrixTSparse::operator-= ( Element  val)

◆ operator=() [1/3]

TMatrixTSparse<Element>& TMatrixTSparse::operator= ( const TMatrixT< Element > &  source)

◆ operator=() [2/3]

TMatrixTSparse<Element>& TMatrixTSparse::operator= ( const TMatrixTSparse< Element > &  source)

◆ operator=() [3/3]

TMatrixTSparse<Element>& TMatrixTSparse::operator= ( Element  val)

◆ operator[]() [1/2]

TMatrixTSparseRow<Element> TMatrixTSparse::operator[] ( Int_t  rown)
inline

Definition at line 169 of file TMatrixTSparse.h.

◆ operator[]() [2/2]

const TMatrixTSparseRow_const<Element> TMatrixTSparse::operator[] ( Int_t  rown) const
inline

Definition at line 168 of file TMatrixTSparse.h.

◆ Randomize()

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

◆ RandomizePD()

virtual TMatrixTSparse<Element>& TMatrixTSparse::RandomizePD ( Element  alpha,
Element  beta,
Double_t seed 
)
virtual

◆ ResizeTo() [1/3]

TMatrixTBase<Element>& TMatrixTSparse::ResizeTo ( const TMatrixTSparse< Element > &  m)
inline

Definition at line 114 of file TMatrixTSparse.h.

◆ ResizeTo() [2/3]

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

◆ ResizeTo() [3/3]

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

◆ RowNorm()

virtual Element TMatrixTSparse::RowNorm ( ) const
virtual

◆ SetColIndexArray()

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

Definition at line 96 of file TMatrixTSparse.h.

◆ SetMatrixArray() [1/2]

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

Definition at line 106 of file TMatrixTSparse.h.

◆ SetMatrixArray() [2/2]

virtual TMatrixTBase<Element>& TMatrixTSparse::SetMatrixArray ( Int_t  nr_nonzeros,
Int_t irow,
Int_t icol,
Element *  data 
)
virtual

◆ SetRowIndexArray()

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

Definition at line 95 of file TMatrixTSparse.h.

◆ SetSparseIndex() [1/2]

TMatrixTSparse<Element>& TMatrixTSparse::SetSparseIndex ( const TMatrixTBase< Element > &  another)

◆ SetSparseIndex() [2/2]

TMatrixTSparse<Element>& TMatrixTSparse::SetSparseIndex ( Int_t  nelem_new)

◆ SetSparseIndexAB() [1/3]

TMatrixTSparse<Element>& TMatrixTSparse::SetSparseIndexAB ( const TMatrixT< Element > &  a,
const TMatrixTSparse< Element > &  b 
)

◆ SetSparseIndexAB() [2/3]

TMatrixTSparse<Element>& TMatrixTSparse::SetSparseIndexAB ( const TMatrixTSparse< Element > &  a,
const TMatrixT< Element > &  b 
)
inline

Definition at line 102 of file TMatrixTSparse.h.

◆ SetSparseIndexAB() [3/3]

TMatrixTSparse<Element>& TMatrixTSparse::SetSparseIndexAB ( const TMatrixTSparse< Element > &  a,
const TMatrixTSparse< Element > &  b 
)

◆ SetSub()

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

◆ T()

TMatrixTSparse<Element>& TMatrixTSparse::T ( )
inline

Definition at line 149 of file TMatrixTSparse.h.

◆ Transpose()

TMatrixTSparse<Element>& TMatrixTSparse::Transpose ( const TMatrixTSparse< Element > &  source)

◆ UnitMatrix()

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

◆ Use() [1/6]

const TMatrixTSparse<Element>& TMatrixTSparse::Use ( const TMatrixTSparse< Element > &  a) const

◆ Use() [2/6]

const TMatrixTSparse<Element>& TMatrixTSparse::Use ( Int_t  nrows,
Int_t  ncols,
Int_t  nr_nonzeros,
const Int_t pRowIndex,
const Int_t pColIndex,
const Element *  pData 
) const

◆ Use() [3/6]

TMatrixTSparse<Element>& TMatrixTSparse::Use ( Int_t  nrows,
Int_t  ncols,
Int_t  nr_nonzeros,
Int_t pRowIndex,
Int_t pColIndex,
Element *  pData 
)

◆ Use() [4/6]

const TMatrixTSparse<Element>& TMatrixTSparse::Use ( Int_t  row_lwb,
Int_t  row_upb,
Int_t  col_lwb,
Int_t  col_upb,
Int_t  nr_nonzeros,
const Int_t pRowIndex,
const Int_t pColIndex,
const Element *  pData 
) const
inline

Definition at line 128 of file TMatrixTSparse.h.

◆ Use() [5/6]

TMatrixTSparse<Element>& TMatrixTSparse::Use ( Int_t  row_lwb,
Int_t  row_upb,
Int_t  col_lwb,
Int_t  col_upb,
Int_t  nr_nonzeros,
Int_t pRowIndex,
Int_t pColIndex,
Element *  pData 
)

◆ Use() [6/6]

TMatrixTSparse<Element>& TMatrixTSparse::Use ( TMatrixTSparse< Element > &  a)

◆ Zero()

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

Member Data Documentation

◆ fColIndex

Int_t* TMatrixTSparse::fColIndex
protected

Definition at line 41 of file TMatrixTSparse.h.

◆ fElements

Element* TMatrixTSparse::fElements
protected

Definition at line 42 of file TMatrixTSparse.h.

◆ fRowIndex

Int_t* TMatrixTSparse::fRowIndex
protected

Definition at line 40 of file TMatrixTSparse.h.


The documentation for this class was generated from the following files:
TMatrixTSparse::fElements
Element * fElements
Definition: TMatrixTSparse.h:42
TMatrixTSparse::TMatrixTSparse
TMatrixTSparse()
Definition: TMatrixTSparse.h:73
Int_t
int Int_t
Definition: RtypesCore.h:45
TMatrixTSparse::fRowIndex
Int_t * fRowIndex
Definition: TMatrixTSparse.h:40
TMatrixTSparse::fColIndex
Int_t * fColIndex
Definition: TMatrixTSparse.h:41