CLHEP 2.4.7.1
C++ Class Library for High Energy Physics
Classes | Public Member Functions | Protected Member Functions | Friends | List of all members
CLHEP::HepDiagMatrix Class Reference

#include <CLHEP/Matrix/DiagMatrix.h>

Inheritance diagram for CLHEP::HepDiagMatrix:
CLHEP::HepGenMatrix

Classes

class  HepDiagMatrix_row
 
class  HepDiagMatrix_row_const
 

Public Member Functions

 HepDiagMatrix ()
 
 HepDiagMatrix (int p)
 
 HepDiagMatrix (int p, int)
 
 HepDiagMatrix (int p, HepRandom &r)
 
 HepDiagMatrix (const HepDiagMatrix &hm1)
 
virtual ~HepDiagMatrix ()
 
int num_row () const
 
int num_col () const
 
double & operator() (int row, int col)
 
const double & operator() (int row, int col) const
 
double & fast (int row, int col)
 
const double & fast (int row, int col) const
 
void assign (const HepMatrix &hm2)
 
void assign (const HepSymMatrix &hm2)
 
void assign (const HepDiagMatrix &hm2)
 
HepDiagMatrixoperator*= (double t)
 
HepDiagMatrixoperator/= (double t)
 
HepDiagMatrixoperator+= (const HepDiagMatrix &hm2)
 
HepDiagMatrixoperator-= (const HepDiagMatrix &hm2)
 
HepDiagMatrixoperator= (const HepDiagMatrix &hm2)
 
HepDiagMatrix operator- () const
 
HepDiagMatrix T () const
 
HepDiagMatrix apply (double(*f)(double, int, int)) const
 
HepSymMatrix similarity (const HepMatrix &hm1) const
 
HepSymMatrix similarityT (const HepMatrix &hm1) const
 
double similarity (const HepVector &) const
 
HepDiagMatrix sub (int min_row, int max_row) const
 
HepDiagMatrix sub (int min_row, int max_row)
 
void sub (int row, const HepDiagMatrix &hm1)
 
HepDiagMatrix inverse (int &ierr) const
 
void invert (int &ierr)
 
void invert ()
 
HepDiagMatrix inverse () const
 
double determinant () const
 
double trace () const
 
HepDiagMatrix_row operator[] (int)
 
HepDiagMatrix_row_const operator[] (int) const
 
- Public Member Functions inherited from CLHEP::HepGenMatrix
virtual ~HepGenMatrix ()
 
HepGenMatrix_row operator[] (int)
 
const HepGenMatrix_row_const operator[] (int) const
 
virtual bool operator== (const HepGenMatrix &) const
 

Protected Member Functions

int num_size () const
 
- Protected Member Functions inherited from CLHEP::HepGenMatrix
void delete_m (int size, double *)
 
double * new_m (int size)
 

Friends

class HepDiagMatrix_row
 
class HepDiagMatrix_row_const
 
class HepMatrix
 
class HepSymMatrix
 
HepDiagMatrix operator* (const HepDiagMatrix &hm1, const HepDiagMatrix &hm2)
 
HepDiagMatrix operator+ (const HepDiagMatrix &hm1, const HepDiagMatrix &hm2)
 
HepDiagMatrix operator- (const HepDiagMatrix &hm1, const HepDiagMatrix &hm2)
 
HepMatrix operator* (const HepDiagMatrix &hm1, const HepMatrix &hm2)
 
HepMatrix operator* (const HepMatrix &hm1, const HepDiagMatrix &hm2)
 
HepVector operator* (const HepDiagMatrix &hm1, const HepVector &hm2)
 

Additional Inherited Members

- Public Types inherited from CLHEP::HepGenMatrix
enum  { size_max = 25 }
 
typedef std::vector< double, Alloc< double, 25 > >::iterator mIter
 
typedef std::vector< double, Alloc< double, 25 > >::const_iterator mcIter
 
