CLHEP
2.4.7.1
C++ Class Library for High Energy Physics
CLHEP
GenericFunctions
Ln.hh
Go to the documentation of this file.
1
// -*- C++ -*-
2
// $Id: Ln.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3
//---------------------Ln---------------------------------------------------//
4
// //
5
// Class Ln //
6
// Joe Boudreau, Petar Maksimovic, November 1999 //
7
// //
8
//--------------------------------------------------------------------------//
9
#ifndef Ln_h
10
#define Ln_h 1
11
#include "
CLHEP/GenericFunctions/AbsFunction.hh
"
12
namespace
Genfun
{
13
18
class
Ln
:
public
AbsFunction
{
19
20
FUNCTION_OBJECT_DEF
(
Ln
)
21
22
public
:
23
24
// Constructor
25
Ln
();
26
27
// Destructor
28
virtual
~Ln
();
29
30
// Copy constructor
31
Ln
(
const
Ln
&right);
32
33
// Retreive function value
34
virtual
double
operator ()
(
double
argument)
const override
;
35
virtual
double
operator ()
(
const
Argument
& a)
const override
{
return
operator()
(a[0]);}
36
37
// Derivative.
38
Derivative
partial
(
unsigned
int
)
const override
;
39
40
// Does this function have an analytic derivative?
41
virtual
bool
hasAnalyticDerivative
()
const override
{
return
true
;}
42
43
44
private
:
45
46
// It is illegal to assign a Ln
47
const
Ln
& operator=(
const
Ln
&right);
48
49
};
50
}
// namespace Genfun
51
52
#endif
AbsFunction.hh
FUNCTION_OBJECT_DEF
#define FUNCTION_OBJECT_DEF(classname)
Definition
AbsFunction.hh:143
Genfun::AbsFunction::AbsFunction
AbsFunction()
Genfun::Argument
Definition
Argument.hh:17
Genfun::Ln
Definition
Ln.hh:18
Genfun::Ln::~Ln
virtual ~Ln()
Genfun::Ln::Ln
Ln()
Genfun::Ln::partial
Derivative partial(unsigned int) const override
Genfun::Ln::hasAnalyticDerivative
virtual bool hasAnalyticDerivative() const override
Definition
Ln.hh:41
Genfun::Ln::operator()
virtual double operator()(double argument) const override
Genfun::Ln::Ln
Ln(const Ln &right)
Genfun
Definition
Abs.hh:14
Genfun::Derivative
FunctionNoop Derivative
Definition
AbsFunction.hh:42
Generated by
1.14.0