CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

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 $
4 #include <assert.h>
5 #include <cmath> // for exp()
6 
7 namespace Genfun {
9 
10 Exp::Exp()
11 {}
12 
13 Exp::Exp(const Exp & right) : AbsFunction(right)
14 {}
15 
17 }
18 
19 double Exp::operator() (double x) const {
20  return exp(x);
21 }
22 
23 
24 Derivative Exp::partial(unsigned int index) const {
25  assert(index==0);
26  return Derivative(this);
27 }
28 
29 
30 } // namespace Genfun
Genfun::Exp::partial
Derivative partial(unsigned int) const
Definition: Exp.cc:24
Genfun::Derivative
FunctionNoop Derivative
Definition: CLHEP/GenericFunctions/AbsFunction.hh:40
Genfun::AbsFunction
Definition: CLHEP/GenericFunctions/AbsFunction.hh:48
Genfun::Exp
Definition: CLHEP/GenericFunctions/Exp.hh:20
Genfun::Exp::Exp
Exp()
Definition: Exp.cc:10
Genfun::Exp::operator()
virtual double operator()(double argument) const
Definition: Exp.cc:19
Exp.hh
Genfun::FunctionNoop
Definition: CLHEP/GenericFunctions/FunctionNoop.hh:19
Genfun::Exp::~Exp
virtual ~Exp()
Definition: Exp.cc:16
x
any side effects of that construction would occur twice The semantics of throw x
Definition: whyZMthrowRethrows.txt:37
FUNCTION_OBJECT_IMP
#define FUNCTION_OBJECT_IMP(classname)
Definition: CLHEP/GenericFunctions/AbsFunction.hh:156
Genfun
Definition: CLHEP/GenericFunctions/Abs.hh:14