Import Geant4 11.0.0.beta source tree
This commit is contained in:
@@ -29,74 +29,67 @@
|
||||
// ------------------------------------------------------------
|
||||
|
||||
inline G4ErrorMatrix::G4ErrorMatrix()
|
||||
: m(0), nrow(0), ncol(0), size(0)
|
||||
: m(0)
|
||||
, nrow(0)
|
||||
, ncol(0)
|
||||
, size(0)
|
||||
{}
|
||||
|
||||
inline G4int G4ErrorMatrix::num_row() const { return nrow; }
|
||||
|
||||
inline G4int G4ErrorMatrix::num_col() const { return ncol; }
|
||||
|
||||
inline G4int G4ErrorMatrix::num_size() const { return size; }
|
||||
|
||||
inline G4double& G4ErrorMatrix::operator()(G4int row, G4int col)
|
||||
{
|
||||
return *(m.begin() + (row - 1) * ncol + col - 1);
|
||||
}
|
||||
|
||||
inline G4int G4ErrorMatrix::num_row() const
|
||||
inline const G4double& G4ErrorMatrix::operator()(G4int row, G4int col) const
|
||||
{
|
||||
return nrow;
|
||||
return *(m.begin() + (row - 1) * ncol + col - 1);
|
||||
}
|
||||
|
||||
inline G4int G4ErrorMatrix::num_col() const
|
||||
inline G4ErrorMatrix::G4ErrorMatrix_row G4ErrorMatrix::operator[](G4int r)
|
||||
{
|
||||
return ncol;
|
||||
}
|
||||
|
||||
inline G4int G4ErrorMatrix::num_size() const
|
||||
{
|
||||
return size;
|
||||
}
|
||||
|
||||
inline G4double & G4ErrorMatrix::operator()(G4int row, G4int col)
|
||||
{
|
||||
return *(m.begin()+(row-1)*ncol+col-1);
|
||||
}
|
||||
|
||||
inline const G4double & G4ErrorMatrix::operator()(G4int row, G4int col) const
|
||||
{
|
||||
return *(m.begin()+(row-1)*ncol+col-1);
|
||||
}
|
||||
|
||||
inline G4ErrorMatrix::G4ErrorMatrix_row G4ErrorMatrix::operator[] (G4int r)
|
||||
{
|
||||
G4ErrorMatrix_row b(*this,r);
|
||||
G4ErrorMatrix_row b(*this, r);
|
||||
return b;
|
||||
}
|
||||
|
||||
inline const G4ErrorMatrix::G4ErrorMatrix_row_const
|
||||
G4ErrorMatrix::operator[] (G4int r) const
|
||||
inline const G4ErrorMatrix::G4ErrorMatrix_row_const G4ErrorMatrix::operator[](
|
||||
G4int r) const
|
||||
{
|
||||
G4ErrorMatrix_row_const b(*this,r);
|
||||
G4ErrorMatrix_row_const b(*this, r);
|
||||
return b;
|
||||
}
|
||||
|
||||
inline G4double &G4ErrorMatrix::G4ErrorMatrix_row::operator[](G4int c)
|
||||
inline G4double& G4ErrorMatrix::G4ErrorMatrix_row::operator[](G4int c)
|
||||
{
|
||||
return *(_a.m.begin()+_r*_a.ncol+c);
|
||||
return *(_a.m.begin() + _r * _a.ncol + c);
|
||||
}
|
||||
|
||||
inline const G4double &
|
||||
G4ErrorMatrix::G4ErrorMatrix_row_const::operator[](G4int c) const
|
||||
inline const G4double& G4ErrorMatrix::G4ErrorMatrix_row_const::operator[](
|
||||
G4int c) const
|
||||
{
|
||||
return *(_a.m.begin()+_r*_a.ncol+c);
|
||||
return *(_a.m.begin() + _r * _a.ncol + c);
|
||||
}
|
||||
|
||||
inline G4ErrorMatrix::
|
||||
G4ErrorMatrix_row::G4ErrorMatrix_row(G4ErrorMatrix&a, G4int r)
|
||||
: _a(a)
|
||||
inline G4ErrorMatrix::G4ErrorMatrix_row::G4ErrorMatrix_row(G4ErrorMatrix& a,
|
||||
G4int r)
|
||||
: _a(a)
|
||||
{
|
||||
_r = r;
|
||||
}
|
||||
|
||||
inline G4ErrorMatrix::G4ErrorMatrix_row_const::G4ErrorMatrix_row_const
|
||||
(const G4ErrorMatrix&a, G4int r)
|
||||
: _a(a)
|
||||
inline G4ErrorMatrix::G4ErrorMatrix_row_const::G4ErrorMatrix_row_const(
|
||||
const G4ErrorMatrix& a, G4int r)
|
||||
: _a(a)
|
||||
{
|
||||
_r = r;
|
||||
}
|
||||
|
||||
inline G4ErrorMatrix G4ErrorMatrix::inverse(G4int &ierr) const
|
||||
inline G4ErrorMatrix G4ErrorMatrix::inverse(G4int& ierr) const
|
||||
{
|
||||
G4ErrorMatrix mTmp(*this);
|
||||
mTmp.invert(ierr);
|
||||
|
||||
Reference in New Issue
Block a user