Changeset 1423 in Sophya for trunk/SophyaLib/SkyMap/spherehealpix.h
- Timestamp:
- Feb 23, 2001, 2:57:40 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/spherehealpix.h
r1419 r1423 209 209 //////////////////////////////////////////////////////////////// 210 210 // Surcharge d'operateurs A (+,-,*,/) (T) x 211 /*! \ingroup S phereHEALPix\fn operator+(const SphereHEALPix<T>&,T)211 /*! \ingroup SkyMap \fn operator+(const SphereHEALPix<T>&,T) 212 212 \brief Operator SphereHEALPix = SphereHEALPix + constant */ 213 213 template <class T> inline SphereHEALPix<T> operator + (const SphereHEALPix<T>& a, T b) 214 214 {SphereHEALPix<T> result; result.CloneOrShare(a); result.SetTemp(true); 215 215 result.Add(b); return result;} 216 /*! \ingroup S phereHEALPix\fn operator+(T,const SphereHEALPix<T>&)216 /*! \ingroup SkyMap \fn operator+(T,const SphereHEALPix<T>&) 217 217 \brief Operator SphereHEALPix = constant + SphereHEALPix */ 218 218 template <class T> inline SphereHEALPix<T> operator + (T b,const SphereHEALPix<T>& a) … … 233 233 result.Sub(b,true); return result;} 234 234 235 /*! \ingroup S phereHEALPix\fn operator*(const SphereHEALPix<T>&,T)235 /*! \ingroup SkyMap \fn operator*(const SphereHEALPix<T>&,T) 236 236 \brief Operator SphereHEALPix = SphereHEALPix * constant */ 237 237 template <class T> inline SphereHEALPix<T> operator * (const SphereHEALPix<T>& a, T b) … … 239 239 result.Mul(b); return result;} 240 240 241 /*! \ingroup S phereHEALPix\fn operator*(T,const SphereHEALPix<T>&)241 /*! \ingroup SkyMap \fn operator*(T,const SphereHEALPix<T>&) 242 242 \brief Operator SphereHEALPix = constant * SphereHEALPix */ 243 243 template <class T> inline SphereHEALPix<T> operator * (T b,const SphereHEALPix<T>& a) … … 245 245 result.Mul(b); return result;} 246 246 247 /*! \ingroup S phereHEALPix\fn operator/(const SphereHEALPix<T>&,T)247 /*! \ingroup SkyMap \fn operator/(const SphereHEALPix<T>&,T) 248 248 \brief Operator SphereHEALPix = SphereHEALPix / constant */ 249 249 template <class T> inline SphereHEALPix<T> operator / (const SphereHEALPix<T>& a, T b) … … 251 251 result.Div(b); return result;} 252 252 253 /*! \ingroup S phereHEALPix\fn operator/(T,const SphereHEALPix<T>&)253 /*! \ingroup SkyMap \fn operator/(T,const SphereHEALPix<T>&) 254 254 \brief Operator SphereHEALPix = constant / SphereHEALPix */ 255 255 template <class T> inline SphereHEALPix<T> operator / (T b, const SphereHEALPix<T>& a) … … 260 260 // Surcharge d'operateurs C = A (+,-) B 261 261 262 /*! \ingroup S phereHEALPix\fn operator+(const SphereHEALPix<T>&,const SphereHEALPix<T>&)262 /*! \ingroup SkyMap \fn operator+(const SphereHEALPix<T>&,const SphereHEALPix<T>&) 263 263 \brief Operator SphereHEALPix = SphereHEALPix + SphereHEALPix */ 264 264 template <class T> … … 269 269 return result; } 270 270 271 /*! \ingroup S phereHEALPix\fn operator-(const SphereHEALPix<T>&,const SphereHEALPix<T>&)271 /*! \ingroup SkyMap \fn operator-(const SphereHEALPix<T>&,const SphereHEALPix<T>&) 272 272 \brief Operator SphereHEALPix = SphereHEALPix - SphereHEALPix */ 273 273 template <class T>
Note:
See TracChangeset
for help on using the changeset viewer.