Geant4  10.00.p03
G4ErrorMatrix Class Reference

#include <G4ErrorMatrix.hh>

Classes

class  G4ErrorMatrix_row
 
class  G4ErrorMatrix_row_const
 

Public Member Functions

 G4ErrorMatrix ()
 
 G4ErrorMatrix (G4int p, G4int q)
 
 G4ErrorMatrix (G4int p, G4int q, G4int i)
 
 G4ErrorMatrix (const G4ErrorMatrix &m1)
 
 G4ErrorMatrix (const G4ErrorSymMatrix &m1)
 
virtual ~G4ErrorMatrix ()
 
virtual G4int num_row () const
 
virtual G4int num_col () const
 
virtual const G4doubleoperator() (G4int row, G4int col) const
 
virtual G4doubleoperator() (G4int row, G4int col)
 
G4ErrorMatrixoperator*= (G4double t)
 
G4ErrorMatrixoperator/= (G4double t)
 
G4ErrorMatrixoperator+= (const G4ErrorMatrix &m2)
 
G4ErrorMatrixoperator+= (const G4ErrorSymMatrix &m2)
 
G4ErrorMatrixoperator-= (const G4ErrorMatrix &m2)
 
G4ErrorMatrixoperator-= (const G4ErrorSymMatrix &m2)
 
G4ErrorMatrixoperator= (const G4ErrorMatrix &m2)
 
G4ErrorMatrixoperator= (const G4ErrorSymMatrix &m2)
 
G4ErrorMatrix operator- () const
 
G4ErrorMatrix apply (G4double(*f)(G4double, G4int, G4int)) const
 
G4ErrorMatrix T () const
 
G4ErrorMatrix sub (G4int min_row, G4int max_row, G4int min_col, G4int max_col) const
 
void sub (G4int row, G4int col, const G4ErrorMatrix &m1)
 
G4ErrorMatrix inverse (G4int &ierr) const
 
virtual void invert (G4int &ierr)
 
G4double determinant () const
 
G4double trace () const
 
G4ErrorMatrix_row operator[] (G4int)
 
const G4ErrorMatrix_row_const operator[] (G4int) const
 

Static Public Member Functions

static void error (const char *s)
 

Protected Member Functions

virtual G4int num_size () const
 
virtual void invertHaywood4 (G4int &ierr)
 
virtual void invertHaywood5 (G4int &ierr)
 
virtual void invertHaywood6 (G4int &ierr)
 

Private Member Functions

G4int dfact_matrix (G4double &det, G4int *ir)
 
G4int dfinv_matrix (G4int *ir)
 

Private Attributes

std::vector< G4doublem
 
G4int nrow
 
G4int ncol
 
G4int size
 

Friends

class G4ErrorMatrix_row
 
class G4ErrorMatrix_row_const
 
class G4ErrorSymMatrix
 
G4ErrorMatrix operator+ (const G4ErrorMatrix &m1, const G4ErrorMatrix &m2)
 
G4ErrorMatrix operator- (const G4ErrorMatrix &m1, const G4ErrorMatrix &m2)
 
G4ErrorMatrix operator* (const G4ErrorMatrix &m1, const G4ErrorMatrix &m2)
 
G4ErrorMatrix operator* (const G4ErrorMatrix &m1, const G4ErrorSymMatrix &m2)
 
G4ErrorMatrix operator* (const G4ErrorSymMatrix &m1, const G4ErrorMatrix &m2)
 
G4ErrorMatrix operator* (const G4ErrorSymMatrix &m1, const G4ErrorSymMatrix &m2)
 
G4ErrorMatrix qr_solve (G4ErrorMatrix *, const G4ErrorMatrix &b)
 
void tridiagonal (G4ErrorSymMatrix *a, G4ErrorMatrix *hsm)
 
void row_house (G4ErrorMatrix *, const G4ErrorMatrix &, G4double, G4int, G4int, G4int, G4int)
 
void back_solve (const G4ErrorMatrix &R, G4ErrorMatrix *b)
 
void col_givens (G4ErrorMatrix *A, G4double c, G4double s, G4int k1, G4int k2, G4int rowmin, G4int rowmax)
 
void row_givens (G4ErrorMatrix *A, G4double c, G4double s, G4int k1, G4int k2, G4int colmin, G4int colmax)
 
void col_house (G4ErrorMatrix *, const G4ErrorMatrix &, G4double, G4int, G4int, G4int, G4int)
 
void house_with_update (G4ErrorMatrix *a, G4int row, G4int col)
 
void house_with_update (G4ErrorMatrix *a, G4ErrorMatrix *v, G4int row, G4int col)
 
void house_with_update2 (G4ErrorSymMatrix *a, G4ErrorMatrix *v, G4int row, G4int col)
 

