Changeset 1551 in Sophya for trunk/SophyaLib/SkyMap/localmap.cc
- Timestamp:
- Jun 27, 2001, 10:14:39 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/localmap.cc
r1431 r1551 640 640 if (nSzX_ != a.nSzX_ || nSzY_ != a.nSzY_) 641 641 { 642 throw(SzMismatchError("LocalMap<T>:: AddElt(const LocalMap<T>&) SizeMismatch")) ;642 throw(SzMismatchError("LocalMap<T>::SubElt(const LocalMap<T>&) SizeMismatch")) ; 643 643 } 644 644 pixels_ -= a.pixels_; … … 652 652 if (nSzX_ != a.nSzX_ || nSzY_ != a.nSzY_) 653 653 { 654 throw(SzMismatchError("LocalMap<T>:: AddElt(const LocalMap<T>&) SizeMismatch")) ;654 throw(SzMismatchError("LocalMap<T>::MulElt(const LocalMap<T>&) SizeMismatch")) ; 655 655 } 656 656 pixels_ *= a.pixels_; 657 return (*this); 658 } 659 660 //! Divide two LocalMaps (elements by elements) - No protection for divide by 0 661 template <class T> 662 LocalMap<T>& LocalMap<T>::DivElt(const LocalMap<T>& a) 663 { 664 if (nSzX_ != a.nSzX_ || nSzY_ != a.nSzY_) 665 { 666 throw(SzMismatchError("LocalMap<T>::DivElt(const LocalMap<T>&) SizeMismatch")) ; 667 } 668 pixels_ /= a.pixels_; 657 669 return (*this); 658 670 }
Note:
See TracChangeset
for help on using the changeset viewer.