- Static Public Member Functions inherited from CLHEP::HepGenMatrix
static void swap (int &, int &)
 
static void swap (std::vector< double, Alloc< double, 25 > > &, std::vector< double, Alloc< double, 25 > > &)
 
static void error (const char *s)
 

Detailed Description

Author

Definition at line 35 of file DiagMatrix.h.

Constructor & Destructor Documentation

◆ HepDiagMatrix() [1/5]

CLHEP::HepDiagMatrix::HepDiagMatrix ( )
inline

Definition at line 11 of file DiagMatrix.icc.

Referenced by T().

◆ HepDiagMatrix() [2/5]

CLHEP::HepDiagMatrix::HepDiagMatrix ( int p)
explicit

◆ HepDiagMatrix() [3/5]

CLHEP::HepDiagMatrix::HepDiagMatrix ( int p,
int  )

◆ HepDiagMatrix() [4/5]

CLHEP::HepDiagMatrix::HepDiagMatrix ( int p,
HepRandom & r )

◆ HepDiagMatrix() [5/5]

CLHEP::HepDiagMatrix::HepDiagMatrix ( const HepDiagMatrix & hm1)

◆ ~HepDiagMatrix()

virtual CLHEP::HepDiagMatrix::~HepDiagMatrix ( )
virtual

Member Function Documentation

◆ apply()

HepDiagMatrix CLHEP::HepDiagMatrix::apply ( double(*)(double, int, int) f) const

◆ assign() [1/3]

void CLHEP::HepDiagMatrix::assign ( const HepDiagMatrix & hm2)
inline

Definition at line 60 of file DiagMatrix.icc.

◆ assign() [2/3]

void CLHEP::HepDiagMatrix::assign ( const HepMatrix & hm2)

◆ assign() [3/3]

void CLHEP::HepDiagMatrix::assign ( const HepSymMatrix & hm2)

◆ determinant()

double CLHEP::HepDiagMatrix::determinant ( ) const

◆ fast() [1/2]

double & CLHEP::HepDiagMatrix::fast ( int row,
int col )
inline

◆ fast() [2/2]

const double & CLHEP::HepDiagMatrix::fast ( int row,
int col ) const
inline

Definition at line 31 of file DiagMatrix.icc.

References CLHEP::HepGenMatrix::error().

◆ inverse() [1/2]

HepDiagMatrix CLHEP::HepDiagMatrix::inverse ( ) const
inline

Definition at line 119 of file DiagMatrix.icc.

References inverse().

Referenced by inverse().

◆ inverse() [2/2]

HepDiagMatrix CLHEP::HepDiagMatrix::inverse ( int & ierr) const
inline

Definition at line 107 of file DiagMatrix.icc.

◆ invert() [1/2]

void CLHEP::HepDiagMatrix::invert ( )
inline

Definition at line 126 of file DiagMatrix.icc.

References invert().

Referenced by invert().

◆ invert() [2/2]

void CLHEP::HepDiagMatrix::invert ( int & ierr)
virtual

Implements CLHEP::HepGenMatrix.

◆ num_col()

int CLHEP::HepDiagMatrix::num_col ( ) const
inlinevirtual

Implements CLHEP::HepGenMatrix.

Definition at line 16 of file DiagMatrix.icc.

◆ num_row()

int CLHEP::HepDiagMatrix::num_row ( ) const
inlinevirtual

Implements CLHEP::HepGenMatrix.

Definition at line 15 of file DiagMatrix.icc.

◆ num_size()

int CLHEP::HepDiagMatrix::num_size ( ) const
inlineprotectedvirtual

Implements CLHEP::HepGenMatrix.

Definition at line 17 of file DiagMatrix.icc.

◆ operator()() [1/2]

double & CLHEP::HepDiagMatrix::operator() ( int row,
int col )
inlinevirtual

Implements CLHEP::HepGenMatrix.

Definition at line 50 of file DiagMatrix.icc.

References fast().

