GeoModel - GeoModelCore
Abs.icc
1 //==========================================================================//
2 // Imported from the QAT library (qat.pitt.edu) by the copyright holder //
3 // Joe Boudreau. Software licensed under the terms and conditions of the //
4 // GNU Lesser Public License v3. //
5 //==========================================================================//
6 #include "GeoGenericFunctions/Abs.h"
7 #include <cmath>
8 
9 namespace GeoGenfun {
10 
11  FUNCTION_OBJECT_IMP_INLINE(Abs)
12 
13  inline
14  Abs::Abs()
15  {}
16 
17  inline
18  Abs::Abs(const Abs & right) : AbsFunction(right)
19  {
20  }
21 
22  inline
23  Abs::~Abs() {
24  }
25 
26  inline
27  double Abs::operator() (double x) const {
28  return std::abs(x);
29  }
30 
31 }
32