Geant4  10.00.p02
G4ErrorSymMatrix Class Reference

#include <G4ErrorSymMatrix.hh>

Classes

class  G4ErrorSymMatrix_row
 
class  G4ErrorSymMatrix_row_const
 

Public Member Functions

 G4ErrorSymMatrix ()
 
 G4ErrorSymMatrix (G4int p)
 
 G4ErrorSymMatrix (G4int p, G4int)
 
 G4ErrorSymMatrix (const G4ErrorSymMatrix &m1)
 
virtual ~G4ErrorSymMatrix ()
 
G4int num_row () const
 
G4int num_col () const
 
const G4doubleoperator() (G4int row, G4int col) const
 
G4doubleoperator() (G4int row, G4int col)
 
const G4doublefast (G4int row, G4int col) const
 
G4doublefast (G4int row, G4int col)
 
void assign (const G4ErrorMatrix &m2)
 
void assign (const G4ErrorSymMatrix &m2)
 
G4ErrorSymMatrixoperator*= (G4double t)
 
G4ErrorSymMatrixoperator/= (G4double t)
 
G4ErrorSymMatrixoperator+= (const G4ErrorSymMatrix &m2)
 
G4ErrorSymMatrixoperator-= (const G4ErrorSymMatrix &m2)
 
G4ErrorSymMatrixoperator= (const G4ErrorSymMatrix &m2)
 
G4ErrorSymMatrix operator- () const
 
G4ErrorSymMatrix T () const
 
G4ErrorSymMatrix apply (G4double(*f)(G4double, G4int, G4int)) const
 
G4ErrorSymMatrix similarity (const G4ErrorMatrix &m1) const
 
G4ErrorSymMatrix similarity (const G4ErrorSymMatrix &m1) const
 
G4ErrorSymMatrix similarityT (const G4ErrorMatrix &m1) const
 
G4ErrorSymMatrix sub (G4int min_row, G4int max_row) const
 
void sub (G4int row, const G4ErrorSymMatrix &m1)
 
G4ErrorSymMatrix sub (G4int min_row, G4int max_row)
 
G4ErrorSymMatrix inverse (G4int &ifail) const
 
void invert (G4int &ifail)
 
G4double determinant () const
 
G4double trace () const
 
G4ErrorSymMatrix_row operator[] (G4int)
 
G4ErrorSymMatrix_row_const operator[] (G4int) const
 
void invertCholesky5 (G4int &ifail)
 
void invertCholesky6 (G4int &ifail)
 
void invertHaywood4 (G4int &ifail)
 
void invertHaywood5 (G4int &ifail)
 
void invertHaywood6 (G4int &ifail)
 
void invertBunchKaufman (G4int &ifail)
 

Protected Member Functions

G4int num_size () const
 

Private Member Functions

void invert4 (G4int &ifail)
 
void invert5 (G4int &ifail)
 
void invert6 (G4int &ifail)
 

Private Attributes

std::vector< G4doublem
 
G4int nrow
 
G4int size
 

Static Private Attributes

static G4ThreadLocal G4double posDefFraction5x5 = 1.0
 
static G4ThreadLocal G4double adjustment5x5 = 0.0
 
static const G4double CHOLESKY_THRESHOLD_5x5 = .5
 
static const G4double CHOLESKY_CREEP_5x5 = .005
 
static G4ThreadLocal G4double posDefFraction6x6 = 1.0
 
static G4ThreadLocal G4double adjustment6x6 = 0.0
 
static const G4double CHOLESKY_THRESHOLD_6x6 = .2
 
static const G4double CHOLESKY_CREEP_6x6 = .002
 

Friends

class G4ErrorSymMatrix_row
 
class G4ErrorSymMatrix_row_const
 
class G4ErrorMatrix
 
void tridiagonal (G4ErrorSymMatrix *a, G4ErrorMatrix *hsm)
 
G4double condition (const G4ErrorSymMatrix &m)
 
