- Timestamp:
- Aug 7, 2001, 12:52:19 AM (24 years ago)
- Location:
- trunk
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/objfitter.cc
r1206 r1624 242 242 {for(int i=0;i<npar;i++) par[i] = gfit.GetParm(i);} 243 243 TMatrix<T> m(mtx,false); 244 m.SetTemp(true);245 244 for(uint_4 i=0;i<mtx.NRows();i++) for(uint_4 j=0;j<mtx.NCols();j++) { 246 245 double x[2] = {xorg+j*dx,yorg+i*dy}; … … 275 274 {for(int i=0;i<npar;i++) par[i] = gfit.GetParm(i);} 276 275 TMatrix<T> m(mtx.NRows(), mtx.NCols()); 277 m.SetTemp(true);278 276 for(uint_4 i=0;i<mtx.NRows();i++) for(uint_4 j=0;j<mtx.NCols();j++) { 279 277 double x[2] = {xorg+j*dx,yorg+i*dy}; … … 304 302 {for(int i=0;i<npar;i++) par[i] = gfit.GetParm(i);} 305 303 TVector<T> v(vec,false); 306 v.SetTemp(true);307 304 for(uint_4 i=0;i<vec.NElts();i++) { 308 305 double x = xorg+i*dx; … … 332 329 {for(int i=0;i<npar;i++) par[i] = gfit.GetParm(i);} 333 330 TVector<T> v(vec.NElts()); 334 v.SetTemp(true);335 331 for(uint_4 i=0;i<vec.NElts();i++) { 336 332 double x = xorg+i*dx; … … 363 359 {for(int i=0;i<npar;i++) par[i] = gfit.GetParm(i);} 364 360 Image<T> im(ima,false); 365 im.SetTemp(true);366 361 for(uint_4 i=0;i<ima.XSize();i++) for(uint_4 j=0;j<ima.YSize();j++) { 367 362 double x[2] = {ima.XPos(i),ima.YPos(j)}; … … 388 383 {for(int i=0;i<npar;i++) par[i] = gfit.GetParm(i);} 389 384 Image<T> im(ima.XSize(),ima.YSize()); 390 im.SetTemp(true);391 385 for(uint_4 i=0;i<ima.XSize();i++) for(uint_4 j=0;j<ima.YSize();j++) { 392 386 double x[2] = {ima.XPos(i),ima.YPos(j)}; -
trunk/SophyaLib/Samba/sphericaltransformserver.cc
r1428 r1624 341 341 //sortie.ReSize(nph); 342 342 TVector< complex<T> > sortie(nph); 343 sortie.SetTemp(true);344 343 345 344 fftIntfPtr_-> FFTBackward(data, sortie); … … 424 423 //sortie.ReSize(nph); 425 424 TVector<T> sortie; 426 sortie.SetTemp(true);427 425 428 426 fftIntfPtr_-> FFTBackward(data, sortie); … … 453 451 TVector< complex<T> > phase(nmmax+1); 454 452 Alm<T> alm; 455 alm.SetTemp(true);456 453 alm.ReSizeToLmax(nlmax); 457 454 for (int_4 ith = 0; ith < map.NbThetaSlices(); ith++) … … 523 520 //dataout.ReSize(nmmax+1); 524 521 TVector< complex<T> > dataout(nmmax+1); 525 // dataout.SetTemp(true);526 522 527 523 int im_max=min(nph,nmmax+1); … … 574 570 //dataout.ReSize(nmmax+1); 575 571 TVector< complex<T> > dataout(nmmax+1); 576 // dataout.SetTemp(true);577 572 578 573 // on transfere le resultat de la fft dans dataout. -
trunk/SophyaLib/SkyMap/fiolocalmap.cc
r842 r1624 26 26 { 27 27 dobj= new LocalMap<T>; 28 dobj->DataBlock().SetTemp(true);29 28 ownobj= true; 30 29 Read(filename); … … 38 37 { 39 38 dobj= new LocalMap<T>(obj, true); 40 dobj->DataBlock().SetTemp(true);41 39 ownobj= true; 42 40 } … … 89 87 { 90 88 dobj= new LocalMap<T>; 91 dobj->DataBlock().SetTemp(true);92 89 ownobj= true; 93 90 } -
trunk/SophyaLib/SkyMap/fiospherehealpix.cc
r1382 r1624 21 21 { 22 22 dobj_= new SphereHEALPix<T>; 23 dobj_->SetTemp(true);24 23 ownobj= true; 25 24 Read(filename); … … 30 29 { 31 30 dobj_= new SphereHEALPix<T>(obj, true); 32 dobj_->SetTemp(true);33 31 ownobj= true; 34 32 } … … 69 67 { 70 68 dobj_= new SphereHEALPix<T>; 71 dobj_->SetTemp(true);72 69 ownobj= true; 73 70 } -
trunk/SophyaLib/SkyMap/fiospherethetaphi.cc
r1163 r1624 22 22 { 23 23 dobj= new SphereThetaPhi<T>; 24 dobj->pixels_.SetTemp(true);25 24 ownobj= true; 26 25 Read(filename); … … 31 30 { 32 31 dobj= new SphereThetaPhi<T>(obj, true); 33 dobj->pixels_.SetTemp(true);34 32 ownobj= true; 35 33 } … … 71 69 { 72 70 dobj= new SphereThetaPhi<T>; 73 dobj->pixels_.SetTemp(true);74 71 ownobj= true; 75 72 } -
trunk/SophyaLib/SkyMap/localmap.cc
r1551 r1624 592 592 /*! Substract a constant value \b a to a LocalMap */ 593 593 template <class T> 594 LocalMap<T>& LocalMap<T>::Sub(T a )594 LocalMap<T>& LocalMap<T>::Sub(T a,bool fginv) 595 595 { 596 596 if (NbPixels()< 1) 597 597 throw RangeCheckError("LocalMap<T>::Sub(T ) - LocalMap not dimensionned ! "); 598 pixels_ -= a;598 pixels_.Sub(a,fginv); 599 599 return (*this); 600 600 } -
trunk/SophyaLib/SkyMap/localmap.h
r1551 r1624 120 120 inline LocalMap<T>& operator += (T x) { return Add(x); } 121 121 //! Substract \b x to all elements 122 virtual LocalMap<T>& Sub(T a );122 virtual LocalMap<T>& Sub(T a,bool fginv=false); 123 123 inline LocalMap<T>& operator -= (T x) { return Sub(x); } 124 124 //! Multiply all elements by \b x -
trunk/SophyaLib/SkyMap/spherehealpix.cc
r1551 r1624 95 95 } 96 96 InitNul(); 97 // SetTemp(false);98 97 Pixelize(m); 99 98 SetThetaSlices(); … … 585 584 /*! Substract a constant value \b a to a SphereHEALPix */ 586 585 template <class T> 587 SphereHEALPix<T>& SphereHEALPix<T>::Sub(T a )586 SphereHEALPix<T>& SphereHEALPix<T>::Sub(T a,bool fginv) 588 587 { 589 588 if (NbPixels() < 1) 590 589 throw RangeCheckError("SphereHEALPix<T>::Sub(T ) - SphereHEALPix not dimensionned ! "); 591 pixels_ -= a;590 pixels_.Sub(a,fginv); 592 591 return (*this); 593 592 } -
trunk/SophyaLib/SkyMap/spherehealpix.h
r1551 r1624 149 149 inline SphereHEALPix<T>& operator += (T x) { return Add(x); } 150 150 //! Substract \b x to all elements 151 virtual SphereHEALPix<T>& Sub(T a );151 virtual SphereHEALPix<T>& Sub(T a,bool fginv=false); 152 152 inline SphereHEALPix<T>& operator -= (T x) { return Sub(x); } 153 153 //! Multiply all elements by \b x -
trunk/SophyaLib/SkyMap/spherethetaphi.cc
r1551 r1624 751 751 /*! Substract a constant value \b a to a SphereThetaPhi */ 752 752 template <class T> 753 SphereThetaPhi<T>& SphereThetaPhi<T>::Sub(T a )753 SphereThetaPhi<T>& SphereThetaPhi<T>::Sub(T a,bool fginv) 754 754 { 755 755 if (NbPixels()< 1) 756 756 throw RangeCheckError("SphereThetaPhi<T>::Sub(T ) - SphereThetaPhi not dimensionned ! "); 757 pixels_ -= a;757 pixels_.Sub(a,fginv); 758 758 return (*this); 759 759 } -
trunk/SophyaLib/SkyMap/spherethetaphi.h
r1551 r1624 201 201 inline SphereThetaPhi<T>& operator += (T x) { return Add(x); } 202 202 //! Substract \b x to all elements 203 virtual SphereThetaPhi<T>& Sub(T a );203 virtual SphereThetaPhi<T>& Sub(T a,bool fginv=false); 204 204 inline SphereThetaPhi<T>& operator -= (T x) { return Sub(x); } 205 205 //! Multiply all elements by \b x -
trunk/SophyaLib/TArray/sopemtx.cc
r1007 r1624 581 581 if(GausPiv(a,b)==(T) 0) 582 582 throw(MathExc("TMatrix Inverse() Singular Matrix")); 583 b.SetTemp(true);584 583 return b; 585 584 } -
trunk/SophyaLib/TArray/tmatrix.cc
r1581 r1624 1 // $Id: tmatrix.cc,v 1.2 1 2001-07-19 08:20:22 ansariExp $1 // $Id: tmatrix.cc,v 1.22 2001-08-06 22:48:43 cmv Exp $ 2 2 // C.Magneville 04/99 3 3 #include "machdefs.h" … … 238 238 TMatrix sm(SubArray(rx, ry, Range(0), Range(0), Range(0)),true, mm); 239 239 sm.UpdateMemoryMapping(mm); 240 sm.SetTemp(true);241 240 return(sm); 242 241 } … … 284 283 for(sa_size_t j=0; j<NCols(); j++) 285 284 tm(j,i) = (*this)(i,j); 286 tm.SetTemp(true);287 285 return tm; 288 286 } … … 308 306 for(sa_size_t j=0; j<NCols(); j++) 309 307 tm(i,j) = (*this)(i,j); 310 tm.SetTemp(true);311 308 return tm; 312 309 } … … 409 406 } 410 407 411 rm.SetTemp(true);412 408 return rm; 413 409 } -
trunk/SophyaLib/TArray/triangmtx.h
r1327 r1624 34 34 elem_.ReSize(long_diag_*(long_diag_+1)/2); 35 35 } 36 inline void SetTemp(bool temp=false) const {elem_.SetTemp(temp);}37 36 38 37 //! Equal operator -
trunk/SophyaLib/TArray/tvector.cc
r1560 r1624 1 // $Id: tvector.cc,v 1.1 3 2001-07-03 15:41:56 ansariExp $1 // $Id: tvector.cc,v 1.14 2001-08-06 22:48:43 cmv Exp $ 2 2 // C.Magneville 04/99 3 3 #include "machdefs.h" … … 167 167 TMatrix<T> const & mtx = (*this); 168 168 TVector sv( mtx(rr, cr) , true, GetVectorType(), GetMemoryMapping() ); 169 sv.SetTemp(true);170 169 return(sv); 171 170 } -
trunk/SophyaProg/PrgMap/prjsmap.cc
r1607 r1624 133 133 } 134 134 135 prj.SetTemp(true);136 135 return prj; 137 136 } … … 170 169 } 171 170 } 172 prj.SetTemp(true);173 171 return prj; 174 172 }
Note:
See TracChangeset
for help on using the changeset viewer.