Detailed Description

Definition at line 46 of file G4ErrorMatrix.hh.

Constructor & Destructor Documentation

G4ErrorMatrix::G4ErrorMatrix ( )
G4ErrorMatrix::G4ErrorMatrix ( G4int  p,
G4int  q 
)

Definition at line 74 of file G4ErrorMatrix.cc.

References ncol, nrow, and size.

G4ErrorMatrix::G4ErrorMatrix ( G4int  p,
G4int  q,
G4int  i 
)

Definition at line 80 of file G4ErrorMatrix.cc.

References a, error(), m, ncol, nrow, and size.

+ Here is the call graph for this function:

G4ErrorMatrix::G4ErrorMatrix ( const G4ErrorMatrix m1)

Definition at line 117 of file G4ErrorMatrix.cc.

References m.

G4ErrorMatrix::G4ErrorMatrix ( const G4ErrorSymMatrix m1)

Definition at line 123 of file G4ErrorMatrix.cc.

References G4ErrorSymMatrix::m, m, n, ncol, nrow, and size.

G4ErrorMatrix::~G4ErrorMatrix ( )
virtual

Definition at line 113 of file G4ErrorMatrix.cc.

Member Function Documentation

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

Definition at line 390 of file G4ErrorMatrix.cc.

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

+ Here is the call graph for this function:

G4double G4ErrorMatrix::determinant ( ) const

Definition at line 776 of file G4ErrorMatrix.cc.

References dfact_matrix(), error(), G4ThreadLocal, ncol, and nrow.

+ Here is the call graph for this function:

G4int G4ErrorMatrix::dfact_matrix ( G4double det,
G4int ir 
)
private

Definition at line 518 of file G4ErrorMatrix.cc.

References DBL_EPSILON, error(), m, n, ncol, CLHEP::normal(), and nrow.

Referenced by determinant(), G4ErrorSymMatrix::determinant(), and invert().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4ErrorMatrix::dfinv_matrix ( G4int ir)
private

Definition at line 405 of file G4ErrorMatrix.cc.

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

Referenced by invert().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4ErrorMatrix::error ( const char *  s)
static

Definition at line 805 of file G4ErrorMatrix.cc.

References G4cerr, and G4endl.

Referenced by determinant(), dfact_matrix(), dfinv_matrix(), G4ErrorMatrix(), G4ErrorSymMatrix::G4ErrorSymMatrix(), invert(), sub(), and G4ErrorSymMatrix::sub().

+ Here is the caller graph for this function:

G4ErrorMatrix G4ErrorMatrix::inverse ( G4int ierr) const
inline
void G4ErrorMatrix::invert ( G4int ierr)
virtual

Definition at line 645 of file G4ErrorMatrix.cc.

References dfact_matrix(), dfinv_matrix(), error(), G4ThreadLocal, invertHaywood4(), invertHaywood5(), invertHaywood6(), m, ncol, and nrow.

+ Here is the call graph for this function:

void G4ErrorMatrix::invertHaywood4 ( G4int ierr)
protectedvirtual

Definition at line 910 of file G4ErrorMatrix.cc.

References F00, F01, F02, F03, F10, F11, F12, F13, F20, F21, F22, F23, F30, F31, F32, F33, and m.

Referenced by invert().

+ Here is the caller graph for this function:

void G4ErrorMatrix::invertHaywood5 ( G4int ierr)
protectedvirtual

Definition at line 1009 of file G4ErrorMatrix.cc.

References m, M00, M01, M02, M03, M04, M10, M11, M12, M13, M14, M20, M21, M22, M23, M24, M30, M31, M32, M33, M34, M40, M41, M42, M43, and M44.

Referenced by invert().

+ Here is the caller graph for this function:

void G4ErrorMatrix::invertHaywood6 ( G4int ierr)
protectedvirtual

Definition at line 1232 of file G4ErrorMatrix.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 invert().

+ Here is the caller graph for this function:

virtual G4int G4ErrorMatrix::num_col ( ) const
inlinevirtual

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

+ Here is the caller graph for this function:

virtual G4int G4ErrorMatrix::num_row ( ) const
inlinevirtual

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

+ Here is the caller graph for this function:

virtual G4int G4ErrorMatrix::num_size ( ) const
inlineprotectedvirtual
virtual const G4double& G4ErrorMatrix::operator() ( G4int  row,
G4int  col 
) const
inlinevirtual
virtual G4double& G4ErrorMatrix::operator() ( G4int  row,
G4int  col 
)
inlinevirtual
G4ErrorMatrix & G4ErrorMatrix::operator*= ( G4double  t)

Definition at line 326 of file G4ErrorMatrix.cc.

References SIMPLE_UOP.

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

Definition at line 306 of file G4ErrorMatrix.cc.

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

