Changeset 2433 in Sophya


Ignore:
Timestamp:
Sep 17, 2003, 11:59:59 AM (22 years ago)
Author:
ansari
Message:

Correction erreur (division NON commutative) pour LocalMap, SphereHEALPix SphereThetaPhi - Reza 17/09/2003

Location:
trunk/SophyaLib/SkyMap
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SkyMap/localmap.h

    r2290 r2433  
    348348inline LocalMap<T> operator / (const LocalMap<T>& a,const LocalMap<T>& b)
    349349    { 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);
    352351    return result; }
    353352
  • trunk/SophyaLib/SkyMap/spherehealpix.h

    r2290 r2433  
    297297inline SphereHEALPix<T> operator / (const SphereHEALPix<T>& a,const SphereHEALPix<T>& b)
    298298    { 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);
    301300    return result; }
    302301
  • trunk/SophyaLib/SkyMap/spherethetaphi.h

    r2290 r2433  
    352352inline SphereThetaPhi<T> operator / (const SphereThetaPhi<T>& a,const SphereThetaPhi<T>& b)
    353353    { 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);
    356355    return result; }
    357356
Note: See TracChangeset for help on using the changeset viewer.