Changeset 1624 in Sophya for trunk/SophyaLib/SkyMap
- Timestamp:
- Aug 7, 2001, 12:52:19 AM (24 years ago)
- Location:
- trunk/SophyaLib/SkyMap
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.