/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/MdcPatRec/MdcTrkRecon/MdcTrkRecon-00-03-45/MdcTrkRecon/mdcTwoInv.h

Go to the documentation of this file.
00001 inline int mdcTwoInv( double matrix[3], double invmat[3]) {
00002 
00003   double det = matrix[0] * matrix[2] - matrix[1] * matrix[1];
00004   if (det == 0.0) {
00005     invmat[0] = invmat[2] = invmat[1] = 0.00000;
00006     return 1;
00007   }
00008   else {
00009     double detinv = 1./det;
00010     invmat[0] = matrix[2] * detinv;
00011     invmat[2] = matrix[0] * detinv;
00012     invmat[1] = -matrix[1] * detinv;
00013     return 0;
00014   }
00015 }
00016 

Generated on Tue Nov 29 23:13:33 2016 for BOSS_7.0.2 by  doxygen 1.4.7