◆ operator()() [2/2]

const double & CLHEP::HepDiagMatrix::operator() ( int row,
int col ) const
inlinevirtual

Implements CLHEP::HepGenMatrix.

Definition at line 55 of file DiagMatrix.icc.

References fast().

◆ operator*=()

HepDiagMatrix & CLHEP::HepDiagMatrix::operator*= ( double t)

◆ operator+=()

HepDiagMatrix & CLHEP::HepDiagMatrix::operator+= ( const HepDiagMatrix & hm2)

◆ operator-()

HepDiagMatrix CLHEP::HepDiagMatrix::operator- ( ) const

◆ operator-=()

HepDiagMatrix & CLHEP::HepDiagMatrix::operator-= ( const HepDiagMatrix & hm2)

◆ operator/=()

HepDiagMatrix & CLHEP::HepDiagMatrix::operator/= ( double t)

◆ operator=()

HepDiagMatrix & CLHEP::HepDiagMatrix::operator= ( const HepDiagMatrix & hm2)

◆ operator[]() [1/2]

HepDiagMatrix::HepDiagMatrix_row CLHEP::HepDiagMatrix::operator[] ( int r)
inline

Definition at line 64 of file DiagMatrix.icc.

◆ operator[]() [2/2]

HepDiagMatrix::HepDiagMatrix_row_const CLHEP::HepDiagMatrix::operator[] ( int r) const
inline

Definition at line 75 of file DiagMatrix.icc.

◆ similarity() [1/2]

HepSymMatrix CLHEP::HepDiagMatrix::similarity ( const HepMatrix & hm1) const

◆ similarity() [2/2]

double CLHEP::HepDiagMatrix::similarity ( const HepVector & ) const

◆ similarityT()

HepSymMatrix CLHEP::HepDiagMatrix::similarityT ( const HepMatrix & hm1) const

◆ sub() [1/3]

HepDiagMatrix CLHEP::HepDiagMatrix::sub ( int min_row,
int max_row )

◆ sub() [2/3]

HepDiagMatrix CLHEP::HepDiagMatrix::sub ( int min_row,
int max_row ) const

◆ sub() [3/3]

void CLHEP::HepDiagMatrix::sub ( int row,
const HepDiagMatrix & hm1 )

◆ T()

HepDiagMatrix CLHEP::HepDiagMatrix::T ( ) const
inline

Definition at line 62 of file DiagMatrix.icc.

References HepDiagMatrix().

◆ trace()

double CLHEP::HepDiagMatrix::trace ( ) const

Friends And Related Symbol Documentation

◆ HepDiagMatrix_row

friend class HepDiagMatrix_row
friend

Definition at line 170 of file DiagMatrix.h.

◆ HepDiagMatrix_row_const

friend class HepDiagMatrix_row_const
friend

Definition at line 171 of file DiagMatrix.h.

◆ HepMatrix

friend class HepMatrix
friend

Definition at line 172 of file DiagMatrix.h.

◆ HepSymMatrix

friend class HepSymMatrix
friend

Definition at line 173 of file DiagMatrix.h.

◆ operator* [1/4]

HepDiagMatrix operator* ( const HepDiagMatrix & hm1,
const HepDiagMatrix & hm2 )
friend

◆ operator* [2/4]

HepMatrix operator* ( const HepDiagMatrix & hm1,
const HepMatrix & hm2 )
friend

◆ operator* [3/4]

HepVector operator* ( const HepDiagMatrix & hm1,
const HepVector & hm2 )
friend

◆ operator* [4/4]

HepMatrix operator* ( const HepMatrix & hm1,
const HepDiagMatrix & hm2 )
friend

◆ operator+

HepDiagMatrix operator+ ( const HepDiagMatrix & hm1,
const HepDiagMatrix & hm2 )
friend

◆ operator-

HepDiagMatrix operator- ( const HepDiagMatrix & hm1,
const HepDiagMatrix & hm2 )
friend

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