Changeset 2433 in Sophya for trunk/SophyaLib/SkyMap
- Timestamp:
- Sep 17, 2003, 11:59:59 AM (22 years ago)
- Location:
- trunk/SophyaLib/SkyMap
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/localmap.h
r2290 r2433 348 348 inline LocalMap<T> operator / (const LocalMap<T>& a,const LocalMap<T>& b) 349 349 { LocalMap<T> result; result.SetTemp(true); 350 if (b.IsTemp()) { result.Share(b); result.DivElt(a); } 351 else { result.CloneOrShare(a); result.DivElt(b); } 350 result.CloneOrShare(a); result.DivElt(b); 352 351 return result; } 353 352 -
trunk/SophyaLib/SkyMap/spherehealpix.h
r2290 r2433 297 297 inline SphereHEALPix<T> operator / (const SphereHEALPix<T>& a,const SphereHEALPix<T>& b) 298 298 { SphereHEALPix<T> result; result.SetTemp(true); 299 if (b.IsTemp()) { result.Share(b); result.DivElt(a); } 300 else { result.CloneOrShare(a); result.DivElt(b); } 299 result.CloneOrShare(a); result.DivElt(b); 301 300 return result; } 302 301 -
trunk/SophyaLib/SkyMap/spherethetaphi.h
r2290 r2433 352 352 inline SphereThetaPhi<T> operator / (const SphereThetaPhi<T>& a,const SphereThetaPhi<T>& b) 353 353 { SphereThetaPhi<T> result; result.SetTemp(true); 354 if (b.IsTemp()) { result.Share(b); result.DivElt(a, true); } 355 else { result.CloneOrShare(a); result.DivElt(b); } 354 result.CloneOrShare(a); result.DivElt(b); 356 355 return result; } 357 356
Note:
See TracChangeset
for help on using the changeset viewer.