Changeset 2290 in Sophya for trunk/SophyaLib/SkyMap/spherehealpix.h
- Timestamp:
- Dec 5, 2002, 4:43:18 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/spherehealpix.h
r1624 r2290 103 103 at the moment, always RING 104 104 */ 105 inline virtual char* TypeOfMap() const {return "RING";};105 inline virtual string TypeOfMap() const {return string("RING");}; 106 106 107 107 … … 147 147 //! Add \b x to all elements 148 148 virtual SphereHEALPix<T>& Add(T a); 149 inline SphereHEALPix<T>& operator += (T x) { return Add(x); }149 inline SphereHEALPix<T>& operator += (T x) { pixels_ += x; return *this; } 150 150 //! Substract \b x to all elements 151 151 virtual SphereHEALPix<T>& Sub(T a,bool fginv=false); 152 inline SphereHEALPix<T>& operator -= (T x) { return Sub(x); }152 inline SphereHEALPix<T>& operator -= (T x) { pixels_ -= x; return *this; } 153 153 //! Multiply all elements by \b x 154 154 virtual SphereHEALPix<T>& Mul(T a); 155 inline SphereHEALPix<T>& operator *= (T x) { return Mul(x); }155 inline SphereHEALPix<T>& operator *= (T x) {pixels_ *= x; return *this; } 156 156 //! Divide all elements by \b x 157 157 virtual SphereHEALPix<T>& Div(T a); 158 inline SphereHEALPix<T>& operator /= (T x) { return Div(x); }158 inline SphereHEALPix<T>& operator /= (T x) {pixels_ /= x; return *this; } 159 159 160 160 // A += -= (ajoute, soustrait element par element les deux spheres )
Note:
See TracChangeset
for help on using the changeset viewer.