13#include "CLHEP/Matrix/Matrix.h"
14#include "CLHEP/Matrix/SymMatrix.h"
27 M (j,i) = M(i,j) + .1 * (i-j)*(i-j);
38 std::cout<<
"MM.invert failed!!!! N = " << N <<
39 " ierr = "<< ierr <<std::endl;
45 std::cout<<
"SS.invert failed!!!! N = " << N <<
46 " ierr = "<< ierr <<std::endl;
60 if (fabs(MI(i,j)) > 1.0e-12) {
61 std::cout<<
"MM.invert incorrect N = " << N <<
62 " error = "<< fabs(MI(i,j)) <<std::endl;
65 if (fabs(SI(i,j)) > 1.0e-12) {
66 std::cout<<
"SS.invert incorrect N = " << N <<
67 " error = "<< fabs(SI(i,j)) <<std::endl;
72 if (fabs(1-MI(i,j)) > 1.0e-12) {
73 std::cout<<
"MM.invert incorrect N = " << N <<
74 " error = "<< fabs(1-MI(i,j)) <<std::endl;
77 if (fabs(1-SI(i,j)) > 1.0e-12) {
78 std::cout<<
"SS.invert incorrect N = " << N <<
79 " error = "<< fabs(1-SI(i,j)) <<std::endl;
90 std::cout<<
"MM.invert for symmetric case failed!!!! N = " << N <<
91 " ierr = "<< ierr <<std::endl;
98 if (fabs(MI(i,j)) > 1.0e-12) {
99 std::cout<<
"MM.invert incorrect N = " << N <<
100 " error = "<< fabs(MI(i,j)) <<std::endl;
105 if (fabs(1-MI(i,j)) > 1.0e-12) {
106 std::cout<<
"MM.invert incorrect N = " << N <<
107 " error = "<< fabs(1-MI(i,j)) <<std::endl;
119 for (
int i=1; i<10; i++) {
virtual void invert(int &ierr)
int test_inversion(int N)