Changeset 1624 in Sophya for trunk/SophyaLib/SkyMap


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/SophyaLib/SkyMap
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.