Changeset 2147 in Sophya


Ignore:
Timestamp:
Jul 31, 2002, 1:42:08 PM (23 years ago)
Author:
ansari
Message:

Appel explicite de l'operateur de conversion sur objet MuTyV et Adaptation a fmath.h vide , Reza 31/7/2002

Location:
trunk/SophyaLib/TArray
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/TArray/sopemtx.cc

    r1624 r2147  
    9898  inline static double Abs_Value(uint_8 v) {return (double) v;}
    9999  //! Define Absolute value for r_4
    100   inline static double Abs_Value(r_4 v)    {return (double) fabsf(v);}
     100  inline static double Abs_Value(r_4 v)    {return (double) fabs((double)v);}
    101101  //! Define Absolute value for r_8
    102102  inline static double Abs_Value(r_8 v)    {return fabs(v);}
  • trunk/SophyaLib/TArray/tarray.cc

    r1636 r2147  
    853853    pe = mNDBlock.Begin()+Offset(ax,j);
    854854    offa = a.Offset(axa,j);
     855/* 
     856    Appel explicite de l'operateur de conversion
     857    suite a la suggestion de M. Reinecke, Reza 31/7/2002
    855858#if !defined(__GNUG__)
    856859    for(k=0, ka=0;  k<gpas;  k+=step, ka+=stepa)  pe[k] = (T)a.ValueAtPosition(offa+ka);
     
    859862    for(k=0, ka=0;  k<gpas;  k+=step, ka+=stepa)  pe[k] = a.ValueAtPosition(offa+ka);
    860863#endif
     864   --- Appel explicite de l'operateur de conversion sur l'objet MuTyV
     865*/
     866    for(k=0, ka=0;  k<gpas;  k+=step, ka+=stepa) 
     867      pe[k] = a.ValueAtPosition(offa+ka).operator T();
    861868  }
    862869  return(*this);
Note: See TracChangeset for help on using the changeset viewer.