16#ifndef ALICEO2_FWDALIGN_VECTORSPARSE_H
17#define ALICEO2_FWDALIGN_VECTORSPARSE_H
39 void Print(Option_t* option =
"")
const override;
48 void Clear(Option_t* option =
"")
override;
53 void ReSize(Int_t sz, Bool_t copy = kFALSE);
59 void Add(Double_t* valc, Int_t* indc, Int_t
n);
void Clear(Option_t *option="") override
clear all
void Print(Option_t *option="") const override
print itself
Int_t GetLastIndex() const
Double_t * GetElems() const
UShort_t * GetIndices() const
Double_t FindIndex(Int_t ind) const
return an element with given index
virtual Double_t operator()(Int_t ind) const
ClassDefOverride(VectorSparse, 0)
Double_t & FindIndexAdd(Int_t ind)
increment an element with given index
Double_t GetLastElem() const
Int_t fNElems
Number of elements.
Double_t & GetElem(Int_t i) const
UShort_t & GetIndex(Int_t i)
void ReSize(Int_t sz, Bool_t copy=kFALSE)
change the size
Double_t * fElems
pointer on elements
UShort_t * fIndex
Index of stored elems.
virtual void SetToZero(Int_t ind)
set element to 0 if it was already defined
VectorSparse & operator=(const VectorSparse &src)
assignment op-tor
void SortIndices(Bool_t valuesToo=kFALSE)
sort indices in increasing order. Used to fix the row after ILUk decomposition
void Add(Double_t *valc, Int_t *indc, Int_t n)
add indiced array to row. Indices must be in increasing order
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...