00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "Minuit2/LaInverse.h"
00011 #include "Minuit2/LASymMatrix.h"
00012
00013 namespace ROOT {
00014
00015 namespace Minuit2 {
00016
00017
00018 int mnvert(LASymMatrix& t);
00019
00020
00021
00022 int Invert(LASymMatrix& t) {
00023
00024
00025
00026 int ifail = 0;
00027
00028 if(t.size() == 1) {
00029 double tmp = t.Data()[0];
00030 if(!(tmp > 0.)) ifail = 1;
00031 else t.Data()[0] = 1./tmp;
00032 } else {
00033 ifail = mnvert(t);
00034 }
00035
00036 return ifail;
00037 }
00038
00039
00040 }
00041
00042 }