void diag_step (G4ErrorSymMatrix *t, G4int begin, G4int end)
 
void diag_step (G4ErrorSymMatrix *t, G4ErrorMatrix *u, G4int begin, G4int end)
 
G4ErrorMatrix diagonalize (G4ErrorSymMatrix *s)
 
void house_with_update2 (G4ErrorSymMatrix *a, G4ErrorMatrix *v, G4int row, G4int col)
 
G4ErrorSymMatrix operator+ (const G4ErrorSymMatrix &m1, const G4ErrorSymMatrix &m2)
 
G4ErrorSymMatrix operator- (const G4ErrorSymMatrix &m1, const G4ErrorSymMatrix &m2)
 
G4ErrorMatrix operator* (const G4ErrorSymMatrix &m1, const G4ErrorSymMatrix &m2)
 
G4ErrorMatrix operator* (const G4ErrorSymMatrix &m1, const G4ErrorMatrix &m2)
 
G4ErrorMatrix operator* (const G4ErrorMatrix &m1, const G4ErrorSymMatrix &m2)
 

Detailed Description

Definition at line 43 of file G4ErrorSymMatrix.hh.

Constructor & Destructor Documentation

G4ErrorSymMatrix::G4ErrorSymMatrix ( )
inline
G4ErrorSymMatrix::G4ErrorSymMatrix ( G4int  p)
explicit

Definition at line 71 of file G4ErrorSymMatrix.cc.

References m, nrow, and size.

G4ErrorSymMatrix::G4ErrorSymMatrix ( G4int  p,
G4int  init 
)

Definition at line 78 of file G4ErrorSymMatrix.cc.

References a, G4ErrorMatrix::error(), m, nrow, and size.

+ Here is the call graph for this function:

G4ErrorSymMatrix::G4ErrorSymMatrix ( const G4ErrorSymMatrix m1)

Definition at line 112 of file G4ErrorSymMatrix.cc.

References m.

G4ErrorSymMatrix::~G4ErrorSymMatrix ( )
virtual

Definition at line 108 of file G4ErrorSymMatrix.cc.

Member Function Documentation

