Changeset 1624 in Sophya for trunk


Ignore:
Timestamp:
Aug 7, 2001, 12:52:19 AM (24 years ago)
Author:
cmv
Message:

On enleve les SetTemp() inutiles cmv 6/8/01

Location:
trunk
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/objfitter.cc

    r1206 r1624  
    242242{for(int i=0;i<npar;i++) par[i] = gfit.GetParm(i);}
    243243TMatrix<T> m(mtx,false);
    244 m.SetTemp(true);
    245244for(uint_4 i=0;i<mtx.NRows();i++) for(uint_4 j=0;j<mtx.NCols();j++) {
    246245  double x[2] = {xorg+j*dx,yorg+i*dy};
     
    275274{for(int i=0;i<npar;i++) par[i] = gfit.GetParm(i);}
    276275TMatrix<T> m(mtx.NRows(), mtx.NCols());
    277 m.SetTemp(true);
    278276for(uint_4 i=0;i<mtx.NRows();i++) for(uint_4 j=0;j<mtx.NCols();j++) {
    279277  double x[2] = {xorg+j*dx,yorg+i*dy};
     
    304302{for(int i=0;i<npar;i++) par[i] = gfit.GetParm(i);}
    305303TVector<T> v(vec,false);
    306 v.SetTemp(true);
    307304for(uint_4 i=0;i<vec.NElts();i++) {
    308305  double x = xorg+i*dx;
     
    332329{for(int i=0;i<npar;i++) par[i] = gfit.GetParm(i);}
    333330TVector<T> v(vec.NElts());
    334 v.SetTemp(true);
    335331for(uint_4 i=0;i<vec.NElts();i++) {
    336332  double x = xorg+i*dx;
     
    363359{for(int i=0;i<npar;i++) par[i] = gfit.GetParm(i);}
    364360Image<T> im(ima,false);
    365 im.SetTemp(true);
    366361for(uint_4 i=0;i<ima.XSize();i++) for(uint_4 j=0;j<ima.YSize();j++) {
    367362  double x[2] = {ima.XPos(i),ima.YPos(j)};
     
    388383{for(int i=0;i<npar;i++) par[i] = gfit.GetParm(i);}
    389384Image<T> im(ima.XSize(),ima.YSize());
    390 im.SetTemp(true);
    391385for(uint_4 i=0;i<ima.XSize();i++) for(uint_4 j=0;j<ima.YSize();j++) {
    392386  double x[2] = {ima.XPos(i),ima.YPos(j)};
  • trunk/SophyaLib/Samba/sphericaltransformserver.cc

    r1428 r1624  
    341341  //sortie.ReSize(nph);
    342342  TVector< complex<T> > sortie(nph);
    343   sortie.SetTemp(true);
    344343
    345344  fftIntfPtr_-> FFTBackward(data, sortie);
     
    424423  //sortie.ReSize(nph);
    425424  TVector<T> sortie;
    426   sortie.SetTemp(true);
    427425
    428426  fftIntfPtr_-> FFTBackward(data, sortie);
     
    453451  TVector< complex<T> > phase(nmmax+1);
    454452  Alm<T> alm;
    455   alm.SetTemp(true);
    456453  alm.ReSizeToLmax(nlmax);
    457454  for (int_4 ith = 0; ith < map.NbThetaSlices(); ith++)
     
    523520  //dataout.ReSize(nmmax+1);
    524521  TVector< complex<T> > dataout(nmmax+1);
    525   //  dataout.SetTemp(true);
    526522
    527523  int im_max=min(nph,nmmax+1);
     
    574570  //dataout.ReSize(nmmax+1);
    575571  TVector< complex<T> > dataout(nmmax+1);
    576   //  dataout.SetTemp(true);
    577572
    578573  // on transfere le resultat de la fft dans dataout.
  • trunk/SophyaLib/SkyMap/fiolocalmap.cc

    r842 r1624  
    2626{
    2727  dobj= new LocalMap<T>;
    28   dobj->DataBlock().SetTemp(true);
    2928  ownobj= true;
    3029  Read(filename);
     
    3837{
    3938  dobj= new LocalMap<T>(obj, true);
    40   dobj->DataBlock().SetTemp(true);
    4139  ownobj= true;
    4240}
     
    8987    {
    9088      dobj= new LocalMap<T>;
    91       dobj->DataBlock().SetTemp(true);
    9289      ownobj= true;
    9390    }
  • trunk/SophyaLib/SkyMap/fiospherehealpix.cc

    r1382 r1624  
    2121{
    2222  dobj_= new SphereHEALPix<T>;
    23   dobj_->SetTemp(true);
    2423  ownobj= true;
    2524  Read(filename);
     
    3029{
    3130  dobj_= new SphereHEALPix<T>(obj, true);
    32   dobj_->SetTemp(true);
    3331  ownobj= true;
    3432}
     
    6967    {
    7068      dobj_= new SphereHEALPix<T>;
    71       dobj_->SetTemp(true);
    7269      ownobj= true;     
    7370    }
  • trunk/SophyaLib/SkyMap/fiospherethetaphi.cc

    r1163 r1624  
    2222{
    2323  dobj= new SphereThetaPhi<T>;
    24   dobj->pixels_.SetTemp(true);
    2524  ownobj= true;
    2625  Read(filename);
     
    3130{
    3231  dobj= new SphereThetaPhi<T>(obj, true);
    33   dobj->pixels_.SetTemp(true);
    3432  ownobj= true;
    3533}
     
    7169    {
    7270      dobj= new SphereThetaPhi<T>;
    73       dobj->pixels_.SetTemp(true);
    7471      ownobj= true;     
    7572    }
  • trunk/SophyaLib/SkyMap/localmap.cc

    r1551 r1624  
    592592/*! Substract a constant value \b a to a LocalMap */
    593593template <class T>
    594 LocalMap<T>& LocalMap<T>::Sub(T a)
     594LocalMap<T>& LocalMap<T>::Sub(T a,bool fginv)
    595595{
    596596  if (NbPixels()< 1)
    597597    throw RangeCheckError("LocalMap<T>::Sub(T )  - LocalMap not dimensionned ! ");
    598   pixels_ -= a;
     598  pixels_.Sub(a,fginv);
    599599  return (*this);
    600600}
  • trunk/SophyaLib/SkyMap/localmap.h

    r1551 r1624  
    120120inline  LocalMap<T>&  operator += (T x)  { return Add(x); }
    121121//! Substract \b x to all elements
    122 virtual LocalMap<T>& Sub(T a);
     122virtual LocalMap<T>& Sub(T a,bool fginv=false);
    123123inline   LocalMap<T>&  operator -= (T x)  { return Sub(x); }
    124124//! Multiply all elements by \b x
  • trunk/SophyaLib/SkyMap/spherehealpix.cc

    r1551 r1624  
    9595    }
    9696  InitNul();
    97   //  SetTemp(false);
    9897  Pixelize(m);
    9998  SetThetaSlices();
     
    585584/*! Substract a constant value \b a to a SphereHEALPix */
    586585template <class T>
    587 SphereHEALPix<T>& SphereHEALPix<T>::Sub(T a)
     586SphereHEALPix<T>& SphereHEALPix<T>::Sub(T a,bool fginv)
    588587{
    589588  if (NbPixels() < 1)
    590589    throw RangeCheckError("SphereHEALPix<T>::Sub(T )  - SphereHEALPix not dimensionned ! ");
    591   pixels_ -= a;
     590  pixels_.Sub(a,fginv);
    592591  return (*this);
    593592}
  • trunk/SophyaLib/SkyMap/spherehealpix.h

    r1551 r1624  
    149149inline  SphereHEALPix<T>&  operator += (T x)  { return Add(x); }
    150150//! Substract \b x to all elements
    151 virtual SphereHEALPix<T>& Sub(T a);
     151virtual SphereHEALPix<T>& Sub(T a,bool fginv=false);
    152152inline   SphereHEALPix<T>&  operator -= (T x)  { return Sub(x); }
    153153//! Multiply all elements by \b x
  • trunk/SophyaLib/SkyMap/spherethetaphi.cc

    r1551 r1624  
    751751/*! Substract a constant value \b a to a SphereThetaPhi */
    752752template <class T>
    753 SphereThetaPhi<T>& SphereThetaPhi<T>::Sub(T a)
     753SphereThetaPhi<T>& SphereThetaPhi<T>::Sub(T a,bool fginv)
    754754{
    755755  if (NbPixels()< 1)
    756756    throw RangeCheckError("SphereThetaPhi<T>::Sub(T )  - SphereThetaPhi not dimensionned ! ");
    757   pixels_ -= a;
     757  pixels_.Sub(a,fginv);
    758758  return (*this);
    759759}
  • trunk/SophyaLib/SkyMap/spherethetaphi.h

    r1551 r1624  
    201201inline  SphereThetaPhi<T>&  operator += (T x)  { return Add(x); }
    202202//! Substract \b x to all elements
    203 virtual SphereThetaPhi<T>& Sub(T a);
     203virtual SphereThetaPhi<T>& Sub(T a,bool fginv=false);
    204204inline   SphereThetaPhi<T>&  operator -= (T x)  { return Sub(x); }
    205205//! Multiply all elements by \b x
  • trunk/SophyaLib/TArray/sopemtx.cc

    r1007 r1624  
    581581if(GausPiv(a,b)==(T) 0)
    582582  throw(MathExc("TMatrix Inverse() Singular Matrix"));
    583 b.SetTemp(true);
    584583return b;
    585584}
  • trunk/SophyaLib/TArray/tmatrix.cc

    r1581 r1624  
    1 // $Id: tmatrix.cc,v 1.21 2001-07-19 08:20:22 ansari Exp $
     1// $Id: tmatrix.cc,v 1.22 2001-08-06 22:48:43 cmv Exp $
    22//                         C.Magneville          04/99
    33#include "machdefs.h"
     
    238238  TMatrix sm(SubArray(rx, ry, Range(0), Range(0), Range(0)),true, mm);
    239239  sm.UpdateMemoryMapping(mm);
    240   sm.SetTemp(true);
    241240  return(sm);
    242241}
     
    284283    for(sa_size_t j=0; j<NCols(); j++)
    285284      tm(j,i) = (*this)(i,j);
    286   tm.SetTemp(true);
    287285  return tm;
    288286}
     
    308306    for(sa_size_t j=0; j<NCols(); j++)
    309307      tm(i,j) = (*this)(i,j);
    310   tm.SetTemp(true);
    311308  return tm;
    312309}
     
    409406    }
    410407
    411   rm.SetTemp(true);
    412408  return rm;
    413409}
  • trunk/SophyaLib/TArray/triangmtx.h

    r1327 r1624  
    3434    elem_.ReSize(long_diag_*(long_diag_+1)/2);
    3535  }
    36  inline void SetTemp(bool temp=false) const {elem_.SetTemp(temp);}
    3736
    3837//! Equal operator
  • trunk/SophyaLib/TArray/tvector.cc

    r1560 r1624  
    1 // $Id: tvector.cc,v 1.13 2001-07-03 15:41:56 ansari Exp $
     1// $Id: tvector.cc,v 1.14 2001-08-06 22:48:43 cmv Exp $
    22//                         C.Magneville          04/99
    33#include "machdefs.h"
     
    167167  TMatrix<T> const & mtx = (*this);
    168168  TVector sv( mtx(rr, cr) , true, GetVectorType(), GetMemoryMapping() );
    169   sv.SetTemp(true);
    170169  return(sv); 
    171170}
  • trunk/SophyaProg/PrgMap/prjsmap.cc

    r1607 r1624  
    133133  }
    134134
    135   prj.SetTemp(true);
    136135  return prj;   
    137136}
     
    170169    }
    171170  }
    172   prj.SetTemp(true);
    173171  return prj;   
    174172}
Note: See TracChangeset for help on using the changeset viewer.