+ Here is the call graph for this function:

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

Definition at line 402 of file G4ErrorSymMatrix.cc.

References CHK_DIM_2, G4ErrorSymMatrix::m, m, n, G4ErrorSymMatrix::num_col(), num_col(), G4ErrorSymMatrix::num_row(), and num_row().

+ Here is the call graph for this function:

G4ErrorMatrix G4ErrorMatrix::operator- ( ) const

Definition at line 215 of file G4ErrorMatrix.cc.

References a, m, ncol, and nrow.

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

Definition at line 313 of file G4ErrorMatrix.cc.

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

+ Here is the call graph for this function:

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

Definition at line 434 of file G4ErrorSymMatrix.cc.

References CHK_DIM_2, G4ErrorSymMatrix::m, m, n, G4ErrorSymMatrix::num_col(), num_col(), G4ErrorSymMatrix::num_row(), and num_row().

+ Here is the call graph for this function:

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

Definition at line 320 of file G4ErrorMatrix.cc.

References SIMPLE_UOP.

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

Definition at line 332 of file G4ErrorMatrix.cc.

References m, ncol, nrow, and size.

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

Definition at line 478 of file G4ErrorSymMatrix.cc.

References G4ErrorSymMatrix::m, m, n, ncol, G4ErrorSymMatrix::nrow, nrow, num_row(), and size.

+ Here is the call graph for this function:

G4ErrorMatrix_row G4ErrorMatrix::operator[] ( G4int  )
inline
const G4ErrorMatrix_row_const G4ErrorMatrix::operator[] ( G4int  ) const
inline
G4ErrorMatrix G4ErrorMatrix::sub ( G4int  min_row,
G4int  max_row,
G4int  min_col,
G4int  max_col 
) const

Definition at line 155 of file G4ErrorMatrix.cc.

References a, b1, error(), m, num_col(), and num_row().

Referenced by dsum().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4ErrorMatrix::sub ( G4int  row,
G4int  col,
const G4ErrorMatrix m1 
)

Definition at line 177 of file G4ErrorMatrix.cc.

References a, b1, error(), m, num_col(), and num_row().

+ Here is the call graph for this function:

G4ErrorMatrix G4ErrorMatrix::T ( ) const

Definition at line 374 of file G4ErrorMatrix.cc.

References m, ncol, nrow, and size.

Referenced by G4ErrorFreeTrajState::PropagateError().

+ Here is the caller graph for this function:

G4double G4ErrorMatrix::trace ( ) const

Definition at line 795 of file G4ErrorMatrix.cc.

References m, and ncol.

Friends And Related Function Documentation

void back_solve ( const G4ErrorMatrix R,
G4ErrorMatrix b 
)
friend
void col_givens ( G4ErrorMatrix A,
G4double  c,
G4double  s,
G4int  k1,
G4int  k2,
G4int  rowmin,
G4int  rowmax 
)
friend
void col_house ( G4ErrorMatrix ,
const G4ErrorMatrix ,
G4double  ,
G4int  ,
G4int  ,
G4int  ,
G4int   
)
friend
friend class G4ErrorMatrix_row
friend

Definition at line 174 of file G4ErrorMatrix.hh.

friend class G4ErrorMatrix_row_const
friend

Definition at line 175 of file G4ErrorMatrix.hh.

friend class G4ErrorSymMatrix
friend

Definition at line 176 of file G4ErrorMatrix.hh.

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

Definition at line 272 of file G4ErrorMatrix.cc.

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

Definition at line 287 of file G4ErrorSymMatrix.cc.

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

Definition at line 321 of file G4ErrorSymMatrix.cc.

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

Definition at line 354 of file G4ErrorSymMatrix.cc.

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

Definition at line 225 of file G4ErrorMatrix.cc.

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

Definition at line 237 of file G4ErrorMatrix.cc.

G4ErrorMatrix qr_solve ( G4ErrorMatrix ,
const G4ErrorMatrix b 
)
friend
void row_givens ( G4ErrorMatrix A,
G4double  c,
G4double  s,
G4int  k1,
G4int  k2,
G4int  colmin,
G4int  colmax 
)
friend
void row_house ( G4ErrorMatrix ,
const G4ErrorMatrix ,
G4double  ,
G4int  ,
G4int  ,
G4int  ,
G4int   
)
friend
void tridiagonal ( G4ErrorSymMatrix a,
G4ErrorMatrix hsm 
)
friend

Member Data Documentation

G4int G4ErrorMatrix::ncol
private
G4int G4ErrorMatrix::nrow
private
G4int G4ErrorMatrix::size
private

Definition at line 227 of file G4ErrorMatrix.hh.

Referenced by G4ErrorMatrix(), operator=(), and T().


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