G4ErrorSymMatrix G4ErrorSymMatrix::apply ( G4double(*)(G4double, G4int, G4int f) const

Definition at line 553 of file G4ErrorSymMatrix.cc.

References a, m, and num_row().

+ Here is the call graph for this function:

void G4ErrorSymMatrix::assign ( const G4ErrorMatrix m2)

Definition at line 568 of file G4ErrorSymMatrix.cc.

References a, m, G4ErrorMatrix::m, nrow, G4ErrorMatrix::nrow, and size.

void G4ErrorSymMatrix::assign ( const G4ErrorSymMatrix m2)
G4double G4ErrorSymMatrix::determinant ( ) const

Definition at line 799 of file G4ErrorSymMatrix.cc.

References G4ErrorMatrix::dfact_matrix(), and nrow.

+ Here is the call graph for this function:

const G4double& G4ErrorSymMatrix::fast ( G4int  row,
G4int  col 
) const
G4double& G4ErrorSymMatrix::fast ( G4int  row,
G4int  col 
)
G4ErrorSymMatrix G4ErrorSymMatrix::inverse ( G4int ifail) const
inline
void G4ErrorSymMatrix::invert ( G4int ifail)

Definition at line 683 of file G4ErrorSymMatrix.cc.

References invert4(), invert5(), invert6(), invertBunchKaufman(), m, and nrow.

+ Here is the call graph for this function:

void G4ErrorSymMatrix::invert4 ( G4int ifail)
private

Definition at line 2184 of file G4ErrorSymMatrix.cc.

References A00, A01, A02, A03, A10, A11, A12, A13, A20, A21, A22, A23, A30, A31, A32, A33, and m.

Referenced by invert(), and invertHaywood4().

+ Here is the caller graph for this function:

void G4ErrorSymMatrix::invert5 ( G4int ifail)
private

Definition at line 1296 of file G4ErrorSymMatrix.cc.

References adjustment5x5, CHOLESKY_CREEP_5x5, CHOLESKY_THRESHOLD_5x5, invertCholesky5(), invertHaywood5(), and posDefFraction5x5.

Referenced by invert().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4ErrorSymMatrix::invert6 ( G4int ifail)
private

Definition at line 1328 of file G4ErrorSymMatrix.cc.

References adjustment6x6, CHOLESKY_CREEP_6x6, CHOLESKY_THRESHOLD_6x6, invertCholesky6(), invertHaywood6(), and posDefFraction6x6.

Referenced by invert().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4ErrorSymMatrix::invertBunchKaufman ( G4int ifail)

Definition at line 827 of file G4ErrorSymMatrix.cc.

References alpha, DBL_EPSILON, G4cerr, G4endl, G4ThreadLocal, G4InuclParticleNames::lambda, m, and nrow.

Referenced by invert().

+ Here is the caller graph for this function:

void G4ErrorSymMatrix::invertCholesky5 ( G4int ifail)

Definition at line 1913 of file G4ErrorSymMatrix.cc.

References A00, A01, A02, A03, A04, A10, A11, A12, A13, A14, A20, A21, A22, A23, A24, A30, A31, A32, A33, A34, A40, A41, A42, A43, A44, and m.

Referenced by invert5().

+ Here is the caller graph for this function:

void G4ErrorSymMatrix::invertCholesky6 ( G4int ifail)

Definition at line 2035 of file G4ErrorSymMatrix.cc.

References A00, A01, A02, A03, A04, A05, A10, A11, A12, A13, A14, A15, A20, A21, A22, A23, A24, A25, A30, A31, A32, A33, A34, A35, A40, A41, A42, A43, A44, A45, A50, A51, A52, A53, A54, A55, and m.

Referenced by invert6().

+ Here is the caller graph for this function:

void G4ErrorSymMatrix::invertHaywood4 ( G4int ifail)

Definition at line 2262 of file G4ErrorSymMatrix.cc.

References invert4().

+ Here is the call graph for this function:

void G4ErrorSymMatrix::invertHaywood5 ( G4int ifail)

Definition at line 1360 of file G4ErrorSymMatrix.cc.

References A00, A01, A02, A03, A04, A10, A11, A12, A13, A14, A20, A21, A22, A23, A24, A30, A31, A32, A33, A34, A40, A41, A42, A43, A44, and m.

Referenced by invert5().

+ Here is the caller graph for this function:

void G4ErrorSymMatrix::invertHaywood6 ( G4int ifail)

Definition at line 1528 of file G4ErrorSymMatrix.cc.

References A00, A01, A02, A03, A04, A05, A10, A11, A12, A13, A14, A15, A20, A21, A22, A23, A24, A25, A30, A31, A32, A33, A34, A35, A40, A41, A42, A43, A44, A45, A50, A51, A52, A53, A54, A55, and m.

Referenced by invert6().

+ Here is the caller graph for this function:

G4int G4ErrorSymMatrix::num_col ( ) const
inline

Referenced by operator*(), operator+(), G4ErrorMatrix::operator+=(), operator+=(), operator-(), G4ErrorMatrix::operator-=(), operator-=(), operator<<(), and similarity().

+ Here is the caller graph for this function:

G4int G4ErrorSymMatrix::num_row ( ) const
inline

Referenced by apply(), dsum(), operator*(), operator+(), G4ErrorMatrix::operator+=(), operator+=(), operator-(), G4ErrorMatrix::operator-=(), operator-=(), operator<<(), similarity(), and sub().

+ Here is the caller graph for this function:

G4int G4ErrorSymMatrix::num_size ( ) const
inlineprotected

Referenced by operator-().

+ Here is the caller graph for this function:

const G4double& G4ErrorSymMatrix::operator() ( G4int  row,
G4int  col 
) const
G4double& G4ErrorSymMatrix::operator() ( G4int  row,
G4int  col 
)
G4ErrorSymMatrix & G4ErrorSymMatrix::operator*= ( G4double  t)

Definition at line 472 of file G4ErrorSymMatrix.cc.

References SIMPLE_UOP.

G4ErrorSymMatrix & G4ErrorSymMatrix::operator+= ( const G4ErrorSymMatrix m2)

Definition at line 427 of file G4ErrorSymMatrix.cc.

References CHK_DIM_2, num_col(), num_row(), and SIMPLE_BOP.

+ Here is the call graph for this function:

G4ErrorSymMatrix G4ErrorSymMatrix::operator- ( ) const

Definition at line 197 of file G4ErrorSymMatrix.cc.

References a, m, nrow, and num_size().

+ Here is the call graph for this function:

G4ErrorSymMatrix & G4ErrorSymMatrix::operator-= ( const G4ErrorSymMatrix m2)

Definition at line 459 of file G4ErrorSymMatrix.cc.

References CHK_DIM_2, num_col(), num_row(), and SIMPLE_BOP.

+ Here is the call graph for this function:

G4ErrorSymMatrix & G4ErrorSymMatrix::operator/= ( G4double  t)

Definition at line 466 of file G4ErrorSymMatrix.cc.

References SIMPLE_UOP.

G4ErrorSymMatrix & G4ErrorSymMatrix::operator= ( const G4ErrorSymMatrix m2)

Definition at line 509 of file G4ErrorSymMatrix.cc.

References m, nrow, and size.

G4ErrorSymMatrix_row G4ErrorSymMatrix::operator[] ( G4int  )
inline
G4ErrorSymMatrix_row_const G4ErrorSymMatrix::operator[] ( G4int  ) const
inline
G4ErrorSymMatrix G4ErrorSymMatrix::similarity ( const G4ErrorMatrix m1) const

Definition at line 589 of file G4ErrorSymMatrix.cc.

References G4ErrorMatrix::m, n, G4ErrorMatrix::num_col(), and G4ErrorMatrix::num_row().

Referenced by G4ErrorSurfaceTrajState::BuildErrorMatrix(), G4ErrorFreeTrajState::G4ErrorFreeTrajState(), and G4ErrorFreeTrajState::PropagateError().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4ErrorSymMatrix G4ErrorSymMatrix::similarity ( const G4ErrorSymMatrix m1) const

Definition at line 620 of file G4ErrorSymMatrix.cc.

References m, n, num_col(), and num_row().

+ Here is the call graph for this function:

G4ErrorSymMatrix G4ErrorSymMatrix::similarityT ( const G4ErrorMatrix m1) const

Definition at line 654 of file G4ErrorSymMatrix.cc.

References n, and G4ErrorMatrix::num_col().

+ Here is the call graph for this function:

G4ErrorSymMatrix G4ErrorSymMatrix::sub ( G4int  min_row,
G4int  max_row 
) const

Definition at line 124 of file G4ErrorSymMatrix.cc.

References a, b1, G4ErrorMatrix::error(), m, and num_row().

Referenced by dsum().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4ErrorSymMatrix::sub ( G4int  row,
const G4ErrorSymMatrix m1 
)

Definition at line 162 of file G4ErrorSymMatrix.cc.

References a, b1, G4ErrorMatrix::error(), m, and num_row().

+ Here is the call graph for this function:

G4ErrorSymMatrix G4ErrorSymMatrix::sub ( G4int  min_row,
G4int  max_row 
)

Definition at line 143 of file G4ErrorSymMatrix.cc.

References a, b1, G4ErrorMatrix::error(), m, and num_row().

+ Here is the call graph for this function:

G4ErrorSymMatrix G4ErrorSymMatrix::T ( ) const

Referenced by G4ErrorFreeTrajState::PropagateError().

+ Here is the caller graph for this function:

G4double G4ErrorSymMatrix::trace ( ) const

Definition at line 819 of file G4ErrorSymMatrix.cc.

References m, and nrow.

Friends And Related Function Documentation

G4double condition ( const G4ErrorSymMatrix m)
friend
void diag_step ( G4ErrorSymMatrix t,
G4int  begin,
G4int  end 
)
friend
void diag_step ( G4ErrorSymMatrix t,
G4ErrorMatrix u,
G4int  begin,
G4int  end 
)
friend
G4ErrorMatrix diagonalize ( G4ErrorSymMatrix s)
friend
friend class G4ErrorMatrix
friend

Definition at line 192 of file G4ErrorSymMatrix.hh.

friend class G4ErrorSymMatrix_row
friend

Definition at line 190 of file G4ErrorSymMatrix.hh.

friend class G4ErrorSymMatrix_row_const
friend

Definition at line 191 of file G4ErrorSymMatrix.hh.

void house_with_update2 ( G4ErrorSymMatrix a,
G4ErrorMatrix v,
G4int  row,
G4int  col 
)
friend
G4ErrorMatrix operator* ( const G4ErrorSymMatrix m1,
const G4ErrorSymMatrix m2 
)
friend

Definition at line 354 of file G4ErrorSymMatrix.cc.

G4ErrorMatrix operator* ( const G4ErrorSymMatrix m1,
const G4ErrorMatrix m2 
)
friend

Definition at line 321 of file G4ErrorSymMatrix.cc.

G4ErrorMatrix operator* ( const G4ErrorMatrix m1,
const G4ErrorSymMatrix m2 
)
friend

Definition at line 287 of file G4ErrorSymMatrix.cc.

G4ErrorSymMatrix operator+ ( const G4ErrorSymMatrix m1,
const G4ErrorSymMatrix m2 
)
friend

Definition at line 223 of file G4ErrorSymMatrix.cc.

G4ErrorSymMatrix operator- ( const G4ErrorSymMatrix m1,
const G4ErrorSymMatrix m2 
)
friend

Definition at line 252 of file G4ErrorSymMatrix.cc.

void tridiagonal ( G4ErrorSymMatrix a,
G4ErrorMatrix hsm 
)
friend

Member Data Documentation

G4ThreadLocal G4double G4ErrorSymMatrix::adjustment5x5 = 0.0
staticprivate

Definition at line 223 of file G4ErrorSymMatrix.hh.

Referenced by invert5().

G4ThreadLocal G4double G4ErrorSymMatrix::adjustment6x6 = 0.0
staticprivate

Definition at line 228 of file G4ErrorSymMatrix.hh.

Referenced by invert6().

const G4double G4ErrorSymMatrix::CHOLESKY_CREEP_5x5 = .005
staticprivate

Definition at line 225 of file G4ErrorSymMatrix.hh.

Referenced by invert5().

const G4double G4ErrorSymMatrix::CHOLESKY_CREEP_6x6 = .002
staticprivate

Definition at line 230 of file G4ErrorSymMatrix.hh.

Referenced by invert6().

const G4double G4ErrorSymMatrix::CHOLESKY_THRESHOLD_5x5 = .5
staticprivate

Definition at line 224 of file G4ErrorSymMatrix.hh.

Referenced by invert5().

const G4double G4ErrorSymMatrix::CHOLESKY_THRESHOLD_6x6 = .2
staticprivate

Definition at line 229 of file G4ErrorSymMatrix.hh.

Referenced by invert6().

G4ThreadLocal G4double G4ErrorSymMatrix::posDefFraction5x5 = 1.0
staticprivate

Definition at line 222 of file G4ErrorSymMatrix.hh.

Referenced by invert5().

G4ThreadLocal G4double G4ErrorSymMatrix::posDefFraction6x6 = 1.0
staticprivate

Definition at line 227 of file G4ErrorSymMatrix.hh.

Referenced by invert6().

G4int G4ErrorSymMatrix::size
private

Definition at line 220 of file G4ErrorSymMatrix.hh.

Referenced by assign(), G4ErrorSymMatrix(), and operator=().


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