ATLAS Offline Software
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Trk::AlSymMatBase Class Referenceabstract

#include <AlSymMatBase.h>

Inheritance diagram for Trk::AlSymMatBase:
Collaboration diagram for Trk::AlSymMatBase:

Classes

class  AlSymMatBase_row
 
class  AlSymMatBase_row_const
 

Public Member Functions

virtual ~AlSymMatBase ()
 
AlSymMatBase_row operator[] (long int)
 
AlSymMatBase_row_const operator[] (long int) const
 
long int nrow () const
 
long int ncol () const
 
long int size () const
 
int matrix_type () const
 
virtual void reSize (long int Nnew)=0
 
virtual double & elemr (long int, long int)=0
 
virtual double elemc (long int, long int) const =0
 
virtual int invert ()=0
 
virtual void RemoveModule (int)=0
 
virtual void RemoveAlignPar (int, int)=0
 
virtual int RemoveCollsRows (std::vector< int >)=0
 
virtual void SetPathBin (const std::string &)=0
 
virtual void SetPathTxt (const std::string &)=0
 
virtual StatusCode Write (const std::string &, bool, bool, double, float)=0
 
virtual StatusCode CheckMatVersion (const std::string &, bool &)=0
 
virtual StatusCode Read (const std::string &, int &, bool &, float &)=0
 
virtual StatusCode ReadProjected (const std::string &, int &, bool &, float &)=0
 
virtual int diagonalize (char jobz, AlVec &w, AlMat &z)=0
 
virtual double determinant ()=0
 
const datamapptrMap () const
 
virtual TMatrixDSparsemakeTMatrix ()=0
 

Protected Member Functions

 AlSymMatBase ()
 
 AlSymMatBase (long int N)
 
 AlSymMatBase (const AlSymMatBase &)
 
AlSymMatBaseoperator= (const AlSymMatBase &)
 

Protected Attributes

int m_matrix_type = 0
 
datamap m_ptr_map
 
long int m_size = 0
 
long int m_nele = 0
 

Detailed Description

contains the base implementation for handling symmertic matrices

Definition at line 38 of file AlSymMatBase.h.

Constructor & Destructor Documentation

◆ ~AlSymMatBase()

Trk::AlSymMatBase::~AlSymMatBase ( )
virtual

Definition at line 57 of file AlSymMatBase.cxx.

58 {
59  // m_ptr_map.clear();
60 }

◆ AlSymMatBase() [1/3]

Trk::AlSymMatBase::AlSymMatBase ( )
protected

Definition at line 20 of file AlSymMatBase.cxx.

21  : m_matrix_type(0)
22  , m_size(0)
23  , m_nele(0)
24 {
25 }

◆ AlSymMatBase() [2/3]

Trk::AlSymMatBase::AlSymMatBase ( long int  N)
protected

Definition at line 28 of file AlSymMatBase.cxx.

29  : m_matrix_type(0)
30  , m_size(N)
31  , m_nele(N * (N + 1) / 2)
32 {
33 }

◆ AlSymMatBase() [3/3]

Trk::AlSymMatBase::AlSymMatBase ( const AlSymMatBase m)
protected

Definition at line 36 of file AlSymMatBase.cxx.

37  : m_matrix_type(0)
38  , m_size(m.size())
39  , m_nele(m.m_nele)
40 {
41 }

Member Function Documentation

◆ CheckMatVersion()

virtual StatusCode Trk::AlSymMatBase::CheckMatVersion ( const std::string &  ,
bool &   
)
pure virtual

Implemented in Trk::AlSymMat, and Trk::AlSpaMat.

◆ determinant()

virtual double Trk::AlSymMatBase::determinant ( )
pure virtual

Implemented in Trk::AlSpaMat, and Trk::AlSymMat.

◆ diagonalize()

virtual int Trk::AlSymMatBase::diagonalize ( char  jobz,
AlVec w,
AlMat z 
)
pure virtual

Implemented in Trk::AlSymMat, and Trk::AlSpaMat.

◆ elemc()

virtual double Trk::AlSymMatBase::elemc ( long int  ,
long int   
) const
pure virtual

Implemented in Trk::AlSpaMat, and Trk::AlSymMat.

◆ elemr()

virtual double& Trk::AlSymMatBase::elemr ( long int  ,
long int   
)
pure virtual

Implemented in Trk::AlSpaMat, and Trk::AlSymMat.

◆ invert()

virtual int Trk::AlSymMatBase::invert ( )
pure virtual

Implemented in Trk::AlSpaMat, and Trk::AlSymMat.

◆ makeTMatrix()

virtual TMatrixDSparse* Trk::AlSymMatBase::makeTMatrix ( )
pure virtual

Implemented in Trk::AlSymMat, and Trk::AlSpaMat.

◆ matrix_type()

int Trk::AlSymMatBase::matrix_type ( ) const
inline

Definition at line 148 of file AlSymMatBase.h.

