13 #include "CLHEP/Matrix/defs.h" 14 #include "CLHEP/Matrix/Matrix.h" 15 #include "CLHEP/Matrix/SymMatrix.h" 16 #include "CLHEP/Matrix/DiagMatrix.h" 21 using namespace CLHEP;
26 int n, j, ierr1, ierr2;
64 cout <<
"M inverse" << M.
inverse(ierr2) << endl;
69 cout <<
"B " << B << endl;
70 cout <<
"B inverse" << C << endl;
71 #ifndef INSTALLATION_CHECK 72 cout <<
"B * inverse" << B * C << endl;
74 cout <<
"ierr1: " << ierr1 << endl;
76 cout <<
"D * inverse" << D * C << endl;
77 cout <<
"ierr2: " << ierr2 << endl;
78 cout <<
"M inverse" << M.
inverse(ierr2) << endl;
79 #ifndef INSTALLATION_CHECK 80 cout <<
"M * inverse" << M * M.
inverse(ierr2)<< endl;
82 cout <<
"ierr2: " << ierr2 << endl;
84 #ifndef INSTALLATION_CHECK 90 cout <<
"Executing " << n <<
" inversions ..." << endl;
95 cout <<
"B: error in invert" << endl;
98 cout <<
"B: duration of inversion: " << zeit2-zeit1 <<
" secs" << endl;
101 cout <<
"Executing " << n <<
" inversions ..." << endl;
106 cout <<
"D: error in invert" << endl;
110 cout <<
"D: duration of inversion: " << zeit2-zeit1 <<
" secs" << endl;
HepMatrix inverse(int &ierr) const
HepSymMatrix inverse(int &ifail) const