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/spherethetaphi.cc

    r1419 r1551  
    811811  if (NbPixels()!= a.NbPixels())
    812812    {
    813     throw(SzMismatchError("SphereThetaPhi<T>::SubElt(const SphereThetaPhi<T>&) SizeMismatch")) ;
     813    throw(SzMismatchError("SphereThetaPhi<T>::MulElt(const SphereThetaPhi<T>&) SizeMismatch")) ;
    814814    }
    815815  pixels_ *= a.pixels_;
     816  return (*this);
     817}
     818
     819//! Divide two SphereThetaPhi (elements by elements) - No protection for divide by 0
     820template <class T>
     821SphereThetaPhi<T>& SphereThetaPhi<T>::DivElt(const SphereThetaPhi<T>& a)
     822{
     823  if (NbPixels()!= a.NbPixels())
     824    {
     825    throw(SzMismatchError("SphereThetaPhi<T>::DivElt(const SphereThetaPhi<T>&) SizeMismatch")) ;
     826    }
     827  pixels_ /= a.pixels_;
    816828  return (*this);
    817829}
Note: See TracChangeset for help on using the changeset viewer.