Changeset 302 in Sophya for trunk/SophyaLib/NTools
- Timestamp:
- May 18, 1999, 2:58:26 PM (26 years ago)
- Location:
- trunk/SophyaLib/NTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/tmatrix.cc
r301 r302 1 // $Id: tmatrix.cc,v 1. 6 1999-05-18 12:23:13ansari Exp $1 // $Id: tmatrix.cc,v 1.7 1999-05-18 12:58:24 ansari Exp $ 2 2 // C.Magneville 04/99 3 3 #include "machdefs.h" … … 9 9 #include "tmatrix.h" 10 10 #include "objfio.h" 11 #include "generalfit.h"12 11 13 12 using namespace PlanckDPC; … … 166 165 //////////////////////////////////////////////////////////////// 167 166 //**** Pour inversion 167 r_8 TMatrix<r_8>::GausPiv(TMatrix<r_8>& a, TMatrix<r_8>& b) 168 // Pivot de Gauss 169 // * Attention: egcs impose que cette fonction soit mise dans le .cc 170 // avant ::Inverse() (car Inverse() l'utilise) 171 { 172 Matrix A(a); 173 Matrix B(b); 174 return (r_8) Matrix::GausPiv(A,B); 175 } 176 168 177 TMatrix<r_8> TMatrix<r_8>::Inverse() const 169 178 // Inversion … … 177 186 } 178 187 179 double TMatrix<r_8>::GausPiv(TMatrix<r_8>& a, TMatrix<r_8>& b) 180 // Pivot de Gauss 181 { 182 Matrix A(a); 183 Matrix B(b); 184 return Matrix::GausPiv(A,B); 185 } 186 188 #include "generalfit.h" 187 189 ////////////////////////////////////////////////////////// 188 190 //**** Residus des fits -
trunk/SophyaLib/NTools/tmatrix.h
r301 r302 39 39 40 40 // Informations pointeur/data 41 inline intNRows() const {return mNr;}42 inline intNCols() const {return mNc;}41 inline uint_4 NRows() const {return mNr;} 42 inline uint_4 NCols() const {return mNc;} 43 43 inline T const& operator()(uint_4 r,uint_4 c) const 44 44 {return *(mNDBlock.Begin()+r*mNc+c);} -
trunk/SophyaLib/NTools/tvector.cc
r301 r302 1 // $Id: tvector.cc,v 1. 2 1999-05-18 12:23:15ansari Exp $1 // $Id: tvector.cc,v 1.3 1999-05-18 12:58:26 ansari Exp $ 2 2 // C.Magneville 04/99 3 3 #include "machdefs.h" … … 9 9 #include "tvector.h" 10 10 #include "objfio.h" 11 #include "generalfit.h"12 11 13 12 using namespace PlanckDPC; … … 51 50 } 52 51 52 #include "generalfit.h" 53 53 ////////////////////////////////////////////////////////// 54 54 //**** Residus des fits … … 68 68 {for(int i=0;i<npar;i++) par[i] = gfit.GetParm(i);} 69 69 TVector<r_8> v(*this); 70 for( inti=0;i<NElts();i++) {70 for(uint_4 i=0;i<NElts();i++) { 71 71 double x = xorg+i*dx; 72 72 v(i) -= f->Value(&x,par);
Note:
See TracChangeset
for help on using the changeset viewer.