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

#include <Abs.hh>

+ Inheritance diagram for Genfun::Abs:

Public Member Functions

 Abs ()
 
 Abs (const Abs &right)
 
virtual ~Abs ()
 
virtual double operator() (double argument) const override
 
virtual double operator() (const Argument &a) 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

Definition at line 15 of file Abs.hh.

Constructor & Destructor Documentation

◆ Abs() [1/2]

Genfun::Abs::Abs ( )

Definition at line 11 of file Abs.cc.

12{}

◆ Abs() [2/2]

Genfun::Abs::Abs ( const Abs right)

Definition at line 14 of file Abs.cc.

14 : AbsFunction(right)
15{
16}

◆ ~Abs()

Genfun::Abs::~Abs ( )
virtual

Definition at line 18 of file Abs.cc.

18 {
19}

Member Function Documentation

◆ operator()() [1/2]

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

Implements Genfun::AbsFunction.

Definition at line 32 of file Abs.hh.

32{return operator() (a[0]);}
virtual double operator()(double argument) const override
Definition: Abs.cc:21

◆ operator()() [2/2]

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

Implements Genfun::AbsFunction.

Definition at line 21 of file Abs.cc.

21 {
22 return std::abs(x);
23}

Referenced by operator()().


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