Go to the documentation of this file.
24 #include "CLHEP/Matrix/defs.h"
28 class HepGenMatrix_row;
29 class HepGenMatrix_row_const;
42 #ifdef DISABLE_ALLOC // disable this non-compliant allocator
44 template <
class T,
size_t size>
class Alloc
74 typedef std::vector<double >::iterator
mIter;
75 typedef std::vector<double >::const_iterator
mcIter;
77 typedef std::vector<double,Alloc<double,25> >::iterator
mIter;
78 typedef std::vector<double,Alloc<double,25> >::const_iterator
mcIter;
81 virtual int num_row()
const = 0;
82 virtual int num_col()
const = 0;
84 virtual const double &
operator()(
int row,
int col)
const =0;
85 virtual double &
operator()(
int row,
int col) =0;
89 virtual void invert(
int&) = 0;
116 inline static void swap(
int&,
int&);
118 inline static void swap(std::vector<double >&, std::vector<double >&);
120 inline static void swap(std::vector<
double,Alloc<double,25> >&, std::vector<
double,Alloc<double,25> >&);
123 virtual bool operator== (
const HepGenMatrix& )
const;
126 static void error(
const char *s);
143 void operator=(
const HepGenMatrix &) {}
153 double norm(
const HepGenMatrix &m);
154 double norm1(
const HepGenMatrix &m);
160 #ifdef ENABLE_BACKWARDS_COMPATIBILITY
162 using namespace CLHEP;
165 #ifndef HEP_DEBUG_INLINE
166 #include "CLHEP/Matrix/GenMatrix.icc"
const typedef T & const_reference
virtual int num_row() const =0
virtual void invert(int &)=0
virtual int num_col() const =0
virtual const double & operator()(int row, int col) const =0
const_pointer address(const_reference r) const
const typedef T * const_pointer
ptrdiff_t difference_type
void construct(pointer p, const T &val)
user code seldom needs to call this function directly ZMerrno whether or not they are still recorded ZMerrno size() Return the(integer) number of ZMthrow 'n exceptions currently recorded. 5) ZMerrno.clear() Set an internal counter to zero. This counter is available(see next function) to user code to track ZMthrow 'n exceptions that have occurred during any arbitrary time interval. 6) ZMerrno.countSinceCleared() Return the(integer) number of ZMthrow 'n exceptions that have been recorded via ZMerrno.write()
pointer allocate(size_type n, const void *hint=0)
static void swap(int &, int &)
void deallocate(pointer p, size_type n)
friend class HepGenMatrix_row_const
Alloc(const Alloc< T, size > &)
HepGenMatrix_row(HepGenMatrix &, int)
std::vector< double, Alloc< double, 25 > >::const_iterator mcIter
HepGenMatrix_row operator[](int)
virtual int num_size() const =0
const double & operator[](int) const
std::vector< double, Alloc< double, 25 > >::iterator mIter
size_type max_size() const
pointer address(reference r) const
static void error(const char *s)
HepGenMatrix_row_const(const HepGenMatrix &, int)
friend class HepGenMatrix_row
void delete_m(int size, double *)
double norm_infinity(const HepGenMatrix &m)
double norm(const HepGenMatrix &m)
double norm1(const HepGenMatrix &m)
virtual bool operator==(const HepGenMatrix &) const