Changeset 774 in Sophya
- Timestamp:
- Mar 10, 2000, 4:24:53 PM (26 years ago)
- Location:
- trunk/SophyaLib/NTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/generalfit.cc
r766 r774 13 13 #include "pexceptions.h" 14 14 #include "generalfit.h" 15 #include "sopemtx.h" 15 16 16 17 #define EPS_FIT_MIN 1.e-8 … … 1167 1168 // Calcul de la matrice des covariances 1168 1169 #ifdef __mac__ 1169 COVAR = ATGA.Inverse();1170 COVAR = SimpleMatrixOperation<r_8>::Inverse(ATGA); /* $CHECK$ Reza 10/3/2000 */ 1170 1171 #else 1171 1172 TRY { 1172 COVAR = ATGA.Inverse();1173 COVAR = SimpleMatrixOperation<r_8>::Inverse(ATGA); /* $CHECK$ Reza 10/3/2000 */ 1173 1174 } CATCHALL { 1174 1175 if(debugLevel>0) { -
trunk/SophyaLib/NTools/linfit.cc
r540 r774 1 1 #include "machdefs.h" 2 2 #include "peida.h" 3 #include "sopemtx.h" 3 4 #include "linfit.h" 4 5 … … 38 39 for (int j=0; j<nf; j++) 39 40 for (int k=j; k<nf; k++) 40 a(j,k) = a(k,j) = fx.Row(j) * fx.Row(k); 41 a(j,k) = a(k,j) = TMatrixRC<r_8>::Row(const_cast<Matrix &>(fx), j) 42 * TMatrixRC<r_8>::Row(const_cast<Matrix &>(fx), k); /* $CHECK$ Reza 10/3/2000 */ 41 43 42 44 c = fx * y; 43 45 44 if ( Matrix::GausPiv(a,c) == 0) THROW(singMatxErr);46 if (SimpleMatrixOperation<r_8>::GausPiv(a,c) == 0) THROW(singMatxErr); /* $CHECK$ Reza 10/3/2000 */ 45 47 46 48 double xi2 = 0; … … 105 107 } 106 108 107 if ( Matrix::GausPiv(a,d) == 0) THROW(singMatxErr);109 if (SimpleMatrixOperation<r_8>::GausPiv(a,d) == 0) THROW(singMatxErr); /* $CHECK$ Reza 10/3/2000 */ 108 110 109 111 for (int l=0; l<nf; l++) {
Note:
See TracChangeset
for help on using the changeset viewer.