CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
Genfun::FixedConstant Class Reference

#include <FixedConstant.hh>

+ Inheritance diagram for Genfun::FixedConstant:

Public Member Functions

 FixedConstant (double value)
 
 FixedConstant (const FixedConstant &right)
 
virtual ~FixedConstant ()
 
virtual double operator() (double argument) const override
 
virtual double operator() (const Argument &a) const override
 
Derivative partial (unsigned int) const override
 
virtual bool hasAnalyticDerivative () const override
 
- Public Member Functions inherited from Genfun::AbsFunction
 AbsFunction ()
 
 AbsFunction (const AbsFunction &right)
 
virtual ~AbsFunction ()
 
virtual unsigned int dimensionality () const
 
virtual double operator() (double argument) const =0
 
virtual double operator() (const Argument &argument) const =0
 
virtual AbsFunctionclone () const =0
 
virtual FunctionComposition operator() (const AbsFunction &f) const
 
virtual ParameterComposition operator() (const AbsParameter &p) const
 
Derivative derivative (const Variable &v) const
 
Derivative prime () const
 
virtual bool hasAnalyticDerivative () const
 
virtual Derivative partial (unsigned int) const
 

Detailed Description

Author

Definition at line 23 of file FixedConstant.hh.

Constructor & Destructor Documentation

◆ FixedConstant() [1/2]

Genfun::FixedConstant::FixedConstant ( double  value)

Definition at line 9 of file FixedConstant.cc.

9 :
10_value(value)
11{
12}

◆ FixedConstant() [2/2]

Genfun::FixedConstant::FixedConstant ( const FixedConstant right)

Definition at line 14 of file FixedConstant.cc.

14 :
15AbsFunction(right), _value(right._value) {
16}

◆ ~FixedConstant()

Genfun::FixedConstant::~FixedConstant ( )
virtual

Definition at line 18 of file FixedConstant.cc.

19{
20}

Member Function Documentation

◆ hasAnalyticDerivative()

virtual bool Genfun::FixedConstant::hasAnalyticDerivative ( ) const
inlineoverridevirtual

Reimplemented from Genfun::AbsFunction.

Definition at line 46 of file FixedConstant.hh.

46{return true;}

◆ operator()() [1/2]

virtual double Genfun::FixedConstant::operator() ( const Argument a) const
inlineoverridevirtual

Implements Genfun::AbsFunction.

Definition at line 40 of file FixedConstant.hh.

40{return operator() (a[0]);}
virtual double operator()(double argument) const override

◆ operator()() [2/2]

double Genfun::FixedConstant::operator() ( double  argument) const
overridevirtual

Implements Genfun::AbsFunction.

Definition at line 22 of file FixedConstant.cc.

23{
24 return _value;
25}

Referenced by operator()().

◆ partial()

Derivative Genfun::FixedConstant::partial ( unsigned int  index) const
overridevirtual

Reimplemented from Genfun::AbsFunction.

Definition at line 38 of file FixedConstant.cc.

38 {
39 assert(index==0);
40 FixedConstant fPrime(0.0);
41 return Derivative(&fPrime);
42}
FixedConstant(double value)
Definition: FixedConstant.cc:9
FunctionNoop Derivative
Definition: AbsFunction.hh:42

The documentation for this class was generated from the following files: