CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
Exp.cc
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id: Exp.cc,v 1.4 2003/10/10 17:40:39 garren Exp $
3#include "CLHEP/GenericFunctions/Exp.hh"
4#include <assert.h>
5#include <cmath> // for exp()
6
7namespace Genfun {
9
11{}
12
13Exp::Exp(const Exp & right) : AbsFunction(right)
14{}
15
17}
18
19double Exp::operator() (double x) const {
20 return exp(x);
21}
22
23// don't generate warnings about unused parameter inside assert
24#if defined __GNUC__
25 #if __GNUC__ > 3 && __GNUC_MINOR__ > 6
26 #pragma GCC diagnostic push
27 #pragma GCC diagnostic ignored "-Wunused-parameter"
28 #endif
29#endif
30#ifdef __clang__
31 #pragma clang diagnostic push
32 #pragma clang diagnostic ignored "-Wunused-parameter"
33#endif
34Derivative Exp::partial(unsigned int index) const {
35 assert(index==0);
36 return Derivative(this);
37}
38#if defined __GNUC__
39 #if __GNUC__ > 3 && __GNUC_MINOR__ > 6
40 #pragma GCC diagnostic pop
41 #endif
42#endif
43#ifdef __clang__
44 #pragma clang diagnostic pop
45#endif
46
47
48} // namespace Genfun
#define FUNCTION_OBJECT_IMP(classname)
Definition: AbsFunction.hh:149
Derivative partial(unsigned int) const override
Definition: Exp.cc:34
virtual double operator()(double argument) const override
Definition: Exp.cc:19
Exp()
Definition: Exp.cc:10
virtual ~Exp()
Definition: Exp.cc:16
Definition: Abs.hh:14
FunctionNoop Derivative
Definition: AbsFunction.hh:42