/[escript]/trunk/escript/src/DataAlgorithm.h
ViewVC logotype

Diff of /trunk/escript/src/DataAlgorithm.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2146 by ksteube, Thu Sep 25 23:11:13 2008 UTC revision 2147 by jfenwick, Wed Dec 10 04:41:26 2008 UTC
# Line 150  struct Trace : public std::binary_functi Line 150  struct Trace : public std::binary_functi
150  };  };
151    
152  /**  /**
153       \brief Return 1 if abs(x)>y, otherwise return 0.
154    */
155    struct AbsGT : public std::binary_function<double,double,double>
156    {
157      inline double operator()(double x, double y) const
158      {
159        return fabs(x)>y;
160      }
161    };
162    
163    /**
164       \brief Return 1 if abs(x)<=y, otherwise return 0.
165    */
166    struct AbsLTE : public std::binary_function<double,double,double>
167    {
168      inline double operator()(double x, double y) const
169      {
170        return fabs(x)<=y;
171      }
172    };
173    
174    
175    /**
176     \brief     \brief
177     Perform the given operation upon all values in all data-points in the     Perform the given operation upon all values in all data-points in the
178     given Data object and return the final result.     given Data object and return the final result.

Legend:
Removed from v.2146  
changed lines
  Added in v.2147

  ViewVC Help
Powered by ViewVC 1.1.26