| # Gaudi Framework, version v23r0 |

Home |  | Generated: Mon Jan 30 2012

Public Types | Public Member Functions | Private Member Functions | Private Attributes

# Genfun::GaudiMathImplementation::Adapter2DoubleFunction Class Reference

constructor from the trivial function with two argument More...

`#include <GaudiMath/Adapters.h>`

List of all members.

## Public Types
typedef double(* | Function )(const double, const double)
| the actual type of the function "to be adapted"
## Public Member Functions
| Adapter2DoubleFunction (Function func)
| mandatory macro from CLHEP/GenericFunctions
| Adapter2DoubleFunction (const Adapter2DoubleFunction &)
| copy coinstructor
virtual | ~Adapter2DoubleFunction ()
| virtual destructor
virtual double | operator() (double x) const
virtual double | operator() (const Argument &x) const
virtual unsigned int | dimensionality () const
virtual bool | hasAnalyticDerivative () const
| Does this function have an analytic derivative?
virtual Genfun::Derivative | partial (unsigned int i) const
| Derivatives.
double | operator() (const double x, const double y) const
## Private Member Functions
| Adapter2DoubleFunction ()
Adapter2DoubleFunction & | operator= (const Adapter2DoubleFunction &)
## Private Attributes
Function | m_func

## Detailed Description

constructor from the trivial function with two argument

      double func( const double , const double ) ;

      const AbsFuction& fun = Adapter2DoubleFunction( fun ) ;

      // evaluate the function in point (1,2):
      Argument arg(2) ;
      arg[0] = 1 ;
      arg[1] = 2 ;

      double value = fun( arg ) ;

Parameters:

  func | pointer to trivial function

Author:
  Kirill Miklyaev kirillm@iris1.itep.ru
  Vanya BELYAEV Ivan.Belyaev@itep.ru

Date:
  2003-08-03

Definition at line 91 of file FunAdapters.h.

## Member Typedef Documentation

typedef double(* Genfun::GaudiMathImplementation::Adapter2DoubleFunction::Function)(const double, const double)

the actual type of the function "to be adapted"

Definition at line 95 of file FunAdapters.h.

## Constructor & Destructor Documentation

Genfun::GaudiMathImplementation::Adapter2DoubleFunction::Adapter2DoubleFunction | ( | Adapter2DoubleFunction::Function | func ) |

mandatory macro from CLHEP/GenericFunctions

constructor

Definition at line 64 of file Adapter.cpp.

          : AbsFunction (       )
          , m_func      ( func  )
        {}

Genfun::GaudiMathImplementation::Adapter2DoubleFunction::Adapter2DoubleFunction | ( | const Adapter2DoubleFunction & | right ) |

copy coinstructor

Definition at line 70 of file Adapter.cpp.

          : AbsFunction (              )
          , m_func    ( right.m_func )
        {}

Genfun::GaudiMathImplementation::Adapter2DoubleFunction::~Adapter2DoubleFunction | ( | ) | `[virtual]`

virtual destructor

Definition at line 75 of file Adapter.cpp.

    {}

Genfun::GaudiMathImplementation::Adapter2DoubleFunction::Adapter2DoubleFunction | ( | ) | `[private]`

## Member Function Documentation

virtual unsigned int Genfun::GaudiMathImplementation::Adapter2DoubleFunction::dimensionality | ( | ) | const`[inline, virtual]`

Definition at line 112 of file FunAdapters.h.

    { return 2    ; }

virtual bool Genfun::GaudiMathImplementation::Adapter2DoubleFunction::hasAnalyticDerivative | ( | ) | const`[inline, virtual]`

Does this function have an analytic derivative?

Definition at line 114 of file FunAdapters.h.

    { return true ; }

double Genfun::GaudiMathImplementation::Adapter2DoubleFunction::operator() | ( | const double | x,
|  | const double | y
| ) |  | const

Definition at line 86 of file Adapter.cpp.

        { return m_func ( x , y ) ; }

virtual double Genfun::GaudiMathImplementation::Adapter2DoubleFunction::operator() | ( | const Argument & | x ) | const`[virtual]`

double Genfun::GaudiMathImplementation::Adapter2DoubleFunction::operator() | ( | double | x ) | const`[virtual]`

Definition at line 78 of file Adapter.cpp.

        { return m_func ( x , 0 ) ; }

Adapter2DoubleFunction& Genfun::GaudiMathImplementation::Adapter2DoubleFunction::operator= | ( | const Adapter2DoubleFunction & | ) | `[private]`

Genfun::Derivative Genfun::GaudiMathImplementation::Adapter2DoubleFunction::partial | ( | unsigned int | i ) | const`[virtual]`

Derivatives.

Definition at line 91 of file Adapter.cpp.

        {
          if ( i >= 2  )
          {
            const AbsFunction& aux = GaudiMath::Constant( 0 , 2 ) ;
            return Genfun::FunctionNoop( &aux ) ;
          };
          const AbsFunction& aux = GaudiMath::Derivative( *this , i ) ;
          return Genfun::FunctionNoop ( &aux ) ;
        }

## Member Data Documentation

Function Genfun::GaudiMathImplementation::Adapter2DoubleFunction::m_func`[private]`

Definition at line 125 of file FunAdapters.h.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r0/GaudiGSL/GaudiMath/FunAdapters.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r0/GaudiGSL/src/Lib/Adapter.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines