Ignore:
Timestamp:
Jun 27, 2001, 10:14:39 AM (24 years ago)
Author:
ansari
Message:

Operateurs arithmetiques corriges,completes sur les PixelMap (LocalMap et SphericalMaps) - Reza 27/6/2001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SkyMap/spherehealpix.cc

    r1419 r1551  
    645645  if (NbPixels() != a.NbPixels() )
    646646    {
    647     throw(SzMismatchError("SphereHEALPix<T>::SubElt(const SphereHEALPix<T>&) SizeMismatch")) ;
     647    throw(SzMismatchError("SphereHEALPix<T>::MulElt(const SphereHEALPix<T>&) SizeMismatch")) ;
    648648    }
    649649  pixels_ *= a.pixels_;
     650  return (*this);
     651}
     652
     653//! Divide two SphereHEALPix (elements by elements) - No protection for divide by 0
     654template <class T>
     655SphereHEALPix<T>& SphereHEALPix<T>::DivElt(const SphereHEALPix<T>& a)
     656{
     657  if (NbPixels() != a.NbPixels() )
     658    {
     659    throw(SzMismatchError("SphereHEALPix<T>::DivElt(const SphereHEALPix<T>&) SizeMismatch")) ;
     660    }
     661  pixels_ /= a.pixels_;
    650662  return (*this);
    651663}
Note: See TracChangeset for help on using the changeset viewer.