Changeset 2589 in Sophya for trunk/SophyaLib/TArray/tarray.h


Ignore:
Timestamp:
Jul 30, 2004, 5:09:17 PM (21 years ago)
Author:
ansari
Message:

Correction petite faute de frappe (bug) trouve par compilateur g++ / Reza 30 Juillet 2004

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/TArray/tarray.h

    r2588 r2589  
    178178  inline  TArray<T>&  Mul(const TArray<T>& a)           { return MulElt(a, *this); }
    179179  //! Element by element division in place TArray *= TArray (element by element)
    180   inline  TArray<T>&  Div(const TArray<T>& a)           { return DivlElt(a, *this); }
     180  inline  TArray<T>&  Div(const TArray<T>& a, bool divzero=false)   
     181                                                        { return DivElt(a, *this, false, divzero); }
    181182
    182183// Recopie des valeurs, element par element
     
    322323  \brief Element by element division of two arrays TArray = TArray * TArray */
    323324template <class T>
    324 inline TArray<T> DivideElt(const TArray<T>& a,const TArray<T>& b)
     325inline TArray<T> DivideElt(const TArray<T>& a,const TArray<T>& b, bool divzero=false)
    325326    { TArray<T> result; result.SetTemp(true);
    326     a.DivElt(b, result);    return result; }
     327    a.DivElt(b, result, false, divzero);    return result; }
    327328
    328329// --------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.