14#include "CLHEP/Matrix/GenMatrix.h"
15#include "CLHEP/Matrix/SymMatrix.h"
16#include "CLHEP/Matrix/Matrix.h"
18#ifdef HEP_DEBUG_INLINE
19#include "CLHEP/Matrix/GenMatrix.icc"
24#ifdef HEP_THIS_FUNCTION_IS_NOT_NEEDED
25static void delete_array(
double *hm)
33 for(
int r=1;r<=hm.
num_row();r++) {
35 for(
int c=1;c<=hm.
num_col();c++) {
45 for(
int c=1;c<=hm.
num_col();c++) {
47 for(
int r=1;r<=hm.
num_row();r++)
61 for(
int i=1;i<=hm.
num_row();i++)
62 A.
fast(r,c)=hm(i,r)*hm(i,c);
64 double max=fabs(A(1,1));
66 if(max<fabs(A(r,r))) max=fabs(A(r,r));
72 std::cerr << es << std::endl;
73 std::cerr <<
"---Exiting to System." << std::endl;
79 for (
int k1=1; k1<=
num_row(); k1++)
80 for (
int k2=1; k2<=
num_col(); k2++)
81 if(o(k1,k2) != (*this)(k1,k2))
return false;
virtual int num_row() const =0
virtual bool operator==(const HepGenMatrix &) const
static void error(const char *s)
virtual int num_col() const =0
void delete_m(int size, double *)
const double & fast(int row, int col) const
double norm(const HepGenMatrix &m)
double norm1(const HepGenMatrix &m)
double norm_infinity(const HepGenMatrix &m)
HepMatrix diagonalize(HepSymMatrix *s)