148 { return m_matrix_type; }

◆ ncol()

long int Trk::AlSymMatBase::ncol ( ) const
inline

Definition at line 147 of file AlSymMatBase.h.

147 { return m_size; }

◆ nrow()

long int Trk::AlSymMatBase::nrow ( ) const
inline

Definition at line 146 of file AlSymMatBase.h.

146 { return m_size; }

◆ operator=()

AlSymMatBase & Trk::AlSymMatBase::operator= ( const AlSymMatBase m)
protected

Definition at line 46 of file AlSymMatBase.cxx.

47 {
48  if (this==&m)
49  return *this;
50  m_matrix_type=m.m_matrix_type;
51  m_nele=m.m_nele;
52 
53  return *this;
54 }

◆ operator[]() [1/2]

AlSymMatBase::AlSymMatBase_row Trk::AlSymMatBase::operator[] ( long int  r)
inline

Definition at line 109 of file AlSymMatBase.h.

109  {
110  AlSymMatBase_row b(*this,r);
111  return b;
112 }

◆ operator[]() [2/2]

AlSymMatBase::AlSymMatBase_row_const Trk::AlSymMatBase::operator[] ( long int  r) const
inline

Definition at line 114 of file AlSymMatBase.h.

114  {
115  const AlSymMatBase_row_const b(*this,r);
116  return b;
117 }

◆ ptrMap()

const datamap * Trk::AlSymMatBase::ptrMap ( ) const
inline

Definition at line 149 of file AlSymMatBase.h.

149 { return &m_ptr_map; }

◆ Read()

virtual StatusCode Trk::AlSymMatBase::Read ( const std::string &  ,
int &  ,
bool &  ,
float &   
)
pure virtual

Implemented in Trk::AlSymMat, and Trk::AlSpaMat.

◆ ReadProjected()

virtual StatusCode Trk::AlSymMatBase::ReadProjected ( const std::string &  ,
int &  ,
bool &  ,
float &   
)
pure virtual

Implemented in Trk::AlSymMat, and Trk::AlSpaMat.

◆ RemoveAlignPar()

virtual void Trk::AlSymMatBase::RemoveAlignPar ( int  ,
int   
)
pure virtual

Implemented in Trk::AlSymMat, and Trk::AlSpaMat.

◆ RemoveCollsRows()

virtual int Trk::AlSymMatBase::RemoveCollsRows ( std::vector< int >  )
pure virtual

Implemented in Trk::AlSymMat, and Trk::AlSpaMat.

◆ RemoveModule()

virtual void Trk::AlSymMatBase::RemoveModule ( int  )
pure virtual

Implemented in Trk::AlSymMat, and Trk::AlSpaMat.

◆ reSize()

virtual void Trk::AlSymMatBase::reSize ( long int  Nnew)
pure virtual

Implemented in Trk::AlSpaMat, and Trk::AlSymMat.

◆ SetPathBin()

virtual void Trk::AlSymMatBase::SetPathBin ( const std::string &  )
pure virtual

Implemented in Trk::AlSymMat, and Trk::AlSpaMat.

◆ SetPathTxt()

virtual void Trk::AlSymMatBase::SetPathTxt ( const std::string &  )
pure virtual

Implemented in Trk::AlSymMat, and Trk::AlSpaMat.

◆ size()

long int Trk::AlSymMatBase::size ( ) const
inline

Definition at line 145 of file AlSymMatBase.h.

145 { return m_size; }

◆ Write()

virtual StatusCode Trk::AlSymMatBase::Write ( const std::string &  ,
bool  ,
bool  ,
double  ,
float   
)
pure virtual

Implemented in Trk::AlSymMat, and Trk::AlSpaMat.

Member Data Documentation

◆ m_matrix_type

int Trk::AlSymMatBase::m_matrix_type = 0
protected

Definition at line 100 of file AlSymMatBase.h.

◆ m_nele

long int Trk::AlSymMatBase::m_nele = 0
protected

Definition at line 104 of file AlSymMatBase.h.

◆ m_ptr_map

datamap Trk::AlSymMatBase::m_ptr_map
protected

Definition at line 101 of file AlSymMatBase.h.

◆ m_size

long int Trk::AlSymMatBase::m_size = 0
protected

Definition at line 103 of file AlSymMatBase.h.


The documentation for this class was generated from the following files:
beamspotman.r
def r
Definition: beamspotman.py:676
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
Trk::AlSymMatBase::m_ptr_map
datamap m_ptr_map
Definition: AlSymMatBase.h:101
JetTiledMap::N
@ N
Definition: TiledEtaPhiMap.h:44
Trk::AlSymMatBase::m_nele
long int m_nele
Definition: AlSymMatBase.h:104
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
Trk::AlSymMatBase::m_matrix_type
int m_matrix_type
Definition: AlSymMatBase.h:100
Trk::AlSymMatBase::m_size
long int m_size
Definition: AlSymMatBase.h:103